Public Member Functions | |
DockTarget (InterfaceManager &manager, int id) | |
void | enable (bool value) |
bool | get_hover () const |
int | get_id () const |
Rect | get_rect () const |
void | hide () |
bool | is_enabled () const |
bool | is_shown () const |
void | set_hover (bool value) |
void | set_position (const Point &pos) |
void | show (bool value) |
virtual | ~DockTarget () |
Private Member Functions | |
void | create_widget () |
void | destroy_widget () |
Private Attributes | |
const int | m_id |
InterfaceManager & | m_manager |
WidgetAdapter | m_native_widget |
ifm::DockTarget::DockTarget | ( | InterfaceManager & | manager, | |
int | id | |||
) |
ifm::DockTarget::~DockTarget | ( | ) | [virtual] |
void ifm::DockTarget::create_widget | ( | ) | [private] |
Creates the native widget.
void ifm::DockTarget::destroy_widget | ( | ) | [private] |
Destroys the native widget and resets the WidgetAdapter to point at nothing.
void ifm::DockTarget::enable | ( | bool | value | ) |
Enables or disables the DockTarget.
bool ifm::DockTarget::get_hover | ( | ) | const |
int ifm::DockTarget::get_id | ( | ) | const |
Rect ifm::DockTarget::get_rect | ( | ) | const |
The size of the DockTarget depends on the graphics used by the current theme.
void ifm::DockTarget::hide | ( | ) |
bool ifm::DockTarget::is_enabled | ( | ) | const |
bool ifm::DockTarget::is_shown | ( | ) | const |
void ifm::DockTarget::set_hover | ( | bool | value | ) |
Sets whether the mouse is hovered over this DockTarget. The DockTarget will be redrawn to display the appropriate graphic for a hovered or non hovered state.
void ifm::DockTarget::set_position | ( | const Point & | pos | ) |
Specifies the position DockTarget. The position is in screen coordinates.
pos | The new position. |
void ifm::DockTarget::show | ( | bool | value | ) |
Shows or hides the DockTarget.
const int ifm::DockTarget::m_id [private] |
InterfaceManager& ifm::DockTarget::m_manager [private] |