gtk.entry_buffer

Module for [EntryBuffer] class

Types 3

A gtk.entry_buffer.EntryBuffer hold the text displayed in a gtk.text.Text widget.

A single gtk.entry_buffer.EntryBuffer object can be shared by multiple widgets which will then share the same text content, but not the cursor position, visibility attributes, icon etc.

gtk.entry_buffer.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.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
EntryBuffer self() nothrowReturns `this`, for use in `with` statements.
EntryBufferGidBuilder builder() static nothrowGet builder for [gtk.entry_buffer.EntryBuffer] Returns: New builder object
uint length() @property nothrowGet `length` property. Returns: The length (in characters) of the text in buffer.
int maxLength() @property nothrowGet `maxLength` property. Returns: The maximum length (in characters) of the text in the buffer.
void maxLength(int propval) @property nothrowSet `maxLength` property. Params: propval = The maximum length (in characters) of the text in the buffer.
string text() @property nothrowGet `text` property. Returns: The contents of the buffer.
void text(string propval) @property nothrowSet `text` property. Params: propval = The contents of the buffer.
uint deleteText(uint position, int nChars) nothrowDeletes a sequence of characters from the buffer.
void emitDeletedText(uint position, uint nChars) nothrowUsed when subclassing [gtk.entry_buffer.EntryBuffer].
void emitInsertedText(uint position, string chars) nothrowUsed when subclassing [gtk.entry_buffer.EntryBuffer].
size_t getBytes() nothrowRetrieves the length in bytes of the buffer.
uint getLength() nothrowRetrieves the length in characters of the buffer. Returns: The number of characters in the buffer.
int getMaxLength() nothrowRetrieves the maximum allowed length of the text in buffer. Returns: the maximum allowed number of characters in [gtk.entry_buffer.EntryBuffer], or 0 if there is no maximum.
string getText() nothrowRetrieves the contents of the buffer.
uint insertText(uint position, string chars) nothrowInserts n_chars characters of chars into the contents of the buffer, at position position.
void setMaxLength(int maxLength) nothrowSets the maximum allowed length of the contents of the buffer.
void setText(string chars) nothrowSets the text in the buffer.
gulong connectDeletedText(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == uint))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == uint))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.entry_buffer.EntryBuffer))) && Parameters!T.length < 4) nothrowConnect to `DeletedText` signal.
gulong connectInsertedText(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == uint))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == string))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.entry_buffer.EntryBuffer))) && Parameters!T.length < 4) nothrowConnect to `InsertedText` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this(string initialChars = null)Create a new [gtk.entry_buffer.EntryBuffer] object.

Fluent builder implementation template for gtk.entry_buffer.EntryBuffer

Methods
T maxLength(int propval) nothrowSet `maxLength` property. Params: propval = The maximum length (in characters) of the text in the buffer. Returns: Builder instance for fluent chaining
T text(string propval) nothrowSet `text` property. Params: propval = The contents of the buffer. Returns: Builder instance for fluent chaining

Fluent builder for gtk.entry_buffer.EntryBuffer

Methods
EntryBuffer build() nothrowCreate object from builder. Returns: New object