Struct gtk4::builders::TextBufferBuilder
source · pub struct TextBufferBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct TextBuffer
objects.
Implementations§
source§impl TextBufferBuilder
impl TextBufferBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new TextBufferBuilder
.
sourcepub fn build(self) -> TextBuffer
pub fn build(self) -> TextBuffer
Build the TextBuffer
.
pub fn enable_undo(self, enable_undo: bool) -> Self
pub fn tag_table(self, tag_table: &TextTagTable) -> Self
pub fn text(self, text: &str) -> Self
Trait Implementations§
source§impl Clone for TextBufferBuilder
impl Clone for TextBufferBuilder
source§fn clone(&self) -> TextBufferBuilder
fn clone(&self) -> TextBufferBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for TextBufferBuilder
impl Default for TextBufferBuilder
source§fn default() -> TextBufferBuilder
fn default() -> TextBufferBuilder
Returns the “default value” for a type. Read more