gtk.entry_buffer
Module for [EntryBuffer] class
Types 3
The #GtkEntryBuffer class contains the actual text displayed in a #GtkEntry widget.
A single #GtkEntryBuffer object can be shared by multiple #GtkEntry 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.
Methods
EntryBufferGidBuilder builder() static nothrowGet builder for [gtk.entry_buffer.EntryBuffer] Returns: New builder objectuint 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.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. n_chars characters are deleted starting at position. If n_chars is negative, then all characters until the end of the text are deleted.size_t getBytes() nothrowRetrieves the length in bytes of the buffer. See [gtk.entry_buffer.EntryBuffer.getLength]. Returns: The byte length 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. See [gtk.entry_buffer.EntryBuffer.setMaxLength]. Returns: the maximum allowed number of characters in #GtkEntryBuffer, or 0 if there is n...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. If the current contents are longer than the given length, then they will be truncated to fit.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.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 chainingT text(string propval) nothrowSet `text` property. Params: propval = The contents of the buffer. Returns: Builder instance for fluent chainingFluent builder for gtk.entry_buffer.EntryBuffer
Methods