|
imgui-platform-kit 2.0.0
Cross-platform Dear ImGui application framework
|
Geometry and title of the top-level platform window. More...
#include <user_interface_parameters.h>
Public Member Functions | |
| WindowParameters (std::string title="default title", int width=-1, int height=-1, int startPosX=0, int startPosY=0) | |
| Constructs window parameters. | |
| void | save (const std::string &filename=defaultWindowParametersFilename) const |
| Saves the window geometry to an INI file. | |
| void | load (const std::string &filename=defaultWindowParametersFilename) |
| Loads the window geometry from an INI file previously written by save(). | |
Public Attributes | |
| std::string | title |
| Text shown in the window title bar. | |
| int | width |
| Window width in pixels; non-positive values use the monitor resolution. | |
| int | height |
| Window height in pixels; non-positive values use the monitor resolution. | |
| int | startPosX |
| Initial horizontal position of the window, in pixels. | |
| int | startPosY |
| Initial vertical position of the window, in pixels. | |
Geometry and title of the top-level platform window.
A non-positive width or height (e.g. the default -1) is replaced with the resolution of the active monitor.
| imgui_kit::WindowParameters::WindowParameters | ( | std::string | title = "default title", |
| int | width = -1, |
||
| int | height = -1, |
||
| int | startPosX = 0, |
||
| int | startPosY = 0 |
||
| ) |
Constructs window parameters.
| title | Window title. |
| width | Window width in pixels; non-positive values use the monitor resolution. |
| height | Window height in pixels; non-positive values use the monitor resolution. |
| startPosX | Initial horizontal window position in pixels. |
| startPosY | Initial vertical window position in pixels. |
| void imgui_kit::WindowParameters::load | ( | const std::string & | filename = defaultWindowParametersFilename | ) |
Loads the window geometry from an INI file previously written by save().
| filename | Path of the INI file to read. |
| void imgui_kit::WindowParameters::save | ( | const std::string & | filename = defaultWindowParametersFilename | ) | const |
Saves the window geometry to an INI file.
| filename | Path of the INI file to write. |
| int imgui_kit::WindowParameters::height |
Window height in pixels; non-positive values use the monitor resolution.
| int imgui_kit::WindowParameters::startPosX |
Initial horizontal position of the window, in pixels.
| int imgui_kit::WindowParameters::startPosY |
Initial vertical position of the window, in pixels.
| std::string imgui_kit::WindowParameters::title |
Text shown in the window title bar.
| int imgui_kit::WindowParameters::width |
Window width in pixels; non-positive values use the monitor resolution.