openharmony 鸿蒙 capi-windowmanager-windowproperties

2025-06-12 浏览 (1)

WindowManager_WindowProperties

Overview

The WindowManager_WindowProperties struct describes the window properties.

Since: 15

Related module: WindowManager

Header file: oh_window_comm.h

Summary

Member Variables

NameDescription
WindowManager_Rect windowRectPosition and size of the window.
WindowManager_Rect drawableRectSize of the drawable area within the window.
WindowManager_WindowType typeWindow type.
bool isFullScreenWhether the window is in full-screen mode. The default value is false. The value true means that the window is in full-screen mode, and false means the opposite.
bool isLayoutFullScreenWhether the window layout is immersive. The default value is false. The value true means that the window layout is immersive, and false means the opposite.
bool focusableWhether the window is focusable. The default value is true. The value true means that the window is focusable, and false means the opposite.
bool touchableWhether the window is touchable. The default value is true. The value true means that the window is touchable, and false means the opposite.
float brightnessScreen brightness of the window. The value is a floating point number in the range [0.0, 1.0] or is set to -1.0, where 1.0 indicates the brightest, and -1.0 is the default brightness.
bool isKeepScreenOnWhether the screen is steady on. The default value is false. The value true means that the screen is steady on, and false means the opposite.
bool isPrivacyModeWhether privacy mode is enabled for the window. The default value is false. The value true means that privacy mode is enabled, and false means the opposite.
bool isTransparentWhether the window is transparent. The default value is false. The value true means that the window is transparent, and false means the opposite.
uint32_t idWindow ID. The default value is 0, and the value is an integer.
uint32_t displayIdID of the screen where the window is located. By default, the ID of the primary screen is returned. The value is an integer.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkUI

harmony 鸿蒙ARKUI_TextPickerCascadeRangeContent

harmony 鸿蒙ARKUI_TextPickerRangeContent

harmony 鸿蒙ArkUI_AnimateCompleteCallback

harmony 鸿蒙ArkUI_AttributeItem

harmony 鸿蒙ArkUI_ColorStop

harmony 鸿蒙ArkUI_ContextCallback

harmony 鸿蒙ArkUI_EventModule

harmony 鸿蒙ArkUI_ExpectedFrameRateRange

harmony 鸿蒙ArkUI_IntOffset

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/cCtKZT