Class

ClutterTextBuffer

since: 1.10

Description [src]

class Clutter.TextBuffer : GObject.Object {
  /* No available fields */
}

The ClutterTextBuffer structure contains private data and it should only be accessed using the provided API.

Available since: 1.10

Hierarchy

hierarchy this ClutterTextBuffer ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

clutter_text_buffer_new

Create a new ClutterTextBuffer object.

since: 1.10

clutter_text_buffer_new_with_text

Create a new ClutterTextBuffer object with some text.

since: 1.10

Instance methods

clutter_text_buffer_delete_text

Deletes a sequence of characters from the buffer. n_chars characters are deleted starting at position. If n_chars is negative, then all characters until the end of the text are deleted.

since: 1.10

clutter_text_buffer_emit_deleted_text

Emits the ClutterTextBuffer::deleted-text signal on buffer.

since: 1.10

clutter_text_buffer_emit_inserted_text

Emits the ClutterTextBuffer::inserted-text signal on buffer.

since: 1.10

clutter_text_buffer_get_bytes

Retrieves the length in bytes of the buffer. See clutter_text_buffer_get_length().

since: 1.10

clutter_text_buffer_get_length

Retrieves the length in characters of the buffer.

since: 1.10

clutter_text_buffer_get_max_length

Retrieves the maximum allowed length of the text in buffer. See clutter_text_buffer_set_max_length().

since: 1.10

clutter_text_buffer_get_text

Retrieves the contents of the buffer.

since: 1.10

clutter_text_buffer_insert_text

Inserts n_chars characters of chars into the contents of the buffer, at position position.

since: 1.10

clutter_text_buffer_set_max_length

Sets the maximum allowed length of the contents of the buffer. If the current contents are longer than the given length, then they will be truncated to fit.

since: 1.10

clutter_text_buffer_set_text

Sets the text in the buffer.

since: 1.10

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Clutter.TextBuffer:length

The length (in characters) of the text in buffer.

since: 1.10

Clutter.TextBuffer:max-length

The maximum length (in characters) of the text in the buffer.

since: 1.10

Clutter.TextBuffer:text

The contents of the buffer.

since: 1.10

Signals

Clutter.TextBuffer::deleted-text

This signal is emitted after text is deleted from the buffer.

since: 1.10

Clutter.TextBuffer::inserted-text

This signal is emitted after text is inserted into the buffer.

since: 1.10

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct ClutterTextBufferClass {
  void (* inserted_text) (
    ClutterTextBuffer* buffer,
    guint position,
    const gchar* chars,
    guint n_chars
  );
  void (* deleted_text) (
    ClutterTextBuffer* buffer,
    guint position,
    guint n_chars
  );
  const gchar* (* get_text) (
    ClutterTextBuffer* buffer,
    gsize* n_bytes
  );
  guint (* get_length) (
    ClutterTextBuffer* buffer
  );
  guint (* insert_text) (
    ClutterTextBuffer* buffer,
    guint position,
    const gchar* chars,
    guint n_chars
  );
  guint (* delete_text) (
    ClutterTextBuffer* buffer,
    guint position,
    guint n_chars
  );
  void (* _clutter_reserved1) (
void
  );
  void (* _clutter_reserved2) (
void
  );
  void (* _clutter_reserved3) (
void
  );
  void (* _clutter_reserved4) (
void
  );
  void (* _clutter_reserved5) (
void
  );
  void (* _clutter_reserved6) (
void
  );
  void (* _clutter_reserved7) (
void
  );
  void (* _clutter_reserved8) (
void
  );
  
}

The ClutterTextBufferClass structure contains only private data.

Class members
inserted_text: void (* inserted_text) ( ClutterTextBuffer* buffer, guint position, const gchar* chars, guint n_chars )
No description available.
deleted_text: void (* deleted_text) ( ClutterTextBuffer* buffer, guint position, guint n_chars )
No description available.
get_text: const gchar* (* get_text) ( ClutterTextBuffer* buffer, gsize* n_bytes )
No description available.
get_length: guint (* get_length) ( ClutterTextBuffer* buffer )
No description available.
insert_text: guint (* insert_text) ( ClutterTextBuffer* buffer, guint position, const gchar* chars, guint n_chars )
No description available.
delete_text: guint (* delete_text) ( ClutterTextBuffer* buffer, guint position, guint n_chars )
No description available.
_clutter_reserved1: void (* _clutter_reserved1) ( void )
No description available.
_clutter_reserved2: void (* _clutter_reserved2) ( void )
No description available.
_clutter_reserved3: void (* _clutter_reserved3) ( void )
No description available.
_clutter_reserved4: void (* _clutter_reserved4) ( void )
No description available.
_clutter_reserved5: void (* _clutter_reserved5) ( void )
No description available.
_clutter_reserved6: void (* _clutter_reserved6) ( void )
No description available.
_clutter_reserved7: void (* _clutter_reserved7) ( void )
No description available.
_clutter_reserved8: void (* _clutter_reserved8) ( void )
No description available.

Virtual methods

Clutter.TextBufferClass.delete_text

Deletes a sequence of characters from the buffer. n_chars characters are deleted starting at position. If n_chars is negative, then all characters until the end of the text are deleted.

since: 1.10

Clutter.TextBufferClass.deleted_text
No description available.

Clutter.TextBufferClass.get_length

Retrieves the length in characters of the buffer.

since: 1.10

Clutter.TextBufferClass.get_text
No description available.

Clutter.TextBufferClass.insert_text

Inserts n_chars characters of chars into the contents of the buffer, at position position.

since: 1.10

Clutter.TextBufferClass.inserted_text
No description available.