class Window
Defined in: C4Widgets.h
A Window object represents a full-fledged interactive window.
Definition
class Window : public RootWidget, public ListElement<Window>
Member Functions
Constructor
Window(const char *panelName);
Window(const Vector2D& size, const char *title = nullptr, unsigned long flags = kWindowCloseBox | kWindowBackground);
Parameters
panelName |
The name of the panel resource to load.
|
size |
The size of the window, in pixels.
|
title |
The window's displayed title.
|
flags |
The window flags.
|
Description
The Window class is the root widget used for full-fledged interactive windows.
The flags parameter can be a combination (through logical OR) of the following values.
kWindowPlain |
The window is rendered plain with no frame.
|
kWindowCloseBox |
The window has a close button (ignored if kWindowPlain is set).
|
kWindowResizable |
The window has a resize handle (ignored if kWindowPlain is set).
|
kWindowBackground |
The window has a filled background.
|
kWindowCenter |
The window is initially centered on the screen.
|
kWindowMaximize |
The window is initially as large as possible (the specified size is ignored).
|
kWindowEvenSize |
The window must have even width and height (only used if kWindowResizable is set).
|
kWindowStrip |
The window appears in the strip.
|
kWindowPassive |
The window does not need to receive keyboard input.
|
kWindowModal |
The window is modal (automatically set by the Window::AddSubwindow function).
|
Base Classes
|