Flutter Engine
The Flutter Engine
|
#include <ImGuiLayer.h>
Public Types | |
typedef std::function< void(SkCanvas *)> | SkiaWidgetFunc |
Public Member Functions | |
ImGuiLayer () | |
~ImGuiLayer () override | |
void | setScaleFactor (float scaleFactor) |
void | skiaWidget (const ImVec2 &size, SkiaWidgetFunc func) |
void | onAttach (sk_app::Window *window) override |
void | onPrePaint () override |
void | onPaint (SkSurface *) override |
bool | onMouse (int x, int y, skui::InputState state, skui::ModifierKey modifiers) override |
bool | onMouseWheel (float delta, int x, int y, skui::ModifierKey modifiers) override |
bool | onKey (skui::Key key, skui::InputState state, skui::ModifierKey modifiers) override |
bool | onChar (SkUnichar c, skui::ModifierKey modifiers) override |
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 133 of file ImGuiLayer.h.
typedef std::function<void(SkCanvas*)> ImGuiLayer::SkiaWidgetFunc |
Definition at line 140 of file ImGuiLayer.h.
ImGuiLayer::ImGuiLayer | ( | ) |
Definition at line 46 of file ImGuiLayer.cpp.
|
override |
Definition at line 75 of file ImGuiLayer.cpp.
|
overridevirtual |
Reimplemented from sk_app::Window::Layer.
Definition at line 102 of file ImGuiLayer.cpp.
|
overridevirtual |
Reimplemented from sk_app::Window::Layer.
Definition at line 234 of file ImGuiLayer.cpp.
|
overridevirtual |
Reimplemented from sk_app::Window::Layer.
Definition at line 228 of file ImGuiLayer.cpp.
|
overridevirtual |
Reimplemented from sk_app::Window::Layer.
Definition at line 113 of file ImGuiLayer.cpp.
|
overridevirtual |
Reimplemented from sk_app::Window::Layer.
Definition at line 125 of file ImGuiLayer.cpp.
|
overridevirtual |
Reimplemented from sk_app::Window::Layer.
Definition at line 157 of file ImGuiLayer.cpp.
|
overridevirtual |
Reimplemented from sk_app::Window::Layer.
Definition at line 137 of file ImGuiLayer.cpp.
void ImGuiLayer::setScaleFactor | ( | float | scaleFactor | ) |
Definition at line 79 of file ImGuiLayer.cpp.
void ImGuiLayer::skiaWidget | ( | const ImVec2 & | size, |
SkiaWidgetFunc | func | ||
) |
Definition at line 131 of file ImGuiLayer.cpp.