SOUI Window Container Interface. More...
#include <SWndContainer-i.h>
Public Member Functions | |
BOOL | RegisterTimelineHandler (ITimelineHandler *pHandler) PURE |
Registers an animation frame handler. | |
BOOL | UnregisterTimelineHandler (ITimelineHandler *pHandler) PURE |
Unregisters an animation frame handler. | |
BOOL | RegisterDragDrop (SWND swnd, IDropTarget *pDropTarget) PURE |
Registers an IDropTarget with a Swnd. | |
BOOL | UnregisterDragDrop (SWND swnd) PURE |
Unregisters an IDropTarget from a Swnd. | |
BOOL | OnFireEvent (IEvtArgs *evt) PURE |
Fires an event. | |
IMessageLoop * | GetMsgLoop () PURE |
Retrieves the current message loop. | |
IScriptModule * | GetScriptModule () PURE |
Retrieves the script module. | |
HWND | GetHostHwnd () PURE |
Retrieves the handle to the host window. | |
BOOL | IsTranslucent () SCONST PURE |
Checks if the host window is translucent. | |
BOOL | IsSendWheel2Hover () SCONST PURE |
Checks if mouseWheel messages are sent to the hover window. | |
int | GetScale () SCONST PURE |
Retrieves the current DPI scale factor. | |
LPCWSTR | GetTranslatorContext () SCONST PURE |
Retrieves the translation context. | |
void | GetContainerRect (RECT *ret) SCONST PURE |
Retrieves the container's display rectangle. | |
void | UpdateRegion (IRegionS *rgn) PURE |
Updates the specified region of the memory bitmap. | |
void | OnRedraw (LPCRECT rc, BOOL bClip) PURE |
Requests a redraw of the specified area. | |
SWND | OnGetSwndCapture () SCONST PURE |
Retrieves the Swnd object that has captured the mouse. | |
SWND | OnSetSwndCapture (SWND swnd) PURE |
Sets the Swnd object to capture the mouse. | |
BOOL | OnReleaseSwndCapture () PURE |
Releases the mouse capture from the Swnd object. | |
SWND | GetHover () SCONST PURE |
Retrieves the Swnd object that is hovered over. | |
SWND | GetFocus () SCONST PURE |
Retrieves the Swnd object that has focus. | |
void | OnSetSwndFocus (SWND swnd) PURE |
Sets the focus to the specified Swnd object. | |
BOOL | UpdateWindow (BOOL bForce=TRUE) PURE |
Requests an immediate update of the window. | |
void | UpdateTooltip () PURE |
Requests an update of the tooltip. | |
void | SetToolTip (LPCRECT rc, UINT tipAlign, LPCTSTR pszTip) PURE |
Displays a tooltip at the specified position. | |
void | FrameToHost (RECT *rc) SCONST PURE |
Converts the rectangle coordinates of the current frame to the final host coordinates. | |
IAcceleratorMgr * | GetAcceleratorMgr () PURE |
Retrieves the accelerator manager. | |
BOOL | RegisterTrackMouseEvent (SWND swnd) PURE |
Registers a Swnd as a TrackMouseEvent window. | |
BOOL | UnregisterTrackMouseEvent (SWND swnd) PURE |
Unregisters a Swnd as a TrackMouseEvent window. | |
void | MarkWndTreeZorderDirty () PURE |
Marks the window tree's z-order as dirty. | |
void | BuildWndTreeZorder () PURE |
Rebuilds the window tree's z-order. | |
void | EnableIME (BOOL bEnable) PURE |
Enables or disables the input method editor (IME). | |
void | OnUpdateCursor () PURE |
Updates the cursor. | |
BOOL | RegisterVideoCanvas (SWND swnd) PURE |
Registers a VideoCanvas window. | |
BOOL | UnregisterVideoCanvas (SWND swnd) PURE |
Unregisters a VideoCanvas window. | |
void | EnableHostPrivateUiDef (BOOL bEnable) PURE |
Enables or disables the host's private UI definitions. | |
BOOL | PostTask (IRunnable *runable, BOOL bAsync=TRUE) PURE |
Posts a task to the message queue. | |
int | RemoveTasksForObject (void *pObj) PURE |
Removes all tasks associated with an object. | |
SOUI Window Container Interface.
This interface defines the methods for managing a window container in SOUI.
Definition at line 51 of file SWndContainer-i.h.
void ISwndContainer::BuildWndTreeZorder | ( | ) |
Rebuilds the window tree's z-order.
void ISwndContainer::EnableHostPrivateUiDef | ( | BOOL | bEnable | ) |
Enables or disables the host's private UI definitions.
bEnable | TRUE to enable, FALSE to disable. |
void ISwndContainer::EnableIME | ( | BOOL | bEnable | ) |
Enables or disables the input method editor (IME).
bEnable | TRUE to enable IME, FALSE to disable. |
void ISwndContainer::FrameToHost | ( | RECT * | rc | ) |
Converts the rectangle coordinates of the current frame to the final host coordinates.
rc | Pointer to the RECT structure containing the rectangle to convert. |
IAcceleratorMgr * ISwndContainer::GetAcceleratorMgr | ( | ) |
Retrieves the accelerator manager.
void ISwndContainer::GetContainerRect | ( | RECT * | ret | ) |
Retrieves the container's display rectangle.
ret | Pointer to the RECT structure to receive the container's display rectangle. |
SWND ISwndContainer::GetFocus | ( | ) |
Retrieves the Swnd object that has focus.
HWND ISwndContainer::GetHostHwnd | ( | ) |
Retrieves the handle to the host window.
SWND ISwndContainer::GetHover | ( | ) |
Retrieves the Swnd object that is hovered over.
IMessageLoop * ISwndContainer::GetMsgLoop | ( | ) |
Retrieves the current message loop.
int ISwndContainer::GetScale | ( | ) |
Retrieves the current DPI scale factor.
IScriptModule * ISwndContainer::GetScriptModule | ( | ) |
Retrieves the script module.
LPCWSTR ISwndContainer::GetTranslatorContext | ( | ) |
Retrieves the translation context.
BOOL ISwndContainer::IsSendWheel2Hover | ( | ) |
Checks if mouseWheel messages are sent to the hover window.
BOOL ISwndContainer::IsTranslucent | ( | ) |
Checks if the host window is translucent.
void ISwndContainer::MarkWndTreeZorderDirty | ( | ) |
Marks the window tree's z-order as dirty.
BOOL ISwndContainer::OnFireEvent | ( | IEvtArgs * | evt | ) |
Fires an event.
evt | Pointer to the IEvtArgs event. |
SWND ISwndContainer::OnGetSwndCapture | ( | ) |
Retrieves the Swnd object that has captured the mouse.
void ISwndContainer::OnRedraw | ( | LPCRECT | rc, |
BOOL | bClip ) |
Requests a redraw of the specified area.
rc | Pointer to the LPCRECT structure defining the area to redraw. |
bClip | TRUE if the area should be clipped. |
BOOL ISwndContainer::OnReleaseSwndCapture | ( | ) |
Releases the mouse capture from the Swnd object.
SWND ISwndContainer::OnSetSwndCapture | ( | SWND | swnd | ) |
Sets the Swnd object to capture the mouse.
swnd | Handle to the Swnd object to capture the mouse. |
void ISwndContainer::OnSetSwndFocus | ( | SWND | swnd | ) |
Sets the focus to the specified Swnd object.
swnd | Handle to the Swnd object to set focus to. |
void ISwndContainer::OnUpdateCursor | ( | ) |
Updates the cursor.
BOOL ISwndContainer::PostTask | ( | IRunnable * | runable, |
BOOL | bAsync = TRUE ) |
Posts a task to the message queue.
runable | Pointer to the IRunnable task object. |
bAsync | TRUE to execute asynchronously, FALSE to execute synchronously. |
BOOL ISwndContainer::RegisterDragDrop | ( | SWND | swnd, |
IDropTarget * | pDropTarget ) |
Registers an IDropTarget with a Swnd.
swnd | Handle to the target window. |
pDropTarget | Pointer to the IDropTarget interface. |
BOOL ISwndContainer::RegisterTimelineHandler | ( | ITimelineHandler * | pHandler | ) |
Registers an animation frame handler.
pHandler | Pointer to the ITimelineHandler interface. |
BOOL ISwndContainer::RegisterTrackMouseEvent | ( | SWND | swnd | ) |
Registers a Swnd as a TrackMouseEvent window.
swnd | Handle to the target window. |
BOOL ISwndContainer::RegisterVideoCanvas | ( | SWND | swnd | ) |
Registers a VideoCanvas window.
swnd | Handle to the VideoCanvas window. |
int ISwndContainer::RemoveTasksForObject | ( | void * | pObj | ) |
Removes all tasks associated with an object.
pObj | Pointer to the object. |
void ISwndContainer::SetToolTip | ( | LPCRECT | rc, |
UINT | tipAlign, | ||
LPCTSTR | pszTip ) |
Displays a tooltip at the specified position.
rc | Pointer to the LPCRECT structure defining the position of the tooltip relative to the container. |
tipAlign | Alignment flags for the tooltip. |
pszTip | Content of the tooltip, set to NULL to exit a fixed tooltip. |
BOOL ISwndContainer::UnregisterDragDrop | ( | SWND | swnd | ) |
Unregisters an IDropTarget from a Swnd.
swnd | Handle to the target window. |
BOOL ISwndContainer::UnregisterTimelineHandler | ( | ITimelineHandler * | pHandler | ) |
Unregisters an animation frame handler.
pHandler | Pointer to the ITimelineHandler interface. |
BOOL ISwndContainer::UnregisterTrackMouseEvent | ( | SWND | swnd | ) |
Unregisters a Swnd as a TrackMouseEvent window.
swnd | Handle to the target window. |
BOOL ISwndContainer::UnregisterVideoCanvas | ( | SWND | swnd | ) |
Unregisters a VideoCanvas window.
swnd | Handle to the VideoCanvas window. |
void ISwndContainer::UpdateRegion | ( | IRegionS * | rgn | ) |
Updates the specified region of the memory bitmap.
rgn | Pointer to the IRegionS region to update. |
void ISwndContainer::UpdateTooltip | ( | ) |
Requests an update of the tooltip.
BOOL ISwndContainer::UpdateWindow | ( | BOOL | bForce = TRUE | ) |
Requests an immediate update of the window.
bForce | TRUE to force a refresh, FALSE to refresh only if there are invalid regions. |