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 } |
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 |
Definition at line 155 of file Window.h.
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 195 of file Window.cpp.
|
protected |
Definition at line 205 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 |
int Window::stencilBits | ( | ) | const |
Definition at line 151 of file Window.cpp.
|
protected |
int Window::width | ( | ) | const |
Definition at line 123 of file Window.cpp.
|
protected |
|
protected |
|
protected |