Home
last modified time | relevance | path

Searched refs:ApiOrientation (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_napi/
H A Djs_window_utils.h177 enum class ApiOrientation : uint32_t { enum
200 const std::map<ApiOrientation, Orientation> JS_TO_NATIVE_ORIENTATION_MAP {
201 …{ApiOrientation::UNSPECIFIED, Orientation::UNSPECIFIED …
202 …{ApiOrientation::PORTRAIT, Orientation::VERTICAL …
203 …{ApiOrientation::LANDSCAPE, Orientation::HORIZONTAL …
204 …{ApiOrientation::PORTRAIT_INVERTED, Orientation::REVERSE_VERTICAL …
205 …{ApiOrientation::LANDSCAPE_INVERTED, Orientation::REVERSE_HORIZONTAL …
206 …{ApiOrientation::AUTO_ROTATION, Orientation::SENSOR …
207 …{ApiOrientation::AUTO_ROTATION_PORTRAIT, Orientation::SENSOR_VERTICAL …
208 …{ApiOrientation::AUTO_ROTATION_LANDSCAPE, Orientation::SENSOR_HORIZONTAL …
[all …]
H A Djs_window_utils.cpp167 static_cast<int32_t>(ApiOrientation::UNSPECIFIED))); in OrientationInit()
169 static_cast<int32_t>(ApiOrientation::PORTRAIT))); in OrientationInit()
171 static_cast<int32_t>(ApiOrientation::LANDSCAPE))); in OrientationInit()
173 static_cast<int32_t>(ApiOrientation::PORTRAIT_INVERTED))); in OrientationInit()
175 static_cast<int32_t>(ApiOrientation::LANDSCAPE_INVERTED))); in OrientationInit()
177 static_cast<int32_t>(ApiOrientation::AUTO_ROTATION))); in OrientationInit()
179 static_cast<int32_t>(ApiOrientation::AUTO_ROTATION_PORTRAIT))); in OrientationInit()
181 static_cast<int32_t>(ApiOrientation::AUTO_ROTATION_LANDSCAPE))); in OrientationInit()
189 static_cast<int32_t>(ApiOrientation::LOCKED))); in OrientationInit()
193 static_cast<int32_t>(ApiOrientation::USER_ROTATION_PORTRAIT))); in OrientationInit()
[all …]
H A Djs_window.cpp3223 auto apiOrientation = static_cast<ApiOrientation>(resultValue); in OnSetPreferredOrientation()
3224 if (apiOrientation < ApiOrientation::BEGIN || in OnSetPreferredOrientation()
3225 apiOrientation > ApiOrientation::END) { in OnSetPreferredOrientation()
3277 ApiOrientation apiOrientation = ApiOrientation::UNSPECIFIED; in OnGetPreferredOrientation()