ifm::DockTarget Class Reference

List of all members.

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
InterfaceManagerm_manager
WidgetAdapter m_native_widget


Constructor & Destructor Documentation

ifm::DockTarget::DockTarget ( InterfaceManager manager,
int  id 
)

ifm::DockTarget::~DockTarget (  )  [virtual]


Member Function Documentation

void ifm::DockTarget::create_widget (  )  [private]

Creates the native widget.

Note:
Implemented by the current platform.

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

Returns:
Whether this DockTarget is in the hovered state.
Note:
Implemented by the current platform.

int ifm::DockTarget::get_id (  )  const

Returns:
The id of this DockTarget.

Rect ifm::DockTarget::get_rect (  )  const

The size of the DockTarget depends on the graphics used by the current theme.

Returns:
The size and position of this DockTarget.

void ifm::DockTarget::hide (  ) 

bool ifm::DockTarget::is_enabled (  )  const

Returns:
Whether this DockTarget is enabled.

bool ifm::DockTarget::is_shown (  )  const

Returns:
Whether the DockTarget is shown.

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.

Note:
Implemented by the current platform.

void ifm::DockTarget::set_position ( const Point pos  ) 

Specifies the position DockTarget. The position is in screen coordinates.

Parameters:
pos The new position.

void ifm::DockTarget::show ( bool  value  ) 

Shows or hides the DockTarget.


Member Data Documentation

const int ifm::DockTarget::m_id [private]


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