[][src]Trait gtk::FileChooserNativeExt

pub trait FileChooserNativeExt: 'static {
    fn get_accept_label(&self) -> Option<GString>;
fn get_cancel_label(&self) -> Option<GString>;
fn set_accept_label(&self, accept_label: Option<&str>);
fn set_cancel_label(&self, cancel_label: Option<&str>);
fn get_property_accept_label(&self) -> Option<GString>;
fn set_property_accept_label(&self, accept_label: Option<&str>);
fn get_property_cancel_label(&self) -> Option<GString>;
fn set_property_cancel_label(&self, cancel_label: Option<&str>);
fn connect_property_accept_label_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_cancel_label_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all FileChooserNative methods.

Feature: v3_20

Implementors

FileChooserNative

Required methods

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

Retrieves the custom label text for the accept button.

Feature: v3_20

Returns

The custom label, or None for the default. This string is owned by GTK+ and should not be modified or freed

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

Retrieves the custom label text for the cancel button.

Feature: v3_20

Returns

The custom label, or None for the default. This string is owned by GTK+ and should not be modified or freed

fn set_accept_label(&self, accept_label: Option<&str>)

Sets the custom label text for the accept button.

If characters in label are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use “__” (two underscores). The first underlined character represents a keyboard accelerator called a mnemonic. Pressing Alt and that key activates the button.

Feature: v3_20

accept_label

custom label or None for the default

fn set_cancel_label(&self, cancel_label: Option<&str>)

Sets the custom label text for the cancel button.

If characters in label are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use “__” (two underscores). The first underlined character represents a keyboard accelerator called a mnemonic. Pressing Alt and that key activates the button.

Feature: v3_20

cancel_label

custom label or None for the default

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

The text used for the label on the accept button in the dialog, or None to use the default text.

fn set_property_accept_label(&self, accept_label: Option<&str>)

The text used for the label on the accept button in the dialog, or None to use the default text.

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

The text used for the label on the cancel button in the dialog, or None to use the default text.

fn set_property_cancel_label(&self, cancel_label: Option<&str>)

The text used for the label on the cancel button in the dialog, or None to use the default text.

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

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

Loading content...

Implementors

impl<O: IsA<FileChooserNative>> FileChooserNativeExt for O[src]

Loading content...