All Classes |Grouped Classes |Index

Class CL_DisplayWindow

Top-level window class. More...

Derived from:

None

Derived by:

None

Group:

Window (Display)

#include <ClanLib/display.h>

Class Members:

Construction:

CL_DisplayWindow

Constructs a null instance.


Attributes:

get_geometry

Returns the position and size of the window frame.

get_viewport

Returns the drawable area of the window (excluding window frame).

is_fullscreen

Returns true if window is currently running fullscreen.

has_focus

Returns true if window has focus.

get_gc

Return the graphic context for the window.

get_ic

Return the input context for the window.

sig_lost_focus

Signal emitted when window lost focus.

sig_got_focus

Signal emitted when window gain focus.

sig_resize

Signal emitted when window is resized.

sig_paint

Signal emitted when an area of the window is invalidated.

sig_window_close

Signal emitted when window is closed.

sig_window_destroy

Signal emitted when window is destroyed.

sig_window_minimized

Signal emitted when window is minimized.

sig_window_maximized

Signal emitted when window is maximized.

sig_window_restored

Signal emitted when window is restored.

sig_window_moved

Signal emitted after a window has been moved.

func_window_resize

Callback called when a window is being resized.

func_minimize_clicked

Callback called when a window is asked to minimize itself.

is_null

Returns true if this object is invalid.

throw_if_null

Throw an exception if this object is invalid.

is_visible

returns true if this display window is visible

is_minimized

Returns true if the window is minimized.

is_maximized

Returns true if the window is maximized.

get_provider

Returns the display window provider.

is_clipboard_text_available

Returns true if text is available in the clipboard.

is_clipboard_image_available

Returns true if an image is available in the clipboard.

get_clipboard_text

Returns the text stored in the clipboard.

get_clipboard_image

Returns an image stored in the clipboard.

get_minimum_size

Returns the minimum size the window can be resized to by the application user.

get_maximum_size

Returns the maximum size the window can be resized to by the application user.

get_title

Returns the window title.

get_display

Returns the X11 display handle.

get_window

Handle to X11 window handle.


Operations:

client_to_screen

Convert from window client coordinates to screen coordinates.

screen_to_client

Convert from screen coordinates to client coordinates.

capture_mouse

Capture/Release the mouse.

request_repaint

Invalidates a region of a screen, causing a repaint.

set_title

Change window title.

set_position

Set window position and size.

set_enabled

Set enabled.

set_visible

Set visible.

set_size

Resize window.

set_minimum_size

Minimum size a window can be resized to by the application user.

set_maximum_size

Maximum size a window can be resized to by the application user.

minimize

Minimizes the window.

restore

Restores the window.

maximize

Maximizes the window.

show

Displays the window in its current size and position.

hide

Hides the window.

bring_to_front

Raises the window on top of other windows.

update

Copy the specified rectangle area from back buffer to front buffer.

flip

Flip back buffer to front, making changes visible on screen.

show_cursor

Shows the mouse cursor.

set_cursor

Sets the current cursor icon.

hide_cursor

Hides the mouse cursor.

set_clipboard_text

Stores text in the clipboard.

set_clipboard_image

Stores an image in the clipboard.

set_large_icon

Sets the large icon used for this window.

set_small_icon

Sets the small icon used for this window.