|
| EntryBuffer (EntryBuffer &&src) noexcept |
|
EntryBuffer & | operator= (EntryBuffer &&src) noexcept |
|
| ~EntryBuffer () noexcept override |
|
GtkEntryBuffer * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GtkEntryBuffer * | gobj () const |
| Provides access to the underlying C GObject.
|
|
GtkEntryBuffer * | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
gsize | get_bytes () const |
| Retrieves the length in bytes of the buffer.
|
|
guint | get_length () const |
| Retrieves the length in characters of the buffer.
|
|
Glib::ustring | get_text () const |
| Retrieves the contents of the buffer.
|
|
void | set_text (const Glib::ustring &text) |
| Sets the text in the buffer.
|
|
void | set_max_length (int max_length) |
| Sets the maximum allowed length of the contents of the buffer.
|
|
int | get_max_length () const |
| Retrieves the maximum allowed length of the text in buffer.
|
|
guint | insert_text (guint position, const Glib::ustring &text) |
| Inserts text into the contents of the buffer, at position position.
|
|
guint | delete_text (guint position, int n_chars) |
| Deletes a sequence of characters from the buffer.
|
|
void | emit_inserted_text (guint position, const Glib::ustring &text) |
| Used when deriving from EntryBuffer.
|
|
void | emit_deleted_text (guint position, guint n_chars) |
| Used when subclassing Gtk::EntryBuffer .
|
|
Glib::SignalProxy< void(guint, const char *, guint)> | signal_inserted_text () |
|
Glib::SignalProxy< void(guint, guint)> | signal_deleted_text () |
|
Glib::PropertyProxy< Glib::ustring > | property_text () |
| The contents of the buffer.
|
|
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_text () const |
| The contents of the buffer.
|
|
Glib::PropertyProxy_ReadOnly< guint > | property_length () const |
| The length (in characters) of the text in buffer.
|
|
Glib::PropertyProxy< int > | property_max_length () |
| The maximum length (in characters) of the text in the buffer.
|
|
Glib::PropertyProxy_ReadOnly< int > | property_max_length () const |
| The maximum length (in characters) of the text in the buffer.
|
|
| Object (const Object &)=delete |
|
Object & | operator= (const Object &)=delete |
|
| Object (Object &&src) noexcept |
|
Object & | operator= (Object &&src) noexcept |
|
void * | get_data (const QueryQuark &key) |
|
void | set_data (const Quark &key, void *data) |
|
void | set_data_with_c_callback (const Quark &key, void *data, GDestroyNotify notify) |
|
void | set_data (const Quark &key, void *data, DestroyNotify notify) |
|
void | remove_data (const QueryQuark &quark) |
|
void * | steal_data (const QueryQuark &quark) |
|
Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
|
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
|
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
|
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
|
PropertyType | get_property (const Glib::ustring &property_name) const |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void()> &slot) |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void()> &&slot) |
|
void | freeze_notify () |
|
void | thaw_notify () |
|
virtual void | reference () const |
|
virtual void | unreference () const |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
GObject * | gobj_copy () const |
|
| trackable () noexcept |
|
| trackable (const trackable &src) noexcept |
|
| trackable (trackable &&src) noexcept |
|
| ~trackable () |
|
void | add_destroy_notify_callback (notifiable *data, func_destroy_notify func) const |
|
void | notify_callbacks () |
|
trackable & | operator= (const trackable &src) |
|
trackable & | operator= (trackable &&src) noexcept |
|
void | remove_destroy_notify_callback (notifiable *data) const |
|
A Text buffer for the Entry widget.
The EntryBuffer class contains the actual text displayed in an Entry widget.
A single EntryBuffer object can be shared by multiple Entry widgets which will then share the same text content, but not the cursor position, visibility attributes, icon etc.
EntryBuffer 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.
guint Gtk::EntryBuffer::delete_text |
( |
guint |
position, |
|
|
int |
n_chars |
|
) |
| |
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.
If position or n_chars are out of bounds, then they are coerced to sane values.
Note that the positions are specified in characters, not bytes.
- Parameters
-
position | Position at which to delete text. |
n_chars | Number of characters to delete. |
- Returns
- The number of characters deleted.