Ardour
9.0-pre0-822-g12e3bc5c20
|
#include <dndvbox.h>
Public Member Functions | |
DnDVBox (std::list< Gtk::TargetEntry > targets, Gdk::DragAction actions=Gdk::ACTION_COPY) | |
virtual | ~DnDVBox () |
void | add_child (T *child, std::list< Gtk::TargetEntry > targets=std::list< Gtk::TargetEntry >()) |
std::list< T * > | children () |
std::list< T * > | selection (bool sorted=false) const |
void | set_active (T *c) |
bool | selected (T *child) const |
void | clear () |
void | select_all () |
void | select_none () |
std::pair< T *, double > | get_child_at_position (int y) const |
void | set_spacing (int s) |
void | remove_placeholder () |
int | add_placeholder (double y) |
Public Attributes | |
sigc::signal< void > | Reordered |
sigc::signal< bool, GdkEventButton *, T * > | ButtonPress |
sigc::signal< bool, GdkEventButton *, T * > | ButtonRelease |
sigc::signal< void, DnDVBox *, T *, Glib::RefPtr< Gdk::DragContext > const & > | DropFromAnotherBox |
sigc::signal< void, Gtk::SelectionData const &, T *, Glib::RefPtr< Gdk::DragContext > const & > | DropFromExternal |
sigc::signal< void > | SelectionChanged |
sigc::signal< void, T & > | SelectionAdded |
sigc::signal< bool, DnDVBox *, T * > | DragRefuse |
Private Member Functions | |
double | bottom_of_child_ignoring_placeholder (T *child) const |
double | get_children_around_position (int y, T **before, T **at, T **after) const |
void | drag_begin (Glib::RefPtr< Gdk::DragContext > const &context, T *child) |
bool | icon_expose (GdkEventExpose *) |
void | drag_data_get (Glib::RefPtr< Gdk::DragContext > const &context, Gtk::SelectionData &selection_data, guint, guint, T *child) |
void | drag_data_received (Glib::RefPtr< Gdk::DragContext > const &context, int, int y, Gtk::SelectionData const &selection_data, guint, guint time) |
void | drag_end (Glib::RefPtr< Gdk::DragContext > const &, T *) |
int | create_or_update_placeholder (double c) |
bool | drag_motion (Glib::RefPtr< Gdk::DragContext > const &ctx, int, int y, guint tme) |
void | drag_leave (Glib::RefPtr< Gdk::DragContext > const &, guint) |
bool | button_press (GdkEventButton *ev, T *child) |
bool | button_release (GdkEventButton *ev, T *child) |
void | setup_child_state (T *c) |
void | clear_selection () |
void | add_to_selection (T *child) |
void | remove_from_selection (T *child) |
T * | child_from_widget (Gtk::Widget const *w) const |
Private Attributes | |
Gtk::VBox | _internal_vbox |
std::list< Gtk::TargetEntry > | _targets |
Gdk::DragAction | _actions |
std::list< T * > | _children |
std::list< T * > | _selection |
T * | _active |
Gtk::Window * | _drag_icon |
bool | _expecting_unwanted_button_event |
Gtk::Label * | _placeholder |
T * | _drag_child |
Static Private Attributes | |
static DnDVBox * | _drag_source = 0 |
A VBox whose contents can be dragged and dropped
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inlineprivate |
Look at a y coordinate and find the children below y, and the ones either side.
y | y position. |
before | Filled in with the child before, or 0. |
at | Filled in with the child under y, or 0. |
after | Filled in with the child after, or 0. |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
sigc::signal<bool, GdkEventButton*, T*> Gtkmm2ext::DnDVBox< T >::ButtonPress |
sigc::signal<bool, GdkEventButton*, T*> Gtkmm2ext::DnDVBox< T >::ButtonRelease |
sigc::signal<bool, DnDVBox*, T*> Gtkmm2ext::DnDVBox< T >::DragRefuse |
sigc::signal<void, DnDVBox*, T*, Glib::RefPtr<Gdk::DragContext> const & > Gtkmm2ext::DnDVBox< T >::DropFromAnotherBox |
sigc::signal<void, Gtk::SelectionData const &, T*, Glib::RefPtr<Gdk::DragContext> const & > Gtkmm2ext::DnDVBox< T >::DropFromExternal |
sigc::signal<void> Gtkmm2ext::DnDVBox< T >::Reordered |
sigc::signal<void,T&> Gtkmm2ext::DnDVBox< T >::SelectionAdded |
sigc::signal<void> Gtkmm2ext::DnDVBox< T >::SelectionChanged |