# Window ## **Overview** 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** ## Files
Declares the Window class that provides a drawing canvas for the RootView, which represents the root node of a view tree. |
Provides a drawing canvas for the RootView, which represents the root node of a view tree. |
OHOS::WindowPixelFormat { OHOS::WINDOW_PIXEL_FORMAT_RGB565 = 101, OHOS::WINDOW_PIXEL_FORMAT_ARGB1555, OHOS::WINDOW_PIXEL_FORMAT_RGB888, OHOS::WINDOW_PIXEL_FORMAT_ARGB8888 } |
OHOS::Window::CreateWindow (const WindowConfig &config) |
static Window * Creates a Window instance. |
OHOS::Window::DestoryWindow (Window *window) |
|
OHOS::Window::BindRootView (RootView *rootView)=0 |
Binds the RootView to this window. |
Unbinds the RootView from this window. |
|
virtual RootView * Obtains the RootView bound to this window. |
|
virtual Rect Obtains the rectangle information (position, width, and height) of this window. |
|
OHOS::Window::Show ()=0 |
|
OHOS::Window::Hide ()=0 |
|
OHOS::Window::MoveTo (int16_t x, int16_t y)=0 |
|
OHOS::Window::Resize (int16_t width, int16_t height)=0 |
|
WINDOW_PIXEL_FORMAT_RGB565 | |
WINDOW_PIXEL_FORMAT_ARGB1555 | |
WINDOW_PIXEL_FORMAT_RGB888 | |
WINDOW_PIXEL_FORMAT_ARGB8888 |
rootView | Indicates the RootView to bind. |
config | Indicates the window configuration. For details, see WindowConfig. |
window | Indicates the Window instance to destroy. |
x | Indicates the x-coordinate of the target position. |
y | Indicates the y-coordinate of the target position. |
width | Indicates the new window width. |
height | Indicates the new window height. |