GimpTextLayer

GimpTextLayer

Synopsis

                    GimpTextLayer;
GimpLayer *         gimp_text_layer_new                 (GimpImage *image,
                                                         GimpText *text);
void                gimp_text_layer_set_text            (GimpTextLayer *layer,
                                                         GimpText *text);
GimpText *          gimp_text_layer_get_text            (GimpTextLayer *layer);
void                gimp_text_layer_discard             (GimpTextLayer *layer);
void                gimp_text_layer_set                 (GimpTextLayer *layer,
                                                         const gchar *undo_desc,
                                                         const gchar *first_property_name,
                                                         ...);
gboolean            gimp_item_is_text_layer             (GimpItem *item);

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpViewable
               +----GimpItem
                     +----GimpDrawable
                           +----GimpLayer
                                 +----GimpTextLayer

Implemented Interfaces

GimpTextLayer implements GimpConfigInterface and GimpPickableInterface.

Properties

  "auto-rename"              gboolean              : Read / Write / Construct
  "modified"                 gboolean              : Read / Write / Construct
  "text"                     GimpText*             : Read / Write

Description

Details

GimpTextLayer

typedef struct _GimpTextLayer GimpTextLayer;


gimp_text_layer_new ()

GimpLayer *         gimp_text_layer_new                 (GimpImage *image,
                                                         GimpText *text);

Creates a new text layer.

image :

the GimpImage the layer should belong to

text :

a GimpText object

Returns :

a new GimpTextLayer or NULL in case of a problem

gimp_text_layer_set_text ()

void                gimp_text_layer_set_text            (GimpTextLayer *layer,
                                                         GimpText *text);


gimp_text_layer_get_text ()

GimpText *          gimp_text_layer_get_text            (GimpTextLayer *layer);


gimp_text_layer_discard ()

void                gimp_text_layer_discard             (GimpTextLayer *layer);

Discards the text information. This makes layer behave like a normal layer.

layer :

a GimpTextLayer

gimp_text_layer_set ()

void                gimp_text_layer_set                 (GimpTextLayer *layer,
                                                         const gchar *undo_desc,
                                                         const gchar *first_property_name,
                                                         ...);


gimp_item_is_text_layer ()

gboolean            gimp_item_is_text_layer             (GimpItem *item);

Property Details

The "auto-rename" property

  "auto-rename"              gboolean              : Read / Write / Construct

Default value: TRUE


The "modified" property

  "modified"                 gboolean              : Read / Write / Construct

Default value: FALSE


The "text" property

  "text"                     GimpText*             : Read / Write