Interface for implementing a DisplayWindow target. More...
#include <display_window_provider.h>
Public Member Functions | |
Construction | |
virtual | ~DisplayWindowProvider () |
Attributes | |
virtual Rect | get_geometry () const =0 |
Returns the position and size of the window frame. More... | |
virtual Rect | get_viewport () const =0 |
Returns the drawable area of the window. More... | |
virtual bool | has_focus () const =0 |
Returns true if window has focus. More... | |
virtual bool | is_minimized () const =0 |
Returns true if the window is minimized. More... | |
virtual bool | is_maximized () const =0 |
Returns true if the window is maximized. More... | |
virtual bool | is_visible () const =0 |
Returns true if the window is visible. More... | |
virtual bool | is_fullscreen () const =0 |
Returns true if the window is fullscreen. More... | |
virtual Size | get_minimum_size (bool client_area) const =0 |
Returns the minimum size of the window. More... | |
virtual Size | get_maximum_size (bool client_area) const =0 |
Returns the maximum size of the window. More... | |
virtual std::string | get_title () const =0 |
Returns the maximum size of the window. More... | |
virtual GraphicContext & | get_gc ()=0 |
Return the graphic context for the window. More... | |
virtual InputContext | get_ic ()=0 |
Return the input context for the window. More... | |
virtual ::Display * | get_display () const =0 |
Returns the X11 display handle. More... | |
virtual ::Window | get_window () const =0 |
Handle to X11 window handle. More... | |
virtual bool | is_clipboard_text_available () const =0 |
Returns true if text is available in the clipboard. More... | |
virtual bool | is_clipboard_image_available () const =0 |
Returns true if an image is available in the clipboard. More... | |
virtual std::string | get_clipboard_text () const =0 |
Returns the text stored in the clipboard. More... | |
virtual PixelBuffer | get_clipboard_image () const =0 |
Returns the image stored in the clipboard. More... | |
Operations | |
virtual Point | client_to_screen (const Point &client)=0 |
Convert from window client coordinates to screen coordinates. More... | |
virtual Point | screen_to_client (const Point &screen)=0 |
Convert from screen coordinates to client coordinates. More... | |
virtual void | capture_mouse (bool capture)=0 |
Capture/Release the mouse. More... | |
virtual void | request_repaint (const Rect &rect)=0 |
Invalidates a region of a screen, causing a repaint. More... | |
virtual void | create (DisplayWindowSite *site, const DisplayWindowDescription &description)=0 |
Creates window, assigning site and description to provider. More... | |
virtual void | show_system_cursor ()=0 |
Shows the mouse cursor. More... | |
virtual CursorProvider * | create_cursor (const CursorDescription &cursor_description, const Point &hotspot)=0 |
Creates a new custom cursor. More... | |
virtual void | set_cursor (CursorProvider *cursor)=0 |
Sets the current cursor icon. More... | |
virtual void | set_cursor (enum StandardCursor type)=0 |
Sets the current cursor icon. More... | |
virtual void | hide_system_cursor ()=0 |
Hides the mouse cursor. More... | |
virtual void | set_title (const std::string &new_title)=0 |
Change window title. More... | |
virtual void | set_position (const Rect &pos, bool client_area)=0 |
Set window position and size. More... | |
virtual void | set_size (int width, int height, bool client_area)=0 |
Set size. More... | |
virtual void | set_minimum_size (int width, int height, bool client_area)=0 |
Set minimum size. More... | |
virtual void | set_maximum_size (int width, int height, bool client_area)=0 |
Set maximum size. More... | |
virtual void | set_enabled (bool enable)=0 |
Enables or disables a window. More... | |
virtual void | minimize ()=0 |
Minimizes the window. More... | |
virtual void | restore ()=0 |
Restores the window. More... | |
virtual void | maximize ()=0 |
Maximizes the window. More... | |
virtual void | show (bool activate)=0 |
Displays the window in its current size and position. More... | |
virtual void | hide ()=0 |
Hides the window. More... | |
virtual void | bring_to_front ()=0 |
Raise window on top of other windows. More... | |
virtual void | flip (int interval)=0 |
Flip opengl buffers. More... | |
virtual void | update (const Rect &rect)=0 |
Copy a region of the backbuffer to the frontbuffer. More... | |
virtual void | set_clipboard_text (const std::string &text)=0 |
Stores text in the clipboard. More... | |
virtual void | set_clipboard_image (const PixelBuffer &buf)=0 |
Stores an image in the clipboard. More... | |
virtual void | set_large_icon (const PixelBuffer &image)=0 |
Sets the large icon used for this window. More... | |
virtual void | set_small_icon (const PixelBuffer &image)=0 |
Sets the small icon used for this window. More... | |
virtual void | enable_alpha_channel (const Rect &blur_rect)=0 |
Enable alpha channel for this window. More... | |
virtual void | extend_frame_into_client_area (int height)=0 |
Exend the window frame into the client area. More... | |
Interface for implementing a DisplayWindow target.