41 class DisplayWindowDescription_Impl;
42 struct DisplayWindowHandle;
138 DisplayWindowPtr
owner()
const;
298 std::unique_ptr<DisplayWindowDescription_Impl> impl;
bool has_sysmenu() const
Returns true if the window has a window menu on its title bar.
DisplayWindowDescription & operator=(const DisplayWindowDescription ©)
Copy assignment operator.
void set_title(const std::string &title)
Sets the title of the window.
bool is_layered() const
Returns true if window is layered (black is transparent)
bool has_no_activate() const
Indicates if window is automatically activated or not.
int stencil_size() const
Returns the minimum required stencil buffer.
void set_visible(bool value=true)
Toggles whether the window is created as initially visible.
bool allow_resize() const
Returns true if window should be resizeable.
bool has_maximize_button() const
Returns true if the window has a maximize button.
bool has_minimize_button() const
Returns true if the window has a minimize button.
DisplayWindowDescription()
Constructs a window description with default values.
std::shared_ptr< DisplayWindow > DisplayWindowPtr
Definition: canvas.h:41
bool is_topmost() const
Returns true if the window should be placed above all non-topmost windows.
int fullscreen_monitor() const
Returns the index of the monitor to go fullscreen on. See ScreenInfo.
Definition: display_window.h:86
bool is_dialog() const
Returns true if it is a dialog window.
int multisampling() const
Returns the number of samples per pixel.
bool is_update_supported() const
Returns true if DisplayWindow::update should be supported.
DisplayWindowPtr owner() const
Returns the window owning this one.
bool is_popup() const
Returns true if it is a popup window.
void set_drop_shadow(bool value=true)
Enables a drop shadow effect on the window.
bool is_main() const
Returns true if it is a main window.
void set_popup_window()
Display the window as a popup.
void set_allow_screensaver(bool allow_screensaver=true)
Allow the screensaver to appear.
void set_swap_interval(int interval=-1)
Sets the swap interval to be used for the window.
void set_handle(DisplayWindowHandle handle)
void set_stencil_size(int value)
Sets the minimum required stencil buffer.
void set_no_activate(bool value=true)
Prevents window from being automatically activated.
void set_owner_window(const DisplayWindowPtr &owner)
Specifies another window which owns this one.
void show_caption(bool value=true)
Controls if a title bar (including frame) is shown or not.
bool is_visible() const
Returns true if the window is initially visible.
2D (width,height) size structure - Float
Definition: size.h:180
~DisplayWindowDescription()
bool is_fullscreen() const
Returns if window should be initially fullscreen.
void set_dialog_window()
Display the window as a modal dialog.
bool has_caption() const
Returns true if a title bar is shown.
void set_flipping_buffers(int num_buffers=2)
Sets the amount of flipping buffers to be used.
2D (left,top,right,bottom) rectangle structure - Float
Definition: rect.h:505
Rectf position() const
Returns the initial position of the window.
void set_refresh_rate(int refresh_rate)
void show_minimize_button(bool value=true)
Sets if the window has a minimize button.
void set_depth_size(int value)
Sets the minimum required depth buffer.
const std::string & title() const
Returns the window title stored in the description.
void set_layered(bool layered)
Creates a layered window (complex shaped window)
bool allow_screensaver() const
Returns true if the screensaver is allowed.
void set_allow_alt_enter(bool value=true)
Sets if alt-enter switches to fullscreen or not.
void set_bpp(int bpp)
Sets the number of bytes per pixel.
void set_multisampling(int value)
Sets the number of samples per pixel.
void set_position(const Rectf &position, bool client_area)
Sets the position of the window (including window frame).
void set_fullscreen(bool fullscreen=true, int monitor=0)
Makes the window initially fullscreen.
Sizef size() const
Returns the size of the window stored in description.
int bpp() const
Returns the numbers of bytes per pixel in the window.
Display window description class.
Definition: display_window_description.h:47
void set_topmost(bool value=true)
Sets if the window should be placed above all non-topmost windows.
int depth_size() const
Returns the minimum required depth buffer.
void show_sysmenu(bool value=true)
Sets if the window has a window menu on its title bar.
void set_size(const Sizef &size, bool client_area)
Sets the size of the window (including window frame).
int swap_interval() const
Returns the swap interval to be used for the window.
void set_main_window()
Display this window as of the main windows of the application.
bool allow_alt_enter() const
Returns true if alt-enter enters fullscreen or not.
bool has_drop_shadow() const
Returns true if the window is drawn with a drop shadow effect.
int flipping_buffers() const
Returns the amount of flipping buffers to be created.
void set_update_supported(bool value) const
Controls if DisplayWindow::update is supported.
DisplayWindowHandle handle() const
void set_allow_resize(bool allow_resize=true)
Sets if windows should be resizable.
Definition: Application/application.h:35
void show_maximize_button(bool value=true)
Sets if the window has a maximize button.
bool position_client_area() const
Returns if the client area is used for the initial position of the window.