Ardour  9.0-pre0-822-g12e3bc5c20
Gtkmm2ext::DnDTreeView< DataType > Class Template Reference

#include <dndtreeview.h>

Inheritance diagram for Gtkmm2ext::DnDTreeView< DataType >:
[legend]

Public Member Functions

 DnDTreeView ()
 
 ~DnDTreeView ()
 
void on_drag_data_get (const Glib::RefPtr< Gdk::DragContext > &context, Gtk::SelectionData &selection_data, guint info, guint time)
 
void on_drag_data_received (const Glib::RefPtr< Gdk::DragContext > &context, int x, int y, const Gtk::SelectionData &selection_data, guint info, guint time)
 
void get_object_drag_data (std::list< DataType > &l, Gtk::TreeView **source) const
 
- Public Member Functions inherited from Gtkmm2ext::DnDTreeViewBase
 DnDTreeViewBase ()
 
 ~DnDTreeViewBase ()
 
void add_drop_targets (std::list< Gtk::TargetEntry > &)
 
void add_object_drag (int column, std::string type_name, Gtk::TargetFlags flags=Gtk::TargetFlags(0))
 
void on_drag_begin (Glib::RefPtr< Gdk::DragContext > const &context)
 
void on_drag_end (Glib::RefPtr< Gdk::DragContext > const &context)
 
bool on_button_press_event (GdkEventButton *ev)
 
void on_drag_leave (const Glib::RefPtr< Gdk::DragContext > &context, guint time)
 
bool on_drag_motion (const Glib::RefPtr< Gdk::DragContext > &context, int x, int y, guint time)
 
bool on_drag_drop (const Glib::RefPtr< Gdk::DragContext > &context, int x, int y, guint time)
 
void set_drag_column (int c)
 

Public Attributes

sigc::signal< void, const Glib::RefPtr< Gdk::DragContext > &, const Gtk::SelectionData & > signal_drop
 
- Public Attributes inherited from Gtkmm2ext::DnDTreeViewBase
sigc::signal4< bool, const Glib::RefPtr< Gdk::DragContext > &, int, int, guint, BoolAccumulatorsignal_motion
 

Additional Inherited Members

- Protected Member Functions inherited from Gtkmm2ext::DnDTreeViewBase
void start_object_drag ()
 
void end_object_drag ()
 
- Protected Attributes inherited from Gtkmm2ext::DnDTreeViewBase
std::list< Gtk::TargetEntry > draggable
 
Gdk::DragAction suggested_action
 
int data_column
 
std::string object_type
 
double press_start_x
 
double press_start_y
 
int _drag_column
 
- Static Protected Attributes inherited from Gtkmm2ext::DnDTreeViewBase
static DragData drag_data
 

Detailed Description

template<class DataType>
class Gtkmm2ext::DnDTreeView< DataType >

Definition at line 126 of file dndtreeview.h.

Constructor & Destructor Documentation

◆ DnDTreeView()

template<class DataType >
Gtkmm2ext::DnDTreeView< DataType >::DnDTreeView ( )
inline

Definition at line 129 of file dndtreeview.h.

◆ ~DnDTreeView()

template<class DataType >
Gtkmm2ext::DnDTreeView< DataType >::~DnDTreeView ( )
inline

Definition at line 130 of file dndtreeview.h.

Member Function Documentation

◆ get_object_drag_data()

template<class DataType >
void Gtkmm2ext::DnDTreeView< DataType >::get_object_drag_data ( std::list< DataType > &  l,
Gtk::TreeView **  source 
) const
inline

This can be called by the Treeview itself or by some other object that wants to get the list of dragged items.

Definition at line 181 of file dndtreeview.h.

◆ on_drag_data_get()

template<class DataType >
void Gtkmm2ext::DnDTreeView< DataType >::on_drag_data_get ( const Glib::RefPtr< Gdk::DragContext > &  context,
Gtk::SelectionData &  selection_data,
guint  info,
guint  time 
)
inline

Definition at line 134 of file dndtreeview.h.

◆ on_drag_data_received()

template<class DataType >
void Gtkmm2ext::DnDTreeView< DataType >::on_drag_data_received ( const Glib::RefPtr< Gdk::DragContext > &  context,
int  x,
int  y,
const Gtk::SelectionData &  selection_data,
guint  info,
guint  time 
)
inline

Definition at line 151 of file dndtreeview.h.

Member Data Documentation

◆ signal_drop

template<class DataType >
sigc::signal<void, const Glib::RefPtr<Gdk::DragContext>&, const Gtk::SelectionData&> Gtkmm2ext::DnDTreeView< DataType >::signal_drop

Definition at line 132 of file dndtreeview.h.


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