WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
CustomTitleBar Namespace Reference

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)
 

Function Documentation

◆ begin()

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.

Here is the caller graph for this function:

◆ end()

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.

Parameters
statusTextText shown right-aligned before the window buttons.

Definition at line 258 of file CustomTitleBar.cpp.

Here is the caller graph for this function:

◆ height()

float CustomTitleBar::height ( )
noexcept

Title bar height in logical pixels (call after begin()).

Definition at line 382 of file CustomTitleBar.cpp.

Here is the caller graph for this function:

◆ init()

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.

Here is the caller graph for this function:

◆ mergeIconFont()

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.

Parameters
pixelSizeThe pixel size used for the main UI font.

Definition at line 387 of file CustomTitleBar.cpp.

Here is the caller graph for this function: