pub trait TextMarkExt: IsA<TextMark> + '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) { ... }
}
Provided Methods§
Sourcefn buffer(&self) -> Option<TextBuffer>
fn buffer(&self) -> Option<TextBuffer>
Gets the buffer this mark is located inside.
Returns None
if the mark is deleted.
§Returns
the mark’s TextBuffer
Sourcefn is_deleted(&self) -> bool
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.
§Returns
whether the mark is deleted
Sourcefn is_left_gravity(&self) -> bool
fn is_left_gravity(&self) -> bool
Sourcefn is_visible(&self) -> bool
fn is_visible(&self) -> bool
Sourcefn set_visible(&self, setting: bool)
fn set_visible(&self, setting: bool)
Sets the visibility of @self.
The insertion point is normally visible, i.e. you can see it as a vertical bar. Also, the text widget uses a visible mark to indicate where a drop will occur when dragging-and-dropping text. Most other marks are not visible.
Marks are not visible by default.
§setting
visibility of mark
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.