Trait gtk4::prelude::TextMarkExt

source ·
pub trait TextMarkExt: IsA<TextMark> + Sealed + 'static {
    // Provided methods
    fn buffer(&self) -> Option<TextBuffer> { ... }
    fn is_deleted(&self) -> bool { ... }
    fn is_left_gravity(&self) -> bool { ... }
    fn name(&self) -> Option<GString> { ... }
    fn is_visible(&self) -> bool { ... }
    fn set_visible(&self, setting: bool) { ... }
Expand description

Trait containing all TextMark methods.



Provided Methods§


fn buffer(&self) -> Option<TextBuffer>

Gets the buffer this mark is located inside.

Returns None if the mark is deleted.


the mark’s TextBuffer


fn is_deleted(&self) -> bool

Returns true if the mark has been removed from its buffer.

See TextBufferExt::add_mark() for a way to add it to a buffer again.


whether the mark is deleted


fn is_left_gravity(&self) -> bool

Determines whether the mark has left gravity.


true if the mark has left gravity, false otherwise


fn name(&self) -> Option<GString>

Returns the mark name.

Returns None for anonymous marks.


mark name


fn is_visible(&self) -> bool

Returns true if the mark is visible.

A cursor is displayed for visible marks.


true if visible


fn set_visible(&self, setting: bool)

Object Safety§

This trait is not object safe.