#include <Window_android.h>
|
| Window_android () |
|
| ~Window_android () override |
|
bool | init (SkiaAndroidApp *skiaAndroidApp) |
|
void | initDisplay (ANativeWindow *window) |
|
void | onDisplayDestroyed () |
|
void | setTitle (const char *) override |
|
void | show () override |
|
bool | attach (BackendType) override |
|
void | onInval () override |
|
void | setUIState (const char *state) override |
|
void | paintIfNeeded () |
|
bool | scaleContentToFit () const override |
|
virtual | ~Window () |
|
virtual void | setTitle (const char *)=0 |
|
virtual void | show ()=0 |
|
virtual void | setUIState (const char *) |
|
virtual const char * | getClipboardText () |
|
virtual void | setClipboardText (const char *) |
|
void | inval () |
|
virtual bool | scaleContentToFit () const |
|
virtual bool | attach (BackendType)=0 |
|
void | detach () |
|
void | pushLayer (Layer *layer) |
|
void | onBackendCreated () |
|
bool | onChar (SkUnichar c, skui::ModifierKey modifiers) |
|
bool | onKey (skui::Key key, skui::InputState state, skui::ModifierKey modifiers) |
|
bool | onMouse (int x, int y, skui::InputState state, skui::ModifierKey modifiers) |
|
bool | onMouseWheel (float delta, int x, int y, skui::ModifierKey modifiers) |
|
bool | onTouch (intptr_t owner, skui::InputState state, float x, float y) |
|
bool | onFling (skui::InputState state) |
|
bool | onPinch (skui::InputState state, float scale, float x, float y) |
|
void | onUIStateChanged (const SkString &stateName, const SkString &stateValue) |
|
void | onPaint () |
|
void | onResize (int width, int height) |
|
void | onActivate (bool isActive) |
|
int | width () const |
|
int | height () const |
|
virtual float | scaleFactor () const |
|
virtual const DisplayParams & | getRequestedDisplayParams () |
|
virtual void | setRequestedDisplayParams (const DisplayParams &, bool allowReattach=true) |
|
int | sampleCount () const |
|
int | stencilBits () const |
|
GrDirectContext * | directContext () const |
|
skgpu::graphite::Context * | graphiteContext () const |
|
skgpu::graphite::Recorder * | graphiteRecorder () const |
|
Definition at line 16 of file Window_android.h.
◆ Window_android()
sk_app::Window_android::Window_android |
( |
| ) |
|
|
inline |
◆ ~Window_android()
sk_app::Window_android::~Window_android |
( |
| ) |
|
|
inlineoverride |
◆ attach()
bool sk_app::Window_android::attach |
( |
BackendType |
attachType | ) |
|
|
overridevirtual |
◆ init()
Definition at line 23 of file Window_android.cpp.
23 {
25 fSkiaAndroidApp = skiaAndroidApp;
26 fSkiaAndroidApp->
fWindow =
this;
27 return true;
28}
◆ initDisplay()
void sk_app::Window_android::initDisplay |
( |
ANativeWindow * |
window | ) |
|
Definition at line 47 of file Window_android.cpp.
47 {
49 switch (fBackendType) {
50#ifdef SK_GL
51 case kNativeGL_BackendType:
52 default:
54 break;
55#else
56 default:
57#endif
60 break;
61#ifdef SK_VULKAN
62 case kVulkan_BackendType:
64 break;
65#if defined(SK_GRAPHITE)
66 case kGraphiteVulkan_BackendType:
69 break;
70#endif
71#endif
72 }
74}
DisplayParams fRequestedDisplayParams
std::unique_ptr< skwindow::WindowContext > fWindowContext
std::unique_ptr< WindowContext > MakeGraphiteVulkanForAndroid(ANativeWindow *window, const DisplayParams ¶ms)
std::unique_ptr< WindowContext > MakeGLForAndroid(ANativeWindow *window, const DisplayParams ¶ms)
std::unique_ptr< WindowContext > MakeRasterForAndroid(ANativeWindow *window, const DisplayParams ¶ms)
std::unique_ptr< WindowContext > MakeVulkanForAndroid(ANativeWindow *window, const DisplayParams ¶ms)
◆ onDisplayDestroyed()
void sk_app::Window_android::onDisplayDestroyed |
( |
| ) |
|
◆ onInval()
void sk_app::Window_android::onInval |
( |
| ) |
|
|
overridevirtual |
◆ paintIfNeeded()
void sk_app::Window_android::paintIfNeeded |
( |
| ) |
|
Definition at line 84 of file Window_android.cpp.
84 {
87 } else {
89 }
90}
void markInvalProcessed()
◆ scaleContentToFit()
bool sk_app::Window_android::scaleContentToFit |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ setTitle()
void sk_app::Window_android::setTitle |
( |
const char * |
title | ) |
|
|
overridevirtual |
◆ setUIState()
void sk_app::Window_android::setUIState |
( |
const char * |
state | ) |
|
|
overridevirtual |
◆ show()
void sk_app::Window_android::show |
( |
| ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following files: