imgui-platform-kit 2.0.0
Cross-platform Dear ImGui application framework
Loading...
Searching...
No Matches
imgui_kit::IconParameters Struct Reference

Window icon settings. More...

#include <user_interface_parameters.h>

Collaboration diagram for imgui_kit::IconParameters:
[legend]

Public Member Functions

 IconParameters (std::string path="", int width=0, int height=0)
 Constructs icon parameters.
 

Public Attributes

std::string path
 Path to the icon file (.ico on Windows, .png on Linux).
 
int width
 Icon width in pixels (0 keeps the file's native size).
 
int height
 Icon height in pixels (0 keeps the file's native size).
 

Detailed Description

Window icon settings.

On Windows an .ico file is expected; on Linux a .png file.

Note
On macOS setting a window icon is a no-op (GLFW limitation) — the application icon comes from the app bundle instead.

Constructor & Destructor Documentation

◆ IconParameters()

imgui_kit::IconParameters::IconParameters ( std::string  path = "",
int  width = 0,
int  height = 0 
)

Constructs icon parameters.

Parameters
pathPath to the icon file; empty means no icon.
widthIcon width in pixels; 0 keeps the native size.
heightIcon height in pixels; 0 keeps the native size.

Member Data Documentation

◆ height

int imgui_kit::IconParameters::height

Icon height in pixels (0 keeps the file's native size).

◆ path

std::string imgui_kit::IconParameters::path

Path to the icon file (.ico on Windows, .png on Linux).

◆ width

int imgui_kit::IconParameters::width

Icon width in pixels (0 keeps the file's native size).


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