GimpTextOptions

GimpTextOptions

Synopsis

struct              GimpTextOptions;
void                gimp_text_options_connect_text      (GimpTextOptions *options,
                                                         GimpText *text);
GtkWidget *         gimp_text_options_gui               (GimpToolOptions *tool_options);
GtkWidget *         gimp_text_options_editor_new        (GtkWindow *parent,
                                                         Gimp *gimp,
                                                         GimpTextOptions *options,
                                                         GimpMenuFactory *menu_factory,
                                                         const gchar *title,
                                                         GimpText *text,
                                                         GimpTextBuffer *text_buffer,
                                                         gdouble xres,
                                                         gdouble yres);

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpViewable
               +----GimpContext
                     +----GimpToolOptions
                           +----GimpTextOptions

Implemented Interfaces

GimpTextOptions implements GimpConfigInterface and GimpRectangleOptionsInterface.

Properties

  "antialias"                gboolean              : Read / Write / Construct
  "base-direction"           GimpTextDirection     : Read / Write / Construct
  "box-mode"                 GimpTextBoxMode       : Read / Write / Construct
  "font-size"                gdouble               : Read / Write / Construct
  "font-size-unit"           GimpUnit              : Read / Write / Construct
  "font-view-size"           gint                  : Read / Write / Construct
  "font-view-type"           GimpViewType          : Read / Write / Construct
  "highlight"                gboolean              : Read / Write / Construct
  "hint-style"               GimpTextHintStyle     : Read / Write / Construct
  "indent"                   gdouble               : Read / Write / Construct
  "justify"                  GimpTextJustification  : Read / Write / Construct
  "language"                 gchar*                : Read / Write / Construct
  "letter-spacing"           gdouble               : Read / Write / Construct
  "line-spacing"             gdouble               : Read / Write / Construct
  "use-editor"               gboolean              : Read / Write / Construct

Description

Details

struct GimpTextOptions

struct GimpTextOptions;


gimp_text_options_connect_text ()

void                gimp_text_options_connect_text      (GimpTextOptions *options,
                                                         GimpText *text);


gimp_text_options_gui ()

GtkWidget *         gimp_text_options_gui               (GimpToolOptions *tool_options);


gimp_text_options_editor_new ()

GtkWidget *         gimp_text_options_editor_new        (GtkWindow *parent,
                                                         Gimp *gimp,
                                                         GimpTextOptions *options,
                                                         GimpMenuFactory *menu_factory,
                                                         const gchar *title,
                                                         GimpText *text,
                                                         GimpTextBuffer *text_buffer,
                                                         gdouble xres,
                                                         gdouble yres);

Property Details

The "antialias" property

  "antialias"                gboolean              : Read / Write / Construct

Default value: TRUE


The "base-direction" property

  "base-direction"           GimpTextDirection     : Read / Write / Construct

Default value: GIMP_TEXT_DIRECTION_LTR


The "box-mode" property

  "box-mode"                 GimpTextBoxMode       : Read / Write / Construct

Whether text flows into rectangular shape or moves into a new line when you press Enter.

Default value: GIMP_TEXT_BOX_DYNAMIC


The "font-size" property

  "font-size"                gdouble               : Read / Write / Construct

Font size.

Allowed values: [0,8192]

Default value: 18


The "font-size-unit" property

  "font-size-unit"           GimpUnit              : Read / Write / Construct

Font size unit.

Allowed values: [0,65535]

Default value: 0


The "font-view-size" property

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

Allowed values: [12,64]

Default value: 24


The "font-view-type" property

  "font-view-type"           GimpViewType          : Read / Write / Construct

Default value: GIMP_VIEW_TYPE_LIST


The "highlight" property

  "highlight"                gboolean              : Read / Write / Construct

Default value: FALSE


The "hint-style" property

  "hint-style"               GimpTextHintStyle     : Read / Write / Construct

Hinting alters the font outline to produce a crisp bitmap at small sizes.

Default value: GIMP_TEXT_HINT_STYLE_MEDIUM


The "indent" property

  "indent"                   gdouble               : Read / Write / Construct

Indentation of the first line.

Allowed values: [-8192,8192]

Default value: 0


The "justify" property

  "justify"                  GimpTextJustification  : Read / Write / Construct

Text alignment.

Default value: GIMP_TEXT_JUSTIFY_LEFT


The "language" property

  "language"                 gchar*                : Read / Write / Construct

The text language may have an effect on the way the text is rendered.

Default value: "c"


The "letter-spacing" property

  "letter-spacing"           gdouble               : Read / Write / Construct

Adjust letter spacing.

Allowed values: [-8192,8192]

Default value: 0


The "line-spacing" property

  "line-spacing"             gdouble               : Read / Write / Construct

Adjust line spacing.

Allowed values: [-8192,8192]

Default value: 0


The "use-editor" property

  "use-editor"               gboolean              : Read / Write / Construct

Use an external editor window for text entry.

Default value: FALSE