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

#include <ui.hh>

Inheritance diagram for WidgetForward:
Collaboration diagram for WidgetForward:

Public Member Functions

 WidgetForward (int pref_size_x, int pref_size_y)
virtual void make_unique (std::string path)
std::string next_path (std::string path, int i)
virtual int preferred_width (std::string path)
virtual int preferred_height (std::string path)
void push_back (Widget *w, int x, int y, int sx, int sy, int r, int b)
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 std::string Page (std::string path)
virtual std::string Script (std::string path)
virtual std::string Css (std::string path)
Public Member Functions inherited from Widget
 Widget ()
void AddScript (std::string path, std::string s)
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

int p_x
int p_y
std::vector< int > child_x
std::vector< int > child_y
std::vector< int > child_sx
std::vector< int > child_sy
std::vector< int > child_r
std::vector< int > child_b
std::vector< int > empty_x
std::vector< int > empty_y
std::vector< Widget * > vec
Protected Attributes inherited from Widget
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

◆ WidgetForward()

WidgetForward::WidgetForward ( int pref_size_x,
int pref_size_y )
inline
Here is the caller graph for this function:

Member Function Documentation

◆ Css()

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

Reimplemented from Widget.

◆ make_unique()

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

Reimplemented from Widget.

◆ next_path()

std::string WidgetForward::next_path ( std::string path,
int i )
inline
Here is the caller graph for this function:

◆ Page()

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

Reimplemented from Widget.

Reimplemented in FormWidget, and ScriptButton.

◆ preferred_height()

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

Reimplemented from Widget.

Here is the caller graph for this function:

◆ preferred_width()

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

Reimplemented from Widget.

Here is the caller graph for this function:

◆ push_back()

void WidgetForward::push_back ( Widget * w,
int x,
int y,
int sx,
int sy,
int r,
int b )
inline
Here is the caller graph for this function:

◆ Script()

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

Reimplemented from Widget.

Reimplemented in ScriptButton.

Here is the caller graph for this function:

◆ SetPos()

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

Reimplemented from Widget.

◆ SetSize()

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

Reimplemented from Widget.

Member Data Documentation

◆ child_b

std::vector<int> WidgetForward::child_b
protected

◆ child_r

std::vector<int> WidgetForward::child_r
protected

◆ child_sx

std::vector<int> WidgetForward::child_sx
protected

◆ child_sy

std::vector<int> WidgetForward::child_sy
protected

◆ child_x

std::vector<int> WidgetForward::child_x
protected

◆ child_y

std::vector<int> WidgetForward::child_y
protected

◆ empty_x

std::vector<int> WidgetForward::empty_x
protected

◆ empty_y

std::vector<int> WidgetForward::empty_y
protected

◆ p_x

int WidgetForward::p_x
protected

◆ p_y

int WidgetForward::p_y
protected

◆ vec

std::vector<Widget*> WidgetForward::vec
protected

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