[][src]Trait gtk::TextMarkExt

pub trait TextMarkExt: 'static {
    fn get_buffer(&self) -> Option<TextBuffer>;
fn get_deleted(&self) -> bool;
fn get_left_gravity(&self) -> bool;
fn get_name(&self) -> Option<GString>;
fn get_visible(&self) -> bool;
fn set_visible(&self, setting: bool); }

Trait containing all TextMark methods.

Implementors

TextMark

Required methods

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

Gets the buffer this mark is located inside, or None if the mark is deleted.

Returns

the mark’s TextBuffer

fn get_deleted(&self) -> bool

Returns true if the mark has been removed from its buffer with TextBufferExt::delete_mark. See TextBufferExt::add_mark for a way to add it to a buffer again.

Returns

whether the mark is deleted

fn get_left_gravity(&self) -> bool

Determines whether the mark has left gravity.

Returns

true if the mark has left gravity, false otherwise

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

Returns the mark name; returns NULL for anonymous marks.

Returns

mark name

fn get_visible(&self) -> bool

Returns true if the mark is visible (i.e. a cursor is displayed for it).

Returns

true if visible

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

Loading content...

Implementors

impl<O: IsA<TextMark>> TextMarkExt for O[src]

Loading content...