Faith::PushButton Class Reference

#include <faith/pushbutton.h>

Inheritance diagram for Faith::PushButton:

Faith::Widget Faith::Object Faith::PaintDevice List of all members.

Signals

void clicked ()

Public Member Functions

 PushButton (Faith::Widget *parent, const char *name=0)
 PushButton (const Faith::String &text, Faith::Widget *parent, const char *name=0)
Faith::String text () const
bool isDown () const
bool isEnabled () const
bool isDefault () const
void setDefault (bool d)
virtual Size sizeHint () const

Protected Member Functions

void paintEvent (Faith::PaintEvent *e)
void mouseReleaseEvent (Faith::MouseEvent *e)
void mousePressEvent (Faith::MouseEvent *e)
void mouseMoveEvent (Faith::MouseEvent *e)

Constructor & Destructor Documentation

Faith::PushButton::PushButton ( Faith::Widget parent,
const char *  name = 0 
)

Faith::PushButton::PushButton ( const Faith::String text,
Faith::Widget parent,
const char *  name = 0 
)


Member Function Documentation

void Faith::PushButton::clicked (  )  [signal]

bool Faith::PushButton::isDefault (  )  const [inline]

bool Faith::PushButton::isDown (  )  const [inline]

bool Faith::PushButton::isEnabled (  )  const [inline]

void Faith::PushButton::mouseMoveEvent ( Faith::MouseEvent e  )  [protected, virtual]

Reimplemented from Faith::Widget.

void Faith::PushButton::mousePressEvent ( Faith::MouseEvent e  )  [protected, virtual]

This function is called when the user presses the mouse while over the widget (immediately after the push down)

Reimplemented from Faith::Widget.

void Faith::PushButton::mouseReleaseEvent ( Faith::MouseEvent e  )  [protected, virtual]

This function is called when the use releases the mouse after it has been clicked on this widget.

This function is called even when the mouse was not over this widget. The only condition is that a mousePressEvent was sent to this object prior

Reimplemented from Faith::Widget.

void Faith::PushButton::paintEvent ( Faith::PaintEvent e  )  [protected, virtual]

Reimplemented from Faith::Widget.

void Faith::PushButton::setDefault ( bool  d  )  [inline]

virtual Size Faith::PushButton::sizeHint (  )  const [virtual]

Returns:
this Widget's recommended size.
If this widget doesn't want to make a recommendation, the size will be invalid Faith::Size::isInvalid()

Reimplemented from Faith::Widget.

Faith::String Faith::PushButton::text (  )  const [inline]


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 00:23:10 2006 for Faith by  doxygen 1.4.7