TextBuffer
Object Hierarchy:
Description:
[ CCode ( type_id = "clutter_text_buffer_get_type ()" ) ]
[ Version ( since = "1.10" ) ]
public class TextBuffer : Object
The TextBuffer structure contains private data and it should only be accessed using the provided API.
Content:
Properties:
- public uint length { get; }
The length (in characters) of the text in buffer.
- public int max_length { get; set; }
The maximum length (in characters) of the text in the buffer.
- public string text { get; }
The contents of the buffer.
Creation methods:
Methods:
- public virtual uint delete_text (uint position, uint n_chars)
Deletes a sequence of characters from the buffer.
- public void emit_deleted_text (uint position, uint n_chars)
- public void emit_inserted_text (uint position, string chars, uint n_chars)
- public size_t get_bytes ()
Retrieves the length in bytes of the buffer.
- public virtual uint get_length ()
Retrieves the length in characters of the buffer.
- public int get_max_length ()
Retrieves the maximum allowed length of the text in
this.
- public unowned string get_text ()
Retrieves the contents of the buffer.
- public virtual unowned string get_text_with_length (size_t n_bytes)
- public virtual uint insert_text (uint position, string chars, uint n_chars)
Inserts n_chars
characters of chars
into the
contents of the buffer, at position position
.
- public void set_max_length (int max_length)
Sets the maximum allowed length of the contents of the buffer.
- public void set_text (string chars, int n_chars)
Sets the text in the buffer.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref