|
WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
|
Functions | |
| void | init (GLFWwindow *window) |
| bool | begin (GLFWwindow *window) |
| void | end (GLFWwindow *window, const char *statusText) |
| float | height () noexcept |
| Title bar height in logical pixels (call after begin()). | |
| void | mergeIconFont (float pixelSize) |
| bool CustomTitleBar::begin | ( | GLFWwindow * | window | ) |
Begin the custom title bar. Returns true if menus should be drawn (always true on Windows; delegates to ImGui::BeginMainMenuBar otherwise).
Definition at line 205 of file CustomTitleBar.cpp.
| void CustomTitleBar::end | ( | GLFWwindow * | window, |
| const char * | statusText | ||
| ) |
Draw the window-control buttons (minimise / maximise-restore / close) and the right-aligned status text, then close the title bar.
| statusText | Text shown right-aligned before the window buttons. |
Definition at line 258 of file CustomTitleBar.cpp.
|
noexcept |
Title bar height in logical pixels (call after begin()).
Definition at line 382 of file CustomTitleBar.cpp.
| void CustomTitleBar::init | ( | GLFWwindow * | window | ) |
Call once after creating the GLFW window to subclass the Win32 WndProc and extend the client area into the title bar.
Definition at line 169 of file CustomTitleBar.cpp.
| void CustomTitleBar::mergeIconFont | ( | float | pixelSize | ) |
Merge the Windows Segoe MDL2 Assets caption-button icons into the current ImGui font atlas. Call this right after adding the main font (with AddFontFromFileTTF / AddFontDefault) and before the atlas is built.
| pixelSize | The pixel size used for the main UI font. |
Definition at line 387 of file CustomTitleBar.cpp.