OHOS::Window
Overview
Related Modules:
Description:
Provides a drawing canvas for the RootView, which represents the root node of a view tree.
Each window is bound to a RootView. For details, see RootView. This class also provides window management capabilities, including creating, destroying, showing, hiding, moving, resizing a window, raising a window to the top, and lowering a window to the bottom.
Since:
1.0
Version:
1.0
Summary
Public Member Functions
BindRootView (RootView rootView)=0 |
Binds the RootView to this window. |
UnbindRootView ()=0 |
Unbinds the RootView from this window. |
GetRootView ()=0 |
virtual RootView Obtains the RootView bound to this window. |
GetRect ()=0 |
virtual Rect Obtains the rectangle information (position, width, and height) of this window. |
Show ()=0 |
|
Hide ()=0 |
|
MoveTo (int16_t x, int16_t y)=0 |
|
Resize (int16_t width, int16_t height)=0 |
|
RaiseToTop ()=0 |
|
LowerToBottom ()=0 |
|
GetWindowId ()=0 |
Static Public Member Functions
CreateWindow (const WindowConfig &config) |
static Window Creates a Window instance. |
DestoryWindow (Window window) |