pub trait FrameExt: IsA<Frame> + Sealed + 'static {
Show 14 methods
// Provided methods
fn child(&self) -> Option<Widget> { ... }
fn label(&self) -> Option<GString> { ... }
fn label_align(&self) -> f32 { ... }
fn label_widget(&self) -> Option<Widget> { ... }
fn set_child(&self, child: Option<&impl IsA<Widget>>) { ... }
fn set_label(&self, label: Option<&str>) { ... }
fn set_label_align(&self, xalign: f32) { ... }
fn set_label_widget(&self, label_widget: Option<&impl IsA<Widget>>) { ... }
fn label_xalign(&self) -> f32 { ... }
fn set_label_xalign(&self, label_xalign: f32) { ... }
fn connect_child_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_label_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_label_widget_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_label_xalign_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
sourcefn label_align(&self) -> f32
fn label_align(&self) -> f32
sourcefn label_widget(&self) -> Option<Widget>
fn label_widget(&self) -> Option<Widget>
sourcefn set_label_align(&self, xalign: f32)
fn set_label_align(&self, xalign: f32)
Sets the X alignment of the frame widget’s label.
The default value for a newly created frame is 0.0.
xalign
The position of the label along the top edge of the widget. A value of 0.0 represents left alignment; 1.0 represents right alignment.
sourcefn set_label_widget(&self, label_widget: Option<&impl IsA<Widget>>)
fn set_label_widget(&self, label_widget: Option<&impl IsA<Widget>>)
Sets the label widget for the frame.
This is the widget that will appear embedded in the top edge of the frame as a title.
label_widget
the new label widget
sourcefn label_xalign(&self) -> f32
fn label_xalign(&self) -> f32
The horizontal alignment of the label.
sourcefn set_label_xalign(&self, label_xalign: f32)
fn set_label_xalign(&self, label_xalign: f32)
The horizontal alignment of the label.