Struct gtk4::builders::TextMarkBuilder
source · pub struct TextMarkBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct TextMark
objects.
Implementations§
source§impl TextMarkBuilder
impl TextMarkBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new TextMarkBuilder
.
sourcepub fn left_gravity(self, left_gravity: bool) -> Self
pub fn left_gravity(self, left_gravity: bool) -> Self
Whether the mark has left gravity.
When text is inserted at the mark’s current location, if the mark has left gravity it will be moved to the left of the newly-inserted text, otherwise to the right.
Trait Implementations§
source§impl Clone for TextMarkBuilder
impl Clone for TextMarkBuilder
source§fn clone(&self) -> TextMarkBuilder
fn clone(&self) -> TextMarkBuilder
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 TextMarkBuilder
impl Default for TextMarkBuilder
source§fn default() -> TextMarkBuilder
fn default() -> TextMarkBuilder
Returns the “default value” for a type. Read more