#include <display_window.h>
Public Member Functions | |
Construction | |
| CL_DisplayWindow () | |
| Constructs a window. | |
| CL_DisplayWindow (const CL_StringRef &title, int width, int height, bool start_fullscreen=false, bool allow_resize=false, int flipping_buffers=2, CL_DisplayTarget target=CL_DisplayTarget()) | |
| Constructs a window. | |
| CL_DisplayWindow (const CL_DisplayWindowDescription &description, CL_DisplayTarget target=CL_DisplayTarget()) | |
| Constructs a window. | |
| CL_DisplayWindow (CL_DisplayWindowProvider *provider) | |
| Constructs a window. | |
| ~CL_DisplayWindow () | |
Attributes | |
| CL_Rect | get_geometry () const |
| Returns the position and size of the window frame. | |
| CL_Rect | get_viewport () const |
| Returns the drawable area of the window (excluding window frame). | |
| bool | is_fullscreen () const |
| Returns true if window is currently running fullscreen. | |
| bool | has_focus () const |
| Returns true if window has focus. | |
| CL_GraphicContext & | get_gc () const |
| Return the graphic context for the window. | |
| CL_InputContext & | get_ic () const |
| Return the input context for the window. | |
| CL_Signal_v0 & | sig_lost_focus () |
| Signal emitted when window lost focus. | |
| CL_Signal_v0 & | sig_got_focus () |
| Signal emitted when window gain focus. | |
| CL_Signal_v2< int, int > & | sig_resize () |
| Signal emitted when window is resized. | |
| CL_Signal_v1< const CL_Rect & > & | sig_paint () |
| Signal emitted when an area of the window is invalidated. | |
| CL_Signal_v0 & | sig_window_close () |
| Signal emitted when window is closed. | |
| CL_Signal_v0 & | sig_window_minimized () |
| Signal emitted when window is minimized. | |
| CL_Signal_v0 & | sig_window_maximized () |
| Signal emitted when window is maximized. | |
| CL_Callback_v1< CL_Rect & > & | func_window_resize () |
| Callback called when a window is being resized. | |
| bool | is_null () const |
| returns true if this display window is invalid | |
| bool | is_visible () const |
| returns true if this display window is visible | |
| bool | is_minimized () const |
| Returns true if the window is minimized. | |
| bool | is_maximized () const |
| Returns true if the window is maximized. | |
| CL_DisplayWindowProvider * | get_provider () const |
| Returns the display window provider. | |
| bool | is_clipboard_text_available () const |
| Returns true if text is available in the clipboard. | |
| bool | is_clipboard_image_available () const |
| Returns true if an image is available in the clipboard. | |
| CL_String | get_clipboard_text () const |
| Returns the text stored in the clipboard. | |
| CL_PixelBuffer | get_clipboard_image () const |
| Returns an image stored in the clipboard. | |
Operations | |
| CL_Point | client_to_screen (const CL_Point &client) |
| Convert from window client coordinates to screen coordinates. | |
| CL_Point | screen_to_client (const CL_Point &screen) |
| Convert from screen coordinates to client coordinates. | |
| void | capture_mouse (bool capture) |
| Capture/Release the mouse. | |
| void | request_repaint (const CL_Rect &rect) |
| Invalidates a region of a screen, causing a repaint. | |
| void | set_title (const CL_StringRef &title) |
| Change window title. | |
| void | set_position (const CL_Rect &pos, bool client_area) |
| Set window position and size. | |
| void | set_position (int x, int y) |
| Set window position and size. | |
| void | set_enabled (bool enable) |
| Set enabled. | |
| void | set_visible (bool visible, bool activate) |
| Set visible. | |
| void | set_size (int width, int height, bool client_area) |
| Resize window. | |
| void | set_minimum_size (int width, int height, bool client_area) |
| Minimum size a window can be resized to by the application user. | |
| void | set_maximum_size (int width, int height, bool client_area) |
| Maximum size a window can be resized to by the application user. | |
| void | minimize () |
| Minimizes the window. | |
| void | restore () |
| Restores the window. | |
| void | maximize () |
| Maximizes the window. | |
| void | show (bool activate=true) |
| Displays the window in its current size and position. | |
| void | hide () |
| Hides the window. | |
| void | bring_to_front () |
| Raises the window on top of other windows. | |
| void | update (const CL_Rect &rect) |
| Copy the specified rectangle area from back buffer to front buffer. | |
| void | flip (int interval=-1) |
| Flip back buffer to front, making changes visible on screen. | |
| void | show_cursor () |
| Shows the mouse cursor. | |
| void | set_cursor (const CL_Cursor &cursor) |
| Sets the current cursor icon. | |
| void | set_cursor (CL_StandardCursor type) |
| Set cursor. | |
| void | hide_cursor () |
| Hides the mouse cursor. | |
| void | set_clipboard_text (const CL_StringRef &text) |
| Stores text in the clipboard. | |
| void | set_clipboard_image (const CL_PixelBuffer &buf) |
| Stores an image in the clipboard. | |
| void | set_large_icon (const CL_PixelBuffer &image) |
| Sets the large icon used for this window. | |
| void | set_small_icon (const CL_PixelBuffer &image) |
| Sets the small icon used for this window. | |
|
|
Constructs a window.
|
|
||||||||||||||||||||||||||||||||
|
Constructs a window.
|
|
||||||||||||
|
Constructs a window.
|
|
|
Constructs a window.
|
|
|
|
|
|
Raises the window on top of other windows.
|
|
|
Capture/Release the mouse.
|
|
|
Convert from window client coordinates to screen coordinates.
|
|
|
Flip back buffer to front, making changes visible on screen. The parameter interval specifies the minimum number of video frames that are displayed before a buffer swap will occur. If interval is set to a value of 0, buffer swaps are not synchronized to a video frame. If interval is set to a value of -1 (the default), then it will use the buffer swap used for previous flip. If its the first flip, it will use the system default.
|
|
|
Callback called when a window is being resized.
|
|
|
Returns an image stored in the clipboard. Returns a null pixelbuffer if no image is available. |
|
|
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 display window provider.
|
|
|
Returns the drawable area of the window (excluding window frame).
|
|
|
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 window is currently running fullscreen.
|
|
|
Returns true if the window is maximized.
|
|
|
Returns true if the window is minimized.
|
|
|
returns true if this display window is invalid
|
|
|
returns true if this display 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.
|
|
|
Set cursor.
|
|
|
Sets the current cursor icon.
|
|
|
Set enabled.
|
|
|
Sets the large icon used for this window.
|
|
||||||||||||||||
|
Maximum size a window can be resized to by the application user.
|
|
||||||||||||||||
|
Minimum size a window can be resized to by the application user.
|
|
||||||||||||
|
Set window position and size.
|
|
||||||||||||
|
Set window position and size.
|
|
||||||||||||||||
|
Resize window.
|
|
|
Sets the small icon used for this window.
|
|
|
Change window title.
|
|
||||||||||||
|
Set visible.
|
|
|
Displays the window in its current size and position.
|
|
|
Shows the mouse cursor.
|
|
|
Signal emitted when window gain focus.
|
|
|
Signal emitted when window lost focus.
|
|
|
Signal emitted when an area of the window is invalidated.
|
|
|
Signal emitted when window is resized.
|
|
|
Signal emitted when window is closed.
|
|
|
Signal emitted when window is maximized.
|
|
|
Signal emitted when window is minimized.
|
|
|
Copy the specified rectangle area from back buffer to front buffer.
|
1.4.6