Struct gio::ActionEntryBuilder
source · pub struct ActionEntryBuilder<O>(_)
where
O: IsA<ActionMap>;
Implementations§
source§impl<O> ActionEntryBuilder<O>where
O: IsA<ActionMap>,
impl<O> ActionEntryBuilder<O>where O: IsA<ActionMap>,
pub fn new(name: &str) -> Self
pub fn parameter_type(self, parameter_type: &str) -> Self
pub fn state(self, state: &str) -> Self
pub fn activate<F: Fn(&O, &SimpleAction, Option<&Variant>) + 'static>( self, callback: F ) -> Self
pub fn change_state<F: Fn(&O, &SimpleAction, Option<&Variant>) + 'static>( self, callback: F ) -> Self
pub fn build(self) -> ActionEntry<O>
Trait Implementations§
Auto Trait Implementations§
impl<O> !RefUnwindSafe for ActionEntryBuilder<O>
impl<O> !Send for ActionEntryBuilder<O>
impl<O> !Sync for ActionEntryBuilder<O>
impl<O> Unpin for ActionEntryBuilder<O>
impl<O> !UnwindSafe for ActionEntryBuilder<O>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more