GimpContainerView

GimpContainerView

Synopsis

enum                GimpContainerViewProp;
                    GimpContainerView;
struct              GimpContainerViewInterface;
GimpContainer *     gimp_container_view_get_container   (GimpContainerView *view);
void                gimp_container_view_set_container   (GimpContainerView *view,
                                                         GimpContainer *container);
GimpContext *       gimp_container_view_get_context     (GimpContainerView *view);
void                gimp_container_view_set_context     (GimpContainerView *view,
                                                         GimpContext *context);
GtkSelectionMode    gimp_container_view_get_selection_mode
                                                        (GimpContainerView *view);
void                gimp_container_view_set_selection_mode
                                                        (GimpContainerView *view,
                                                         GtkSelectionMode mode);
gint                gimp_container_view_get_view_size   (GimpContainerView *view,
                                                         gint *view_border_width);
void                gimp_container_view_set_view_size   (GimpContainerView *view,
                                                         gint view_size,
                                                         gint view_border_width);
gboolean            gimp_container_view_get_reorderable (GimpContainerView *view);
void                gimp_container_view_set_reorderable (GimpContainerView *view,
                                                         gboolean reorderable);
GtkWidget *         gimp_container_view_get_dnd_widget  (GimpContainerView *view);
void                gimp_container_view_set_dnd_widget  (GimpContainerView *view,
                                                         GtkWidget *dnd_widget);
void                gimp_container_view_enable_dnd      (GimpContainerView *editor,
                                                         GtkButton *button,
                                                         GType children_type);
gboolean            gimp_container_view_select_item     (GimpContainerView *view,
                                                         GimpViewable *viewable);
void                gimp_container_view_activate_item   (GimpContainerView *view,
                                                         GimpViewable *viewable);
void                gimp_container_view_context_item    (GimpContainerView *view,
                                                         GimpViewable *viewable);
gint                gimp_container_view_get_selected    (GimpContainerView *view,
                                                         GList **list);
gpointer            gimp_container_view_lookup          (GimpContainerView *view,
                                                         GimpViewable *viewable);
gboolean            gimp_container_view_item_selected   (GimpContainerView *view,
                                                         GimpViewable *item);
gboolean            gimp_container_view_multi_selected  (GimpContainerView *view,
                                                         GList *items);
void                gimp_container_view_item_activated  (GimpContainerView *view,
                                                         GimpViewable *item);
void                gimp_container_view_item_context    (GimpContainerView *view,
                                                         GimpViewable *item);
void                gimp_container_view_install_properties
                                                        (GObjectClass *klass);
void                gimp_container_view_set_property    (GObject *object,
                                                         guint property_id,
                                                         const GValue *value,
                                                         GParamSpec *pspec);
void                gimp_container_view_get_property    (GObject *object,
                                                         guint property_id,
                                                         GValue *value,
                                                         GParamSpec *pspec);

Object Hierarchy

  GInterface
   +----GimpContainerViewInterface

Prerequisites

GimpContainerViewInterface requires GtkWidget.

Known Implementations

GimpContainerViewInterface is implemented by GimpChannelTreeView, GimpContainerBox, GimpContainerComboBox, GimpContainerEntry, GimpContainerGridView, GimpContainerTreeView, GimpDrawableTreeView, GimpItemTreeView, GimpLayerTreeView, GimpToolEditor and GimpVectorsTreeView.

Properties

  "container"                GimpContainer*        : Read / Write
  "context"                  GimpContext*          : Read / Write
  "reorderable"              gboolean              : Read / Write
  "selection-mode"           GtkSelectionMode      : Read / Write
  "view-border-width"        gint                  : Read / Write / Construct
  "view-size"                gint                  : Read / Write / Construct

Signals

  "activate-item"                                  : Run First
  "context-item"                                   : Run First
  "select-item"                                    : Run Last

Description

Details

enum GimpContainerViewProp

typedef enum {
  GIMP_CONTAINER_VIEW_PROP_0,
  GIMP_CONTAINER_VIEW_PROP_CONTAINER,
  GIMP_CONTAINER_VIEW_PROP_CONTEXT,
  GIMP_CONTAINER_VIEW_PROP_SELECTION_MODE,
  GIMP_CONTAINER_VIEW_PROP_REORDERABLE,
  GIMP_CONTAINER_VIEW_PROP_VIEW_SIZE,
  GIMP_CONTAINER_VIEW_PROP_VIEW_BORDER_WIDTH,
  GIMP_CONTAINER_VIEW_PROP_LAST = GIMP_CONTAINER_VIEW_PROP_VIEW_BORDER_WIDTH
} GimpContainerViewProp;

GIMP_CONTAINER_VIEW_PROP_0

GIMP_CONTAINER_VIEW_PROP_CONTAINER

GIMP_CONTAINER_VIEW_PROP_CONTEXT

GIMP_CONTAINER_VIEW_PROP_SELECTION_MODE

GIMP_CONTAINER_VIEW_PROP_REORDERABLE

GIMP_CONTAINER_VIEW_PROP_VIEW_SIZE

GIMP_CONTAINER_VIEW_PROP_VIEW_BORDER_WIDTH

GIMP_CONTAINER_VIEW_PROP_LAST


GimpContainerView

typedef struct _GimpContainerView GimpContainerView;


struct GimpContainerViewInterface

struct GimpContainerViewInterface;


gimp_container_view_get_container ()

GimpContainer *     gimp_container_view_get_container   (GimpContainerView *view);


gimp_container_view_set_container ()

void                gimp_container_view_set_container   (GimpContainerView *view,
                                                         GimpContainer *container);


gimp_container_view_get_context ()

GimpContext *       gimp_container_view_get_context     (GimpContainerView *view);


gimp_container_view_set_context ()

void                gimp_container_view_set_context     (GimpContainerView *view,
                                                         GimpContext *context);


gimp_container_view_get_selection_mode ()

GtkSelectionMode    gimp_container_view_get_selection_mode
                                                        (GimpContainerView *view);


gimp_container_view_set_selection_mode ()

void                gimp_container_view_set_selection_mode
                                                        (GimpContainerView *view,
                                                         GtkSelectionMode mode);


gimp_container_view_get_view_size ()

gint                gimp_container_view_get_view_size   (GimpContainerView *view,
                                                         gint *view_border_width);


gimp_container_view_set_view_size ()

void                gimp_container_view_set_view_size   (GimpContainerView *view,
                                                         gint view_size,
                                                         gint view_border_width);


gimp_container_view_get_reorderable ()

gboolean            gimp_container_view_get_reorderable (GimpContainerView *view);


gimp_container_view_set_reorderable ()

void                gimp_container_view_set_reorderable (GimpContainerView *view,
                                                         gboolean reorderable);


gimp_container_view_get_dnd_widget ()

GtkWidget *         gimp_container_view_get_dnd_widget  (GimpContainerView *view);


gimp_container_view_set_dnd_widget ()

void                gimp_container_view_set_dnd_widget  (GimpContainerView *view,
                                                         GtkWidget *dnd_widget);


gimp_container_view_enable_dnd ()

void                gimp_container_view_enable_dnd      (GimpContainerView *editor,
                                                         GtkButton *button,
                                                         GType children_type);


gimp_container_view_select_item ()

gboolean            gimp_container_view_select_item     (GimpContainerView *view,
                                                         GimpViewable *viewable);


gimp_container_view_activate_item ()

void                gimp_container_view_activate_item   (GimpContainerView *view,
                                                         GimpViewable *viewable);


gimp_container_view_context_item ()

void                gimp_container_view_context_item    (GimpContainerView *view,
                                                         GimpViewable *viewable);


gimp_container_view_get_selected ()

gint                gimp_container_view_get_selected    (GimpContainerView *view,
                                                         GList **list);


gimp_container_view_lookup ()

gpointer            gimp_container_view_lookup          (GimpContainerView *view,
                                                         GimpViewable *viewable);


gimp_container_view_item_selected ()

gboolean            gimp_container_view_item_selected   (GimpContainerView *view,
                                                         GimpViewable *item);


gimp_container_view_multi_selected ()

gboolean            gimp_container_view_multi_selected  (GimpContainerView *view,
                                                         GList *items);


gimp_container_view_item_activated ()

void                gimp_container_view_item_activated  (GimpContainerView *view,
                                                         GimpViewable *item);


gimp_container_view_item_context ()

void                gimp_container_view_item_context    (GimpContainerView *view,
                                                         GimpViewable *item);


gimp_container_view_install_properties ()

void                gimp_container_view_install_properties
                                                        (GObjectClass *klass);

Installs the necessary properties for a class implementing GimpContainerView. A GimpContainerViewProp property is installed for each property, using the values from the GimpContainerViewProp enumeration. The caller must make sure itself that the enumeration values don't collide with some other property values they are using (that's what GIMP_CONTAINER_VIEW_PROP_LAST is good for).

klass :

the class structure for a type deriving from GObject

gimp_container_view_set_property ()

void                gimp_container_view_set_property    (GObject *object,
                                                         guint property_id,
                                                         const GValue *value,
                                                         GParamSpec *pspec);


gimp_container_view_get_property ()

void                gimp_container_view_get_property    (GObject *object,
                                                         guint property_id,
                                                         GValue *value,
                                                         GParamSpec *pspec);

Property Details

The "container" property

  "container"                GimpContainer*        : Read / Write


The "context" property

  "context"                  GimpContext*          : Read / Write


The "reorderable" property

  "reorderable"              gboolean              : Read / Write

Default value: FALSE


The "selection-mode" property

  "selection-mode"           GtkSelectionMode      : Read / Write

Default value: GTK_SELECTION_SINGLE


The "view-border-width" property

  "view-border-width"        gint                  : Read / Write / Construct

Allowed values: [0,16]

Default value: 1


The "view-size" property

  "view-size"                gint                  : Read / Write / Construct

Allowed values: [1,2048]

Default value: 32

Signal Details

The "activate-item" signal

void                user_function                      (GimpContainerViewInterface *gimpcontainerviewinterface,
                                                        GimpObject                 *arg1,
                                                        gpointer                    arg2,
                                                        gpointer                    user_data)                       : Run First

gimpcontainerviewinterface :

the object which received the signal.

user_data :

user data set when the signal handler was connected.

The "context-item" signal

void                user_function                      (GimpContainerViewInterface *gimpcontainerviewinterface,
                                                        GimpObject                 *arg1,
                                                        gpointer                    arg2,
                                                        gpointer                    user_data)                       : Run First

gimpcontainerviewinterface :

the object which received the signal.

user_data :

user data set when the signal handler was connected.

The "select-item" signal

gboolean            user_function                      (GimpContainerViewInterface *gimpcontainerviewinterface,
                                                        GimpObject                 *arg1,
                                                        gpointer                    arg2,
                                                        gpointer                    user_data)                       : Run Last

gimpcontainerviewinterface :

the object which received the signal.

user_data :

user data set when the signal handler was connected.