GimpItemTree

GimpItemTree

Synopsis

                    GimpItemTree;
struct              GimpItemTreeClass;
void                gimp_item_tree_add_item             (GimpItemTree *tree,
                                                         GimpItem *item,
                                                         GimpItem *parent,
                                                         gint position);
GimpItem *          gimp_item_tree_get_active_item      (GimpItemTree *tree);
gboolean            gimp_item_tree_get_insert_pos       (GimpItemTree *tree,
                                                         GimpItem *item,
                                                         GimpItem **parent,
                                                         gint *position);
GimpItem *          gimp_item_tree_get_item_by_name     (GimpItemTree *tree,
                                                         const gchar *name);
GimpItemTree *      gimp_item_tree_new                  (GimpImage *image,
                                                         GType container_type,
                                                         GType item_type);
GimpItem *          gimp_item_tree_remove_item          (GimpItemTree *tree,
                                                         GimpItem *item,
                                                         GimpItem *new_active);
void                gimp_item_tree_rename_item          (GimpItemTree *tree,
                                                         GimpItem *item,
                                                         const gchar *new_name,
                                                         gboolean push_undo,
                                                         const gchar *undo_desc);
gboolean            gimp_item_tree_reorder_item         (GimpItemTree *tree,
                                                         GimpItem *item,
                                                         GimpItem *new_parent,
                                                         gint new_index,
                                                         gboolean push_undo,
                                                         const gchar *undo_desc);
void                gimp_item_tree_set_active_item      (GimpItemTree *tree,
                                                         GimpItem *item);

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpItemTree

Properties

  "active-item"              GimpItem*             : Read / Write
  "container-type"           GType*                : Read / Write / Construct Only
  "image"                    GimpImage*            : Read / Write / Construct Only
  "item-type"                GType*                : Read / Write / Construct Only

Description

Details

GimpItemTree

typedef struct _GimpItemTree GimpItemTree;


struct GimpItemTreeClass

struct GimpItemTreeClass {
  GimpObjectClass  parent_class;
};


gimp_item_tree_add_item ()

void                gimp_item_tree_add_item             (GimpItemTree *tree,
                                                         GimpItem *item,
                                                         GimpItem *parent,
                                                         gint position);


gimp_item_tree_get_active_item ()

GimpItem *          gimp_item_tree_get_active_item      (GimpItemTree *tree);


gimp_item_tree_get_insert_pos ()

gboolean            gimp_item_tree_get_insert_pos       (GimpItemTree *tree,
                                                         GimpItem *item,
                                                         GimpItem **parent,
                                                         gint *position);


gimp_item_tree_get_item_by_name ()

GimpItem *          gimp_item_tree_get_item_by_name     (GimpItemTree *tree,
                                                         const gchar *name);


gimp_item_tree_new ()

GimpItemTree *      gimp_item_tree_new                  (GimpImage *image,
                                                         GType container_type,
                                                         GType item_type);


gimp_item_tree_remove_item ()

GimpItem *          gimp_item_tree_remove_item          (GimpItemTree *tree,
                                                         GimpItem *item,
                                                         GimpItem *new_active);


gimp_item_tree_rename_item ()

void                gimp_item_tree_rename_item          (GimpItemTree *tree,
                                                         GimpItem *item,
                                                         const gchar *new_name,
                                                         gboolean push_undo,
                                                         const gchar *undo_desc);


gimp_item_tree_reorder_item ()

gboolean            gimp_item_tree_reorder_item         (GimpItemTree *tree,
                                                         GimpItem *item,
                                                         GimpItem *new_parent,
                                                         gint new_index,
                                                         gboolean push_undo,
                                                         const gchar *undo_desc);


gimp_item_tree_set_active_item ()

void                gimp_item_tree_set_active_item      (GimpItemTree *tree,
                                                         GimpItem *item);

Property Details

The "active-item" property

  "active-item"              GimpItem*             : Read / Write


The "container-type" property

  "container-type"           GType*                : Read / Write / Construct Only

Allowed values: GimpItemStack


The "image" property

  "image"                    GimpImage*            : Read / Write / Construct Only


The "item-type" property

  "item-type"                GType*                : Read / Write / Construct Only

Allowed values: GimpItem