[][src]Struct libhandy4::Keypad

pub struct Keypad(_);

Implementations

impl Keypad[src]

pub fn new(symbols_visible: bool, letters_visible: bool) -> Keypad[src]

Create a new Keypad widget.

symbols_visible

whether the hash, plus, and asterisk symbols should be visible

letters_visible

whether the letters below the digits should be visible

Returns

the newly created Keypad widget

pub fn get_column_spacing(&self) -> u32[src]

Returns the amount of space between the columns of self.

Returns

the column spacing of self

pub fn get_end_action(&self) -> Option<Widget>[src]

Returns the widget for the lower right corner (or left, in RTL locales) of self.

Returns

the end action widget

pub fn get_entry(&self) -> Option<Entry>[src]

Get the connected entry. See Keypad::set_entry for details.

Returns

the set gtk::Entry or None if no widget was set

pub fn get_letters_visible(&self) -> bool[src]

Returns whether self should display the standard letters below the digits on its buttons.

Returns

whether the letters below the digits should be visible

pub fn get_row_spacing(&self) -> u32[src]

Returns the amount of space between the rows of self.

Returns

the row spacing of self

pub fn get_start_action(&self) -> Option<Widget>[src]

Returns the widget for the lower left corner (or right, in RTL locales) of self.

Returns

the start action widget

pub fn get_symbols_visible(&self) -> bool[src]

Returns whether self should display the standard letters below the digits on its buttons.

Returns Whether self should display the hash and asterisk buttons, and should display the plus symbol at the bottom of its 0 button.

Returns

whether the hash, plus, and asterisk symbols should be visible

pub fn set_column_spacing(&self, spacing: u32)[src]

Sets the amount of space between columns of self.

spacing

the amount of space to insert between columns

pub fn set_end_action<P: IsA<Widget>>(&self, end_action: Option<&P>)[src]

Sets the widget for the lower right corner (or left, in RTL locales) of self.

end_action

the end action widget

pub fn set_entry<P: IsA<Entry>>(&self, entry: Option<&P>)[src]

Binds entry to self and blocks any input which wouldn't be possible to type with with the keypad.

entry

a gtk::Entry

pub fn set_letters_visible(&self, letters_visible: bool)[src]

Sets whether self should display the standard letters below the digits on its buttons.

letters_visible

whether the letters below the digits should be visible

pub fn set_row_spacing(&self, spacing: u32)[src]

Sets the amount of space between rows of self.

spacing

the amount of space to insert between rows

pub fn set_start_action<P: IsA<Widget>>(&self, start_action: Option<&P>)[src]

Sets the widget for the lower left corner (or right, in RTL locales) of self.

start_action

the start action widget

pub fn set_symbols_visible(&self, symbols_visible: bool)[src]

Sets whether self should display the hash and asterisk buttons, and should display the plus symbol at the bottom of its 0 button.

symbols_visible

whether the hash, plus, and asterisk symbols should be visible

pub fn connect_property_column_spacing_notify<F: Fn(&Keypad) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_end_action_notify<F: Fn(&Keypad) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_entry_notify<F: Fn(&Keypad) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_letters_visible_notify<F: Fn(&Keypad) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_row_spacing_notify<F: Fn(&Keypad) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_start_action_notify<F: Fn(&Keypad) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_symbols_visible_notify<F: Fn(&Keypad) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Trait Implementations

impl Clone for Keypad[src]

impl Debug for Keypad[src]

impl Display for Keypad[src]

impl Eq for Keypad[src]

impl Hash for Keypad[src]

impl IsA<Accessible> for Keypad[src]

impl IsA<Buildable> for Keypad[src]

impl IsA<ConstraintTarget> for Keypad[src]

impl IsA<Widget> for Keypad[src]

impl Ord for Keypad[src]

impl ParentClassIs for Keypad[src]

type Parent = Widget

impl<T: ObjectType> PartialEq<T> for Keypad[src]

impl<T: ObjectType> PartialOrd<T> for Keypad[src]

impl StaticType for Keypad[src]

impl StructuralEq for Keypad[src]

Auto Trait Implementations

impl RefUnwindSafe for Keypad[src]

impl !Send for Keypad[src]

impl !Sync for Keypad[src]

impl Unpin for Keypad[src]

impl UnwindSafe for Keypad[src]

Blanket Implementations

impl<O> AccessibleExt for O where
    O: IsA<Accessible>, 

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<O> BuildableExt for O where
    O: IsA<Buildable>, 

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<O> ConstraintTargetExt for O where
    O: IsA<ConstraintTarget>, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<O> WidgetExt for O where
    O: IsA<Widget>, 

impl<O> WidgetExtManual for O where
    O: IsA<Widget>,