Trait clutter::prelude::TextExt [−][src]
pub trait TextExt: 'static {}Show methods
fn activate(&self) -> bool; fn coords_to_position(&self, x: f32, y: f32) -> i32; fn delete_chars(&self, n_chars: u32); fn delete_selection(&self) -> bool; fn delete_text(&self, start_pos: isize, end_pos: isize); fn get_activatable(&self) -> bool; fn get_attributes(&self) -> Option<AttrList>; fn get_buffer(&self) -> Option<TextBuffer>; fn get_chars(&self, start_pos: isize, end_pos: isize) -> Option<GString>; fn get_color(&self) -> Color; fn get_cursor_color(&self) -> Color; fn get_cursor_position(&self) -> i32; fn get_cursor_rect(&self) -> Rect; fn get_cursor_size(&self) -> u32; fn get_cursor_visible(&self) -> bool; fn get_editable(&self) -> bool; fn get_ellipsize(&self) -> EllipsizeMode; fn get_font_description(&self) -> Option<FontDescription>; fn get_font_name(&self) -> Option<GString>; fn get_justify(&self) -> bool; fn get_layout(&self) -> Option<Layout>; fn get_layout_offsets(&self) -> (i32, i32); fn get_line_alignment(&self) -> Alignment; fn get_line_wrap(&self) -> bool; fn get_line_wrap_mode(&self) -> WrapMode; fn get_max_length(&self) -> i32; fn get_password_char(&self) -> char; fn get_selectable(&self) -> bool; fn get_selected_text_color(&self) -> Color; fn get_selection(&self) -> Option<GString>; fn get_selection_bound(&self) -> i32; fn get_selection_color(&self) -> Color; fn get_single_line_mode(&self) -> bool; fn get_text(&self) -> Option<GString>; fn get_use_markup(&self) -> bool; fn insert_text(&self, text: &str, position: isize); fn insert_unichar(&self, wc: char); fn position_to_coords(&self, position: i32) -> Option<(f32, f32, f32)>; fn set_activatable(&self, activatable: bool); fn set_attributes(&self, attrs: Option<&AttrList>); fn set_buffer<P: IsA<TextBuffer>>(&self, buffer: &P); fn set_color(&self, color: &Color); fn set_cursor_color(&self, color: Option<&Color>); fn set_cursor_position(&self, position: i32); fn set_cursor_size(&self, size: i32); fn set_cursor_visible(&self, cursor_visible: bool); fn set_editable(&self, editable: bool); fn set_ellipsize(&self, mode: EllipsizeMode); fn set_font_description(&self, font_desc: &mut FontDescription); fn set_font_name(&self, font_name: Option<&str>); fn set_justify(&self, justify: bool); fn set_line_alignment(&self, alignment: Alignment); fn set_line_wrap(&self, line_wrap: bool); fn set_line_wrap_mode(&self, wrap_mode: WrapMode); fn set_markup(&self, markup: Option<&str>); fn set_max_length(&self, max: i32); fn set_password_char(&self, wc: char); fn set_preedit_string(
&self,
preedit_str: Option<&str>,
preedit_attrs: Option<&AttrList>,
cursor_pos: u32
); fn set_selectable(&self, selectable: bool); fn set_selected_text_color(&self, color: Option<&Color>); fn set_selection(&self, start_pos: isize, end_pos: isize); fn set_selection_bound(&self, selection_bound: i32); fn set_selection_color(&self, color: Option<&Color>); fn set_single_line_mode(&self, single_line: bool); fn set_text(&self, text: Option<&str>); fn set_use_markup(&self, setting: bool); fn get_property_cursor_color_set(&self) -> bool; fn get_property_selected_text_color_set(&self) -> bool; fn get_property_selection_color_set(&self) -> bool; fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_cursor_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_delete_text<F: Fn(&Self, i32, i32) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn emit_delete_text(&self, start_pos: i32, end_pos: i32); fn connect_text_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_activatable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_attributes_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_buffer_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_color_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_cursor_color_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_cursor_color_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_cursor_position_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_cursor_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_cursor_visible_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_editable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_ellipsize_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_font_description_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_font_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_justify_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_line_alignment_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_line_wrap_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_line_wrap_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_max_length_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_password_char_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_selectable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_selected_text_color_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_selected_text_color_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_selection_bound_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_selection_color_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_selection_color_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_single_line_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_use_markup_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
Required methods
fn activate(&self) -> bool
[src]
Emits the Text::activate
signal, if self
has been set
as activatable using TextExt::set_activatable
.
This function can be used to emit the ::activate signal inside
a Actor::captured-event
or Actor::key-press-event
signal handlers before the default signal handler for the
Text
is invoked.
Returns
true
if the ::activate signal has been emitted,
and false
otherwise
fn coords_to_position(&self, x: f32, y: f32) -> i32
[src]
Retrieves the position of the character at the given coordinates.
x
the X coordinate, relative to the actor
y
the Y coordinate, relative to the actor
Returns
the position of the character
fn delete_chars(&self, n_chars: u32)
[src]
Deletes n_chars
inside a Text
actor, starting from the
current cursor position.
Somewhat awkwardly, the cursor position is decremented by the same number of characters you’ve deleted.
n_chars
the number of characters to delete
fn delete_selection(&self) -> bool
[src]
Deletes the currently selected text
This function is only useful in subclasses of Text
Returns
true
if text was deleted or if the text actor
is empty, and false
otherwise
fn delete_text(&self, start_pos: isize, end_pos: isize)
[src]
Deletes the text inside a Text
actor between start_pos
and end_pos
.
The starting and ending positions are expressed in characters, not in bytes.
start_pos
starting position
end_pos
ending position
fn get_activatable(&self) -> bool
[src]
fn get_attributes(&self) -> Option<AttrList>
[src]
Gets the attribute list that was set on the Text
actor
TextExt::set_attributes
, if any.
Returns
the attribute list, or None
if none was set. The
returned value is owned by the Text
and should not be unreferenced.
fn get_buffer(&self) -> Option<TextBuffer>
[src]
fn get_chars(&self, start_pos: isize, end_pos: isize) -> Option<GString>
[src]
Retrieves the contents of the Text
actor between
start_pos
and end_pos
, but not including end_pos
.
The positions are specified in characters, not in bytes.
start_pos
start of text, in characters
end_pos
end of text, in characters
Returns
a newly allocated string with the contents of
the text actor between the specified positions. Use g_free
to free the resources when done
fn get_color(&self) -> Color
[src]
fn get_cursor_color(&self) -> Color
[src]
fn get_cursor_position(&self) -> i32
[src]
fn get_cursor_rect(&self) -> Rect
[src]
Retrieves the rectangle that contains the cursor.
The coordinates of the rectangle’s origin are in actor-relative coordinates.
rect
return location of a Rect
fn get_cursor_size(&self) -> u32
[src]
fn get_cursor_visible(&self) -> bool
[src]
fn get_editable(&self) -> bool
[src]
fn get_ellipsize(&self) -> EllipsizeMode
[src]
Returns the ellipsizing position of a Text
actor, as
set by TextExt::set_ellipsize
.
Returns
pango::EllipsizeMode
fn get_font_description(&self) -> Option<FontDescription>
[src]
Retrieves the pango::FontDescription
used by self
Returns
a pango::FontDescription
. The returned value is owned
by the Text
actor and it should not be modified or freed
fn get_font_name(&self) -> Option<GString>
[src]
Retrieves the font name as set by TextExt::set_font_name
.
Returns
a string containing the font name. The returned
string is owned by the Text
actor and should not be
modified or freed
fn get_justify(&self) -> bool
[src]
Retrieves whether the Text
actor should justify its contents
on both margins.
Returns
true
if the text should be justified
fn get_layout(&self) -> Option<Layout>
[src]
Retrieves the current pango::Layout
used by a Text
actor.
Returns
a pango::Layout
. The returned object is owned by
the Text
actor and should not be modified or freed
fn get_layout_offsets(&self) -> (i32, i32)
[src]
Obtains the coordinates where the Text
will draw the pango::Layout
representing the text.
x
location to store X offset of layout, or None
y
location to store Y offset of layout, or None
fn get_line_alignment(&self) -> Alignment
[src]
Retrieves the alignment of a Text
, as set by
TextExt::set_line_alignment
.
Returns
a pango::Alignment
fn get_line_wrap(&self) -> bool
[src]
Retrieves the value set using TextExt::set_line_wrap
.
Returns
true
if the Text
actor should wrap
its contents
fn get_line_wrap_mode(&self) -> WrapMode
[src]
Retrieves the line wrap mode used by the Text
actor.
See clutter_text_set_line_wrap_mode ().
Returns
the wrap mode used by the Text
fn get_max_length(&self) -> i32
[src]
Gets the maximum length of text that can be set into a text actor.
See TextExt::set_max_length
.
Returns
the maximum number of characters.
fn get_password_char(&self) -> char
[src]
Retrieves the character to use in place of the actual text
as set by TextExt::set_password_char
.
Returns
a Unicode character or 0 if the password character is not set
fn get_selectable(&self) -> bool
[src]
fn get_selected_text_color(&self) -> Color
[src]
fn get_selection(&self) -> Option<GString>
[src]
Retrieves the currently selected text.
Returns
a newly allocated string containing the currently
selected text, or None
. Use g_free
to free the returned
string.
fn get_selection_bound(&self) -> i32
[src]
Retrieves the other end of the selection of a Text
actor,
in characters from the current cursor position.
Returns
the position of the other end of the selection
fn get_selection_color(&self) -> Color
[src]
fn get_single_line_mode(&self) -> bool
[src]
Retrieves whether the Text
actor is in single line mode.
Returns
true
if the Text
actor is in single line mode
fn get_text(&self) -> Option<GString>
[src]
Retrieves a pointer to the current contents of a Text
actor.
If you need a copy of the contents for manipulating, either
use g_strdup
on the returned string, or use:
copy = clutter_text_get_chars (text, 0, -1);
Which will return a newly allocated string.
If the Text
actor is empty, this function will return
an empty string, and not None
.
Returns
the contents of the actor. The returned
string is owned by the Text
actor and should never be modified
or freed
fn get_use_markup(&self) -> bool
[src]
Retrieves whether the contents of the Text
actor should be
parsed for the Pango text markup.
Returns
true
if the contents will be parsed for markup
fn insert_text(&self, text: &str, position: isize)
[src]
Inserts text
into a Actor
at the given position.
If position
is a negative number, the text will be appended
at the end of the current contents of the Text
.
The position is expressed in characters, not in bytes.
text
the text to be inserted
position
the position of the insertion, or -1
fn insert_unichar(&self, wc: char)
[src]
fn position_to_coords(&self, position: i32) -> Option<(f32, f32, f32)>
[src]
Retrieves the coordinates of the given position
.
position
position in characters
x
return location for the X coordinate, or None
y
return location for the Y coordinate, or None
line_height
return location for the line height, or None
Returns
true
if the conversion was successful
fn set_activatable(&self, activatable: bool)
[src]
Sets whether a Text
actor should be activatable.
An activatable Text
actor will emit the Text::activate
signal whenever the ‘Enter’ (or ‘Return’) key is pressed; if it is not
activatable, a new line will be appended to the current content.
An activatable Text
must also be set as editable using
TextExt::set_editable
.
activatable
whether the Text
actor should be activatable
fn set_attributes(&self, attrs: Option<&AttrList>)
[src]
Sets the attributes list that are going to be applied to the
Text
contents.
The Text
actor will take a reference on the pango::AttrList
passed to this function.
attrs
a pango::AttrList
or None
to unset the attributes
fn set_buffer<P: IsA<TextBuffer>>(&self, buffer: &P)
[src]
fn set_color(&self, color: &Color)
[src]
Sets the color of the contents of a Text
actor.
The overall opacity of the Text
actor will be the
result of the alpha value of color
and the composited
opacity of the actor itself on the scenegraph, as returned
by ActorExt::get_paint_opacity
.
color
a Color
fn set_cursor_color(&self, color: Option<&Color>)
[src]
Sets the color of the cursor of a Text
actor.
If color
is None
, the cursor color will be the same as the
text color.
color
the color of the cursor, or None
to unset it
fn set_cursor_position(&self, position: i32)
[src]
Sets the cursor of a Text
actor at position
.
The position is expressed in characters, not in bytes.
position
the new cursor position, in characters
fn set_cursor_size(&self, size: i32)
[src]
Sets the size of the cursor of a Text
. The cursor
will only be visible if the Text:cursor-visible
property
is set to true
.
size
the size of the cursor, in pixels, or -1 to use the default value
fn set_cursor_visible(&self, cursor_visible: bool)
[src]
Sets whether the cursor of a Text
actor should be
visible or not.
The color of the cursor will be the same as the text color
unless TextExt::set_cursor_color
has been called.
The size of the cursor can be set using TextExt::set_cursor_size
.
The position of the cursor can be changed programmatically using
TextExt::set_cursor_position
.
cursor_visible
whether the cursor should be visible
fn set_editable(&self, editable: bool)
[src]
Sets whether the Text
actor should be editable.
An editable Text
with key focus set using
ActorExt::grab_key_focus
or StageExt::set_key_focus
will receive key events and will update its contents accordingly.
editable
whether the Text
should be editable
fn set_ellipsize(&self, mode: EllipsizeMode)
[src]
Sets the mode used to ellipsize (add an ellipsis: “…”) to the
text if there is not enough space to render the entire contents
of a Text
actor
mode
a pango::EllipsizeMode
fn set_font_description(&self, font_desc: &mut FontDescription)
[src]
Sets font_desc
as the font description for a Text
The pango::FontDescription
is copied by the Text
actor
so you can safely call pango::FontDescription::free
on it after
calling this function.
font_desc
a pango::FontDescription
fn set_font_name(&self, font_name: Option<&str>)
[src]
Sets the font used by a Text
. The font_name
string
must either be None
, which means that the font name from the
default Backend
will be used; or be something that can
be parsed by the pango::FontDescription::from_string
function,
like:
// Set the font to the system's Sans, 10 points
clutter_text_set_font_name (text, "Sans 10");
// Set the font to the system's Serif, 16 pixels
clutter_text_set_font_name (text, "Serif 16px");
// Set the font to Helvetica, 10 points
clutter_text_set_font_name (text, "Helvetica 10");
font_name
a font name, or None
to set the default font name
fn set_justify(&self, justify: bool)
[src]
Sets whether the text of the Text
actor should be justified
on both margins. This setting is ignored if Clutter is compiled
against Pango < 1.18.
justify
whether the text should be justified
fn set_line_alignment(&self, alignment: Alignment)
[src]
Sets the way that the lines of a wrapped label are aligned with respect to each other. This does not affect the overall alignment of the label within its allocated or specified width.
To align a Text
actor you should add it to a container
that supports alignment, or use the anchor point.
alignment
A pango::Alignment
fn set_line_wrap(&self, line_wrap: bool)
[src]
Sets whether the contents of a Text
actor should wrap,
if they don’t fit the size assigned to the actor.
line_wrap
whether the contents should wrap
fn set_line_wrap_mode(&self, wrap_mode: WrapMode)
[src]
If line wrapping is enabled (see TextExt::set_line_wrap
) this
function controls how the line wrapping is performed. The default is
pango::WrapMode::Word
which means wrap on word boundaries.
wrap_mode
the line wrapping mode
fn set_markup(&self, markup: Option<&str>)
[src]
Sets markup
as the contents of a Text
.
This is a convenience function for setting a string containing Pango markup, and it is logically equivalent to:
/* the order is important */
clutter_text_set_text (CLUTTER_TEXT (actor), markup);
clutter_text_set_use_markup (CLUTTER_TEXT (actor), true);
markup
a string containing Pango markup.
Passing None
is the same as passing “” (the empty string)
fn set_max_length(&self, max: i32)
[src]
Sets the maximum allowed length of the contents of the actor. If the current contents are longer than the given length, then they will be truncated to fit.
max
the maximum number of characters allowed in the text actor; 0 to disable or -1 to set the length of the current string
fn set_password_char(&self, wc: char)
[src]
Sets the character to use in place of the actual text in a password text actor.
If wc
is 0 the text will be displayed as it is entered in the
Text
actor.
wc
a Unicode character, or 0 to unset the password character
fn set_preedit_string(
&self,
preedit_str: Option<&str>,
preedit_attrs: Option<&AttrList>,
cursor_pos: u32
)
[src]
&self,
preedit_str: Option<&str>,
preedit_attrs: Option<&AttrList>,
cursor_pos: u32
)
Sets, or unsets, the pre-edit string. This function is useful
for input methods to display a string (with eventual specific
Pango attributes) before it is entered inside the Text
buffer.
The preedit string and attributes are ignored if the Text
actor is not editable.
This function should not be used by applications
preedit_str
the pre-edit string, or None
to unset it
preedit_attrs
the pre-edit string attributes
cursor_pos
the cursor position for the pre-edit string
fn set_selectable(&self, selectable: bool)
[src]
Sets whether a Text
actor should be selectable.
A selectable Text
will allow selecting its contents using
the pointer or the keyboard.
selectable
whether the Text
actor should be selectable
fn set_selected_text_color(&self, color: Option<&Color>)
[src]
Sets the selected text color of a Text
actor.
If color
is None
, the selected text color will be the same as the
selection color, which then falls back to cursor, and then text color.
color
the selected text color, or None
to unset it
fn set_selection(&self, start_pos: isize, end_pos: isize)
[src]
Selects the region of text between start_pos
and end_pos
.
This function changes the position of the cursor to match
start_pos
and the selection bound to match end_pos
.
start_pos
start of the selection, in characters
end_pos
end of the selection, in characters
fn set_selection_bound(&self, selection_bound: i32)
[src]
Sets the other end of the selection, starting from the current cursor position.
If selection_bound
is -1, the selection unset.
selection_bound
the position of the end of the selection, in characters
fn set_selection_color(&self, color: Option<&Color>)
[src]
Sets the color of the selection of a Text
actor.
If color
is None
, the selection color will be the same as the
cursor color, or if no cursor color is set either then it will be
the same as the text color.
color
the color of the selection, or None
to unset it
fn set_single_line_mode(&self, single_line: bool)
[src]
Sets whether a Text
actor should be in single line mode
or not. Only editable Text
s can be in single line
mode.
A text actor in single line mode will not wrap text and will clip the visible area to the predefined size. The contents of the text actor will scroll to display the end of the text if its length is bigger than the allocated width.
When setting the single line mode the Text:activatable
property is also set as a side effect. Instead of entering a new
line character, the text actor will emit the Text::activate
signal.
single_line
whether to enable single line mode
fn set_text(&self, text: Option<&str>)
[src]
Sets the contents of a Text
actor.
If the Text:use-markup
property was set to true
it
will be reset to false
as a side effect. If you want to
maintain the Text:use-markup
you should use the
TextExt::set_markup
function instead
text
the text to set. Passing None
is the same
as passing “” (the empty string)
fn set_use_markup(&self, setting: bool)
[src]
Sets whether the contents of the Text
actor contains markup
in Pango’s text markup language</link>
.
Setting Text:use-markup
on an editable Text
will
not have any effect except hiding the markup.
See also Text:use-markup
.
setting
true
if the text should be parsed for markup.
fn get_property_cursor_color_set(&self) -> bool
[src]
Will be set to true
if Text:cursor-color
has been set.
fn get_property_selected_text_color_set(&self) -> bool
[src]
Will be set to true
if Text:selected-text-color
has been set.
fn get_property_selection_color_set(&self) -> bool
[src]
Will be set to true
if Text:selection-color
has been set.
fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
The ::activate signal is emitted each time the actor is ‘activated’
by the user, normally by pressing the ‘Enter’ key. The signal is
emitted only if Text:activatable
is set to true
.
fn connect_cursor_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
The ::cursor-changed signal is emitted whenever the cursor position or size changes.
fn connect_delete_text<F: Fn(&Self, i32, i32) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
This signal is emitted when text is deleted from the actor by
the user. It is emitted before self_
text changes.
start_pos
the starting position
end_pos
the end position
fn emit_delete_text(&self, start_pos: i32, end_pos: i32)
[src]
fn connect_text_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
The ::text-changed signal is emitted after actor
’s text changes
fn connect_property_activatable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_attributes_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_buffer_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_color_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_cursor_color_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_cursor_color_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_cursor_position_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_cursor_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_cursor_visible_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_editable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_ellipsize_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_font_description_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_font_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_justify_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_line_alignment_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_line_wrap_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_line_wrap_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_max_length_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_password_char_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_selectable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_selected_text_color_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_selected_text_color_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_selection_bound_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_selection_color_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_selection_color_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_single_line_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_use_markup_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<Text>> TextExt for O
[src]
fn activate(&self) -> bool
[src]
fn coords_to_position(&self, x: f32, y: f32) -> i32
[src]
fn delete_chars(&self, n_chars: u32)
[src]
fn delete_selection(&self) -> bool
[src]
fn delete_text(&self, start_pos: isize, end_pos: isize)
[src]
fn get_activatable(&self) -> bool
[src]
fn get_attributes(&self) -> Option<AttrList>
[src]
fn get_buffer(&self) -> Option<TextBuffer>
[src]
fn get_chars(&self, start_pos: isize, end_pos: isize) -> Option<GString>
[src]
fn get_color(&self) -> Color
[src]
fn get_cursor_color(&self) -> Color
[src]
fn get_cursor_position(&self) -> i32
[src]
fn get_cursor_rect(&self) -> Rect
[src]
fn get_cursor_size(&self) -> u32
[src]
fn get_cursor_visible(&self) -> bool
[src]
fn get_editable(&self) -> bool
[src]
fn get_ellipsize(&self) -> EllipsizeMode
[src]
fn get_font_description(&self) -> Option<FontDescription>
[src]
fn get_font_name(&self) -> Option<GString>
[src]
fn get_justify(&self) -> bool
[src]
fn get_layout(&self) -> Option<Layout>
[src]
fn get_layout_offsets(&self) -> (i32, i32)
[src]
fn get_line_alignment(&self) -> Alignment
[src]
fn get_line_wrap(&self) -> bool
[src]
fn get_line_wrap_mode(&self) -> WrapMode
[src]
fn get_max_length(&self) -> i32
[src]
fn get_password_char(&self) -> char
[src]
fn get_selectable(&self) -> bool
[src]
fn get_selected_text_color(&self) -> Color
[src]
fn get_selection(&self) -> Option<GString>
[src]
fn get_selection_bound(&self) -> i32
[src]
fn get_selection_color(&self) -> Color
[src]
fn get_single_line_mode(&self) -> bool
[src]
fn get_text(&self) -> Option<GString>
[src]
fn get_use_markup(&self) -> bool
[src]
fn insert_text(&self, text: &str, position: isize)
[src]
fn insert_unichar(&self, wc: char)
[src]
fn position_to_coords(&self, position: i32) -> Option<(f32, f32, f32)>
[src]
fn set_activatable(&self, activatable: bool)
[src]
fn set_attributes(&self, attrs: Option<&AttrList>)
[src]
fn set_buffer<P: IsA<TextBuffer>>(&self, buffer: &P)
[src]
fn set_color(&self, color: &Color)
[src]
fn set_cursor_color(&self, color: Option<&Color>)
[src]
fn set_cursor_position(&self, position: i32)
[src]
fn set_cursor_size(&self, size: i32)
[src]
fn set_cursor_visible(&self, cursor_visible: bool)
[src]
fn set_editable(&self, editable: bool)
[src]
fn set_ellipsize(&self, mode: EllipsizeMode)
[src]
fn set_font_description(&self, font_desc: &mut FontDescription)
[src]
fn set_font_name(&self, font_name: Option<&str>)
[src]
fn set_justify(&self, justify: bool)
[src]
fn set_line_alignment(&self, alignment: Alignment)
[src]
fn set_line_wrap(&self, line_wrap: bool)
[src]
fn set_line_wrap_mode(&self, wrap_mode: WrapMode)
[src]
fn set_markup(&self, markup: Option<&str>)
[src]
fn set_max_length(&self, max: i32)
[src]
fn set_password_char(&self, wc: char)
[src]
fn set_preedit_string(
&self,
preedit_str: Option<&str>,
preedit_attrs: Option<&AttrList>,
cursor_pos: u32
)
[src]
&self,
preedit_str: Option<&str>,
preedit_attrs: Option<&AttrList>,
cursor_pos: u32
)
fn set_selectable(&self, selectable: bool)
[src]
fn set_selected_text_color(&self, color: Option<&Color>)
[src]
fn set_selection(&self, start_pos: isize, end_pos: isize)
[src]
fn set_selection_bound(&self, selection_bound: i32)
[src]
fn set_selection_color(&self, color: Option<&Color>)
[src]
fn set_single_line_mode(&self, single_line: bool)
[src]
fn set_text(&self, text: Option<&str>)
[src]
fn set_use_markup(&self, setting: bool)
[src]
fn get_property_cursor_color_set(&self) -> bool
[src]
fn get_property_selected_text_color_set(&self) -> bool
[src]
fn get_property_selection_color_set(&self) -> bool
[src]
fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
fn connect_cursor_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_delete_text<F: Fn(&Self, i32, i32) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn emit_delete_text(&self, start_pos: i32, end_pos: i32)
[src]
fn connect_text_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
fn connect_property_activatable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_attributes_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_buffer_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_color_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_cursor_color_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_cursor_color_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_cursor_position_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_cursor_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_cursor_visible_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_editable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_ellipsize_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_font_description_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_font_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_justify_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_line_alignment_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_line_wrap_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_line_wrap_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_max_length_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_password_char_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_selectable_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_selected_text_color_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_selected_text_color_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_selection_bound_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_selection_color_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_selection_color_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_single_line_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_use_markup_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId