Interface for implementing a DisplayWindow target. More...
#include <display_window_provider.h>
Public Member Functions | |
virtual | ~DisplayWindowProvider () |
virtual void | bring_to_front ()=0 |
Raise window on top of other windows. | |
virtual void | capture_mouse (bool capture)=0 |
Capture/Release the mouse. | |
virtual Point | client_to_screen (const Point &client)=0 |
Convert from window client coordinates to screen coordinates. | |
virtual void | create (DisplayWindowSite *site, const DisplayWindowDescription &description)=0 |
Creates window, assigning site and description to provider. | |
virtual CursorProvider * | create_cursor (const CursorDescription &cursor_description)=0 |
Creates a new custom cursor. | |
virtual void | enable_alpha_channel (const Rect &blur_rect)=0 |
virtual void | extend_frame_into_client_area (int left, int top, int right, int bottom)=0 |
virtual void | flip (int interval)=0 |
Flip the window display buffers. | |
virtual PixelBuffer | get_clipboard_image () const =0 |
Returns the image stored in the clipboard. | |
virtual std::string | get_clipboard_text () const =0 |
Returns the text stored in the clipboard. | |
virtual std::vector< InputDevice > & | get_game_controllers ()=0 |
Returns the game controller input device. | |
virtual GraphicContext & | get_gc ()=0 |
Returns the graphic context for the window. | |
virtual Rect | get_geometry () const =0 |
Returns the position and size of the window frame. | |
virtual DisplayWindowHandle | get_handle () const =0 |
virtual InputDevice & | get_keyboard ()=0 |
Returns the keyboard input device. | |
virtual Size | get_maximum_size (bool client_area) const =0 |
Returns the maximum size of the window. | |
virtual Size | get_minimum_size (bool client_area) const =0 |
Returns the minimum size of the window. | |
virtual InputDevice & | get_mouse ()=0 |
Returns the mouse input device. | |
virtual float | get_pixel_ratio () const =0 |
virtual std::string | get_title () const =0 |
Returns the maximum size of the window. | |
virtual Rect | get_viewport () const =0 |
Returns the drawable area of the window. | |
virtual bool | has_focus () const =0 |
Returns true if window has focus. | |
virtual void | hide ()=0 |
Hides the window. | |
virtual void | hide_system_cursor ()=0 |
Hides the mouse cursor. | |
virtual bool | is_clipboard_image_available () const =0 |
Returns true if an image is available in the clipboard. | |
virtual bool | is_clipboard_text_available () const =0 |
Returns true if text is available in the clipboard. | |
virtual bool | is_fullscreen () const =0 |
Returns true if the window is fullscreen. | |
virtual bool | is_maximized () const =0 |
Returns true if the window is maximized. | |
virtual bool | is_minimized () const =0 |
Returns true if the window is minimized. | |
virtual bool | is_visible () const =0 |
Returns true if the window is visible. | |
virtual void | maximize ()=0 |
Maximizes the window. | |
virtual void | minimize ()=0 |
Minimizes the window. | |
virtual void | request_repaint ()=0 |
Invalidates the screen, causing a repaint. | |
virtual void | restore ()=0 |
Restores the window. | |
virtual Point | screen_to_client (const Point &screen)=0 |
Convert from screen coordinates to client coordinates. | |
virtual void | set_clipboard_image (const PixelBuffer &buf)=0 |
Stores an image in the clipboard. | |
virtual void | set_clipboard_text (const std::string &text)=0 |
Stores text in the clipboard. | |
virtual void | set_cursor (CursorProvider *cursor)=0 |
Sets the current cursor icon. | |
virtual void | set_cursor (StandardCursor type)=0 |
Sets the current cursor icon. | |
virtual void | set_enabled (bool enable)=0 |
Enables or disables input into this window. | |
virtual void | set_large_icon (const PixelBuffer &image)=0 |
Sets the large icon used for this window. | |
virtual void | set_maximum_size (int width, int height, bool client_area)=0 |
virtual void | set_minimum_size (int width, int height, bool client_area)=0 |
virtual void | set_pixel_ratio (float ratio)=0 |
virtual void | set_position (const Rect &pos, bool client_area)=0 |
Sets the position and size of this window on the screen. | |
virtual void | set_size (int width, int height, bool client_area)=0 |
virtual void | set_small_icon (const PixelBuffer &image)=0 |
Sets the small icon used for this window. | |
virtual void | set_title (const std::string &new_title)=0 |
Change window title. | |
virtual void | show (bool activate)=0 |
Displays the window in its current size and position. | |
virtual void | show_system_cursor ()=0 |
Shows the mouse cursor. | |
virtual void | toggle_fullscreen ()=0 |
Interface for implementing a DisplayWindow target.
|
inlinevirtual |
|
pure virtual |
Raise window on top of other windows.
|
pure virtual |
Capture/Release the mouse.
Convert from window client coordinates to screen coordinates.
|
pure virtual |
Creates window, assigning site and description to provider.
|
pure virtual |
Creates a new custom cursor.
|
pure virtual |
Enable alpha channel blending for this window.
blur_rect | Window blur area. If its size is 0 , the area of the entire window will be used. |
|
pure virtual |
Extend the window frame into the client area.
References clan::left, and clan::right.
|
pure virtual |
Flip the window display buffers.
|
pure virtual |
Returns the image stored in the clipboard.
|
pure virtual |
Returns the text stored in the clipboard.
|
pure virtual |
Returns the game controller input device.
|
pure virtual |
Returns the graphic context for the window.
|
pure virtual |
Returns the position and size of the window frame.
|
pure virtual |
Returns an platform-specific internal display window handle object.
|
pure virtual |
Returns the keyboard input device.
|
pure virtual |
Returns the maximum size of the window.
|
pure virtual |
Returns the minimum size of the window.
|
pure virtual |
Returns the mouse input device.
|
pure virtual |
Returns the display pixel ratio of the window. \seealso Resolution Independence
|
pure virtual |
Returns the maximum size of the window.
|
pure virtual |
Returns the drawable area of the window.
|
pure virtual |
Returns true if window has focus.
|
pure virtual |
Hides the window.
|
pure virtual |
Hides the mouse cursor.
|
pure virtual |
Returns true if an image is available in the clipboard.
|
pure virtual |
Returns true if text is available in the clipboard.
|
pure virtual |
Returns true if the window is fullscreen.
|
pure virtual |
Returns true if the window is maximized.
|
pure virtual |
Returns true if the window is minimized.
|
pure virtual |
Returns true if the window is visible.
|
pure virtual |
Maximizes the window.
|
pure virtual |
Minimizes the window.
|
pure virtual |
Invalidates the screen, causing a repaint.
|
pure virtual |
Restores the window.
Convert from screen coordinates to client coordinates.
|
pure virtual |
Stores an image in the clipboard.
|
pure virtual |
Stores text in the clipboard.
|
pure virtual |
Sets the current cursor icon.
|
pure virtual |
Sets the current cursor icon.
|
pure virtual |
Enables or disables input into this window.
|
pure virtual |
Sets the large icon used for this window.
References clan::image.
|
pure virtual |
Sets the maximum size allowed for this window when resizing.
width | Maximum width of the window. |
height | Maximum height of the window. |
client_area | Size includes the entire window frame? |
|
pure virtual |
Sets the minimum size allowed for this window when resizing.
width | Minimum width of the window. |
height | Minimum height of the window. |
client_area | Size includes the entire window frame? |
|
pure virtual |
Sets the display pixel ratio of this window.
ratio | The new display pixel ratio to use on this window. |
|
pure virtual |
Sets the position and size of this window on the screen.
|
pure virtual |
Sets the size of this window.
width | Minimum width of the window. |
height | Minimum height of the window. |
client_area | Size includes the entire window frame? |
|
pure virtual |
Sets the small icon used for this window.
References clan::image.
|
pure virtual |
Change window title.
|
pure virtual |
Displays the window in its current size and position.
|
pure virtual |
Shows the mouse cursor.
|
pure virtual |
Toggle fullscreen Only Win32 implementation for now