Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Dragged Class Referenceabstract
Inheritance diagram for Dragged:
Inheritance graph
Collaboration diagram for Dragged:
Collaboration graph

Public Types

enum  DragAction { DRAGGING, DROPPED }

Public Member Functions

 Dragged (AWT_graphic_exports &exports_)
virtual void draw_drag_indicator (AW_device *device, int drag_gc) const =0
virtual void perform (DragAction action, const AW_clicked_element *target, const Position &mousepos)=0
virtual void abort ()=0
void do_drag (const AW_clicked_element *drag_target, const Position &mousepos)
void do_drop (const AW_clicked_element *drop_target, const Position &mousepos)
void hide_drag_indicator (AW_device *device, int drag_gc) const
- Public Member Functions inherited from AWT_command_data
virtual ~AWT_command_data ()

Static Public Member Functions

static bool valid_drag_device (AW_device *device)

Protected Member Functions

AWT_graphic_exportsget_exports ()

Detailed Description

Definition at line 628 of file TreeDisplay.cxx.

Member Enumeration Documentation


Definition at line 638 of file TreeDisplay.cxx.

Constructor & Destructor Documentation

Dragged::Dragged ( AWT_graphic_exports exports_)

Definition at line 640 of file TreeDisplay.cxx.

Member Function Documentation

AWT_graphic_exports& Dragged::get_exports ( )
static bool Dragged::valid_drag_device ( AW_device device)
virtual void Dragged::draw_drag_indicator ( AW_device device,
int  drag_gc 
) const
pure virtual
virtual void Dragged::perform ( DragAction  action,
const AW_clicked_element target,
const Position mousepos 
pure virtual

Referenced by do_drag(), and do_drop().

virtual void Dragged::abort ( )
pure virtual
void Dragged::do_drag ( const AW_clicked_element drag_target,
const Position mousepos 

Definition at line 648 of file TreeDisplay.cxx.

References DRAGGING, and perform().

Referenced by AWT_graphic_tree::handle_command().

void Dragged::do_drop ( const AW_clicked_element drop_target,
const Position mousepos 

Definition at line 651 of file TreeDisplay.cxx.

References DROPPED, and perform().

Referenced by AWT_graphic_tree::handle_command().

void Dragged::hide_drag_indicator ( AW_device device,
int  drag_gc 
) const

Definition at line 655 of file TreeDisplay.cxx.

References draw_drag_indicator().

Referenced by AWT_graphic_tree::handle_command().

The documentation for this class was generated from the following file: