Trait sourceview5::prelude::GutterRendererPixbufExt[][src]

pub trait GutterRendererPixbufExt: 'static {
    fn get_gicon(&self) -> Option<Icon>;
fn get_icon_name(&self) -> Option<GString>;
fn get_paintable(&self) -> Option<Paintable>;
fn get_pixbuf(&self) -> Option<Pixbuf>;
fn overlay_paintable<P: IsA<Paintable>>(&self, paintable: &P);
fn set_gicon<P: IsA<Icon>>(&self, icon: Option<&P>);
fn set_icon_name(&self, icon_name: Option<&str>);
fn set_paintable<P: IsA<Paintable>>(&self, paintable: Option<&P>);
fn set_pixbuf(&self, pixbuf: Option<&Pixbuf>);
fn get_property_paintable(&self) -> Option<Paintable>;
fn connect_property_gicon_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_icon_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_paintable_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_pixbuf_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all GutterRendererPixbuf methods.

Implementors

GutterRendererPixbuf

Required methods

fn get_gicon(&self) -> Option<Icon>[src]

Get the gicon of the renderer

Returns

a gio::Icon

fn get_icon_name(&self) -> Option<GString>[src]

fn get_paintable(&self) -> Option<Paintable>[src]

Gets a gdk::Paintable that was set with GutterRendererPixbufExt::set_paintable

Feature: v5_0

Returns

a gdk::Paintable or None

fn get_pixbuf(&self) -> Option<Pixbuf>[src]

Get the pixbuf of the renderer.

Returns

a gdk_pixbuf::Pixbuf

fn overlay_paintable<P: IsA<Paintable>>(&self, paintable: &P)[src]

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.

Feature: v5_0

paintable

a gdk::Paintable

fn set_gicon<P: IsA<Icon>>(&self, icon: Option<&P>)[src]

icon

the icon, or None.

fn set_icon_name(&self, icon_name: Option<&str>)[src]

icon_name

the icon name, or None.

fn set_paintable<P: IsA<Paintable>>(&self, paintable: Option<&P>)[src]

paintable

the paintable, or None.

fn set_pixbuf(&self, pixbuf: Option<&Pixbuf>)[src]

pixbuf

the pixbuf, or None.

fn get_property_paintable(&self) -> Option<Paintable>[src]

fn connect_property_gicon_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_property_icon_name_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_property_paintable_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_property_pixbuf_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Loading content...

Implementors

impl<O: IsA<GutterRendererPixbuf>> GutterRendererPixbufExt for O[src]

Loading content...