GlfwAuxiliaryWindow class
Window besides the main one made with GLFW, see AuxiliaryWindow.
Base classes
- class nCine::AuxiliaryWindow
- Window of the application besides the main one, as a panel dragged out of it.
Public static functions
- static auto IsSupported() -> bool
- Returns
trueif windows besides the main one can be made with this build. -
static auto Create(const AuxiliaryWindowDesc& desc) -> std::
unique_ptr<GlfwAuxiliaryWindow> - Makes a hidden window,
nullptrif it can't be made. - static auto FromHandle(GLFWwindow* window) -> GlfwAuxiliaryWindow*
- Returns the window of a GLFW window,
nullptrif it's not one.
Constructors, destructors, conversion operators
- ~GlfwAuxiliaryWindow() override
Public functions
- void SetBounds(const Recti& bounds) override
- Moves and resizes it, in units of the desktop.
- auto GetBounds() const -> Recti override
- Returns where it is and its size, in units of the desktop, which may be larger than pixels on a scaled display.
- auto GetPixelSize() const -> Vector2i override
- Returns the size of what is drawn into it in pixels.
- auto GetContentScale() const -> float override
- Returns the scale of the display it's on, 1 for 100 %.
- auto IsFocused() const -> bool override
- Returns
trueif it has the keyboard focus. - void Raise() override
- Brings it in front of other windows and gives it the focus.
- void SetTitle(StringView title) override
- Sets its title, the system shows it on the taskbar.
- auto GetHandle() const -> GLFWwindow*
- Returns the GLFW window.
Protected functions
- void SetVisible(bool visible, bool activate) override
- Makes the window seen, or hides it.
Function documentation
float nCine:: Backends:: GlfwAuxiliaryWindow:: GetContentScale() const override
Returns the scale of the display it's on, 1 for 100 %.
The ratio to the scale of the main window (see IGfxDevice::