3 #ifndef _GTKMM_ICONVIEW_H
4 #define _GTKMM_ICONVIEW_H
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
46 {
class IconView_Class; }
69 #ifndef DOXYGEN_SHOULD_SKIP_THIS
77 static GType value_type() G_GNUC_CONST;
104 #ifndef DOXYGEN_SHOULD_SKIP_THIS
113 #ifndef DOXYGEN_SHOULD_SKIP_THIS
117 static CppClassType iconview_class_;
124 explicit IconView(
const Glib::ConstructParams& construct_params);
130 #ifndef DOXYGEN_SHOULD_SKIP_THIS
131 static GType get_type() G_GNUC_CONST;
134 static GType get_base_type() G_GNUC_CONST;
164 explicit IconView(
const Glib::RefPtr<TreeModel>& model);
480 #ifndef DOXYGEN_SHOULD_SKIP_THIS
482 struct TreePathTraits
488 static CType to_c_type (
const CppType& obj) {
return obj.
gobj(); }
489 static CType to_c_type (
const CType& obj) {
return obj; }
490 static CppType to_cpp_type (
const CType& obj) {
return CppType(
const_cast<CTypeNonConst
>(obj),
true); }
491 static void release_c_type (
const CType&) {}
Glib::SignalProxy1< void, const TreeModel::Path & > signal_item_activated()
void set_reorderable(bool reorderable=true)
Glib::PropertyProxy< int > property_pixbuf_column()
void set_orientation(Orientation orientation)
Glib::PropertyProxy_ReadOnly< int > property_column_spacing() const
Glib::PropertyProxy< int > property_margin()
Glib::RefPtr< const TreeModel > get_model() const
ArrayHandle_TreePaths get_selected_items() const
void get_drag_dest_item(IconViewDropPosition &pos) const
void set_tooltip_column(int column)
void set_tooltip_cell(const Glib::RefPtr< Tooltip > &tooltip, const TreeModel::Path &path, CellRenderer &cell)
int get_markup_column() const
void unselect_path(const TreeModel::Path &path)
void set_pixbuf_column(const TreeModelColumnBase &column)
void set_margin(int margin)
bool get_dest_item_at_pos(int drag_x, int drag_y, TreeModel::Path &path) const
void set_text_column(int column)
Glib::PropertyProxy_ReadOnly< int > property_item_width() const
Glib::PropertyProxy_ReadOnly< Orientation > property_item_orientation() const
Glib::PropertyProxy< int > property_column_spacing()
Glib::RefPtr< TreeModel > get_model()
Glib::PropertyProxy< bool > property_reorderable()
int get_pixbuf_column() const
Glib::PropertyProxy< Orientation > property_orientation()
bool get_cursor(TreeModel::Path &path, CellRenderer *&cell) const
void set_drag_dest_item(const TreeModel::Path &path, IconViewDropPosition pos)
void scroll_to_path(const TreeModel::Path &path, bool use_align, gfloat row_align, gfloat col_align)
void set_selection_mode(SelectionMode mode)
Orientation get_orientation() const
void set_markup_column(const TreeModelColumnBase &column)
Glib::PropertyProxy_ReadOnly< int > property_text_column() const
Glib::PropertyProxy_ReadOnly< int > property_tooltip_column() const
void select_path(const TreeModel::Path &path)
void unset_model_drag_source()
int get_tooltip_column() const
void set_tooltip_item(const Glib::RefPtr< Tooltip > &tooltip, const TreeModel::Path &path)
Glib::PropertyProxy< int > property_text_column()
void set_columns(int columns)
int get_column_spacing() const
bool get_tooltip_context_path(int &x, int &y, bool keyboard_tip, TreeModel::Path &path)
virtual void on_selection_changed()
This is a default handler for the signal signal_selection_changed().
Glib::PropertyProxy< int > property_columns()
void set_text_column(const TreeModelColumnBase &model_column)
Glib::PropertyProxy< int > property_markup_column()
bool get_item_at_pos(int x, int y, CellRenderer *&cell) const
Glib::PropertyProxy_ReadOnly< int > property_item_padding() const
Glib::RefPtr< Gdk::Pixmap > create_drag_icon(const TreeModel::Path &path)
Orientation get_item_orientation() const
Glib::PropertyProxy< SelectionMode > property_selection_mode()
virtual void on_set_scroll_adjustments(Adjustment *hadjustment, Adjustment *vadjustment)
This is a default handler for the signal signal_set_scroll_adjustments().
Glib::PropertyProxy< Orientation > property_item_orientation()
bool get_cursor(CellRenderer *&cell) const
void enable_model_drag_source(const ArrayHandle_TargetEntry &targets, Gdk::ModifierType start_button_mask=Gdk::MODIFIER_MASK, Gdk::DragAction actions=Gdk::ACTION_COPY|Gdk::ACTION_MOVE)
void convert_widget_to_bin_window_coords(int wx, int wy, int &bx, int &by) const
Glib::PropertyProxy_ReadOnly< bool > property_reorderable() const
void set_spacing(int spacing)
Glib::PropertyProxy< Glib::RefPtr< TreeModel > > property_model()
void set_pixbuf_column(int column)
bool get_dest_item_at_pos(int drag_x, int drag_y, IconViewDropPosition &pos) const
Glib::SignalProxy2< void, Adjustment *, Adjustment * > signal_set_scroll_adjustments()
Glib::ListHandle< TreePath, TreePathTraits > ArrayHandle_TreePaths
bool get_cursor(TreeModel::Path &path) const
bool get_item_at_pos(int x, int y, TreeModel::Path &path) const
Glib::PropertyProxy_ReadOnly< int > property_margin() const
Glib::PropertyProxy< int > property_spacing()
void set_column_spacing(int column_spacing)
void get_drag_dest_item(TreeModel::Path &path, IconViewDropPosition &pos) const
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< TreeModel > > property_model() const
bool get_tooltip_context_iter(int &x, int &y, bool keyboard_tip, Gtk::TreeModel::iterator &iter)
Glib::PropertyProxy< int > property_row_spacing()
Glib::PropertyProxy_ReadOnly< int > property_markup_column() const
Glib::PropertyProxy_ReadOnly< int > property_row_spacing() const
Glib::PropertyProxy_ReadOnly< int > property_columns() const
sigc::slot< void, const TreeModel::Path & > SlotForeach
void set_cursor(const TreeModel::Path &path, CellRenderer &cell, bool start_editing)
void set_item_orientation(Orientation orientation)
Glib::PropertyProxy_ReadOnly< SelectionMode > property_selection_mode() const
Glib::PropertyProxy_ReadOnly< Orientation > property_orientation() const
bool get_visible_range(TreeModel::Path &start_path, TreeModel::Path &end_path) const
Glib::PropertyProxy< int > property_item_width()
Glib::PropertyProxy_ReadOnly< int > property_spacing() const
GtkIconView * gobj()
Provides access to the underlying C GtkObject.
IconView(const Glib::RefPtr< TreeModel > &model)
void enable_model_drag_dest(const ArrayHandle_TargetEntry &targets, Gdk::DragAction actions=Gdk::ACTION_COPY|Gdk::ACTION_MOVE)
void set_tooltip_cell(const Glib::RefPtr< Tooltip > &tooltip, const TreeModel::Path &path)
Glib::PropertyProxy< int > property_item_padding()
int get_icon_width() const
void set_model(const Glib::RefPtr< TreeModel > &model)
bool get_reorderable() const
int get_text_column() const
gint get_row_spacing() const
Gtk::IconView * wrap(GtkIconView *object, bool take_copy=false)
bool path_is_selected(const TreeModel::Path &path) const
void selected_foreach(const SlotForeach &slot)
Glib::PropertyProxy_ReadOnly< int > property_pixbuf_column() const
const GtkIconView * gobj() const
Provides access to the underlying C GtkObject.
SelectionMode get_selection_mode() const
void item_activated(const TreeModel::Path &path)
void set_markup_column(int column)
bool get_item_at_pos(int x, int y, TreeModel::Path &path, CellRenderer *&cell) const
Glib::SignalProxy0< void > signal_selection_changed()
void set_item_width(int item_width)
TreeModel::Path get_path_at_pos(int x, int y) const
void unset_model_drag_dest()
Glib::PropertyProxy< int > property_tooltip_column()
void set_row_spacing(int row_spacing)
virtual void on_item_activated(const TreeModel::Path &path)
This is a default handler for the signal signal_item_activated().
bool get_dest_item_at_pos(int drag_x, int drag_y, TreeModel::Path &path, IconViewDropPosition &pos) const
void get_drag_dest_item(TreeModel::Path &path) const
GtkTreePath * gobj()
Provides access to the underlying C instance.
struct _GtkTreePath GtkTreePath
Glib::ArrayHandle< TargetEntry, TargetEntry_Traits > ArrayHandle_TargetEntry