Class: Clutter::Text
- Defined in:
- lib/clutter/text.rb
Overview
The Clutter::TextClass struct contains only private data.
Instance Method Summary collapse
-
#activatable ⇒ Boolean
Retrieves whether a Clutter::Text is activatable or not.
-
#activatable=(activatable) ⇒ Boolean
Toggles whether return invokes the activate signal or not.
-
#activatable? ⇒ Boolean
Toggles whether return invokes the activate signal or not.
-
#activate ⇒ Boolean
Emits the Clutter::Text::activate signal, if self has been set as activatable using clutter_text_set_activatable().
-
#attributes ⇒ Pango::AttrList
A list of Pango::StyleAttributes to be applied to the contents of the Clutter::Text actor.
-
#attributes=(attributes) ⇒ Pango::AttrList
A list of Pango::StyleAttributes to be applied to the contents of the Clutter::Text actor.
-
#buffer ⇒ Clutter::TextBuffer
The buffer which stores the text for this Clutter::Text.
-
#buffer=(buffer) ⇒ Clutter::TextBuffer
The buffer which stores the text for this Clutter::Text.
-
#color ⇒ Clutter::Color
The color used to render the text.
-
#color=(color) ⇒ Clutter::Color
The color used to render the text.
-
#coords_to_position(x, y) ⇒ Integer
Retrieves the position of the character at the given coordinates.
-
#cursor_color ⇒ Clutter::Color
The color of the cursor.
-
#cursor_color=(cursor_color) ⇒ Clutter::Color
The color of the cursor.
-
#cursor_color_set=(cursor_color_set) ⇒ Boolean
Will be set to true if Clutter::Text:cursor-color has been set.
-
#cursor_color_set? ⇒ Boolean
Will be set to true if Clutter::Text:cursor-color has been set.
-
#cursor_position ⇒ Integer
The current input cursor position.
-
#cursor_position=(cursor_position) ⇒ Integer
The current input cursor position.
-
#cursor_size ⇒ Integer
The size of the cursor, in pixels.
-
#cursor_size=(cursor_size) ⇒ Integer
The size of the cursor, in pixels.
-
#cursor_visible ⇒ Boolean
Retrieves whether the cursor of a Clutter::Text actor is visible.
-
#cursor_visible=(cursor_visible) ⇒ Boolean
Whether the input cursor is visible or not.
-
#cursor_visible? ⇒ Boolean
Whether the input cursor is visible or not.
-
#delete_chars(n_chars) ⇒ nil
Deletes n_chars inside a Clutter::Text actor, starting from the current cursor position.
-
#delete_selection ⇒ Boolean
Deletes the currently selected text.
-
#delete_text(start_pos, end_pos) ⇒ nil
Deletes the text inside a Clutter::Text actor between start_pos and end_pos.
-
#editable ⇒ Boolean
Retrieves whether a Clutter::Text is editable or not.
-
#editable=(editable) ⇒ Boolean
Whether key events delivered to the actor causes editing.
-
#editable? ⇒ Boolean
Whether key events delivered to the actor causes editing.
-
#ellipsize ⇒ Pango::EllipsizeMode
The preferred place to ellipsize the contents of the Clutter::Text actor.
-
#ellipsize=(ellipsize) ⇒ Pango::EllipsizeMode
The preferred place to ellipsize the contents of the Clutter::Text actor.
-
#font_description ⇒ Pango::FontDescription
The Pango::FontDescription that should be used by the #ClutterText.
-
#font_description=(font_description) ⇒ Pango::FontDescription
The Pango::FontDescription that should be used by the #ClutterText.
-
#font_name ⇒ String
The font to be used by the Clutter::Text, as a string that can be parsed by pango_font_description_from_string().
-
#font_name=(font_name) ⇒ String
The font to be used by the Clutter::Text, as a string that can be parsed by pango_font_description_from_string().
-
#get_chars(start_pos, end_pos) ⇒ String
Retrieves the contents of the Clutter::Text actor between start_pos and end_pos, but not including end_pos.
-
#get_color(color) ⇒ nil
Retrieves the text color as set by clutter_text_set_color().
-
#get_cursor_color(color) ⇒ nil
Retrieves the color of the cursor of a Clutter::Text actor.
-
#get_cursor_rect(rect) ⇒ nil
Retrieves the rectangle that contains the cursor.
-
#get_layout_offsets(x, y) ⇒ nil
Obtains the coordinates where the Clutter::Text will draw the #PangoLayout representing the text.
-
#get_selected_text_color(color) ⇒ nil
Retrieves the color of selected text of a Clutter::Text actor.
-
#get_selection_color(color) ⇒ nil
Retrieves the color of the selection of a Clutter::Text actor.
-
#initialize(font_name, text) ⇒ Clutter::Actor
constructor
Creates a new Clutter::Text actor, using font_name as the font description; text will be used to set the contents of the actor.
-
#insert_text(text, position) ⇒ nil
Inserts text into a Clutter::Actor at the given position.
-
#insert_unichar(wc) ⇒ nil
Inserts wc at the current cursor position of a Clutter::Text actor.
-
#justify ⇒ Boolean
Retrieves whether the Clutter::Text actor should justify its contents on both margins.
-
#justify=(justify) ⇒ Boolean
Whether the contents of the Clutter::Text should be justified on both margins.
-
#justify? ⇒ Boolean
Whether the contents of the Clutter::Text should be justified on both margins.
-
#layout ⇒ Pango::Layout
Retrieves the current Pango::Layout used by a #ClutterText actor.
-
#line_alignment ⇒ Pango::Alignment
The preferred alignment for the text.
-
#line_alignment=(line_alignment) ⇒ Pango::Alignment
The preferred alignment for the text.
-
#line_wrap ⇒ Boolean
Retrieves the value set using clutter_text_set_line_wrap().
-
#line_wrap=(line_wrap) ⇒ Boolean
Whether to wrap the lines of Clutter::Text:text if the contents exceed the available allocation.
-
#line_wrap? ⇒ Boolean
Whether to wrap the lines of Clutter::Text:text if the contents exceed the available allocation.
-
#line_wrap_mode ⇒ Pango::WrapMode
If Clutter::Text:line-wrap is set to true, this property will control how the text is wrapped.
-
#line_wrap_mode=(line_wrap_mode) ⇒ Pango::WrapMode
If Clutter::Text:line-wrap is set to true, this property will control how the text is wrapped.
-
#markup=(markup) ⇒ nil
Sets markup as the contents of a Clutter::Text.
-
#max_length ⇒ Integer
The maximum length of the contents of the Clutter::Text actor.
-
#max_length=(max_length) ⇒ Integer
The maximum length of the contents of the Clutter::Text actor.
-
#password_char ⇒ Integer
If non-zero, the character that should be used in place of the actual text in a password text actor.
-
#password_char=(password_char) ⇒ Integer
If non-zero, the character that should be used in place of the actual text in a password text actor.
-
#position ⇒ Integer
The current input cursor position.
-
#position=(position) ⇒ Integer
The current input cursor position.
-
#position_to_coords(position, x, y, line_height) ⇒ Boolean
Retrieves the coordinates of the given position.
-
#selectable ⇒ Boolean
Retrieves whether a Clutter::Text is selectable or not.
-
#selectable=(selectable) ⇒ Boolean
Whether it is possible to select text, either using the pointer or the keyboard.
-
#selectable? ⇒ Boolean
Whether it is possible to select text, either using the pointer or the keyboard.
-
#selected_text_color ⇒ Clutter::Color
The color of selected text.
-
#selected_text_color=(selected_text_color) ⇒ Clutter::Color
The color of selected text.
-
#selected_text_color_set=(selected_text_color_set) ⇒ Boolean
Will be set to true if Clutter::Text:selected-text-color has been set.
-
#selected_text_color_set? ⇒ Boolean
Will be set to true if Clutter::Text:selected-text-color has been set.
-
#selection ⇒ String
Retrieves the currently selected text.
-
#selection_bound ⇒ Integer
The current input cursor position.
-
#selection_bound=(selection_bound) ⇒ Integer
The current input cursor position.
-
#selection_color ⇒ Clutter::Color
The color of the selection.
-
#selection_color=(selection_color) ⇒ Clutter::Color
The color of the selection.
-
#selection_color_set=(selection_color_set) ⇒ Boolean
Will be set to true if Clutter::Text:selection-color has been set.
-
#selection_color_set? ⇒ Boolean
Will be set to true if Clutter::Text:selection-color has been set.
-
#set_preedit_string(preedit_str, preedit_attrs, cursor_pos) ⇒ nil
Sets, or unsets, the pre-edit string.
-
#set_selection(start_pos, end_pos) ⇒ nil
Selects the region of text between start_pos and end_pos.
-
#single_line_mode ⇒ Boolean
Retrieves whether the Clutter::Text actor is in single line mode.
-
#single_line_mode=(single_line_mode) ⇒ Boolean
Whether the Clutter::Text actor should be in single line mode or not.
-
#single_line_mode? ⇒ Boolean
Whether the Clutter::Text actor should be in single line mode or not.
-
#text ⇒ String
The text to render inside the actor.
-
#text=(text) ⇒ String
The text to render inside the actor.
-
#use_markup ⇒ Boolean
Retrieves whether the contents of the Clutter::Text actor should be parsed for the Pango text markup.
-
#use_markup=(use_markup) ⇒ Boolean
Whether the text includes Pango markup.
-
#use_markup? ⇒ Boolean
Whether the text includes Pango markup.
Methods inherited from Actor
#accessible, #actions, #actions=, #add_action, #add_action_with_name, #add_child, #add_constraint, #add_constraint_with_name, #add_effect, #add_effect_with_name, #add_transition, #allocate, #allocate_align_fill, #allocate_available_size, #allocate_preferred_size, #allocation, #allocation=, #anchor_gravity, #anchor_gravity=, #anchor_point_from_gravity=, #anchor_point_gravity, #anchor_x, #anchor_x=, #anchor_y, #anchor_y=, #animate, #animate_with_alpha, #animate_with_alphav, #animate_with_timeline, #animate_with_timelinev, #animatev, #animation, #apply_relative_transform_to_point, #apply_transform_to_point, #background_color, #background_color=, #background_color_set=, #background_color_set?, #bind_model, #bind_model_with_properties, #child_transform, #child_transform=, #child_transform_set=, #child_transform_set?, #children, #clear_actions, #clear_constraints, #clear_effects, #clip, #clip=, #clip_rect, #clip_rect=, #clip_to_allocation, #clip_to_allocation=, #clip_to_allocation?, #constraints, #constraints=, #contains, #content, #content=, #content_box, #content_box=, #content_gravity, #content_gravity=, #content_repeat, #content_repeat=, #continue_paint, #create_pango_context, #create_pango_layout, #default_paint_volume, #depth, #depth=, #destroy, #destroy_all_children, #detach_animation, #easing_delay, #easing_delay=, #easing_duration, #easing_duration=, #easing_mode, #easing_mode=, #effect=, #effects, #event, #first_child, #first_child=, #fixed_position_set, #fixed_position_set=, #fixed_position_set?, #fixed_x, #fixed_x=, #fixed_y, #fixed_y=, #flags, #flags=, #geometry=, #get_abs_allocation_vertices, #get_action, #get_allocation_box, #get_allocation_geometry, #get_allocation_vertices, #get_anchor_point, #get_background_color, #get_child_at_index, #get_child_transform, #get_clip, #get_constraint, #get_content_box, #get_content_scaling_filters, #get_effect, #get_geometry, #get_margin, #get_paint_box, #get_pivot_point, #get_position, #get_preferred_height, #get_preferred_size, #get_preferred_width, #get_rotation, #get_rotation_angle, #get_scale, #get_scale_center, #get_size, #get_transform, #get_transformation_matrix, #get_transformed_paint_volume, #get_transformed_position, #get_transformed_size, #get_transition, #get_translation, #gid, #grab_key_focus, #has_actions, #has_allocation, #has_clip, #has_clip=, #has_clip?, #has_constraints, #has_effects, #has_key_focus, #has_overlaps, #has_pointer, #has_pointer=, #has_pointer?, #height, #height=, #hide, #hide_all, #insert_child_above, #insert_child_at_index, #insert_child_below, #is_in_clone_paint, #is_mapped, #is_realized, #is_rotated, #is_scaled, #is_visible, #last_child, #last_child=, #layout_manager, #layout_manager=, #lower, #lower_bottom, #magnification_filter, #magnification_filter=, #map, #mapped=, #mapped?, #margin=, #margin_bottom, #margin_bottom=, #margin_left, #margin_left=, #margin_right, #margin_right=, #margin_top, #margin_top=, #min_height, #min_height=, #min_height_set=, #min_height_set?, #min_width, #min_width=, #min_width_set=, #min_width_set?, #minification_filter, #minification_filter=, #move_anchor_point, #move_anchor_point_from_gravity, #move_by, #n_children, #name, #name=, #natural_height, #natural_height=, #natural_height_set=, #natural_height_set?, #natural_width, #natural_width=, #natural_width_set=, #natural_width_set?, #needs_expand, #next_sibling, #offscreen_redirect, #offscreen_redirect=, #opacity, #opacity=, #paint, #paint_opacity, #paint_visibility, #paint_volume, #pango_context, #parent, #parent=, #pivot_point, #pivot_point=, #pivot_point_z, #pivot_point_z=, #pop_internal, #previous_sibling, #push_internal, #queue_redraw, #queue_redraw_with_clip, #queue_relayout, #raise, #raise_top, #reactive, #reactive=, #reactive?, #realize, #realized=, #realized?, #remove_action, #remove_action_by_name, #remove_all_children, #remove_all_transitions, #remove_child, #remove_clip, #remove_constraint, #remove_constraint_by_name, #remove_effect, #remove_effect_by_name, #remove_transition, #reparent, #replace_child, #request_mode, #request_mode=, #restore_easing_state, #rotation_angle_x, #rotation_angle_x=, #rotation_angle_y, #rotation_angle_y=, #rotation_angle_z, #rotation_angle_z=, #rotation_center_x, #rotation_center_x=, #rotation_center_y, #rotation_center_y=, #rotation_center_z, #rotation_center_z=, #rotation_center_z_gravity, #rotation_center_z_gravity=, #save_easing_state, #save_easing_state_without_block, #scale_center_x, #scale_center_x=, #scale_center_y, #scale_center_y=, #scale_gravity, #scale_gravity=, #scale_x, #scale_x=, #scale_y, #scale_y=, #scale_z, #scale_z=, #set_allocation, #set_anchor_point, #set_child_above_sibling, #set_child_at_index, #set_child_below_sibling, #set_clip, #set_content_scaling_filters, #set_pivot_point, #set_position, #set_rotation, #set_rotation_angle, #set_scale, #set_scale_full, #set_scale_with_gravity, #set_shader_param, #set_shader_param_float, #set_shader_param_int, #set_size, #set_translation, #set_z_rotation_from_gravity, #shader, #shader=, #should_pick_paint, #show, #show_all, #show_on_set_parent=, #show_on_set_parent?, #size, #size=, #stage, #text_direction, #text_direction=, #transform, #transform=, #transform_set=, #transform_set?, #transform_stage_point, #translation_x, #translation_x=, #translation_y, #translation_y=, #translation_z, #translation_z=, #unmap, #unparent, #unrealize, #unset_flags, #visible=, #visible?, #width, #width=, #x, #x=, #x_align, #x_align=, #x_expand, #x_expand=, #x_expand?, #y, #y=, #y_align, #y_align=, #y_expand, #y_expand=, #y_expand?, #z_position, #z_position=, #z_rotation_gravity
Constructor Details
#initialize(font_name, text) ⇒ Clutter::Actor
Creates a new Clutter::Text actor, using font_name as the font description; text will be used to set the contents of the actor.
This function is equivalent to calling clutter_text_new(), clutter_text_set_font_name(), and clutter_text_set_text().
Instance Method Details
#activatable ⇒ Boolean
Retrieves whether a Clutter::Text is activatable or not.
#activatable=(activatable) ⇒ Boolean
Toggles whether return invokes the activate signal or not.
#activatable? ⇒ Boolean
Toggles whether return invokes the activate signal or not.
#activate ⇒ Boolean
Emits the Clutter::Text::activate signal, if self has been set as activatable using clutter_text_set_activatable().
This function can be used to emit the ::activate signal inside a Clutter::Actor::captured-event or #ClutterActor::key-press-event signal handlers before the default signal handler for the Clutter::Text is invoked.
#attributes ⇒ Pango::AttrList
A list of Pango::StyleAttributes to be applied to the contents of the Clutter::Text actor.
#attributes=(attributes) ⇒ Pango::AttrList
A list of Pango::StyleAttributes to be applied to the contents of the Clutter::Text actor.
#buffer ⇒ Clutter::TextBuffer
The buffer which stores the text for this Clutter::Text.
If set to nil, a default buffer will be created.
#buffer=(buffer) ⇒ Clutter::TextBuffer
The buffer which stores the text for this Clutter::Text.
If set to nil, a default buffer will be created.
#color ⇒ Clutter::Color
The color used to render the text.
#color=(color) ⇒ Clutter::Color
The color used to render the text.
#coords_to_position(x, y) ⇒ Integer
Retrieves the position of the character at the given coordinates.
#cursor_color ⇒ Clutter::Color
The color of the cursor.
#cursor_color=(cursor_color) ⇒ Clutter::Color
The color of the cursor.
#cursor_color_set=(cursor_color_set) ⇒ Boolean
Will be set to true if Clutter::Text:cursor-color has been set.
#cursor_color_set? ⇒ Boolean
Will be set to true if Clutter::Text:cursor-color has been set.
#cursor_position ⇒ Integer
The current input cursor position. -1 is taken to be the end of the text
#cursor_position=(cursor_position) ⇒ Integer
The current input cursor position. -1 is taken to be the end of the text
#cursor_size ⇒ Integer
The size of the cursor, in pixels. If set to -1 the size used will be the default cursor size of 2 pixels.
#cursor_size=(cursor_size) ⇒ Integer
The size of the cursor, in pixels. If set to -1 the size used will be the default cursor size of 2 pixels.
#cursor_visible ⇒ Boolean
Retrieves whether the cursor of a Clutter::Text actor is visible.
#cursor_visible=(cursor_visible) ⇒ Boolean
Whether the input cursor is visible or not.
The cursor will only be visible if this property and either the Clutter::Text:editable or the #ClutterText:selectable properties are set to true.
#cursor_visible? ⇒ Boolean
Whether the input cursor is visible or not.
The cursor will only be visible if this property and either the Clutter::Text:editable or the #ClutterText:selectable properties are set to true.
#delete_chars(n_chars) ⇒ nil
Deletes n_chars inside a Clutter::Text actor, starting from the current cursor position.
Somewhat awkwardly, the cursor position is decremented by the same number of characters you've deleted.
#delete_selection ⇒ Boolean
Deletes the currently selected text
This function is only useful in subclasses of Clutter::Text
#delete_text(start_pos, end_pos) ⇒ nil
Deletes the text inside a Clutter::Text actor between start_pos and end_pos.
The starting and ending positions are expressed in characters, not in bytes.
#editable ⇒ Boolean
Retrieves whether a Clutter::Text is editable or not.
#editable=(editable) ⇒ Boolean
Whether key events delivered to the actor causes editing.
#editable? ⇒ Boolean
Whether key events delivered to the actor causes editing.
#ellipsize ⇒ Pango::EllipsizeMode
The preferred place to ellipsize the contents of the Clutter::Text actor
#ellipsize=(ellipsize) ⇒ Pango::EllipsizeMode
The preferred place to ellipsize the contents of the Clutter::Text actor
#font_description ⇒ Pango::FontDescription
The Pango::FontDescription that should be used by the #ClutterText
If you have a string describing the font then you should look at Clutter::Text:font-name instead
#font_description=(font_description) ⇒ Pango::FontDescription
The Pango::FontDescription that should be used by the #ClutterText
If you have a string describing the font then you should look at Clutter::Text:font-name instead
#font_name ⇒ String
The font to be used by the Clutter::Text, as a string that can be parsed by pango_font_description_from_string().
If set to nil, the default system font will be used instead.
#font_name=(font_name) ⇒ String
The font to be used by the Clutter::Text, as a string that can be parsed by pango_font_description_from_string().
If set to nil, the default system font will be used instead.
#get_chars(start_pos, end_pos) ⇒ String
Retrieves the contents of the Clutter::Text actor between start_pos and end_pos, but not including end_pos.
The positions are specified in characters, not in bytes.
#get_color(color) ⇒ nil
Retrieves the text color as set by clutter_text_set_color().
#get_cursor_color(color) ⇒ nil
Retrieves the color of the cursor of a Clutter::Text actor.
#get_cursor_rect(rect) ⇒ nil
Retrieves the rectangle that contains the cursor.
The coordinates of the rectangle's origin are in actor-relative coordinates.
#get_layout_offsets(x, y) ⇒ nil
Obtains the coordinates where the Clutter::Text will draw the #PangoLayout representing the text.
#get_selected_text_color(color) ⇒ nil
Retrieves the color of selected text of a Clutter::Text actor.
#get_selection_color(color) ⇒ nil
Retrieves the color of the selection of a Clutter::Text actor.
#insert_text(text, position) ⇒ nil
Inserts text into a Clutter::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 Clutter::Text.
The position is expressed in characters, not in bytes.
#insert_unichar(wc) ⇒ nil
Inserts wc at the current cursor position of a Clutter::Text actor.
#justify ⇒ Boolean
Retrieves whether the Clutter::Text actor should justify its contents on both margins.
#justify=(justify) ⇒ Boolean
Whether the contents of the Clutter::Text should be justified on both margins.
#justify? ⇒ Boolean
Whether the contents of the Clutter::Text should be justified on both margins.
#layout ⇒ Pango::Layout
Retrieves the current Pango::Layout used by a #ClutterText actor.
#line_alignment ⇒ Pango::Alignment
The preferred alignment for the text. This property controls the alignment of multi-line paragraphs.
#line_alignment=(line_alignment) ⇒ Pango::Alignment
The preferred alignment for the text. This property controls the alignment of multi-line paragraphs.
#line_wrap ⇒ Boolean
Retrieves the value set using clutter_text_set_line_wrap().
#line_wrap=(line_wrap) ⇒ Boolean
Whether to wrap the lines of Clutter::Text:text if the contents exceed the available allocation. The wrapping strategy is controlled by the Clutter::Text:line-wrap-mode property.
#line_wrap? ⇒ Boolean
Whether to wrap the lines of Clutter::Text:text if the contents exceed the available allocation. The wrapping strategy is controlled by the Clutter::Text:line-wrap-mode property.
#line_wrap_mode ⇒ Pango::WrapMode
If Clutter::Text:line-wrap is set to true, this property will control how the text is wrapped.
#line_wrap_mode=(line_wrap_mode) ⇒ Pango::WrapMode
If Clutter::Text:line-wrap is set to true, this property will control how the text is wrapped.
#markup=(markup) ⇒ nil
Sets markup as the contents of a Clutter::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); ]|
#max_length ⇒ Integer
The maximum length of the contents of the Clutter::Text actor.
#max_length=(max_length) ⇒ Integer
The maximum length of the contents of the Clutter::Text actor.
#password_char ⇒ Integer
If non-zero, the character that should be used in place of the actual text in a password text actor.
#password_char=(password_char) ⇒ Integer
If non-zero, the character that should be used in place of the actual text in a password text actor.
#position ⇒ Integer
The current input cursor position. -1 is taken to be the end of the text
#position=(position) ⇒ Integer
The current input cursor position. -1 is taken to be the end of the text
#position_to_coords(position, x, y, line_height) ⇒ Boolean
Retrieves the coordinates of the given position.
#selectable ⇒ Boolean
Retrieves whether a Clutter::Text is selectable or not.
#selectable=(selectable) ⇒ Boolean
Whether it is possible to select text, either using the pointer or the keyboard.
This property depends on the Clutter::Actor:reactive property being set to true.
#selectable? ⇒ Boolean
Whether it is possible to select text, either using the pointer or the keyboard.
This property depends on the Clutter::Actor:reactive property being set to true.
#selected_text_color ⇒ Clutter::Color
The color of selected text.
#selected_text_color=(selected_text_color) ⇒ Clutter::Color
The color of selected text.
#selected_text_color_set=(selected_text_color_set) ⇒ Boolean
Will be set to true if Clutter::Text:selected-text-color has been set.
#selected_text_color_set? ⇒ Boolean
Will be set to true if Clutter::Text:selected-text-color has been set.
#selection ⇒ String
Retrieves the currently selected text.
#selection_bound ⇒ Integer
The current input cursor position. -1 is taken to be the end of the text
#selection_bound=(selection_bound) ⇒ Integer
The current input cursor position. -1 is taken to be the end of the text
#selection_color ⇒ Clutter::Color
The color of the selection.
#selection_color=(selection_color) ⇒ Clutter::Color
The color of the selection.
#selection_color_set=(selection_color_set) ⇒ Boolean
Will be set to true if Clutter::Text:selection-color has been set.
#selection_color_set? ⇒ Boolean
Will be set to true if Clutter::Text:selection-color has been set.
#set_preedit_string(preedit_str, preedit_attrs, cursor_pos) ⇒ nil
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 Clutter::Text buffer.
The preedit string and attributes are ignored if the Clutter::Text actor is not editable.
This function should not be used by applications
#set_selection(start_pos, end_pos) ⇒ nil
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.
#single_line_mode ⇒ Boolean
Retrieves whether the Clutter::Text actor is in single line mode.
#single_line_mode=(single_line_mode) ⇒ Boolean
Whether the Clutter::Text actor should be in single line mode or not. A single line Clutter::Text actor will only contain a single line of text, scrolling it in case its length is bigger than the allocated size.
Setting this property will also set the Clutter::Text:activatable property as a side-effect.
The Clutter::Text:single-line-mode property is used only if the Clutter::Text:editable property is set to true.
#single_line_mode? ⇒ Boolean
Whether the Clutter::Text actor should be in single line mode or not. A single line Clutter::Text actor will only contain a single line of text, scrolling it in case its length is bigger than the allocated size.
Setting this property will also set the Clutter::Text:activatable property as a side-effect.
The Clutter::Text:single-line-mode property is used only if the Clutter::Text:editable property is set to true.
#text ⇒ String
The text to render inside the actor.
#text=(text) ⇒ String
The text to render inside the actor.
#use_markup ⇒ Boolean
Retrieves whether the contents of the Clutter::Text actor should be parsed for the Pango text markup.
#use_markup=(use_markup) ⇒ Boolean
Whether the text includes Pango markup.
For more informations about the Pango markup format, see pango_layout_set_markup() in the Pango documentation.
It is not possible to round-trip this property between true and false. Once a string with markup has been set on a Clutter::Text actor with :use-markup set to true, the markup is stripped from the string.
#use_markup? ⇒ Boolean
Whether the text includes Pango markup.
For more informations about the Pango markup format, see pango_layout_set_markup() in the Pango documentation.
It is not possible to round-trip this property between true and false. Once a string with markup has been set on a Clutter::Text actor with :use-markup set to true, the markup is stripped from the string.