OS::Window Class ReferenceWraps a window handle.
More...
#include <Window.h>
Inheritance diagram for OS::Window:
List of all members.
|
Public Member Functions |
|
| Window (wnd_h handle=0) |
|
| operator wnd_h () |
|
void | Close () |
| | Closes the window.
|
| gfx_h | BeginPaint (rect_t *rect) |
| | Notifies the window manager that the application is about to start repainting this window.
|
| void | Invalidate (const rect_t &rect) |
| | Invalidates an area of the window.
|
| bool | GetAttribute (uint32_t code, wnd_data_t *data) |
| | Retrieves one of the window's attributes.
|
|
void | SetAttribute (uint32_t code, const wnd_data_t *data) |
|
bool | HasFocus () |
|
void | SetFocus () |
|
wnd_h | WindowAtPoint (int x, int y) |
|
void | SetCapture (bool set) |
|
void | BringToFront () |
Public Attributes |
|
wnd_h | m_handle |
| | Handle to the window.
|
Detailed Description
Wraps a window handle.
Member Function Documentation
| gfx_h OS::Window::BeginPaint |
( |
rect_t * |
rect |
) |
[inline] |
|
|
|
Notifies the window manager that the application is about to start repainting this window.
Called automatically by Painter's constructor. It returns a graphics handle for drawing, and the window's current invalid rectangle. The invalid rectangle covers the area which needs repainting.
- Parameters:
-
| rect | Pointer to an rect_t structure which will receive the window's invalid rectangle, or NULL if this is not needed. |
- Returns:
- A graphics handle
|
| bool OS::Window::GetAttribute |
( |
uint32_t |
code, |
|
|
wnd_data_t * |
data |
|
) |
[inline] |
|
|
|
Retrieves one of the window's attributes.
The window manager stores a list of attributes for each window, which can be retrieved from any process.
- Parameters:
-
| code | Identifier of the attribute to retrieve. System- defined attributes are:
- WND_ATTR_POSITION: the window's position.
- WND_ATTR_CLIENT_DATA: an opaque 32-bit value
|
| data | Pointer to a wnd_data_t structure which will receive the attribute's data |
- Returns:
- true if the attribute existed, false otherwise
|
| void OS::Window::Invalidate |
( |
const rect_t & |
rect |
) |
[inline] |
|
|
|
Invalidates an area of the window.
The rectangle provided is added to the window's invalid rectangle and a paint message is generated.
- Parameters:
-
|
The documentation for this class was generated from the following file:
|