Trait sourceview5::GutterRendererTextExt [−][src]
Required methods
fn measure(&self, text: &str) -> (i32, i32)
[src]
Measures the text provided using the pango layout used by the
GutterRendererText
.
text
the text to measure.
width
location to store the width of the text in pixels,
or None
.
height
location to store the height of the text in
pixels, or None
.
fn measure_markup(&self, markup: &str) -> (i32, i32)
[src]
Measures the pango markup provided using the pango layout used by the
GutterRendererText
.
markup
the pango markup to measure.
width
location to store the width of the text in pixels,
or None
.
height
location to store the height of the text in
pixels, or None
.
fn set_markup(&self, markup: &str)
[src]
fn set_text(&self, text: &str)
[src]
fn get_property_markup(&self) -> Option<GString>
[src]
fn get_property_text(&self) -> Option<GString>
[src]
fn connect_property_markup_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<GutterRendererText>> GutterRendererTextExt for O
[src]
fn measure(&self, text: &str) -> (i32, i32)
[src]
fn measure_markup(&self, markup: &str) -> (i32, i32)
[src]
fn set_markup(&self, markup: &str)
[src]
fn set_text(&self, text: &str)
[src]
fn get_property_markup(&self) -> Option<GString>
[src]
fn get_property_text(&self) -> Option<GString>
[src]
fn connect_property_markup_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId