Struct gtk::builders::ShortcutsShortcutBuilder
source · [−]pub struct ShortcutsShortcutBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct ShortcutsShortcut
objects.
Implementations
sourceimpl ShortcutsShortcutBuilder
impl ShortcutsShortcutBuilder
sourcepub fn new() -> Self
Available on crate feature v3_20
only.
pub fn new() -> Self
v3_20
only.Create a new ShortcutsShortcutBuilder
.
sourcepub fn build(self) -> ShortcutsShortcut
Available on crate feature v3_20
only.
pub fn build(self) -> ShortcutsShortcut
v3_20
only.Build the ShortcutsShortcut
.
pub fn accel_size_group(self, accel_size_group: &impl IsA<SizeGroup>) -> Self
Available on crate feature
v3_20
only.pub fn accelerator(self, accelerator: &str) -> Self
Available on crate feature
v3_20
only.pub fn action_name(self, action_name: &str) -> Self
Available on crate features
v3_20
and v3_22
only.pub fn direction(self, direction: TextDirection) -> Self
Available on crate feature
v3_20
only.pub fn icon(self, icon: &impl IsA<Icon>) -> Self
Available on crate feature
v3_20
only.pub fn icon_set(self, icon_set: bool) -> Self
Available on crate feature
v3_20
only.pub fn shortcut_type(self, shortcut_type: ShortcutType) -> Self
Available on crate feature
v3_20
only.pub fn subtitle(self, subtitle: &str) -> Self
Available on crate feature
v3_20
only.pub fn subtitle_set(self, subtitle_set: bool) -> Self
Available on crate feature
v3_20
only.pub fn title(self, title: &str) -> Self
Available on crate feature
v3_20
only.pub fn title_size_group(self, title_size_group: &impl IsA<SizeGroup>) -> Self
Available on crate feature
v3_20
only.pub fn baseline_position(self, baseline_position: BaselinePosition) -> Self
Available on crate feature
v3_20
only.pub fn homogeneous(self, homogeneous: bool) -> Self
Available on crate feature
v3_20
only.pub fn spacing(self, spacing: i32) -> Self
Available on crate feature
v3_20
only.pub fn border_width(self, border_width: u32) -> Self
Available on crate feature
v3_20
only.pub fn child(self, child: &impl IsA<Widget>) -> Self
Available on crate feature
v3_20
only.pub fn resize_mode(self, resize_mode: ResizeMode) -> Self
Available on crate feature
v3_20
only.pub fn app_paintable(self, app_paintable: bool) -> Self
Available on crate feature
v3_20
only.pub fn can_default(self, can_default: bool) -> Self
Available on crate feature
v3_20
only.pub fn can_focus(self, can_focus: bool) -> Self
Available on crate feature
v3_20
only.pub fn events(self, events: EventMask) -> Self
Available on crate feature
v3_20
only.pub fn expand(self, expand: bool) -> Self
Available on crate feature
v3_20
only.pub fn focus_on_click(self, focus_on_click: bool) -> Self
Available on crate feature
v3_20
only.pub fn halign(self, halign: Align) -> Self
Available on crate feature
v3_20
only.pub fn has_default(self, has_default: bool) -> Self
Available on crate feature
v3_20
only.pub fn has_focus(self, has_focus: bool) -> Self
Available on crate feature
v3_20
only.pub fn has_tooltip(self, has_tooltip: bool) -> Self
Available on crate feature
v3_20
only.pub fn height_request(self, height_request: i32) -> Self
Available on crate feature
v3_20
only.pub fn hexpand(self, hexpand: bool) -> Self
Available on crate feature
v3_20
only.pub fn hexpand_set(self, hexpand_set: bool) -> Self
Available on crate feature
v3_20
only.pub fn is_focus(self, is_focus: bool) -> Self
Available on crate feature
v3_20
only.pub fn margin(self, margin: i32) -> Self
Available on crate feature
v3_20
only.pub fn margin_bottom(self, margin_bottom: i32) -> Self
Available on crate feature
v3_20
only.pub fn margin_end(self, margin_end: i32) -> Self
Available on crate feature
v3_20
only.pub fn margin_start(self, margin_start: i32) -> Self
Available on crate feature
v3_20
only.pub fn margin_top(self, margin_top: i32) -> Self
Available on crate feature
v3_20
only.pub fn name(self, name: &str) -> Self
Available on crate feature
v3_20
only.pub fn no_show_all(self, no_show_all: bool) -> Self
Available on crate feature
v3_20
only.pub fn opacity(self, opacity: f64) -> Self
Available on crate feature
v3_20
only.pub fn parent(self, parent: &impl IsA<Container>) -> Self
Available on crate feature
v3_20
only.pub fn receives_default(self, receives_default: bool) -> Self
Available on crate feature
v3_20
only.pub fn sensitive(self, sensitive: bool) -> Self
Available on crate feature
v3_20
only.pub fn tooltip_markup(self, tooltip_markup: &str) -> Self
Available on crate feature
v3_20
only.pub fn tooltip_text(self, tooltip_text: &str) -> Self
Available on crate feature
v3_20
only.pub fn valign(self, valign: Align) -> Self
Available on crate feature
v3_20
only.pub fn vexpand(self, vexpand: bool) -> Self
Available on crate feature
v3_20
only.pub fn vexpand_set(self, vexpand_set: bool) -> Self
Available on crate feature
v3_20
only.pub fn visible(self, visible: bool) -> Self
Available on crate feature
v3_20
only.pub fn width_request(self, width_request: i32) -> Self
Available on crate feature
v3_20
only.pub fn orientation(self, orientation: Orientation) -> Self
Available on crate feature
v3_20
only.Trait Implementations
sourceimpl Clone for ShortcutsShortcutBuilder
Available on crate feature v3_20
only.
impl Clone for ShortcutsShortcutBuilder
Available on crate feature
v3_20
only.sourcefn clone(&self) -> ShortcutsShortcutBuilder
fn clone(&self) -> ShortcutsShortcutBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for ShortcutsShortcutBuilder
Available on crate feature v3_20
only.
impl Default for ShortcutsShortcutBuilder
Available on crate feature
v3_20
only.sourcefn default() -> ShortcutsShortcutBuilder
fn default() -> ShortcutsShortcutBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ShortcutsShortcutBuilder
impl !Send for ShortcutsShortcutBuilder
impl !Sync for ShortcutsShortcutBuilder
impl Unpin for ShortcutsShortcutBuilder
impl UnwindSafe for ShortcutsShortcutBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more