Elaztek Developer Hub
Blamite Game Engine - blam!  00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
BlamImGuiWindow_MenuBar Class Reference

Class for the main ImGUI menu bar. More...

#include <menubar.hpp>

+ Inheritance diagram for BlamImGuiWindow_MenuBar:
+ Collaboration diagram for BlamImGuiWindow_MenuBar:

Public Member Functions

 BlamImGuiWindow_MenuBar (bool show_in_window)
 Initializes data for the legacy menu bar and instructs it to draw as a standard menu rather than the main application menu. More...
 
 ~BlamImGuiWindow_MenuBar ()
 Cleans up the legacy menu bar data. More...
 
void Draw ()
 Draws the menu bar contents and calculates the size of the commit hash text size. More...
 

Additional Inherited Members

- Public Attributes inherited from BlamImGuiWindow
bool show = false
 Controls whether or not the group should be shown. May not be used in all groups. More...
 

Detailed Description

Class for the main ImGUI menu bar.

This provides access to most ImGUI-based engine utilities.

Constructor & Destructor Documentation

◆ BlamImGuiWindow_MenuBar()

BlamImGuiWindow_MenuBar::BlamImGuiWindow_MenuBar ( bool  show_in_window)
inline

Initializes data for the legacy menu bar and instructs it to draw as a standard menu rather than the main application menu.

Parameters
show_in_window- Whether or not to show the menu in a small window. If this is set to false, the menu will be drawn as part of the main menu bar.
+ Here is the call graph for this function:

◆ ~BlamImGuiWindow_MenuBar()

BlamImGuiWindow_MenuBar::~BlamImGuiWindow_MenuBar ( )
inline

Cleans up the legacy menu bar data.

Member Function Documentation

◆ Draw()

void BlamImGuiWindow_MenuBar::Draw ( )
inlinevirtual

Draws the menu bar contents and calculates the size of the commit hash text size.

If #Blam::DebugUI::Widgets::MenuBar::old_devtools_bar is set to true, the legacy menu bar will also be drawn within its own window.

Reimplemented from BlamImGuiWindow.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: