Public Member Functions | |
void | capture_mouse () |
Point | client_to_screen (const Point &client) const |
void | destroy () |
WidgetPtr | get () const |
Size | get_max_size () const |
Size | get_min_size () const |
Rect | get_rect () const |
void | hide () |
operator WidgetPtr () const | |
WidgetAdapter & | operator= (const WidgetPtr &w) |
void | refresh (const Rect &rect) |
void | refresh () |
void | release_mouse () |
Point | screen_to_client (const Point &screen) const |
void | set_focus () |
void | set_min_client_size (const Size &size) |
void | set_min_size (const Size &size) |
void | set_parent (const WidgetAdapter &parent) |
void | set_rect (const Rect &rect) |
void | show (bool value=true, int flags=0) |
void | show_menu (MenuPtr menu) |
bool | shown () const |
WidgetAdapter (const WidgetPtr &w) | |
WidgetAdapter () | |
~WidgetAdapter () | |
Private Attributes | |
WidgetPtr | m_widget |
ifm::WidgetAdapter::WidgetAdapter | ( | ) |
ifm::WidgetAdapter::WidgetAdapter | ( | const WidgetPtr & | w | ) |
ifm::WidgetAdapter::~WidgetAdapter | ( | ) |
void ifm::WidgetAdapter::capture_mouse | ( | ) |
Captures the mouse so that all mouse inputs are sent to this Widget.
Converts the given client coordinates into screen coordinates.
screen | The screen coordinates to convert |
void ifm::WidgetAdapter::destroy | ( | ) |
Destroys the widget.
WidgetPtr ifm::WidgetAdapter::get | ( | ) | const |
Size ifm::WidgetAdapter::get_max_size | ( | ) | const |
Size ifm::WidgetAdapter::get_min_size | ( | ) | const |
Rect ifm::WidgetAdapter::get_rect | ( | ) | const |
void ifm::WidgetAdapter::hide | ( | ) |
Hides the widget.
ifm::WidgetAdapter::operator WidgetPtr | ( | ) | const |
WidgetAdapter& ifm::WidgetAdapter::operator= | ( | const WidgetPtr & | w | ) |
void ifm::WidgetAdapter::refresh | ( | const Rect & | rect | ) |
Repaints an area of the widget
void ifm::WidgetAdapter::refresh | ( | ) |
Causes the widget to be repainted.
void ifm::WidgetAdapter::release_mouse | ( | ) |
Releases the mouse capture.
Converts the given screen coordinates into client coordinates.
screen | The client coordinates to convert |
void ifm::WidgetAdapter::set_focus | ( | ) |
Sets focus on this widget
void ifm::WidgetAdapter::set_min_client_size | ( | const Size & | size | ) |
Sets the minimum client size of the widget.
void ifm::WidgetAdapter::set_min_size | ( | const Size & | size | ) |
Sets the minimum size of the widget.
void ifm::WidgetAdapter::set_parent | ( | const WidgetAdapter & | parent | ) |
Set the parent of the widget.
void ifm::WidgetAdapter::set_rect | ( | const Rect & | rect | ) |
Set the size and positon of the widget.
void ifm::WidgetAdapter::show | ( | bool | value = true , |
|
int | flags = 0 | |||
) |
Shows or hides the widget.
flags | Controls how the widget is shown. Flags can be any combination of:
|
void ifm::WidgetAdapter::show_menu | ( | MenuPtr | menu | ) |
Shows a menu at the current mouse position
bool ifm::WidgetAdapter::shown | ( | ) | const |
WidgetPtr ifm::WidgetAdapter::m_widget [private] |