Flutter Engine
The Flutter Engine
Public Member Functions | Friends | List of all members
sk_app::Window::Layer Class Reference

#include <Window.h>

Inheritance diagram for sk_app::Window::Layer:
ImGuiLayer StatsLayer Viewer

Public Member Functions

 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)
 

Friends

class Window
 

Detailed Description

Definition at line 103 of file Window.h.

Constructor & Destructor Documentation

◆ Layer()

sk_app::Window::Layer::Layer ( )
inline

Definition at line 105 of file Window.h.

105: fActive(true) {}

◆ ~Layer()

virtual sk_app::Window::Layer::~Layer ( )
virtualdefault

Member Function Documentation

◆ getActive()

bool sk_app::Window::Layer::getActive ( )
inline

Definition at line 108 of file Window.h.

108{ return fActive; }

◆ onAttach()

virtual void sk_app::Window::Layer::onAttach ( Window window)
inlinevirtual

Reimplemented in ImGuiLayer.

Definition at line 113 of file Window.h.

113{}

◆ onBackendCreated()

virtual void sk_app::Window::Layer::onBackendCreated ( )
inlinevirtual

Reimplemented in Viewer.

Definition at line 112 of file Window.h.

112{}

◆ onChar()

virtual bool sk_app::Window::Layer::onChar ( SkUnichar  c,
skui::ModifierKey   
)
inlinevirtual

Reimplemented in ImGuiLayer, and Viewer.

Definition at line 114 of file Window.h.

114{ return false; }

◆ onFling()

virtual bool sk_app::Window::Layer::onFling ( skui::InputState  state)
inlinevirtual

Reimplemented in Viewer.

Definition at line 120 of file Window.h.

120{ return false; }

◆ onKey()

virtual bool sk_app::Window::Layer::onKey ( skui::Key  ,
skui::InputState  ,
skui::ModifierKey   
)
inlinevirtual

Reimplemented in ImGuiLayer, and Viewer.

Definition at line 115 of file Window.h.

115{ return false; }

◆ onMouse()

virtual bool sk_app::Window::Layer::onMouse ( int  x,
int  y,
skui::InputState  ,
skui::ModifierKey   
)
inlinevirtual

Reimplemented in ImGuiLayer, and Viewer.

Definition at line 116 of file Window.h.

116{ return false; }

◆ onMouseWheel()

virtual bool sk_app::Window::Layer::onMouseWheel ( float  delta,
int  x,
int  y,
skui::ModifierKey   
)
inlinevirtual

Reimplemented in ImGuiLayer, and Viewer.

Definition at line 117 of file Window.h.

117{ return false; }

◆ onPaint()

virtual void sk_app::Window::Layer::onPaint ( SkSurface )
inlinevirtual

Reimplemented in ImGuiLayer, StatsLayer, and Viewer.

Definition at line 124 of file Window.h.

124{}

◆ onPinch()

virtual bool sk_app::Window::Layer::onPinch ( skui::InputState  state,
float  scale,
float  x,
float  y 
)
inlinevirtual

Reimplemented in Viewer.

Definition at line 121 of file Window.h.

121{ return false; }

◆ onPrePaint()

virtual void sk_app::Window::Layer::onPrePaint ( )
inlinevirtual

Reimplemented in ImGuiLayer, and StatsLayer.

Definition at line 123 of file Window.h.

123{}

◆ onResize()

virtual void sk_app::Window::Layer::onResize ( int  width,
int  height 
)
inlinevirtual

Reimplemented in Viewer.

Definition at line 125 of file Window.h.

125{}

◆ onTouch()

virtual bool sk_app::Window::Layer::onTouch ( intptr_t  owner,
skui::InputState  ,
float  x,
float  y 
)
inlinevirtual

Reimplemented in Viewer.

Definition at line 118 of file Window.h.

118{ return false; }

◆ onUIStateChanged()

virtual void sk_app::Window::Layer::onUIStateChanged ( const SkString stateName,
const SkString stateValue 
)
inlinevirtual

Reimplemented in Viewer.

Definition at line 122 of file Window.h.

122{}

◆ setActive()

void sk_app::Window::Layer::setActive ( bool  active)
inline

Definition at line 109 of file Window.h.

109{ fActive = active; }

Friends And Related Function Documentation

◆ Window

friend class Window
friend

Definition at line 128 of file Window.h.


The documentation for this class was generated from the following file: