#include <display_window_provider.h>
Public Member Functions | |
Construction | |
| virtual | ~CL_DisplayWindowProvider () |
Attributes | |
| virtual CL_Rect | get_geometry () const =0 |
| Returns the position and size of the window frame. | |
| virtual CL_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 bool | is_minimized () const =0 |
| Returns true if the window is minimized. | |
| virtual bool | is_maximized () const =0 |
| Returns true if the window is maximized. | |
| virtual bool | is_visible () const =0 |
| Returns true if the window is visible. | |
| virtual bool | is_fullscreen () const =0 |
| Returns true if the window is fullscreen. | |
| virtual CL_GraphicContext & | get_gc ()=0 |
| Return the graphic context for the window. | |
| virtual CL_InputContext & | get_ic ()=0 |
| Return the input context for the window. | |
| virtual bool | is_clipboard_text_available () const =0 |
| Returns true if text is available in the clipboard. | |
| virtual bool | is_clipboard_image_available () const =0 |
| Returns true if an image is available in the clipboard. | |
| virtual CL_String | get_clipboard_text () const =0 |
| Returns the text stored in the clipboard. | |
| virtual CL_PixelBuffer | get_clipboard_image () const =0 |
| Returns the image stored in the clipboard. | |
Operations | |
| virtual CL_Point | client_to_screen (const CL_Point &client)=0 |
| Convert from window client coordinates to screen coordinates. | |
| virtual CL_Point | screen_to_client (const CL_Point &screen)=0 |
| Convert from screen coordinates to client coordinates. | |
| virtual void | capture_mouse (bool capture)=0 |
| Capture/Release the mouse. | |
| virtual void | request_repaint (const CL_Rect &rect)=0 |
| Invalidates a region of a screen, causing a repaint. | |
| virtual void | destroy ()=0 |
| Destroys the display window provider. | |
| virtual void | create (CL_DisplayWindowSite *site, const CL_DisplayWindowDescription &description)=0 |
| Creates window, assigning site and description to provider. | |
| virtual void | show_system_cursor ()=0 |
| Shows the mouse cursor. | |
| virtual CL_CursorProvider * | create_cursor (const CL_SpriteDescription &sprite_description, const CL_Point &hotspot)=0 |
| Creates a new custom cursor. | |
| virtual void | set_cursor (CL_CursorProvider *cursor)=0 |
| Sets the current cursor icon. | |
| virtual void | set_cursor (enum CL_StandardCursor type)=0 |
| Sets the current cursor icon. | |
| virtual void | hide_system_cursor ()=0 |
| Hides the mouse cursor. | |
| virtual void | set_title (const CL_StringRef &new_title)=0 |
| Change window title. | |
| virtual void | set_position (const CL_Rect &pos, bool client_area)=0 |
| Set window position and size. | |
| virtual void | set_size (int width, int height, bool client_area)=0 |
| Set size. | |
| virtual void | set_minimum_size (int width, int height, bool client_area)=0 |
| Set minimum size. | |
| virtual void | set_maximum_size (int width, int height, bool client_area)=0 |
| Set maximum size. | |
| virtual void | set_enabled (bool enable)=0 |
| Enables or disables a window. | |
| virtual void | minimize ()=0 |
| Minimizes the window. | |
| virtual void | restore ()=0 |
| Restores the window. | |
| virtual void | maximize ()=0 |
| Maximizes the window. | |
| virtual void | show (bool activate)=0 |
| Displays the window in its current size and position. | |
| virtual void | hide ()=0 |
| Hides the window. | |
| virtual void | bring_to_front ()=0 |
| Raise window on top of other windows. | |
| virtual void | flip (int interval)=0 |
| Flip opengl buffers. | |
| virtual void | update (const CL_Rect &rect)=0 |
| Copy a region of the backbuffer to the frontbuffer. | |
| virtual void | set_clipboard_text (const CL_StringRef &text)=0 |
| Stores text in the clipboard. | |
| virtual void | set_clipboard_image (const CL_PixelBuffer &buf)=0 |
| Stores an image in the clipboard. | |
| virtual void | set_large_icon (const CL_PixelBuffer &image)=0 |
| Sets the large icon used for this window. | |
| virtual void | set_small_icon (const CL_PixelBuffer &image)=0 |
| Sets the small icon used for this window. | |
|
|
|
|
|
Raise window on top of other windows.
|
|
|
Capture/Release the mouse.
|
|
|
Convert from window client coordinates to screen coordinates.
|
|
||||||||||||
|
Creates window, assigning site and description to provider.
|
|
||||||||||||
|
Creates a new custom cursor.
|
|
|
Destroys the display window provider.
|
|
|
Flip opengl buffers.
|
|
|
Returns the image stored in the clipboard.
|
|
|
Returns the text stored in the clipboard.
|
|
|
Return the graphic context for the window.
|
|
|
Returns the position and size of the window frame.
|
|
|
Return the input context for the window.
|
|
|
Returns the drawable area of the window.
|
|
|
Returns true if window has focus.
|
|
|
Hides the window.
|
|
|
Hides the mouse cursor.
|
|
|
Returns true if an image is available in the clipboard.
|
|
|
Returns true if text is available in the clipboard.
|
|
|
Returns true if the window is fullscreen.
|
|
|
Returns true if the window is maximized.
|
|
|
Returns true if the window is minimized.
|
|
|
Returns true if the window is visible.
|
|
|
Maximizes the window.
|
|
|
Minimizes the window.
|
|
|
Invalidates a region of a screen, causing a repaint.
|
|
|
Restores the window.
|
|
|
Convert from screen coordinates to client coordinates.
|
|
|
Stores an image in the clipboard.
|
|
|
Stores text in the clipboard.
|
|
|
Sets the current cursor icon.
|
|
|
Sets the current cursor icon.
|
|
|
Enables or disables a window.
|
|
|
Sets the large icon used for this window.
|
|
||||||||||||||||
|
Set maximum size.
|
|
||||||||||||||||
|
Set minimum size.
|
|
||||||||||||
|
Set window position and size.
|
|
||||||||||||||||
|
Set size.
|
|
|
Sets the small icon used for this window.
|
|
|
Change window title.
|
|
|
Displays the window in its current size and position.
|
|
|
Shows the mouse cursor.
|
|
|
Copy a region of the backbuffer to the frontbuffer.
|
1.4.6