gtk4::subclass::scale

Trait ScaleImpl

Source
pub trait ScaleImpl: RangeImpl + ObjectSubclass<Type: IsA<Scale> + IsA<Orientable>> {
    // 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§