MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes
MFM::AbstractGUIDriver< GC >::AbstractGridButton Class Reference
Inheritance diagram for MFM::AbstractGUIDriver< GC >::AbstractGridButton:
MFM::AbstractButton MFM::Panel MFM::AbstractGUIDriver< GC >::ClearButton MFM::AbstractGUIDriver< GC >::ClearGridButton MFM::AbstractGUIDriver< GC >::GridStepCheckbox MFM::AbstractGUIDriver< GC >::NukeButton MFM::AbstractGUIDriver< GC >::PauseTileButton MFM::AbstractGUIDriver< GC >::QuitButton MFM::AbstractGUIDriver< GC >::ReloadButton MFM::AbstractGUIDriver< GC >::SaveButton MFM::AbstractGUIDriver< GC >::ScreenshotButton MFM::AbstractGUIDriver< GC >::TileViewButton MFM::AbstractGUIDriver< GC >::XRayButton

Public Member Functions

void SetDriver (AbstractGUIDriver &driver)
 
void SetGridRenderer (GridRenderer &grend)
 
- Public Member Functions inherited from MFM::AbstractButton
 AbstractButton ()
 
 AbstractButton (const char *text)
 
 AbstractButton (SDL_Surface *icon)
 
 AbstractButton (const char *text, SDL_Surface *icon)
 
 ~AbstractButton ()
 
void SetLocation (const SPoint &location)
 
void SetIcon (SDL_Surface *icon)
 
SDL_Surface * GetIcon ()
 
void SetDimensions (const SPoint &dimensions)
 
void SetEnabled (bool isEnabled)
 
void SetText (const char *text)
 
const char * GetText ()
 
bool IsEnabled () const
 
bool Contains (SPoint &pt)
 
virtual bool Handle (MouseButtonEvent &event)
 
virtual void HandleResize (const UPoint &parentSize)
 
bool PaintClickHighlight (Drawing &d)
 
virtual void PaintComponentNonClick (Drawing &d)
 
virtual void PaintComponent (Drawing &d)
 
virtual void OnClick (u8 button)=0
 
virtual void OnPress (u8 button)
 
- Public Member Functions inherited from MFM::Panel
 Panel (u32 width=0, u32 height=0)
 
void Insert (Panel *child, Panel *afterOrNull)
 
PanelPop ()
 
void Remove (Panel *child)
 
void SetVisibility (bool value)
 
void ToggleVisibility ()
 
bool IsVisible ()
 
u32 GetWidth () const
 
u32 GetHeight () const
 
void SetDimensions (u32 width, u32 height)
 
void SetDesiredSize (u32 width, u32 height)
 
const UPointGetDimensions () const
 
const UPointGetDesiredSize () const
 
void SetRenderPoint (const SPoint &renderPt)
 
const SPointGetRenderPoint () const
 
const char * GetName () const
 
void SetName (const char *name)
 
void Print (ByteSink &sink, u32 indent=0) const
 
u32 GetBackground () const
 
u32 SetBackground (const u32 color)
 
u32 GetBorder () const
 
u32 SetBorder (const u32 color)
 
u32 GetForeground () const
 
u32 SetForeground (const u32 color)
 
TTF_Font * GetFont () const
 
TTF_Font * SetFont (TTF_Font *newFont)
 
SPoint GetAbsoluteLocation ()
 
virtual void Paint (Drawing &config)
 
virtual void PaintUpdateVisibility (Drawing &config)
 
virtual void PaintBorder (Drawing &config)
 
virtual void PaintChildren (Drawing &config)
 
virtual bool Dispatch (MouseEvent &event, const Rect &rect)
 
virtual bool Handle (MouseMotionEvent &event)
 
virtual void OnMouseExit ()
 
void SetAnchor (const GUIAnchor anchor)
 
SPoint GetTextSize (TTF_Font *font, const char *text)
 

Protected Member Functions

 AbstractGridButton (const char *title)
 

Protected Attributes

AbstractGUIDriverm_driver
 
GridRendererm_grend
 
- Protected Attributes inherited from MFM::Panel
OString16 m_name
 
Rect m_rect
 
u32 m_bdColor
 
u32 m_bgColor
 
u32 m_fgColor
 
TTF_Font * m_font
 
UPoint m_desiredSize
 
SPoint m_desiredLocation
 
Panelm_parent
 
Panelm_top
 
Panelm_forward
 
Panelm_backward
 
Panelm_focusedChild
 
bool m_visible
 

Additional Inherited Members

- Static Protected Member Functions inherited from MFM::Panel
static void Indent (ByteSink &sink, u32 count)
 

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