Pioneer
Classes | Public Member Functions | List of all members
Gui::LabelSet Class Reference

#include <GuiLabelSet.h>

Inheritance diagram for Gui::LabelSet:
Inheritance graph
[legend]
Collaboration diagram for Gui::LabelSet:
Collaboration graph
[legend]

Classes

class  LabelSetItem
 

Public Member Functions

 LabelSet ()
 
bool OnMouseDown (MouseButtonEvent *e)
 
virtual void Draw ()
 
virtual void GetSizeRequested (float size[2])
 
void Clear ()
 
void Add (std::string text, sigc::slot< void > onClick, float screenx, float screeny)
 
void Add (std::string text, sigc::slot< void > onClick, float screenx, float screeny, const Color &col)
 
void SetLabelsClickable (bool v)
 
void SetLabelsVisible (bool v)
 
void SetLabelColor (const Color &c)
 
- Public Member Functions inherited from Gui::Widget
 Widget ()
 
virtual ~Widget ()
 
virtual void GetMinimumSize (float size[2])
 
void GetAbsolutePosition (float pos[2]) const
 
void GetSize (float size[2])
 
void SetSize (float w, float h)
 
void ResizeRequest ()
 
void SetShortcut (SDL_Keycode key, SDL_Keymod mod)
 
void SetScissor (bool enabled)
 
bool GetEnabled ()
 
void SetEnabled (bool v)
 
virtual void GrabFocus ()
 
bool IsFocused ()
 
virtual void ShowAll ()
 
virtual void Show ()
 
virtual void Hide ()
 
void HideTooltip ()
 
bool IsVisible () const
 
ContainerGetParent () const
 
void SetParent (Container *p)
 
void SetToolTip (std::string s)
 
const std::string & GetToolTip () const
 
virtual bool OnMouseUp (MouseButtonEvent *e)
 
virtual bool OnMouseMotion (MouseMotionEvent *e)
 
virtual void OnActivate ()
 
virtual void OnMouseEnter ()
 
virtual void OnMouseLeave ()
 
virtual bool OnKeyDown (const SDL_Keysym *sym)
 
virtual void OnTextInput (Uint32 unicode)
 
bool IsMouseOver ()
 
void OnPreShortcut (const SDL_Keysym *sym)
 
unsigned int GetEventMask ()
 

Additional Inherited Members

- Public Types inherited from Gui::Widget
enum  EventMask {
  EVENT_NONE = 0 , EVENT_KEYDOWN = 1 << 0 , EVENT_KEYUP = 1 << 1 , EVENT_MOUSEDOWN = 1 << 2 ,
  EVENT_MOUSEUP = 1 << 3 , EVENT_MOUSEMOTION = 1 << 4
}
 
- Public Attributes inherited from Gui::Widget
sigc::signal< void > onMouseEnter
 
sigc::signal< void > onMouseLeave
 
sigc::signal< void > onSetSize
 
sigc::signal< void > onDelete
 
float w
 
float h
 
- Static Public Attributes inherited from Gui::Widget
static const unsigned int EVENT_ALL = 0xffffffff
 
- Protected Member Functions inherited from Gui::Widget
virtual std::string GetOverrideTooltip ()
 
void UpdateOverriddenTooltip ()
 
- Protected Attributes inherited from Gui::Widget
unsigned int m_eventMask
 
struct {
   SDL_Keycode   sym
 
   SDL_Keymod   mod
 
m_shortcut
 

Constructor & Destructor Documentation

◆ LabelSet()

Gui::LabelSet::LabelSet ( )
Here is the call graph for this function:

Member Function Documentation

◆ Add() [1/2]

void Gui::LabelSet::Add ( std::string  text,
sigc::slot< void >  onClick,
float  screenx,
float  screeny 
)

◆ Add() [2/2]

void Gui::LabelSet::Add ( std::string  text,
sigc::slot< void >  onClick,
float  screenx,
float  screeny,
const Color col 
)

Overrides color set by SetLabelColor

◆ Clear()

void Gui::LabelSet::Clear ( )

◆ Draw()

void Gui::LabelSet::Draw ( )
virtual

Implements Gui::Widget.

Here is the call graph for this function:

◆ GetSizeRequested()

void Gui::LabelSet::GetSizeRequested ( float  size[2])
virtual

containers call this on children. input: size[] will contain max permissible size output: size[] will contain what space the widget desires

Implements Gui::Widget.

◆ OnMouseDown()

bool Gui::LabelSet::OnMouseDown ( Gui::MouseButtonEvent e)
virtual

Reimplemented from Gui::Widget.

◆ SetLabelColor()

void Gui::LabelSet::SetLabelColor ( const Color c)
inline

◆ SetLabelsClickable()

void Gui::LabelSet::SetLabelsClickable ( bool  v)
inline

◆ SetLabelsVisible()

void Gui::LabelSet::SetLabelsVisible ( bool  v)
inline

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