A wrapper for ANativeWindow https://developer.android.com/ndk/reference/group/a-native-window.
More...
#include <native_window.h>
A wrapper for ANativeWindow https://developer.android.com/ndk/reference/group/a-native-window.
This wrapper is only available on Android.
Definition at line 20 of file native_window.h.
◆ NativeWindow() [1/2]
impeller::android::NativeWindow::NativeWindow |
( |
ANativeWindow * |
window | ) |
|
|
explicit |
◆ ~NativeWindow()
impeller::android::NativeWindow::~NativeWindow |
( |
| ) |
|
|
default |
◆ NativeWindow() [2/2]
impeller::android::NativeWindow::NativeWindow |
( |
const NativeWindow & |
| ) |
|
|
delete |
◆ GetHandle()
ANativeWindow * impeller::android::NativeWindow::GetHandle |
( |
| ) |
const |
◆ GetSize()
ISize impeller::android::NativeWindow::GetSize |
( |
| ) |
const |
- Returns
- The current size of the native window.
Definition at line 21 of file native_window.cc.
25 const int32_t width = ANativeWindow_getWidth(window_.get());
26 const int32_t height = ANativeWindow_getHeight(window_.get());
27 return ISize::MakeWH(std::max(width, 0), std::max(height, 0));
static constexpr TSize MakeWH(Type width, Type height)
References IsValid(), and impeller::TSize< T >::MakeWH().
◆ IsValid()
bool impeller::android::NativeWindow::IsValid |
( |
| ) |
const |
◆ operator=()
The documentation for this class was generated from the following files: