Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SmallGuiButton Class Reference

#include <guiiconhandler.h>

Inheritance diagram for SmallGuiButton:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 SmallGuiButton (PG_Widget *parent, const PG_Rect &r, GuiButton *guiButton, NewGuiHost *host)
void updateIcon ()
void press ()
void showInfoText ()
 ~SmallGuiButton ()

Protected Member Functions

void eventMouseEnter ()
 eventhandler for mouse movements.
void eventMouseLeave ()
 eventhandler for mouse movements.

Constructor & Destructor Documentation

SmallGuiButton::SmallGuiButton PG_Widget parent,
const PG_Rect r,
GuiButton guiButton,
NewGuiHost host
 

Definition at line 117 of file guiiconhandler.cpp.

References NewGuiHost::clearSmallIcons(), GuiButton::exec(), IconRepository::getIcon(), PG_Button::HIGHLITED, PG_Button::PRESSED, PG_Button::SetBackground(), PG_Button::SetBehaviour(), PG_Button::SetBorderSize(), PG_Widget::SetDirtyUpdate(), PG_Button::sigClick, PG_Button::SIGNALONRELEASE, PG_Button::UNPRESSED, and updateIcon().

SmallGuiButton::~SmallGuiButton  ) 
 

Definition at line 172 of file guiiconhandler.cpp.


Member Function Documentation

void SmallGuiButton::eventMouseEnter  )  [protected, virtual]
 

eventhandler for mouse movements.

This overrideable handler is called everytime the mouse cursor is entering the widget area.

Reimplemented from PG_Button.

Definition at line 159 of file guiiconhandler.cpp.

References PG_Button::eventMouseEnter(), and showInfoText().

void SmallGuiButton::eventMouseLeave  )  [protected, virtual]
 

eventhandler for mouse movements.

This overrideable handler is called everytime the mouse cursor is leaving the widget area.

Reimplemented from PG_Button.

Definition at line 165 of file guiiconhandler.cpp.

References PG_Button::eventMouseLeave().

void SmallGuiButton::press  ) 
 

Definition at line 146 of file guiiconhandler.cpp.

References PG_Button::SetPressed(), and PG_Widget::Update().

void SmallGuiButton::showInfoText  ) 
 

Definition at line 152 of file guiiconhandler.cpp.

References GuiButton::func, GuiFunction::getName(), GuiButton::id, GuiButton::pos, and GuiButton::subject.

Referenced by eventMouseEnter().

void SmallGuiButton::updateIcon  ) 
 

Definition at line 134 of file guiiconhandler.cpp.

References PG_Button::GetIcon(), PG_Draw::ScaleSurface(), PG_Button::SetIcon(), smallGuiIconSizeFactor, and PG_Button::UNPRESSED.

Referenced by NewGuiHost::showSmallIcons(), and SmallGuiButton().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:20:52 2008 for Advanced Strategic Command by  doxygen 1.4.2