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
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.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].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.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.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