Flutter Engine
The Flutter Engine
|
#include <StatsLayer.h>
Public Types | |
typedef int | Timer |
Public Member Functions | |
StatsLayer () | |
void | resetMeasurements () |
Timer | addTimer (const char *label, SkColor color, SkColor labelColor=0) |
void | beginTiming (Timer) |
void | endTiming (Timer) |
void | onPrePaint () override |
void | onPaint (SkSurface *) override |
void | setDisplayScale (float scale) |
Public Member Functions inherited from sk_app::Window::Layer | |
Layer () | |
virtual | ~Layer ()=default |
bool | getActive () |
void | setActive (bool active) |
virtual void | onBackendCreated () |
virtual void | onAttach (Window *window) |
virtual bool | onChar (SkUnichar c, skui::ModifierKey) |
virtual bool | onKey (skui::Key, skui::InputState, skui::ModifierKey) |
virtual bool | onMouse (int x, int y, skui::InputState, skui::ModifierKey) |
virtual bool | onMouseWheel (float delta, int x, int y, skui::ModifierKey) |
virtual bool | onTouch (intptr_t owner, skui::InputState, float x, float y) |
virtual bool | onFling (skui::InputState state) |
virtual bool | onPinch (skui::InputState state, float scale, float x, float y) |
virtual void | onUIStateChanged (const SkString &stateName, const SkString &stateValue) |
virtual void | onPrePaint () |
virtual void | onPaint (SkSurface *) |
virtual void | onResize (int width, int height) |
Definition at line 18 of file StatsLayer.h.
typedef int StatsLayer::Timer |
Definition at line 23 of file StatsLayer.h.
StatsLayer::StatsLayer | ( | ) |
Definition at line 29 of file StatsLayer.cpp.
StatsLayer::Timer StatsLayer::addTimer | ( | const char * | label, |
SkColor | color, | ||
SkColor | labelColor = 0 |
||
) |
Definition at line 49 of file StatsLayer.cpp.
void StatsLayer::beginTiming | ( | Timer | timer | ) |
Definition at line 59 of file StatsLayer.cpp.
void StatsLayer::endTiming | ( | Timer | timer | ) |
Definition at line 65 of file StatsLayer.cpp.
|
overridevirtual |
Reimplemented from sk_app::Window::Layer.
Definition at line 82 of file StatsLayer.cpp.
|
overridevirtual |
Reimplemented from sk_app::Window::Layer.
Definition at line 71 of file StatsLayer.cpp.
void StatsLayer::resetMeasurements | ( | ) |
Definition at line 38 of file StatsLayer.cpp.
|
inline |
Definition at line 32 of file StatsLayer.h.