[][src]Trait gtk::FileChooserButtonExt

pub trait FileChooserButtonExt: 'static {
    fn get_focus_on_click(&self) -> bool;
fn get_title(&self) -> Option<GString>;
fn get_width_chars(&self) -> i32;
fn set_focus_on_click(&self, focus_on_click: bool);
fn set_title(&self, title: &str);
fn set_width_chars(&self, n_chars: i32);
fn connect_file_set<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_title_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_width_chars_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all FileChooserButton methods.

Implementors

FileChooserButton

Required methods

fn get_focus_on_click(&self) -> bool

Returns whether the button grabs focus when it is clicked with the mouse. See FileChooserButtonExt::set_focus_on_click.

Deprecated since 3.20

Use WidgetExt::get_focus_on_click instead

Returns

true if the button grabs focus when it is clicked with the mouse.

fn get_title(&self) -> Option<GString>

Retrieves the title of the browse dialog used by self. The returned value should not be modified or freed.

Returns

a pointer to the browse dialog’s title.

fn get_width_chars(&self) -> i32

Retrieves the width in characters of the self widget’s entry and/or label.

Returns

an integer width (in characters) that the button will use to size itself.

fn set_focus_on_click(&self, focus_on_click: bool)

Sets whether the button will grab focus when it is clicked with the mouse. Making mouse clicks not grab focus is useful in places like toolbars where you don’t want the keyboard focus removed from the main area of the application.

Deprecated since 3.20

Use WidgetExt::set_focus_on_click instead

focus_on_click

whether the button grabs focus when clicked with the mouse

fn set_title(&self, title: &str)

Modifies the title of the browse dialog used by self.

title

the new browse dialog title.

fn set_width_chars(&self, n_chars: i32)

Sets the width (in characters) that self will use to n_chars.

n_chars

the new width, in characters.

fn connect_file_set<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

The ::file-set signal is emitted when the user selects a file.

Note that this signal is only emitted when the user changes the file.

fn connect_property_title_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_width_chars_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<FileChooserButton>> FileChooserButtonExt for O[src]

Loading content...