pub trait ScaleImpl: RangeImpl + ObjectSubclass<Type: IsA<Scale> + IsA<Orientable>> {
// Provided method
fn layout_offsets(&self) -> (i32, i32) { ... }
}Provided Methods§
Sourcefn layout_offsets(&self) -> (i32, i32)
fn layout_offsets(&self) -> (i32, i32)
Obtains the coordinates where the scale will draw the
[pango::Layout][crate::pango::Layout] representing the text in the scale.
Remember when using the [pango::Layout][crate::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".