=head1 NAME

Gtk2::TextTag

=head1 HIERARCHY

  Glib::Object
  +----Gtk2::TextTag


=head1 METHODS

=head2 texttag = Gtk2::TextTag-E<gt>B<new> ($name=undef)

=over

=over

=item * $name (string or undef) 

=back

=back

=head2 boolean = $tag-E<gt>B<event> ($event_object, $event, $iter)

=over

=over

=item * $event_object (Glib::Object) 

=item * $event (Gtk2::Gdk::Event) 

=item * $iter (Gtk2::TextIter) 

=back

=back

=head2 integer = $tag-E<gt>B<get_priority> 

=over

=back

=head2 $tag-E<gt>B<set_priority> ($priority)

=over

=over

=item * $priority (integer) 

=back

=back


=head1 PROPERTIES

=over

=item 'background' (string : writable)

Background color as a string

=item 'background-full-height' (boolean : readable / writable)

Whether the background color fills the entire line height or only the height of the tagged characters

=item 'background-full-height-set' (boolean : readable / writable)

Whether this tag affects background height

=item 'background-gdk' (Gtk2::Gdk::Color : readable / writable)

Background color as a (possibly unallocated) GdkColor

=item 'background-set' (boolean : readable / writable)

Whether this tag affects the background color

=item 'background-stipple' (Gtk2::Gdk::Pixmap : readable / writable)

Bitmap to use as a mask when drawing the text background

=item 'background-stipple-set' (boolean : readable / writable)

Whether this tag affects the background stipple

=item 'direction' (Gtk2::TextDirection : readable / writable)

Text direction, e.g. right-to-left or left-to-right

=item 'editable' (boolean : readable / writable)

Whether the text can be modified by the user

=item 'editable-set' (boolean : readable / writable)

Whether this tag affects text editability

=item 'family' (string : readable / writable)

Name of the font family, e.g. Sans, Helvetica, Times, Monospace

=item 'family-set' (boolean : readable / writable)

Whether this tag affects the font family

=item 'font' (string : readable / writable)

Font description as a string, e.g. "Sans Italic 12"

=item 'font-desc' (Gtk2::Pango::FontDescription : readable / writable)

Font description as a PangoFontDescription struct

=item 'foreground' (string : writable)

Foreground color as a string

=item 'foreground-gdk' (Gtk2::Gdk::Color : readable / writable)

Foreground color as a (possibly unallocated) GdkColor

=item 'foreground-set' (boolean : readable / writable)

Whether this tag affects the foreground color

=item 'foreground-stipple' (Gtk2::Gdk::Pixmap : readable / writable)

Bitmap to use as a mask when drawing the text foreground

=item 'foreground-stipple-set' (boolean : readable / writable)

Whether this tag affects the foreground stipple

=item 'indent' (integer : readable / writable)

Amount to indent the paragraph, in pixels

=item 'indent-set' (boolean : readable / writable)

Whether this tag affects indentation

=item 'invisible' (boolean : readable / writable)

Whether this text is hidden. Not implemented in GTK 2.0

=item 'invisible-set' (boolean : readable / writable)

Whether this tag affects text visibility

=item 'justification' (Gtk2::Justification : readable / writable)

Left, right, or center justification

=item 'justification-set' (boolean : readable / writable)

Whether this tag affects paragraph justification

=item 'language' (string : readable / writable)

The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If not set, an appropriate default will be used.

=item 'language-set' (boolean : readable / writable)

Whether this tag affects the language the text is rendered as

=item 'left-margin' (integer : readable / writable)

Width of the left margin in pixels

=item 'left-margin-set' (boolean : readable / writable)

Whether this tag affects the left margin

=item 'name' (string : readable / writable / construct-only)

Name used to refer to the text tag. NULL for anonymous tags

=item 'pixels-above-lines' (integer : readable / writable)

Pixels of blank space above paragraphs

=item 'pixels-above-lines-set' (boolean : readable / writable)

Whether this tag affects the number of pixels above lines

=item 'pixels-below-lines' (integer : readable / writable)

Pixels of blank space below paragraphs

=item 'pixels-below-lines-set' (boolean : readable / writable)

Whether this tag affects the number of pixels above lines

=item 'pixels-inside-wrap' (integer : readable / writable)

Pixels of blank space between wrapped lines in a paragraph

=item 'pixels-inside-wrap-set' (boolean : readable / writable)

Whether this tag affects the number of pixels between wrapped lines

=item 'right-margin' (integer : readable / writable)

Width of the right margin in pixels

=item 'right-margin-set' (boolean : readable / writable)

Whether this tag affects the right margin

=item 'rise' (integer : readable / writable)

Offset of text above the baseline (below the baseline if rise is negative) in pixels

=item 'rise-set' (boolean : readable / writable)

Whether this tag affects the rise

=item 'scale' (double : readable / writable)

Font size as a scale factor relative to the default font size. This properly adapts to theme changes etc. so is recommended. Pango predefines some scales such as PANGO_SCALE_X_LARGE

=item 'scale-set' (boolean : readable / writable)

Whether this tag scales the font size by a factor

=item 'size' (integer : readable / writable)

Font size in Pango units

=item 'size-points' (double : readable / writable)

Font size in points

=item 'size-set' (boolean : readable / writable)

Whether this tag affects the font size

=item 'stretch' (Gtk2::Pango::Stretch : readable / writable)

Font stretch as a PangoStretch, e.g. PANGO_STRETCH_CONDENSED

=item 'stretch-set' (boolean : readable / writable)

Whether this tag affects the font stretch

=item 'strikethrough' (boolean : readable / writable)

Whether to strike through the text

=item 'strikethrough-set' (boolean : readable / writable)

Whether this tag affects strikethrough

=item 'style' (Gtk2::Pango::Style : readable / writable)

Font style as a PangoStyle, e.g. PANGO_STYLE_ITALIC

=item 'style-set' (boolean : readable / writable)

Whether this tag affects the font style

=item 'tabs' (Gtk2::Pango::TabArray : readable / writable)

Custom tabs for this text

=item 'tabs-set' (boolean : readable / writable)

Whether this tag affects tabs

=item 'underline' (Gtk2::Pango::Underline : readable / writable)

Style of underline for this text

=item 'underline-set' (boolean : readable / writable)

Whether this tag affects underlining

=item 'variant' (Gtk2::Pango::Variant : readable / writable)

Font variant as a PangoVariant, e.g. PANGO_VARIANT_SMALL_CAPS

=item 'variant-set' (boolean : readable / writable)

Whether this tag affects the font variant

=item 'weight' (integer : readable / writable)

Font weight as an integer, see predefined values in PangoWeight; for example, PANGO_WEIGHT_BOLD

=item 'weight-set' (boolean : readable / writable)

Whether this tag affects the font weight

=item 'wrap-mode' (Gtk2::WrapMode : readable / writable)

Whether to wrap lines never, at word boundaries, or at character boundaries

=item 'wrap-mode-set' (boolean : readable / writable)

Whether this tag affects line wrap mode

=back


=head1 SIGNALS

=over

=item boolean = B<event> (Gtk2::TextTag, Glib::Object, Gtk2::Gdk::Event, Gtk2::TextIter)

=back


=head1 SEE ALSO

L<Gtk2>, L<Glib::Object>

=head1 COPYRIGHT

Copyright (C) 2003-2005 by the gtk2-perl team.

This software is licensed under the LGPL.  See L<Gtk2> for a full notice.


=cut

