Flutter Engine
The Flutter Engine
|
#include <Window.h>
Classes | |
class | Layer |
Public Types | |
enum | BackendType { kRaster_BackendType , kLast_BackendType = kRaster_BackendType } |
enum | { kBackendTypeCount = kLast_BackendType + 1 } |
Public Member Functions | |
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 |
Static Public Member Functions | |
static Window * | CreateNativeWindow (void *platformData) |
Protected Member Functions | |
Window () | |
virtual void | onInval ()=0 |
void | markInvalProcessed () |
void | visitLayers (const std::function< void(Layer *)> &visitor) |
bool | signalLayers (const std::function< bool(Layer *)> &visitor) |
Protected Attributes | |
SkTDArray< Layer * > | fLayers |
DisplayParams | fRequestedDisplayParams |
bool | fIsActive = true |
std::unique_ptr< skwindow::WindowContext > | fWindowContext |
bool | fIsContentInvalidated = false |
Enumerator | |
---|---|
kRaster_BackendType | |
kLast_BackendType |
Definition at line 63 of file Window.h.
|
virtual |
Definition at line 23 of file Window.cpp.
|
protected |
Definition at line 21 of file Window.cpp.
|
pure virtual |
Implemented in sk_app::Window_android, sk_app::Window_ios, sk_app::Window_mac, sk_app::Window_unix, and sk_app::Window_win.
|
static |
Definition at line 14 of file Window_android.cpp.
void Window::detach | ( | ) |
Definition at line 25 of file Window.cpp.
GrDirectContext * Window::directContext | ( | ) | const |
Definition at line 158 of file Window.cpp.
|
inlinevirtual |
|
inlinevirtual |
skgpu::graphite::Context * Window::graphiteContext | ( | ) | const |
Definition at line 165 of file Window.cpp.
skgpu::graphite::Recorder * Window::graphiteRecorder | ( | ) | const |
Definition at line 176 of file Window.cpp.
int Window::height | ( | ) | const |
Definition at line 130 of file Window.cpp.
void Window::inval | ( | ) |
Definition at line 187 of file Window.cpp.
|
protected |
Definition at line 197 of file Window.cpp.
void Window::onActivate | ( | bool | isActive | ) |
Definition at line 116 of file Window.cpp.
void Window::onBackendCreated | ( | ) |
Definition at line 44 of file Window.cpp.
bool Window::onChar | ( | SkUnichar | c, |
skui::ModifierKey | modifiers | ||
) |
Definition at line 48 of file Window.cpp.
bool Window::onFling | ( | skui::InputState | state | ) |
Definition at line 69 of file Window.cpp.
|
protectedpure virtual |
Implemented in sk_app::Window_android, sk_app::Window_ios, sk_app::Window_mac, sk_app::Window_unix, and sk_app::Window_win.
bool Window::onKey | ( | skui::Key | key, |
skui::InputState | state, | ||
skui::ModifierKey | modifiers | ||
) |
Definition at line 52 of file Window.cpp.
bool Window::onMouse | ( | int | x, |
int | y, | ||
skui::InputState | state, | ||
skui::ModifierKey | modifiers | ||
) |
Definition at line 56 of file Window.cpp.
bool Window::onMouseWheel | ( | float | delta, |
int | x, | ||
int | y, | ||
skui::ModifierKey | modifiers | ||
) |
Definition at line 60 of file Window.cpp.
void Window::onPaint | ( | ) |
Definition at line 81 of file Window.cpp.
bool Window::onPinch | ( | skui::InputState | state, |
float | scale, | ||
float | x, | ||
float | y | ||
) |
Definition at line 73 of file Window.cpp.
Definition at line 108 of file Window.cpp.
bool Window::onTouch | ( | intptr_t | owner, |
skui::InputState | state, | ||
float | x, | ||
float | y | ||
) |
Definition at line 65 of file Window.cpp.
Definition at line 77 of file Window.cpp.
|
inline |
int Window::sampleCount | ( | ) | const |
Definition at line 144 of file Window.cpp.
|
inlinevirtual |
Reimplemented in sk_app::Window_android.
Definition at line 61 of file Window.h.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Reimplemented in sk_app::Window_unix, and sk_app::Window_win.
Definition at line 137 of file Window.cpp.
|
pure virtual |
Implemented in sk_app::Window_android, sk_app::Window_ios, sk_app::Window_mac, sk_app::Window_unix, and sk_app::Window_win.
|
inlinevirtual |
|
pure virtual |
Implemented in sk_app::Window_android, sk_app::Window_ios, sk_app::Window_mac, sk_app::Window_unix, and sk_app::Window_win.
|
protected |
Definition at line 35 of file Window.cpp.
int Window::stencilBits | ( | ) | const |
Definition at line 151 of file Window.cpp.
|
protected |
Definition at line 27 of file Window.cpp.
int Window::width | ( | ) | const |
Definition at line 123 of file Window.cpp.
|
protected |
|
protected |
|
protected |