Flutter Engine
The Flutter Engine
|
#include <Window_mac.h>
Public Member Functions | |
Window_mac () | |
~Window_mac () override | |
bool | initWindow () |
void | setTitle (const char *) override |
void | show () override |
bool | attach (BackendType) override |
void | onInval () override |
float | scaleFactor () const override |
NSWindow * | window () |
void | closeWindow () |
Public Member Functions inherited from sk_app::Window | |
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 void | PaintWindows () |
static const NSInteger & | GetKey (const Window_mac &w) |
static uint32_t | Hash (const NSInteger &windowNumber) |
Static Public Member Functions inherited from sk_app::Window | |
static Window * | CreateNativeWindow (void *platformData) |
Additional Inherited Members | |
Public Types inherited from sk_app::Window | |
enum | BackendType { kRaster_BackendType , kLast_BackendType = kRaster_BackendType } |
enum | { kBackendTypeCount = kLast_BackendType + 1 } |
Protected Member Functions inherited from sk_app::Window | |
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 inherited from sk_app::Window | |
SkTDArray< Layer * > | fLayers |
DisplayParams | fRequestedDisplayParams |
bool | fIsActive = true |
std::unique_ptr< skwindow::WindowContext > | fWindowContext |
bool | fIsContentInvalidated = false |
Definition at line 18 of file Window_mac.h.
|
inline |
Definition at line 20 of file Window_mac.h.
|
inlineoverride |
Definition at line 23 of file Window_mac.h.
|
overridevirtual |
Implements sk_app::Window.
Definition at line 119 of file Window_mac.mm.
void sk_app::Window_mac::closeWindow | ( | ) |
Definition at line 95 of file Window_mac.mm.
|
inlinestatic |
Definition at line 40 of file Window_mac.h.
|
inlinestatic |
Definition at line 44 of file Window_mac.h.
bool sk_app::Window_mac::initWindow | ( | ) |
Definition at line 45 of file Window_mac.mm.
|
inlineoverridevirtual |
|
static |
Definition at line 177 of file Window_mac.mm.
|
overridevirtual |
Reimplemented from sk_app::Window.
Definition at line 173 of file Window_mac.mm.
|
overridevirtual |
Implements sk_app::Window.
Definition at line 106 of file Window_mac.mm.
|
overridevirtual |
Implements sk_app::Window.
Definition at line 112 of file Window_mac.mm.
|
inline |
Definition at line 48 of file Window_mac.h.