Trait gtk::WidgetExt [] [src]

pub trait WidgetExt {
    fn activate(&self) -> bool;
    fn add_accelerator(&self,
                       accel_signal: &str,
                       accel_group: &AccelGroup,
                       accel_key: u32,
                       accel_mods: ModifierType,
                       accel_flags: AccelFlags); fn add_events(&self, events: i32); fn add_mnemonic_label<T: IsA<Widget>>(&self, label: &T); fn can_activate_accel(&self, signal_id: u32) -> bool; fn child_focus(&self, direction: DirectionType) -> bool; fn child_notify(&self, child_property: &str); fn compute_expand(&self, orientation: Orientation) -> bool; fn destroy(&self); fn device_is_shadowed<T: IsA<Device>>(&self, device: &T) -> bool; fn drag_check_threshold(&self,
                            start_x: i32,
                            start_y: i32,
                            current_x: i32,
                            current_y: i32)
                            -> bool; fn drag_dest_add_image_targets(&self); fn drag_dest_add_text_targets(&self); fn drag_dest_add_uri_targets(&self); fn drag_dest_get_track_motion(&self) -> bool; fn drag_dest_set_track_motion(&self, track_motion: bool); fn drag_dest_unset(&self); fn drag_highlight(&self); fn drag_source_add_image_targets(&self); fn drag_source_add_text_targets(&self); fn drag_source_add_uri_targets(&self); fn drag_source_set_icon_name(&self, icon_name: &str); fn drag_source_set_icon_pixbuf(&self, pixbuf: &Pixbuf); fn drag_source_set_icon_stock(&self, stock_id: &str); fn drag_source_unset(&self); fn drag_unhighlight(&self); fn draw(&self, cr: &Context); fn error_bell(&self); fn event(&self, event: &Event) -> bool; fn freeze_child_notify(&self); fn get_allocated_height(&self) -> i32; fn get_allocated_width(&self) -> i32; fn get_allocation(&self) -> Allocation; fn get_ancestor(&self, widget_type: Type) -> Option<Widget>; fn get_app_paintable(&self) -> bool; fn get_can_default(&self) -> bool; fn get_can_focus(&self) -> bool; fn get_child_visible(&self) -> bool; fn get_composite_name(&self) -> Option<String>; fn get_device_enabled<T: IsA<Device>>(&self, device: &T) -> bool; fn get_direction(&self) -> TextDirection; fn get_display(&self) -> Option<Display>; fn get_double_buffered(&self) -> bool; fn get_events(&self) -> i32; fn get_halign(&self) -> Align; fn get_has_tooltip(&self) -> bool; fn get_has_window(&self) -> bool; fn get_hexpand(&self) -> bool; fn get_hexpand_set(&self) -> bool; fn get_mapped(&self) -> bool; fn get_margin_bottom(&self) -> i32; fn get_margin_left(&self) -> i32; fn get_margin_right(&self) -> i32; fn get_margin_top(&self) -> i32; fn get_modifier_mask(&self, intent: ModifierIntent) -> ModifierType; fn get_name(&self) -> Option<String>; fn get_no_show_all(&self) -> bool; fn get_parent(&self) -> Option<Widget>; fn get_parent_window(&self) -> Option<Window>; fn get_preferred_height(&self) -> (i32, i32); fn get_preferred_height_for_width(&self, width: i32) -> (i32, i32); fn get_preferred_size(&self) -> (Requisition, Requisition); fn get_preferred_width(&self) -> (i32, i32); fn get_preferred_width_for_height(&self, height: i32) -> (i32, i32); fn get_realized(&self) -> bool; fn get_receives_default(&self) -> bool; fn get_request_mode(&self) -> SizeRequestMode; fn get_root_window(&self) -> Option<Window>; fn get_screen(&self) -> Option<Screen>; fn get_sensitive(&self) -> bool; fn get_settings(&self) -> Option<Settings>; fn get_size_request(&self) -> (i32, i32); fn get_state_flags(&self) -> StateFlags; fn get_style_context(&self) -> Option<StyleContext>; fn get_support_multidevice(&self) -> bool; fn get_template_child(&self,
                          widget_type: Type,
                          name: &str)
                          -> Option<Object>; fn get_tooltip_markup(&self) -> Option<String>; fn get_tooltip_text(&self) -> Option<String>; fn get_tooltip_window(&self) -> Option<Window>; fn get_toplevel(&self) -> Option<Widget>; fn get_valign(&self) -> Align; fn get_vexpand(&self) -> bool; fn get_vexpand_set(&self) -> bool; fn get_visible(&self) -> bool; fn get_visual(&self) -> Option<Visual>; fn get_window(&self) -> Option<Window>; fn grab_add(&self); fn grab_default(&self); fn grab_focus(&self); fn grab_remove(&self); fn has_default(&self) -> bool; fn has_focus(&self) -> bool; fn has_grab(&self) -> bool; fn has_screen(&self) -> bool; fn has_visible_focus(&self) -> bool; fn hide(&self); fn hide_on_delete(&self) -> bool; fn in_destruction(&self) -> bool; fn is_ancestor<T: IsA<Widget>>(&self, ancestor: &T) -> bool; fn is_composited(&self) -> bool; fn is_drawable(&self) -> bool; fn is_focus(&self) -> bool; fn is_sensitive(&self) -> bool; fn is_toplevel(&self) -> bool; fn keynav_failed(&self, direction: DirectionType) -> bool; fn list_mnemonic_labels(&self) -> Vec<Widget>; fn map(&self); fn mnemonic_activate(&self, group_cycling: bool) -> bool; fn override_font(&self, font_desc: Option<&FontDescription>); fn queue_compute_expand(&self); fn queue_draw(&self); fn queue_draw_area(&self, x: i32, y: i32, width: i32, height: i32); fn queue_resize(&self); fn queue_resize_no_redraw(&self); fn realize(&self); fn remove_accelerator(&self,
                          accel_group: &AccelGroup,
                          accel_key: u32,
                          accel_mods: ModifierType)
                          -> bool; fn remove_mnemonic_label<T: IsA<Widget>>(&self, label: &T); fn render_icon_pixbuf(&self, stock_id: &str, size: i32) -> Option<Pixbuf>; fn reparent<T: IsA<Widget>>(&self, new_parent: &T); fn reset_style(&self); fn send_expose(&self, event: &Event) -> i32; fn send_focus_change(&self, event: &Event) -> bool; fn set_accel_path<'a, T: Into<Option<&'a str>>>(&self,
                                                    accel_path: T,
                                                    accel_group: Option<&AccelGroup>); fn set_allocation(&self, allocation: &Allocation); fn set_app_paintable(&self, app_paintable: bool); fn set_can_default(&self, can_default: bool); fn set_can_focus(&self, can_focus: bool); fn set_child_visible(&self, is_visible: bool); fn set_composite_name(&self, name: &str); fn set_device_enabled<T: IsA<Device>>(&self, device: &T, enabled: bool); fn set_direction(&self, dir: TextDirection); fn set_double_buffered(&self, double_buffered: bool); fn set_events(&self, events: i32); fn set_halign(&self, align: Align); fn set_has_tooltip(&self, has_tooltip: bool); fn set_has_window(&self, has_window: bool); fn set_hexpand(&self, expand: bool); fn set_hexpand_set(&self, set: bool); fn set_mapped(&self, mapped: bool); fn set_margin_bottom(&self, margin: i32); fn set_margin_left(&self, margin: i32); fn set_margin_right(&self, margin: i32); fn set_margin_top(&self, margin: i32); fn set_name(&self, name: &str); fn set_no_show_all(&self, no_show_all: bool); fn set_parent<T: IsA<Widget>>(&self, parent: &T); fn set_parent_window(&self, parent_window: &Window); fn set_realized(&self, realized: bool); fn set_receives_default(&self, receives_default: bool); fn set_redraw_on_allocate(&self, redraw_on_allocate: bool); fn set_sensitive(&self, sensitive: bool); fn set_size_request(&self, width: i32, height: i32); fn set_state_flags(&self, flags: StateFlags, clear: bool); fn set_support_multidevice(&self, support_multidevice: bool); fn set_tooltip_markup<'a, T: Into<Option<&'a str>>>(&self, markup: T); fn set_tooltip_text<'a, T: Into<Option<&'a str>>>(&self, text: T); fn set_tooltip_window<T: IsA<Window>>(&self, custom_window: Option<&T>); fn set_valign(&self, align: Align); fn set_vexpand(&self, expand: bool); fn set_vexpand_set(&self, set: bool); fn set_visible(&self, visible: bool); fn set_visual(&self, visual: Option<&Visual>); fn set_window(&self, window: &Window); fn show(&self); fn show_all(&self); fn show_now(&self); fn size_allocate(&self, allocation: &mut Allocation); fn thaw_child_notify(&self); fn translate_coordinates<T: IsA<Widget>>(&self,
                                             dest_widget: &T,
                                             src_x: i32,
                                             src_y: i32)
                                             -> Option<(i32, i32)>; fn trigger_tooltip_query(&self); fn unmap(&self); fn unparent(&self); fn unrealize(&self); fn unset_state_flags(&self, flags: StateFlags); fn get_property_composite_child(&self) -> bool; fn get_property_expand(&self) -> bool; fn set_property_expand(&self, expand: bool); fn get_property_has_default(&self) -> bool; fn set_property_has_default(&self, has_default: bool); fn get_property_has_focus(&self) -> bool; fn set_property_has_focus(&self, has_focus: bool); fn get_property_height_request(&self) -> i32; fn set_property_height_request(&self, height_request: i32); fn get_property_is_focus(&self) -> bool; fn set_property_is_focus(&self, is_focus: bool); fn get_property_margin(&self) -> i32; fn set_property_margin(&self, margin: i32); fn get_property_width_request(&self) -> i32; fn set_property_width_request(&self, width_request: i32); fn connect_accel_closures_changed<F: Fn(&Self) + 'static>(&self,
                                                              f: F)
                                                              -> u64; fn connect_button_press_event<F: Fn(&Self, &EventButton) -> Inhibit + 'static>(&self,
                                                                                   f: F)
                                                                                   -> u64; fn connect_button_release_event<F: Fn(&Self, &EventButton) -> Inhibit + 'static>(&self,
                                                                                     f: F)
                                                                                     -> u64; fn connect_can_activate_accel<F: Fn(&Self, u32) -> bool + 'static>(&self,
                                                                       f: F)
                                                                       -> u64; fn connect_composited_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_configure_event<F: Fn(&Self, &EventConfigure) -> bool + 'static>(&self,
                                                                                f: F)
                                                                                -> u64; fn connect_damage_event<F: Fn(&Self, &EventExpose) -> bool + 'static>(&self,
                                                                          f: F)
                                                                          -> u64; fn connect_delete_event<F: Fn(&Self, &Event) -> Inhibit + 'static>(&self,
                                                                       f: F)
                                                                       -> u64; fn connect_destroy<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_destroy_event<F: Fn(&Self, &Event) -> Inhibit + 'static>(&self,
                                                                        f: F)
                                                                        -> u64; fn connect_direction_changed<F: Fn(&Self, TextDirection) + 'static>(&self,
                                                                        f: F)
                                                                        -> u64; fn connect_drag_begin<F: Fn(&Self, &DragContext) + 'static>(&self,
                                                                f: F)
                                                                -> u64; fn connect_drag_data_delete<F: Fn(&Self, &DragContext) + 'static>(&self,
                                                                      f: F)
                                                                      -> u64; fn connect_drag_data_get<F: Fn(&Self, &DragContext, &SelectionData, u32, u32) + 'static>(&self,
                                                                                             f: F)
                                                                                             -> u64; fn connect_drag_data_received<F: Fn(&Self, &DragContext, i32, i32, &SelectionData, u32, u32) + 'static>(&self,
                                                                                                            f: F)
                                                                                                            -> u64; fn connect_drag_drop<F: Fn(&Self, &DragContext, i32, i32, u32) -> bool + 'static>(&self,
                                                                                      f: F)
                                                                                      -> u64; fn connect_drag_end<F: Fn(&Self, &DragContext) + 'static>(&self,
                                                              f: F)
                                                              -> u64; fn connect_drag_failed<F: Fn(&Self, &DragContext, DragResult) -> Inhibit + 'static>(&self,
                                                                                        f: F)
                                                                                        -> u64; fn connect_drag_leave<F: Fn(&Self, &DragContext, u32) + 'static>(&self,
                                                                     f: F)
                                                                     -> u64; fn connect_drag_motion<F: Fn(&Self, &DragContext, i32, i32, u32) -> bool + 'static>(&self,
                                                                                        f: F)
                                                                                        -> u64; fn connect_draw<F: Fn(&Self, &Context) -> Inhibit + 'static>(&self,
                                                                 f: F)
                                                                 -> u64; fn connect_enter_notify_event<F: Fn(&Self, &EventCrossing) -> Inhibit + 'static>(&self,
                                                                                     f: F)
                                                                                     -> u64; fn connect_event<F: Fn(&Self, &Event) -> Inhibit + 'static>(&self,
                                                                f: F)
                                                                -> u64; fn connect_event_after<F: Fn(&Self, &Event) + 'static>(&self, f: F) -> u64; fn connect_focus<F: Fn(&Self, DirectionType) -> Inhibit + 'static>(&self,
                                                                       f: F)
                                                                       -> u64; fn connect_focus_in_event<F: Fn(&Self, &EventFocus) -> Inhibit + 'static>(&self,
                                                                              f: F)
                                                                              -> u64; fn connect_focus_out_event<F: Fn(&Self, &EventFocus) -> Inhibit + 'static>(&self,
                                                                               f: F)
                                                                               -> u64; fn connect_grab_broken_event<F: Fn(&Self, &EventGrabBroken) -> Inhibit + 'static>(&self,
                                                                                      f: F)
                                                                                      -> u64; fn connect_grab_focus<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_grab_notify<F: Fn(&Self, bool) + 'static>(&self, f: F) -> u64; fn connect_hide<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_hierarchy_changed<F: Fn(&Self, &Option<Widget>) + 'static>(&self,
                                                                          f: F)
                                                                          -> u64; fn connect_key_press_event<F: Fn(&Self, &EventKey) -> Inhibit + 'static>(&self,
                                                                             f: F)
                                                                             -> u64; fn connect_key_release_event<F: Fn(&Self, &EventKey) -> Inhibit + 'static>(&self,
                                                                               f: F)
                                                                               -> u64; fn connect_keynav_failed<F: Fn(&Self, DirectionType) -> Inhibit + 'static>(&self,
                                                                               f: F)
                                                                               -> u64; fn connect_leave_notify_event<F: Fn(&Self, &EventCrossing) -> Inhibit + 'static>(&self,
                                                                                     f: F)
                                                                                     -> u64; fn connect_map<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_mnemonic_activate<F: Fn(&Self, bool) -> Inhibit + 'static>(&self,
                                                                          f: F)
                                                                          -> u64; fn connect_motion_notify_event<F: Fn(&Self, &EventMotion) -> Inhibit + 'static>(&self,
                                                                                    f: F)
                                                                                    -> u64; fn connect_move_focus<F: Fn(&Self, DirectionType) + 'static>(&self,
                                                                 f: F)
                                                                 -> u64; fn connect_parent_set<F: Fn(&Self, &Option<Widget>) + 'static>(&self,
                                                                   f: F)
                                                                   -> u64; fn connect_popup_menu<F: Fn(&Self) -> bool + 'static>(&self, f: F) -> u64; fn connect_property_notify_event<F: Fn(&Self, &EventProperty) -> Inhibit + 'static>(&self,
                                                                                        f: F)
                                                                                        -> u64; fn connect_proximity_in_event<F: Fn(&Self, &EventProximity) -> Inhibit + 'static>(&self,
                                                                                      f: F)
                                                                                      -> u64; fn connect_proximity_out_event<F: Fn(&Self, &EventProximity) -> Inhibit + 'static>(&self,
                                                                                       f: F)
                                                                                       -> u64; fn connect_query_tooltip<F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static>(&self,
                                                                                       f: F)
                                                                                       -> u64; fn connect_realize<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_screen_changed<F: Fn(&Self, &Option<Screen>) + 'static>(&self,
                                                                       f: F)
                                                                       -> u64; fn connect_scroll_event<F: Fn(&Self, &EventScroll) -> Inhibit + 'static>(&self,
                                                                             f: F)
                                                                             -> u64; fn connect_selection_clear_event<F: Fn(&Self, &EventSelection) -> Inhibit + 'static>(&self,
                                                                                         f: F)
                                                                                         -> u64; fn connect_selection_get<F: Fn(&Self, &SelectionData, u32, u32) + 'static>(&self,
                                                                               f: F)
                                                                               -> u64; fn connect_selection_notify_event<F: Fn(&Self, &EventSelection) -> Inhibit + 'static>(&self,
                                                                                          f: F)
                                                                                          -> u64; fn connect_selection_received<F: Fn(&Self, &SelectionData, u32) + 'static>(&self,
                                                                               f: F)
                                                                               -> u64; fn connect_selection_request_event<F: Fn(&Self, &EventSelection) -> Inhibit + 'static>(&self,
                                                                                           f: F)
                                                                                           -> u64; fn connect_show<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_show_help<F: Fn(&Self, WidgetHelpType) -> bool + 'static>(&self,
                                                                         f: F)
                                                                         -> u64; fn connect_size_allocate<F: Fn(&Self, &Allocation) + 'static>(&self,
                                                                  f: F)
                                                                  -> u64; fn connect_state_flags_changed<F: Fn(&Self, StateFlags) + 'static>(&self,
                                                                       f: F)
                                                                       -> u64; fn connect_style_updated<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_touch_event<F: Fn(&Self, &Event) -> Inhibit + 'static>(&self,
                                                                      f: F)
                                                                      -> u64; fn connect_unmap<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_unrealize<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_visibility_notify_event<F: Fn(&Self, &EventVisibility) -> Inhibit + 'static>(&self,
                                                                                            f: F)
                                                                                            -> u64; fn connect_window_state_event<F: Fn(&Self, &EventWindowState) -> Inhibit + 'static>(&self,
                                                                                        f: F)
                                                                                        -> u64; }

Required Methods

Implementors