GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
Widget Class Reference

#include <ui.hh>

Inheritance diagram for Widget:
Collaboration diagram for Widget:

Public Member Functions

 Widget ()
virtual void make_unique (std::string path)
virtual void SetPos (std::string path, int pos_x2, int pos_y2)
virtual void SetSize (std::string path, int size_x2, int size_y2)
virtual int preferred_width (std::string path)
virtual int preferred_height (std::string path)
virtual std::string Page (std::string path)
void AddScript (std::string path, std::string s)
virtual std::string Script (std::string path)
virtual std::string Css (std::string path)
void SetCssProp (std::string path, std::string s)
virtual std::string CssProp (std::string path)
 Widget (Render *r)
Public Member Functions inherited from EventSurface
virtual void HandleKey (int key)=0
virtual void HandlePointer (int button)=0
virtual void HandlePointerMove (Point2d p)=0
virtual void HandleKeyDown (int key)
virtual void HandleKeyUp (int key)
virtual void HandleFrame (float time)
Public Member Functions inherited from FrameAnim
 FrameAnim (Render *render)
virtual ~FrameAnim ()
virtual float Time () const
virtual void Init ()
virtual void Cleanup ()
virtual void PreFrame (float time)
virtual bool Frame (float time)=0
virtual void PostFrame ()
virtual float XRot () const
virtual float YRot () const
virtual float ZRot () const
virtual float RotSpeed () const
Render * GetRender () const
void RenderOpenGl (const FaceCollection &col)
void RenderOpenGlLines (const LineCollection &col)
void RenderOpenGlPoly (const PointCollection &col)

Protected Attributes

std::map< std::string, std::string > script
std::map< std::string, std::string > cssprop
std::string id
std::map< std::string, int > pos_x
std::map< std::string, int > pos_y
std::map< std::string, int > size_x
std::map< std::string, int > size_y
std::map< std::string, std::string > ids
std::string last_path

Constructor & Destructor Documentation

◆ Widget() [1/2]

Widget::Widget ( )
inline
Here is the caller graph for this function:

◆ Widget() [2/2]

Widget::Widget ( Render * r)
inline

Member Function Documentation

◆ AddScript()

void Widget::AddScript ( std::string path,
std::string s )
inline

◆ Css()

virtual std::string Widget::Css ( std::string path)
inlinevirtual

Reimplemented in GameApiAnimation, ImageWidget, LabelWidget, LinkWidget, and WidgetForward.

Here is the caller graph for this function:

◆ CssProp()

virtual std::string Widget::CssProp ( std::string path)
inlinevirtual

Reimplemented in EditorWidget, GameApiAnimation, LabelWidget, and PasswordEditorWidget.

Here is the caller graph for this function:

◆ make_unique()

virtual void Widget::make_unique ( std::string path)
inlinevirtual

Reimplemented in WidgetForward.

Here is the caller graph for this function:

◆ Page()

virtual std::string Widget::Page ( std::string path)
inlinevirtual

Reimplemented in EditorWidget, FormWidget, GameApiAnimation, ImageWidget, LabelWidget, LinkWidget, PasswordEditorWidget, ScriptButton, SubmitWidget, and WidgetForward.

Here is the caller graph for this function:

◆ preferred_height()

virtual int Widget::preferred_height ( std::string path)
inlinevirtual

Reimplemented in EditorWidget, GameApiAnimation, ImageWidget, LabelWidget, PasswordEditorWidget, SubmitWidget, and WidgetForward.

Here is the caller graph for this function:

◆ preferred_width()

virtual int Widget::preferred_width ( std::string path)
inlinevirtual

Reimplemented in EditorWidget, GameApiAnimation, ImageWidget, LabelWidget, PasswordEditorWidget, SubmitWidget, and WidgetForward.

Here is the caller graph for this function:

◆ Script()

virtual std::string Widget::Script ( std::string path)
inlinevirtual

Reimplemented in ScriptButton, and WidgetForward.

Here is the caller graph for this function:

◆ SetCssProp()

void Widget::SetCssProp ( std::string path,
std::string s )
inline

◆ SetPos()

virtual void Widget::SetPos ( std::string path,
int pos_x2,
int pos_y2 )
inlinevirtual

Reimplemented in WidgetForward.

Here is the caller graph for this function:

◆ SetSize()

virtual void Widget::SetSize ( std::string path,
int size_x2,
int size_y2 )
inlinevirtual

Reimplemented in WidgetForward.

Here is the caller graph for this function:

Member Data Documentation

◆ cssprop

std::map<std::string, std::string> Widget::cssprop
protected

◆ id

std::string Widget::id
protected

◆ ids

std::map<std::string, std::string> Widget::ids
protected

◆ last_path

std::string Widget::last_path
protected

◆ pos_x

std::map<std::string, int> Widget::pos_x
protected

◆ pos_y

std::map<std::string, int> Widget::pos_y
protected

◆ script

std::map<std::string, std::string> Widget::script
protected

◆ size_x

std::map<std::string, int> Widget::size_x
protected

◆ size_y

std::map<std::string, int> Widget::size_y
protected

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