Trait sourceview5::prelude::GutterRendererPixbufExt
source · pub trait GutterRendererPixbufExt: IsA<GutterRendererPixbuf> + Sealed + 'static {
Show 13 methods
// Provided methods
fn gicon(&self) -> Icon { ... }
fn icon_name(&self) -> GString { ... }
fn paintable(&self) -> Option<Paintable> { ... }
fn pixbuf(&self) -> Pixbuf { ... }
fn overlay_paintable(&self, paintable: &impl IsA<Paintable>) { ... }
fn set_gicon(&self, icon: Option<&impl IsA<Icon>>) { ... }
fn set_icon_name(&self, icon_name: Option<&str>) { ... }
fn set_paintable(&self, paintable: Option<&impl IsA<Paintable>>) { ... }
fn set_pixbuf(&self, pixbuf: Option<&Pixbuf>) { ... }
fn connect_gicon_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_icon_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_paintable_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_pixbuf_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
fn icon_name(&self) -> GString
sourcefn paintable(&self) -> Option<Paintable>
fn paintable(&self) -> Option<Paintable>
Gets a [gdk::Paintable
][crate::gdk::Paintable] that was set with
set_paintable()
§Returns
a #GdkPaintable or None
sourcefn overlay_paintable(&self, paintable: &impl IsA<Paintable>)
fn overlay_paintable(&self, paintable: &impl IsA<Paintable>)
Allows overlaying a paintable on top of any other image that has been set for the pixbuf. This will be applied when the widget is next snapshot.
§paintable
a #GdkPaintable
sourcefn set_paintable(&self, paintable: Option<&impl IsA<Paintable>>)
fn set_paintable(&self, paintable: Option<&impl IsA<Paintable>>)
fn connect_gicon_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_paintable_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_pixbuf_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Object Safety§
This trait is not object safe.