Class
GtkEntryBuffer
Description [src]
class Gtk.EntryBuffer : GObject.Object
{
/* No available fields */
}
A GtkEntryBuffer
hold the text displayed in a GtkText
widget.
A single GtkEntryBuffer
object can be shared by multiple widgets
which will then share the same text content, but not the cursor
position, visibility attributes, icon etc.
GtkEntryBuffer
may be derived from. Such a derived class might allow
text to be stored in an alternate location, such as non-pageable memory,
useful in the case of important passwords. Or a derived class could
integrate with an application’s concept of undo/redo.
Instance methods
gtk_entry_buffer_insert_text
Inserts n_chars
characters of chars
into the contents of the
buffer, at position position
.
Signals
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 GtkEntryBufferClass {
GObjectClass parent_class;
void (* inserted_text) (
GtkEntryBuffer* buffer,
guint position,
const char* chars,
guint n_chars
);
void (* deleted_text) (
GtkEntryBuffer* buffer,
guint position,
guint n_chars
);
const char* (* get_text) (
GtkEntryBuffer* buffer,
gsize* n_bytes
);
guint (* get_length) (
GtkEntryBuffer* buffer
);
guint (* insert_text) (
GtkEntryBuffer* buffer,
guint position,
const char* chars,
guint n_chars
);
guint (* delete_text) (
GtkEntryBuffer* buffer,
guint position,
guint n_chars
);
void (* _gtk_reserved1) (
void
);
void (* _gtk_reserved2) (
void
);
void (* _gtk_reserved3) (
void
);
void (* _gtk_reserved4) (
void
);
void (* _gtk_reserved5) (
void
);
void (* _gtk_reserved6) (
void
);
void (* _gtk_reserved7) (
void
);
void (* _gtk_reserved8) (
void
);
}
No description available.
Class members
parent_class: GObjectClass
No description available.
inserted_text: void (* inserted_text) ( GtkEntryBuffer* buffer, guint position, const char* chars, guint n_chars )
No description available.
deleted_text: void (* deleted_text) ( GtkEntryBuffer* buffer, guint position, guint n_chars )
No description available.
get_text: const char* (* get_text) ( GtkEntryBuffer* buffer, gsize* n_bytes )
No description available.
get_length: guint (* get_length) ( GtkEntryBuffer* buffer )
No description available.
insert_text: guint (* insert_text) ( GtkEntryBuffer* buffer, guint position, const char* chars, guint n_chars )
No description available.
delete_text: guint (* delete_text) ( GtkEntryBuffer* buffer, guint position, guint n_chars )
No description available.
_gtk_reserved1: void (* _gtk_reserved1) ( void )
No description available.
_gtk_reserved2: void (* _gtk_reserved2) ( void )
No description available.
_gtk_reserved3: void (* _gtk_reserved3) ( void )
No description available.
_gtk_reserved4: void (* _gtk_reserved4) ( void )
No description available.
_gtk_reserved5: void (* _gtk_reserved5) ( void )
No description available.
_gtk_reserved6: void (* _gtk_reserved6) ( void )
No description available.
_gtk_reserved7: void (* _gtk_reserved7) ( void )
No description available.
_gtk_reserved8: void (* _gtk_reserved8) ( void )
No description available.
Virtual methods
Gtk.EntryBufferClass.insert_text
Inserts n_chars
characters of chars
into the contents of the
buffer, at position position
.