[][src]Struct libhandy4::Flap

pub struct Flap(_);

Implementations

impl Flap[src]

pub fn new() -> Flap[src]

Creates a new Flap.

Returns

a new Flap

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

Gets the content widget for self

Returns

the content widget for self

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

Gets the flap widget for self

Returns

the flap widget for self

pub fn get_flap_position(&self) -> PackType[src]

Gets the flap position for self.

Returns

the flap position for self

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

Returns the amount of time (in milliseconds) that fold transitions in self will take.

Returns

the fold transition duration

pub fn get_fold_policy(&self) -> FlapFoldPolicy[src]

Gets the current fold policy of self. See Flap::set_fold_policy.

Returns

the current fold policy of self

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

Gets whether self is currently folded.

See Flap:fold-policy.

Returns

true if self is currently folded, false otherwise

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

Gets whether self is locked.

Returns

true if self is locked, false otherwise

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

Gets whether the self is modal. See Flap::set_modal.

Returns

true if self is modal

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

Returns the amount of time (in milliseconds) that reveal transitions in self will take.

Returns

the reveal transition duration

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

Gets whether the flap widget is revealed for self.

Returns

true if the flap widget is revealed, false otherwise.

pub fn get_reveal_progress(&self) -> f64[src]

Gets the current reveal transition progress for self. 0 means fully hidden, 1 means fully revealed. See Flap:reveal-flap.

Returns

the current reveal progress for self

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

Gets the separator widget for self.

Returns

the separator widget for self

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

Gets whether self can be closed with a swipe gesture.

Returns

true if self can be closed with a swipe gesture

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

Gets whether self can be opened with a swipe gesture.

Returns

true if self can be opened with a swipe gesture

pub fn get_transition_type(&self) -> FlapTransitionType[src]

Gets the type of animation that will be used for reveal and fold transitions in self.

Returns

the current transition type of self

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

Sets the content widget for self, always displayed when unfolded, and partially visible when folded.

content

the content widget, or None

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

Sets the flap widget for self, only visible when Flap:reveal-progress is greater than 0.

flap

the flap widget, or None

pub fn set_flap_position(&self, position: PackType)[src]

Sets the flap position for self. If gtk::PackType::Start, the flap is displayed before the content, if gtk::PackType::End, it's displayed after the content.

position

the new value

pub fn set_fold_duration(&self, duration: u32)[src]

Sets the duration that fold transitions in self will take.

duration

the new duration, in milliseconds

pub fn set_fold_policy(&self, policy: FlapFoldPolicy)[src]

Sets the current fold policy for self. See FlapFoldPolicy for available policies.

policy

Fold policy

pub fn set_locked(&self, locked: bool)[src]

Sets whether self is locked.

If false, folding self when the flap is revealed automatically closes it, and unfolding it when the flap is not revealed opens it. If true, Flap:reveal-flap value never changes on its own.

locked

the new value

pub fn set_modal(&self, modal: bool)[src]

Sets whether the self can be closed with a click.

If modal is true, clicking the content widget while flap is revealed, or pressing Escape key, will close the flap. If false, clicks are passed through to the content widget.

Whether self can be closed with a click

pub fn set_reveal_duration(&self, duration: u32)[src]

Sets the duration that reveal transitions in self will take.

duration

the new duration, in milliseconds

pub fn set_reveal_flap(&self, reveal_flap: bool)[src]

Sets whether the flap widget is revealed for self.

reveal_flap

true to reveal the flap widget, false otherwise

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

Sets the separator widget for self, displayed between content and flap when there's no shadow to display. When exactly it's visible depends on the Flap:transition-type value. If None, no separator will be used.

separator

the separator widget, or None

pub fn set_swipe_to_close(&self, swipe_to_close: bool)[src]

Sets whether self can be closed with a swipe gesture.

The area that can be swiped depends on the Flap:transition-type value.

swipe_to_close

Whether self can be closed with a swipe gesture

pub fn set_swipe_to_open(&self, swipe_to_open: bool)[src]

Sets whether self can be opened with a swipe gesture.

The area that can be swiped depends on the Flap:transition-type value.

swipe_to_open

Whether self can be opened with a swipe gesture

pub fn set_transition_type(&self, transition_type: FlapTransitionType)[src]

Sets the type of animation that will be used for reveal and fold transitions in self.

Flap:flap is transparent by default, which means the content will be seen through it with FlapTransitionType::Over transitions; add the .background style class to it if this is unwanted.

transition_type

the new transition type

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Trait Implementations

impl Clone for Flap[src]

impl Debug for Flap[src]

impl Default for Flap[src]

impl Display for Flap[src]

impl Eq for Flap[src]

impl Hash for Flap[src]

impl IsA<Accessible> for Flap[src]

impl IsA<Buildable> for Flap[src]

impl IsA<ConstraintTarget> for Flap[src]

impl IsA<Orientable> for Flap[src]

impl IsA<Swipeable> for Flap[src]

impl IsA<Widget> for Flap[src]

impl Ord for Flap[src]

impl ParentClassIs for Flap[src]

type Parent = Widget

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

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

impl StaticType for Flap[src]

impl StructuralEq for Flap[src]

Auto Trait Implementations

impl RefUnwindSafe for Flap[src]

impl !Send for Flap[src]

impl !Sync for Flap[src]

impl Unpin for Flap[src]

impl UnwindSafe for Flap[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<O> OrientableExt for O where
    O: IsA<Orientable>, 

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>,