pub trait TextOverlayClipExt: 'static {
Show 23 methods fn color(&self) -> u32;
fn font_desc(&self) -> Option<GString>;
fn halignment(&self) -> TextHAlign;
fn text(&self) -> Option<GString>;
fn valignment(&self) -> TextVAlign;
fn xpos(&self) -> f64;
fn ypos(&self) -> f64;
fn set_color(&self, color: u32);
fn set_font_desc(&self, font_desc: &str);
fn set_halign(&self, halign: TextHAlign);
fn set_text(&self, text: &str);
fn set_valign(&self, valign: TextVAlign);
fn set_xpos(&self, position: f64);
fn set_ypos(&self, position: f64);
fn set_halignment(&self, halignment: TextHAlign);
fn set_valignment(&self, valignment: TextVAlign);
fn connect_color_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_font_desc_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_halignment_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_text_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_valignment_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_xpos_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_ypos_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}
Expand description

Trait containing all TextOverlayClip methods.

Implementors

TextOverlayClip

Required methods

Get the color used by source.

Returns

The color used by source.

Get the pango font description used by self.

Returns

The pango font description used by self.

Get the horizontal aligment used by self.

Returns

The horizontal aligment used by self.

Get the text currently set on self.

Returns

The text currently set on self.

Get the vertical aligment used by self.

Returns

The vertical aligment used by self.

Get the horizontal position used by source.

Returns

The horizontal position used by source.

Get the vertical position used by source.

Returns

The vertical position used by source.

Sets the color of the text.

color

The color self is being set to

Sets the pango font description of the text

font_desc

the pango font description

Sets the horizontal aligment of the text.

halign

TextHAlign

Sets the text this clip will render.

text

the text to render. an internal copy of this text will be made.

Sets the vertical aligment of the text.

valign

TextVAlign

Sets the horizontal position of the text.

position

The horizontal position self is being set to

Sets the vertical position of the text.

position

The vertical position self is being set to

Horizontal alignment of the text

Vertical alignent of the text

Implementors