ifm::WidgetAdapter Class Reference

List of all members.


Detailed Description

The gui toolkit independant interface for widgets.

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
WidgetAdapteroperator= (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

Constructor & Destructor Documentation

ifm::WidgetAdapter::WidgetAdapter (  ) 

ifm::WidgetAdapter::WidgetAdapter ( const WidgetPtr w  ) 

ifm::WidgetAdapter::~WidgetAdapter (  ) 


Member Function Documentation

void ifm::WidgetAdapter::capture_mouse (  ) 

Captures the mouse so that all mouse inputs are sent to this Widget.

Point ifm::WidgetAdapter::client_to_screen ( const Point client  )  const

Converts the given client coordinates into screen coordinates.

Parameters:
screen The screen coordinates to convert
Returns:
Client coordinates

void ifm::WidgetAdapter::destroy (  ) 

Destroys the widget.

WidgetPtr ifm::WidgetAdapter::get (  )  const

Size ifm::WidgetAdapter::get_max_size (  )  const

Returns:
The maximum size of the widget.

Size ifm::WidgetAdapter::get_min_size (  )  const

Returns:
The minimum size of the widget.

Rect ifm::WidgetAdapter::get_rect (  )  const

Returns:
The size and position of the widget.

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.

Point ifm::WidgetAdapter::screen_to_client ( const Point screen  )  const

Converts the given screen coordinates into client coordinates.

Parameters:
screen The client coordinates to convert
Returns:
Screen coordinates

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.

Parameters:
flags Controls how the widget is shown. Flags can be any combination of:
  • SHOW_NA

void ifm::WidgetAdapter::show_menu ( MenuPtr  menu  ) 

Shows a menu at the current mouse position

bool ifm::WidgetAdapter::shown (  )  const

Returns:
Whether or not the widget is shown.


Member Data Documentation


doxygen Get IFM - Interface Management System at SourceForge.net. Fast, secure and Free Open Source software downloads