Lines Matching defs:option

98 WindowImpl::WindowImpl(const sptr<WindowOption>& option)
101 InitWindowProperty(option);
103 windowTag_ = option->GetWindowTag();
104 isMainHandlerAvailable_ = option->GetMainHandlerAvailable();
107 auto& sysBarPropMap = option->GetSystemBarProperty();
111 name_ = option->GetWindowName();
113 surfaceNode_ = CreateSurfaceNode(property_->GetWindowName(), option->GetWindowType());
126 void WindowImpl::InitWindowProperty(const sptr<WindowOption>& option)
128 if (option == nullptr) {
129 TLOGE(WmsLogTag::WMS_MAIN, "Init window property failed, option is nullptr.");
132 property_->SetWindowName(option->GetWindowName());
133 property_->SetRequestRect(option->GetWindowRect());
134 property_->SetWindowType(option->GetWindowType());
135 if (WindowHelper::IsAppFloatingWindow(option->GetWindowType())) {
138 property_->SetWindowMode(option->GetWindowMode());
140 property_->SetFullScreen(option->GetWindowMode() == WindowMode::WINDOW_MODE_FULLSCREEN);
141 property_->SetFocusable(option->GetFocusable());
142 property_->SetTouchable(option->GetTouchable());
143 property_->SetDisplayId(option->GetDisplayId());
144 property_->SetCallingWindow(option->GetCallingWindow());
145 property_->SetWindowFlags(option->GetWindowFlags());
146 property_->SetHitOffset(option->GetHitOffset());
147 property_->SetRequestedOrientation(option->GetRequestedOrientation());
148 property_->SetTurnScreenOn(option->IsTurnScreenOn());
149 property_->SetKeepScreenOn(option->IsKeepScreenOn());
150 property_->SetBrightness(option->GetBrightness());
1607 AdjustWindowAnimationFlag(false); // false means update rs tree with default option