Trait gtk::prelude::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_device_events<P: IsA<Device>>(&self, device: &P, events: EventMask); fn add_events(&self, events: i32); fn add_mnemonic_label<P: IsA<Widget>>(&self, label: &P); 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 create_pango_context(&self) -> Option<Context>; fn create_pango_layout<'a, P: Into<Option<&'a str>>>(
        &self,
        text: P
    ) -> Option<Layout>; fn destroy(&self); fn device_is_shadowed<P: IsA<Device>>(&self, device: &P) -> bool; fn drag_begin<'a, P: Into<Option<&'a Event>>>(
        &self,
        targets: &TargetList,
        actions: DragAction,
        button: i32,
        event: P
    ) -> Option<DragContext>; fn drag_begin_with_coordinates<'a, P: Into<Option<&'a Event>>>(
        &self,
        targets: &TargetList,
        actions: DragAction,
        button: i32,
        event: P,
        x: i32,
        y: i32
    ) -> Option<DragContext>; 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_find_target<'a, P: Into<Option<&'a TargetList>>>(
        &self,
        context: &DragContext,
        target_list: P
    ) -> Option<Atom>; fn drag_dest_get_target_list(&self) -> Option<TargetList>; fn drag_dest_get_track_motion(&self) -> bool; fn drag_dest_set_proxy(
        &self,
        proxy_window: &Window,
        protocol: DragProtocol,
        use_coordinates: bool
    ); fn drag_dest_set_target_list<'a, P: Into<Option<&'a TargetList>>>(
        &self,
        target_list: P
    ); fn drag_dest_set_track_motion(&self, track_motion: bool); fn drag_dest_unset(&self); fn drag_get_data(&self, context: &DragContext, target: &Atom, time_: u32); 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_get_target_list(&self) -> Option<TargetList>; fn drag_source_set_icon_gicon<P: IsA<Icon>>(&self, icon: &P); 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_set_target_list<'a, P: Into<Option<&'a TargetList>>>(
        &self,
        target_list: P
    ); 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_action_group(&self, prefix: &str) -> Option<ActionGroup>; fn get_allocated_baseline(&self) -> i32; fn get_allocated_height(&self) -> i32; fn get_allocated_size(&self) -> (Allocation, 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_clip(&self) -> Allocation; fn get_clipboard(&self, selection: &Atom) -> Clipboard; fn get_composite_name(&self) -> Option<String>; fn get_device_enabled<P: IsA<Device>>(&self, device: &P) -> bool; fn get_device_events<P: IsA<Device>>(&self, device: &P) -> EventMask; fn get_direction(&self) -> TextDirection; fn get_display(&self) -> Option<Display>; fn get_double_buffered(&self) -> bool; fn get_events(&self) -> i32; fn get_focus_on_click(&self) -> bool; fn get_font_map(&self) -> Option<FontMap>; fn get_frame_clock(&self) -> Option<FrameClock>; 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_end(&self) -> i32; fn get_margin_left(&self) -> i32; fn get_margin_right(&self) -> i32; fn get_margin_start(&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_opacity(&self) -> f64; fn get_pango_context(&self) -> Option<Context>; fn get_parent(&self) -> Option<Widget>; fn get_parent_window(&self) -> Option<Window>; fn get_preferred_height(&self) -> (i32, i32); fn get_preferred_height_and_baseline_for_width(
        &self,
        width: i32
    ) -> (i32, i32, 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_scale_factor(&self) -> i32; 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_valign_with_baseline(&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 init_template(&self); fn input_shape_combine_region<'a, P: Into<Option<&'a Region>>>(
        &self,
        region: P
    ); fn insert_action_group<'a, P: IsA<ActionGroup> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        name: &str,
        group: Q
    ); fn is_ancestor<P: IsA<Widget>>(&self, ancestor: &P) -> 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 is_visible(&self) -> bool; fn keynav_failed(&self, direction: DirectionType) -> bool; fn list_action_prefixes(&self) -> Vec<String>; fn list_mnemonic_labels(&self) -> Vec<Widget>; fn map(&self); fn mnemonic_activate(&self, group_cycling: bool) -> bool; fn override_background_color<'a, P: Into<Option<&'a RGBA>>>(
        &self,
        state: StateFlags,
        color: P
    ); fn override_color<'a, P: Into<Option<&'a RGBA>>>(
        &self,
        state: StateFlags,
        color: P
    ); fn override_cursor<'a, 'b, P: Into<Option<&'a RGBA>>, Q: Into<Option<&'b RGBA>>>(
        &self,
        cursor: P,
        secondary_cursor: Q
    ); fn override_font<'a, P: Into<Option<&'a FontDescription>>>(
        &self,
        font_desc: P
    ); fn override_symbolic_color<'a, P: Into<Option<&'a RGBA>>>(
        &self,
        name: &str,
        color: P
    ); fn queue_allocate(&self); fn queue_compute_expand(&self); fn queue_draw(&self); fn queue_draw_area(&self, x: i32, y: i32, width: i32, height: i32); fn queue_draw_region(&self, region: &Region); fn queue_resize(&self); fn queue_resize_no_redraw(&self); fn realize(&self); fn region_intersect(&self, region: &Region) -> Option<Region>; fn register_window(&self, window: &Window); fn remove_accelerator(
        &self,
        accel_group: &AccelGroup,
        accel_key: u32,
        accel_mods: ModifierType
    ) -> bool; fn remove_mnemonic_label<P: IsA<Widget>>(&self, label: &P); fn remove_tick_callback(&self, id: u32); fn render_icon_pixbuf(&self, stock_id: &str, size: i32) -> Option<Pixbuf>; fn reparent<P: IsA<Widget>>(&self, new_parent: &P); fn reset_style(&self); fn send_expose(&self, event: &Event) -> i32; fn send_focus_change(&self, event: &Event) -> bool; fn set_accel_path<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b AccelGroup>>>(
        &self,
        accel_path: P,
        accel_group: Q
    ); 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_clip(&self, clip: &Allocation); fn set_composite_name(&self, name: &str); fn set_device_enabled<P: IsA<Device>>(&self, device: &P, enabled: bool); fn set_device_events<P: IsA<Device>>(&self, device: &P, events: EventMask); fn set_direction(&self, dir: TextDirection); fn set_double_buffered(&self, double_buffered: bool); fn set_events(&self, events: i32); fn set_focus_on_click(&self, focus_on_click: bool); fn set_font_map<'a, P: Into<Option<&'a FontMap>>>(&self, font_map: P); 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_end(&self, margin: i32); fn set_margin_left(&self, margin: i32); fn set_margin_right(&self, margin: i32); fn set_margin_start(&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_opacity(&self, opacity: f64); fn set_parent<P: IsA<Widget>>(&self, parent: &P); 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, P: Into<Option<&'a str>>>(&self, markup: P); fn set_tooltip_text<'a, P: Into<Option<&'a str>>>(&self, text: P); fn set_tooltip_window<'a, P: IsA<Window> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        custom_window: Q
    ); 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<'a, P: Into<Option<&'a Visual>>>(&self, visual: P); fn set_window(&self, window: &Window); fn shape_combine_region<'a, P: Into<Option<&'a Region>>>(&self, region: P); fn show(&self); fn show_all(&self); fn show_now(&self); fn size_allocate(&self, allocation: &mut Allocation); fn size_allocate_with_baseline(
        &self,
        allocation: &mut Allocation,
        baseline: i32
    ); fn thaw_child_notify(&self); fn translate_coordinates<P: IsA<Widget>>(
        &self,
        dest_widget: &P,
        src_x: i32,
        src_y: i32
    ) -> Option<(i32, i32)>; fn trigger_tooltip_query(&self); fn unmap(&self); fn unparent(&self); fn unrealize(&self); fn unregister_window(&self, window: &Window); 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) -> Inhibit + '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) -> Inhibit + '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