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 |
Definition at line 9 of file native_window.cc.
12 }
13}
const ProcTable & GetProcTable()
◆ ~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.
21 {
23 return {};
24 }
25 const int32_t
width = ANativeWindow_getWidth(window_.
get());
26 const int32_t
height = ANativeWindow_getHeight(window_.
get());
28}
static float max(float r, float g, float b)
static constexpr TSize MakeWH(Type width, Type height)
◆ IsValid()
bool impeller::android::NativeWindow::IsValid |
( |
| ) |
const |
◆ operator=()
The documentation for this class was generated from the following files: