GimpContainerView

GimpContainerView

Synopsis

enum                GimpContainerViewProp;
                    GimpContainerView;
                    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);
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);
gpointer            gimp_container_view_lookup          (GimpContainerView *view,
                                                         GimpViewable *viewable);
gboolean            gimp_container_view_item_selected   (GimpContainerView *view,
                                                         GimpViewable *item);
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);
void                gimp_container_view_remove_active   (GimpContainerView *view);

Object Hierarchy

  GInterface
   +----GimpContainerViewInterface

Prerequisites

GimpContainerViewInterface requires GtkWidget.

Known Implementations

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

Properties

  "container"                GimpContainer*        : Read / Write
  "context"                  GimpContext*          : Read / Write
  "reorderable"              gboolean              : 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_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;


GimpContainerView

typedef struct _GimpContainerView GimpContainerView;


GimpContainerViewInterface

typedef struct _GimpContainerViewInterface GimpContainerViewInterface;


gimp_container_view_get_container ()

GimpContainer*      gimp_container_view_get_container   (GimpContainerView *view);

view :

Returns :


gimp_container_view_set_container ()

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

view :

container :


gimp_container_view_get_context ()

GimpContext*        gimp_container_view_get_context     (GimpContainerView *view);

view :

Returns :


gimp_container_view_set_context ()

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

view :

context :


gimp_container_view_get_view_size ()

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

view :

view_border_width :

Returns :


gimp_container_view_set_view_size ()

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

view :

view_size :

view_border_width :


gimp_container_view_get_reorderable ()

gboolean            gimp_container_view_get_reorderable (GimpContainerView *view);

view :

Returns :


gimp_container_view_set_reorderable ()

void                gimp_container_view_set_reorderable (GimpContainerView *view,
                                                         gboolean reorderable);

view :

reorderable :


gimp_container_view_get_dnd_widget ()

GtkWidget*          gimp_container_view_get_dnd_widget  (GimpContainerView *view);

view :

Returns :


gimp_container_view_set_dnd_widget ()

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

view :

dnd_widget :


gimp_container_view_enable_dnd ()

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

editor :

button :

children_type :


gimp_container_view_select_item ()

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

view :

viewable :

Returns :


gimp_container_view_activate_item ()

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

view :

viewable :


gimp_container_view_context_item ()

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

view :

viewable :


gimp_container_view_lookup ()

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

view :

viewable :

Returns :


gimp_container_view_item_selected ()

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

view :

item :

Returns :


gimp_container_view_item_activated ()

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

view :

item :


gimp_container_view_item_context ()

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

view :

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);

object :

property_id :

value :

pspec :


gimp_container_view_get_property ()

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

object :

property_id :

value :

pspec :


gimp_container_view_remove_active ()

void                gimp_container_view_remove_active   (GimpContainerView *view);

view :

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 "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.

arg1 :

arg2 :

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.

arg1 :

arg2 :

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.

arg1 :

arg2 :

user_data :

user data set when the signal handler was connected.

Returns :