56 class DisplayWindowDescription_Impl;
57 struct DisplayWindowHandle;
314 std::shared_ptr<DisplayWindowDescription_Impl> impl;
WindowType get_type() const
float get_extend_frame_left() const
float get_extend_frame_right() const
void set_flipping_buffers(int num_buffers=2)
Sets the amount of flipping buffers to be used.
void set_swap_interval(int interval=-1)
Sets the swap interval to be used for the window.
virtual ~DisplayWindowDescription()
int get_stencil_size() const
Returns the minimum required stencil buffer.
bool is_fullscreen() const
Returns if window should be initially fullscreen.
void set_drop_shadow(bool value=true)
Enables a drop shadow effect on the window.
bool is_update_supported() const
Returns true if DisplayWindow::update should be supported.
void set_no_activate(bool value=true)
Prevents window from being automatically activated.
bool is_topmost() const
Returns true if the window should be placed above all non-topmost windows.
Definition: display_window.h:87
DisplayWindowDescription()
Constructs a window description with default values.
void show_sysmenu(bool value=true)
Sets if the window has a window menu on its title bar.
int get_bpp() const
Returns the numbers of bytes per pixel in the window.
void set_bpp(int bpp)
Sets the number of bytes per pixel.
bool get_allow_resize() const
Returns true if window should be resizeable.
void set_title(const std::string &title)
Sets the title of the window.
void set_topmost(bool value=true)
Sets if the window should be placed above all non-topmost windows.
bool get_using_gui_window_cache() const
Returns true if window from the window cache should be used. (GUI Only)
DisplayWindowHandle get_handle() const
bool is_layered() const
Returns true if window is layered (black is transparent)
bool is_visible() const
Returns true if the window is initially visible.
void set_layered(bool layered)
Creates a layered window (complex shaped window)
void set_update_supported(bool value) const
Controls if DisplayWindow::update is supported.
DisplayWindowDescription & operator=(const DisplayWindowDescription ©)
Copy assignment operator.
void set_tablet_context(bool create)
Sets to true if a tablet input context should be created for this window.
void set_allow_screensaver(bool allow_screensaver=true)
Allow the screensaver to appear.
DisplayWindow get_owner() const
Returns the window owning this one.
bool get_allow_screensaver() const
Returns true if the screensaver is allowed.
int get_fullscreen_monitor() const
Returns the index of the monitor to go fullscreen on. See ScreenInfo.
bool has_no_activate() const
Indicates if window is automatically activated or not.
bool has_drop_shadow() const
Returns true if the window is drawn with a drop shadow effect.
void set_handle(DisplayWindowHandle handle)
void show_maximize_button(bool value=true)
Sets if the window has a maximize button.
void set_using_gui_window_cache(bool value)
int get_refresh_rate() const
int get_multisampling() const
Returns the number of samples per pixel.
void set_visible(bool value=true)
Toggles whether the window is created as initially visible.
2D (left,top,right,bottom) rectangle structure - Float
Definition: rect.h:484
bool has_maximize_button() const
Returns true if the window has a maximize button.
void set_allow_resize(bool allow_resize=true)
Sets if windows should be resizable.
WindowType
Definition: display_window_description.h:41
bool get_position_client_area() const
Returns if the client area is used for the initial position of the window.
void show_minimize_button(bool value=true)
Sets if the window has a minimize button.
void set_stencil_size(int value)
Sets the minimum required stencil buffer.
void set_fullscreen(bool fullscreen=true, int monitor=0)
Makes the window initially fullscreen.
int get_swap_interval() const
Returns the swap interval to be used for the window.
bool has_caption() const
Returns true if a title bar is shown.
void set_depth_size(int value)
Sets the minimum required depth buffer.
bool has_minimize_button() const
Returns true if the window has a minimize button.
bool get_tablet_context() const
Returns true if a tablet context is to be created for the window.
void set_size(const Sizef &size, bool client_area)
Sets the size of the window (including window frame).
int get_depth_size() const
Returns the minimum required depth buffer.
Display window description class.
Definition: display_window_description.h:62
void set_position(const Rectf &position, bool client_area)
Sets the position of the window (including window frame).
Rectf get_position() const
Returns the initial position of the window.
Sizef get_size() const
Returns the size of the window stored in description.
float get_extend_frame_top() const
const std::string & get_title() const
Returns the window title stored in the description.
int get_flipping_buffers() const
Returns the amount of flipping buffers to be created.
void set_owner_window(const DisplayWindow &owner)
Specifies another window which owns this one.
void set_extend_frame(float left, float top, float right, float bottom)
float get_extend_frame_bottom() const
void set_multisampling(int value)
Sets the number of samples per pixel.
Top-level window class.
Definition: display_window.h:101
void set_refresh_rate(int refresh_rate)
void show_caption(bool value=true)
Controls if a title bar (including frame) is shown or not.
bool has_sysmenu() const
Returns true if the window has a window menu on its title bar.
DisplayWindowDescription clone() const
2D (width,height) size structure - Float
Definition: size.h:169
void set_type(WindowType type)