OS Window interface.
Public Member Functions | |
| virtual iOSWindow * | GetParent () const =0 |
| Get the parent window if any. {Property}. More... | |
| virtual void | SetClientAreaWindow (tIntPtr aHandle)=0 |
| Set a child window that should always be set to cover the window's client area. {Property}. More... | |
| virtual tIntPtr | GetClientAreaWindow () const =0 |
| Get the client area window of this window. {Property}. More... | |
| virtual tIntPtr | GetPID () const =0 |
| Get the process that created this window. {Property}. More... | |
| virtual tIntPtr | GetHandle () const =0 |
| Get the os handle of the window. {Property}. More... | |
| virtual tBool | GetIsHandleOwned () const =0 |
| Get whether the handle of the window is owned (aka will be destroyed) by the window object. {Property}. More... | |
| virtual void | ActivateWindow ()=0 |
| Activate the window if the application is in the foreground. More... | |
| virtual tBool | GetIsActive () const =0 |
| Get whether the window is active or not. {Property}. More... | |
| virtual tBool | SwitchIn (tU32 anReason)=0 |
| Send a switch in message and set the window in active state. More... | |
| virtual tBool | SwitchOut (tU32 anReason)=0 |
| Send a switch out message and set the window in inactive state. More... | |
| virtual void | SetTitle (const achar *aaszTitle)=0 |
| Set the window's title. {Property}. More... | |
| virtual const achar * | GetTitle () const =0 |
| Get the window's title. {Property}. More... | |
| virtual void | SetStyle (tOSWindowStyleFlags aStyle)=0 |
| Set the window's style. {Property}. More... | |
| virtual tOSWindowStyleFlags | GetStyle () const =0 |
| Get the window's style. {Property}. More... | |
| virtual void | SetShow (tOSWindowShowFlags aStyle)=0 |
| Set the window shown status. {Property}. More... | |
| virtual tOSWindowShowFlags | GetShow () const =0 |
| Get the window shown status. {Property}. More... | |
| virtual void | SetZOrder (eOSWindowZOrder aZOrder)=0 |
| Set the window's ZOrder. {Property}. More... | |
| virtual eOSWindowZOrder | GetZOrder () const =0 |
| Get the window's ZOrder. {Property}. More... | |
| virtual void | SetSize (const sVec2i &avSize)=0 |
| Set the window's size. {Property}. More... | |
| virtual sVec2i | GetSize () const =0 |
| Get the window's size. {Property}. More... | |
| virtual void | SetPosition (const sVec2i &avPos)=0 |
| Set the window's position. {Property}. More... | |
| virtual sVec2i | GetPosition () const =0 |
| Get the window's position. {Property}. More... | |
| virtual void | SetRect (const sRecti &aRect)=0 |
| Set the window's rectangle. {Property}. More... | |
| virtual sRecti | GetRect () const =0 |
| Get the window's rectangle. {Property}. More... | |
| virtual void | SetClientSize (const sVec2i &avSize)=0 |
| Set the window's client size. {Property}. More... | |
| virtual sVec2i | GetClientSize () const =0 |
| Get the window's client size. {Property}. More... | |
| virtual tMessageHandlerSinkLst * | GetMessageHandlers () const =0 |
| Get the window's message handlers. {Property}. More... | |
| virtual tBool | UpdateWindow (tBool abBlockingMessages)=0 |
| Update the window's message pump and others. More... | |
| virtual void | CenterWindow ()=0 |
| Center the window in the middle of the current screen/parent window. More... | |
| virtual tBool | GetRequestedClose () const =0 |
| Get whether window closing has been requested. {Property}. More... | |
| virtual void | SetRequestedClose (tBool abRequested)=0 |
| Set the close requested flags. {Property}. More... | |
| virtual void | SetCursor (eOSCursor aCursor)=0 |
| Set the current OS cursor. {Property}. More... | |
| virtual eOSCursor | GetCursor () const =0 |
| Get the current OS cursor. {Property}. More... | |
| virtual tBool | InitCustomCursor (tIntPtr aID, tU32 anWidth, tU32 anHeight, tU32 anHotSpotX, tU32 anHotSpotY, const tU32 *apData)=0 |
| Initialize the custom cursor. More... | |
| virtual tIntPtr | GetCustomCursorID () const =0 |
| Get the custom cursor user id. {Property}. More... | |
| virtual void | SetCursorPosition (const sVec2i &avCursorPos)=0 |
| Set the cursor position. {Property}. More... | |
| virtual sVec2i | GetCursorPosition () const =0 |
| Get the last recorded cursor position. {Property}. More... | |
| virtual void | SetCursorCapture (tBool abCapture)=0 |
| Set the cursor capture. {Property}. More... | |
| virtual tBool | GetCursorCapture () const =0 |
| Get the cursor capture state. {Property}. More... | |
| virtual tBool | GetIsCursorOverClient () const =0 |
| Get whether the mouse cursor is in the client area of the window. {Property}. More... | |
| virtual void | TryClose ()=0 |
| Try to close the window (this is equivalent to pressing the close button on the window). More... | |
| virtual void | SetDropTarget (tBool abDropTarget)=0 |
| Set whether the window is a drop target. {Property}. More... | |
| virtual tBool | GetDropTarget () const =0 |
| Get whether the window is a drop target. {Property}. More... | |
| virtual void | Clear ()=0 |
| Explicitly clear the window's content. More... | |
| virtual tBool | RedrawWindow ()=0 |
| Force redraw of the full window. More... | |
| virtual tU32 | GetMonitor () const =0 |
| Get the monitor index the window is on. {Property}. More... | |
| virtual tBool | SetFullScreen (tU32 anMonitor)=0 |
| Set the window to fullsreen, set to eInvalidHandle to return to windowed. {Property}. More... | |
| virtual tU32 | GetFullScreen () const =0 |
| Get the monitor on which the window is fullscreend, eInvalidHandle if it's not fullscreen. {Property}. More... | |
| virtual tBool | GetIsMinimized () const =0 |
| Get whether the window is currently minimized. {Property}. More... | |
| virtual tBool | GetIsMaximized () const =0 |
| Get whether the window is currently maximzed. {Property}. More... | |
| virtual void | SetFocus ()=0 |
| Set focus on this window. More... | |
| virtual tBool | GetHasFocus () const =0 |
| Get whether the window has focus. {Property}. More... | |
| virtual void | SetRefreshTimer (tF32 afTime)=0 |
| Set the rate of the refresh timer in seconds. {Property}. More... | |
| virtual tF32 | GetRefreshTimer () const =0 |
| Get the rate of the refresh timer. {Property}. More... | |
| virtual tIntPtr | GetParentHandle () const =0 |
| Get the parent window handle if any. {Property}. More... | |
| virtual tU32 | IsParentWindow (tIntPtr aHandle) const =0 |
| Check whether the specified window is a parent window of this window. More... | |
| virtual tBool | AttachGraphicsAPI (iOSGraphicsAPI *apAPI)=0 |
| Attach a graphics API to the window. More... | |
| virtual iOSGraphicsAPI * | GetGraphicsAPI () const =0 |
| Get the graphics API attached to the window. {Property}. More... | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Get the parent window if any. {Property}.
Set a child window that should always be set to cover the window's client area. {Property}.
|
pure virtual |
Get the client area window of this window. {Property}.
|
pure virtual |
Get the process that created this window. {Property}.
|
pure virtual |
Get the os handle of the window. {Property}.
|
pure virtual |
Get whether the handle of the window is owned (aka will be destroyed) by the window object. {Property}.
|
pure virtual |
Activate the window if the application is in the foreground.
|
pure virtual |
Get whether the window is active or not. {Property}.
Send a switch in message and set the window in active state.
| anReason | is an id that can be used to identify why the switch occurred, |
Send a switch out message and set the window in inactive state.
| anReason | is an id that can be used to identify why the switch occurred, |
|
pure virtual |
Get the window's title. {Property}.
|
pure virtual |
Set the window's style. {Property}.
|
pure virtual |
Get the window's style. {Property}.
|
pure virtual |
Set the window shown status. {Property}.
|
pure virtual |
Get the window shown status. {Property}.
|
pure virtual |
Set the window's ZOrder. {Property}.
|
pure virtual |
Get the window's ZOrder. {Property}.
|
pure virtual |
Get the window's size. {Property}.
Set the window's position. {Property}.
|
pure virtual |
Get the window's position. {Property}.
|
pure virtual |
Get the window's rectangle. {Property}.
Set the window's client size. {Property}.
|
pure virtual |
Get the window's client size. {Property}.
|
pure virtual |
Get the window's message handlers. {Property}.
Update the window's message pump and others.
|
pure virtual |
Center the window in the middle of the current screen/parent window.
|
pure virtual |
Get whether window closing has been requested. {Property}.
Set the close requested flags. {Property}.
|
pure virtual |
Get the current OS cursor. {Property}.
|
pure virtual |
Initialize the custom cursor.
| aID | is an id provided by the user that should be used to identify the current custom cursor type. |
| anWidth | is the width of the cursor data |
| anHeight | is the heigh of the cursor data |
| anHotSpotX | |
| anHotSpotY | |
| apData | is the data of the cursor, should be a U32[w*h] array. If NULL InitCustomCursor returns eTrue if the specified custom cursor size is supported, else eFalse. |
|
pure virtual |
Get the custom cursor user id. {Property}.
Set the cursor position. {Property}.
|
pure virtual |
Get the last recorded cursor position. {Property}.
Set the cursor capture. {Property}.
|
pure virtual |
Get the cursor capture state. {Property}.
|
pure virtual |
Get whether the mouse cursor is in the client area of the window. {Property}.
|
pure virtual |
Try to close the window (this is equivalent to pressing the close button on the window).
Set whether the window is a drop target. {Property}.
|
pure virtual |
Get whether the window is a drop target. {Property}.
|
pure virtual |
Explicitly clear the window's content.
|
pure virtual |
Force redraw of the full window.
|
pure virtual |
Get the monitor index the window is on. {Property}.
Set the window to fullsreen, set to eInvalidHandle to return to windowed. {Property}.
|
pure virtual |
Get the monitor on which the window is fullscreend, eInvalidHandle if it's not fullscreen. {Property}.
|
pure virtual |
Get whether the window is currently minimized. {Property}.
|
pure virtual |
Get whether the window is currently maximzed. {Property}.
|
pure virtual |
Set focus on this window.
|
pure virtual |
Get whether the window has focus. {Property}.
Set the rate of the refresh timer in seconds. {Property}.
|
pure virtual |
Get the rate of the refresh timer. {Property}.
|
pure virtual |
Get the parent window handle if any. {Property}.
Check whether the specified window is a parent window of this window.
|
pure virtual |
Attach a graphics API to the window.
|
pure virtual |
Get the graphics API attached to the window. {Property}.
1.8.7