pub struct TextBufferBuilder { /* private fields */ }Expand description
A builder-pattern type to construct TextBuffer objects.
Implementations§
Source§impl TextBufferBuilder
impl TextBufferBuilder
Sourcepub fn enable_undo(self, enable_undo: bool) -> Self
pub fn enable_undo(self, enable_undo: bool) -> Self
Denotes if support for undoing and redoing changes to the buffer is allowed.
Sourcepub fn tag_table(self, tag_table: &TextTagTable) -> Self
pub fn tag_table(self, tag_table: &TextTagTable) -> Self
The GtkTextTagTable for the buffer.
Sourcepub fn text(self, text: impl Into<GString>) -> Self
pub fn text(self, text: impl Into<GString>) -> Self
The text content of the buffer.
Without child widgets and images,
see TextBufferExt::text() for more information.
Sourcepub fn build(self) -> TextBuffer
pub fn build(self) -> TextBuffer
Build the TextBuffer.