Trait gtk::prelude::ButtonExt [−][src]
pub trait ButtonExt { fn clicked(&self); fn get_alignment(&self) -> (f32, f32); fn get_event_window(&self) -> Option<Window>; fn get_focus_on_click(&self) -> bool; fn get_image(&self) -> Option<Widget>; fn get_image_position(&self) -> PositionType; fn get_label(&self) -> Option<String>; fn get_relief(&self) -> ReliefStyle; fn get_use_stock(&self) -> bool; fn get_use_underline(&self) -> bool; fn set_alignment(&self, xalign: f32, yalign: f32); fn set_focus_on_click(&self, focus_on_click: bool); fn set_image<'a, P: IsA<Widget> + 'a, Q: Into<Option<&'a P>>>(
&self,
image: Q
); fn set_image_position(&self, position: PositionType); fn set_label(&self, label: &str); fn set_relief(&self, relief: ReliefStyle); fn set_use_stock(&self, use_stock: bool); fn set_use_underline(&self, use_underline: bool); 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_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn emit_activate(&self); fn connect_clicked<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn emit_clicked(&self); fn connect_property_image_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_image_position_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_label_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_relief_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_use_stock_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_use_underline_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_xalign_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_yalign_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; }
Required Methods
fn clicked(&self)
fn get_alignment(&self) -> (f32, f32)
fn get_event_window(&self) -> Option<Window>
fn get_focus_on_click(&self) -> bool
fn get_image(&self) -> Option<Widget>
fn get_image_position(&self) -> PositionType
fn get_label(&self) -> Option<String>
fn get_relief(&self) -> ReliefStyle
fn get_use_stock(&self) -> bool
fn get_use_underline(&self) -> bool
fn set_alignment(&self, xalign: f32, yalign: f32)
fn set_focus_on_click(&self, focus_on_click: bool)
fn set_image<'a, P: IsA<Widget> + 'a, Q: Into<Option<&'a P>>>(&self, image: Q)
fn set_image_position(&self, position: PositionType)
fn set_label(&self, label: &str)
fn set_relief(&self, relief: ReliefStyle)
fn set_use_stock(&self, use_stock: bool)
fn set_use_underline(&self, use_underline: bool)
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_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn emit_activate(&self)
fn connect_clicked<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn emit_clicked(&self)
fn connect_property_image_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_image_position_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_label_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_relief_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_use_stock_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_use_underline_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