Trait gtk4::subclass::scale::ScaleImpl

source ·
pub trait ScaleImpl: ScaleImplExt + RangeImpl {
    // Provided method
    fn layout_offsets(&self) -> (i32, i32) { ... }
}

Provided Methods§

source

fn layout_offsets(&self) -> (i32, i32)

Obtains the coordinates where the scale will draw the pango::Layout representing the text in the scale.

Remember when using the pango::Layout function you need to convert to and from pixels using PANGO_PIXELS() or PANGO_SCALE.

If the draw-value property is false, the return values are undefined.

§Returns
§x

location to store X offset of layout

§y

location to store Y offset of layout

Object Safety§

This trait is not object safe.

Implementors§