#include <pushbutton.h>
Inheritance diagram for wftk::PushButton:
Public Member Functions | |
PushButton (const std::string &text, const Font &font=Font::registry.find("button_font")) | |
Constructor for a normal button. | |
virtual | ~PushButton () |
destructor | |
void | setUpPic (Surface::Resource *bm) |
set the picture for the button in up position | |
void | setUpPic (const Surface &surf) |
set the picture for the button in up position | |
void | setUpPic (const std::string &name) |
set the picture for the button in up position | |
void | setDownPic (Surface::Resource *bm) |
set the picture for the button in down position | |
void | setDownPic (const Surface &surf) |
set the picture for the button in down position | |
void | setDownPic (const std::string &name) |
set the picture for the button in down position | |
Protected Member Functions | |
virtual void | draw (Surface &, const Point &, const Region &) |
The area drawn to must lie within the given region. |
In contrast to Button, this widgets changes its appereance when being pressed.
|
Constructor for a normal button.
|
|
The area drawn to must lie within the given region. This is protected so derived classes can call their parents' draw() in their own implementations. Reimplemented from wftk::Widget. |
|
set the picture for the button in down position
|
|
set the picture for the button in down position This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
set the picture for the button in down position This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
set the picture for the button in up position
|
|
set the picture for the button in up position This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
set the picture for the button in up position This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.