[−][src]Trait gtk::prelude::AspectFrameExt
Required methods
fn set(&self, xalign: f32, yalign: f32, ratio: f32, obey_child: bool)
Set parameters for an existing AspectFrame.
xalign
Horizontal alignment of the child within the allocation of
the AspectFrame. This ranges from 0.0 (left aligned)
to 1.0 (right aligned)
yalign
Vertical alignment of the child within the allocation of
the AspectFrame. This ranges from 0.0 (top aligned)
to 1.0 (bottom aligned)
ratio
The desired aspect ratio.
obey_child
If true, ratio is ignored, and the aspect
ratio is taken from the requistion of the child.
fn get_property_obey_child(&self) -> bool
fn set_property_obey_child(&self, obey_child: bool)
fn get_property_ratio(&self) -> f32
fn set_property_ratio(&self, ratio: f32)
fn get_property_xalign(&self) -> f32
fn set_property_xalign(&self, xalign: f32)
fn get_property_yalign(&self) -> f32
fn set_property_yalign(&self, yalign: f32)
fn connect_property_obey_child_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_ratio_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_xalign_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_yalign_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<AspectFrame>> AspectFrameExt for O[src]
fn set(&self, xalign: f32, yalign: f32, ratio: f32, obey_child: bool)[src]
fn get_property_obey_child(&self) -> bool[src]
fn set_property_obey_child(&self, obey_child: bool)[src]
fn get_property_ratio(&self) -> f32[src]
fn set_property_ratio(&self, ratio: f32)[src]
fn get_property_xalign(&self) -> f32[src]
fn set_property_xalign(&self, xalign: f32)[src]
fn get_property_yalign(&self) -> f32[src]
fn set_property_yalign(&self, yalign: f32)[src]
fn connect_property_obey_child_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_ratio_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_xalign_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_yalign_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId[src]
&self,
f: F
) -> SignalHandlerId