[−][src]Struct libhandy4::Leaflet
Implementations
impl Leaflet
[src]
pub fn new() -> Leaflet
[src]
pub fn append<P: IsA<Widget>>(&self, child: &P) -> Option<LeafletPage>
[src]
pub fn get_adjacent_child(
&self,
direction: NavigationDirection
) -> Option<Widget>
[src]
&self,
direction: NavigationDirection
) -> Option<Widget>
Gets the previous or next child that doesn't have 'navigatable' child
property set to false
, or None
if it doesn't exist. This will be the same
widget Leaflet::navigate
will navigate to.
direction
the direction
Returns
the previous or next child, or
None
if it doesn't exist.
pub fn get_can_swipe_back(&self) -> bool
[src]
Returns whether the Leaflet
allows swiping to the previous child.
Returns
true
if back swipe is enabled.
pub fn get_can_swipe_forward(&self) -> bool
[src]
Returns whether the Leaflet
allows swiping to the next child.
Returns
true
if forward swipe is enabled.
pub fn get_can_unfold(&self) -> bool
[src]
pub fn get_child_by_name(&self, name: &str) -> Option<Widget>
[src]
Finds the child of self
with the name given as the argument. Returns None
if there is no child with this name.
name
the name of the child to find
Returns
the requested child of self
pub fn get_child_transition_duration(&self) -> u32
[src]
Returns the amount of time (in milliseconds) that
transitions between children in self
will take.
Returns
the child transition duration
pub fn get_child_transition_running(&self) -> bool
[src]
Returns whether self
is currently in a transition from one page to
another.
Returns
true
if the transition is currently running, false
otherwise.
pub fn get_folded(&self) -> bool
[src]
pub fn get_homogeneous(&self, folded: bool, orientation: Orientation) -> bool
[src]
Gets whether self
is homogeneous for the given fold and orientation.
See Leaflet::set_homogeneous
.
folded
the fold
orientation
the orientation
Returns
whether self
is homogeneous for the given fold and orientation.
pub fn get_interpolate_size(&self) -> bool
[src]
Returns whether the Leaflet
is set up to interpolate between
the sizes of children on page switch.
Returns
true
if child sizes are interpolated
pub fn get_mode_transition_duration(&self) -> u32
[src]
Returns the amount of time (in milliseconds) that
transitions between modes in self
will take.
Returns
the mode transition duration
pub fn get_page<P: IsA<Widget>>(&self, child: &P) -> Option<LeafletPage>
[src]
pub fn get_pages(&self) -> Option<SelectionModel>
[src]
Returns a gio::ListModel
that contains the pages of the leaflet, and can be
used to keep an up-to-date view. The model also implements gtk::SelectionModel
and can be used to track the visible page.
Returns
a gtk::SelectionModel
for the leaflet's children
pub fn get_transition_type(&self) -> LeafletTransitionType
[src]
Gets the type of animation that will be used
for transitions between modes and children in self
.
Returns
the current transition type of self
pub fn get_visible_child(&self) -> Option<Widget>
[src]
pub fn get_visible_child_name(&self) -> Option<GString>
[src]
pub fn insert_child_after<P: IsA<Widget>, Q: IsA<Widget>>(
&self,
child: &P,
sibling: Option<&Q>
) -> Option<LeafletPage>
[src]
&self,
child: &P,
sibling: Option<&Q>
) -> Option<LeafletPage>
Inserts child
in the position after sibling
in the list of children.
If sibling
is None
, insert child
at the first position.
child
the gtk::Widget
to insert
sibling
the sibling after which to insert child
Returns
the LeafletPage
for child
pub fn navigate(&self, direction: NavigationDirection) -> bool
[src]
Switches to the previous or next child that doesn't have 'navigatable' child
property set to false
, similar to performing a swipe gesture to go in
direction
.
direction
the direction
Returns
true
if visible child was changed, false
otherwise.
pub fn prepend<P: IsA<Widget>>(&self, child: &P) -> Option<LeafletPage>
[src]
Inserts child
at the first position in self
.
child
the gtk::Widget
to prepend
Returns
the LeafletPage
for child
pub fn remove<P: IsA<Widget>>(&self, child: &P)
[src]
pub fn reorder_child_after<P: IsA<Widget>, Q: IsA<Widget>>(
&self,
child: &P,
sibling: Option<&Q>
)
[src]
&self,
child: &P,
sibling: Option<&Q>
)
Moves child
to the position after sibling
in the list of children.
If sibling
is None
, move child
to the first position.
child
the gtk::Widget
to move, must be a child of self
sibling
the sibling to move child
after, or None
pub fn set_can_swipe_back(&self, can_swipe_back: bool)
[src]
Sets whether or not self
allows switching to the previous child that has
'navigatable' child property set to true
via a swipe gesture
can_swipe_back
the new value
pub fn set_can_swipe_forward(&self, can_swipe_forward: bool)
[src]
Sets whether or not self
allows switching to the next child that has
'navigatable' child property set to true
via a swipe gesture.
can_swipe_forward
the new value
pub fn set_can_unfold(&self, can_unfold: bool)
[src]
pub fn set_child_transition_duration(&self, duration: u32)
[src]
Sets the duration that transitions between children in self
will take.
duration
the new duration, in milliseconds
pub fn set_homogeneous(
&self,
folded: bool,
orientation: Orientation,
homogeneous: bool
)
[src]
&self,
folded: bool,
orientation: Orientation,
homogeneous: bool
)
Sets the Leaflet
to be homogeneous or not for the given fold and orientation.
If it is homogeneous, the Leaflet
will request the same
width or height for all its children depending on the orientation.
If it isn't and it is folded, the leaflet may change width or height
when a different child becomes visible.
folded
the fold
orientation
the orientation
homogeneous
true
to make self
homogeneous
pub fn set_interpolate_size(&self, interpolate_size: bool)
[src]
Sets whether or not self
will interpolate its size when
changing the visible child. If the Leaflet:interpolate-size
property is set to true
, self
will interpolate its size between
the current one and the one it'll take after changing the
visible child, according to the set transition duration.
interpolate_size
the new value
pub fn set_mode_transition_duration(&self, duration: u32)
[src]
Sets the duration that transitions between modes in self
will take.
duration
the new duration, in milliseconds
pub fn set_transition_type(&self, transition: LeafletTransitionType)
[src]
Sets the type of animation that will be used for transitions between modes
and children in self
.
The transition type can be changed without problems at runtime, so it is possible to change the animation based on the mode or child that is about to become current.
transition
the new transition type
pub fn set_visible_child<P: IsA<Widget>>(&self, visible_child: &P)
[src]
Makes visible_child
visible using a transition determined by
HdyLeaflet:transition-type and HdyLeaflet:child-transition-duration. The
transition can be cancelled by the user, in which case visible child will
change back to the previously visible child.
visible_child
the new child
pub fn set_visible_child_name(&self, name: &str)
[src]
Makes the child with the name name
visible.
See Leaflet::set_visible_child
for more details.
name
the name of a child
pub fn get_property_hhomogeneous_folded(&self) -> bool
[src]
pub fn set_property_hhomogeneous_folded(&self, hhomogeneous_folded: bool)
[src]
pub fn get_property_hhomogeneous_unfolded(&self) -> bool
[src]
pub fn set_property_hhomogeneous_unfolded(&self, hhomogeneous_unfolded: bool)
[src]
pub fn get_property_vhomogeneous_folded(&self) -> bool
[src]
pub fn set_property_vhomogeneous_folded(&self, vhomogeneous_folded: bool)
[src]
pub fn get_property_vhomogeneous_unfolded(&self) -> bool
[src]
pub fn set_property_vhomogeneous_unfolded(&self, vhomogeneous_unfolded: bool)
[src]
pub fn connect_property_can_swipe_back_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_can_swipe_forward_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_can_unfold_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_child_transition_duration_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_child_transition_running_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_folded_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_hhomogeneous_folded_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_hhomogeneous_unfolded_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_interpolate_size_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_mode_transition_duration_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_pages_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_transition_type_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_vhomogeneous_folded_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_vhomogeneous_unfolded_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_visible_child_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_visible_child_name_notify<F: Fn(&Leaflet) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
Trait Implementations
impl Clone for Leaflet
[src]
impl Debug for Leaflet
[src]
impl Default for Leaflet
[src]
impl Display for Leaflet
[src]
impl Eq for Leaflet
[src]
impl Hash for Leaflet
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IsA<Accessible> for Leaflet
[src]
impl IsA<Buildable> for Leaflet
[src]
impl IsA<ConstraintTarget> for Leaflet
[src]
impl IsA<Orientable> for Leaflet
[src]
impl IsA<Swipeable> for Leaflet
[src]
impl IsA<Widget> for Leaflet
[src]
impl Ord for Leaflet
[src]
pub fn cmp(&self, other: &Leaflet) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl ParentClassIs for Leaflet
[src]
type Parent = Widget
impl<T: ObjectType> PartialEq<T> for Leaflet
[src]
impl<T: ObjectType> PartialOrd<T> for Leaflet
[src]
pub fn partial_cmp(&self, other: &T) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StaticType for Leaflet
[src]
pub fn static_type() -> Type
[src]
impl StructuralEq for Leaflet
[src]
Auto Trait Implementations
impl RefUnwindSafe for Leaflet
[src]
impl !Send for Leaflet
[src]
impl !Sync for Leaflet
[src]
impl Unpin for Leaflet
[src]
impl UnwindSafe for Leaflet
[src]
Blanket Implementations
impl<O> AccessibleExt for O where
O: IsA<Accessible>,
O: IsA<Accessible>,
pub fn get_accessible_role(&self) -> AccessibleRole
pub fn reset_property(&self, property: AccessibleProperty)
pub fn reset_relation(&self, relation: AccessibleRelation)
pub fn reset_state(&self, state: AccessibleState)
pub fn set_property_accessible_role(&self, accessible_role: AccessibleRole)
pub fn connect_property_accessible_role_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<O> BuildableExt for O where
O: IsA<Buildable>,
O: IsA<Buildable>,
pub fn get_buildable_id(&self) -> Option<GString>
impl<Super, Sub> CanDowncast<Sub> for Super where
Sub: IsA<Super>,
Super: IsA<Super>,
Sub: IsA<Super>,
Super: IsA<Super>,
impl<T> Cast for T where
T: ObjectType,
T: ObjectType,
pub fn upcast<T>(self) -> T where
Self: IsA<T>,
T: ObjectType,
Self: IsA<T>,
T: ObjectType,
pub fn upcast_ref<T>(&self) -> &T where
Self: IsA<T>,
T: ObjectType,
Self: IsA<T>,
T: ObjectType,
pub fn downcast<T>(self) -> Result<T, Self> where
Self: CanDowncast<T>,
T: ObjectType,
Self: CanDowncast<T>,
T: ObjectType,
pub fn downcast_ref<T>(&self) -> Option<&T> where
Self: CanDowncast<T>,
T: ObjectType,
Self: CanDowncast<T>,
T: ObjectType,
pub fn dynamic_cast<T>(self) -> Result<T, Self> where
T: ObjectType,
T: ObjectType,
pub fn dynamic_cast_ref<T>(&self) -> Option<&T> where
T: ObjectType,
T: ObjectType,
pub unsafe fn unsafe_cast<T>(self) -> T where
T: ObjectType,
T: ObjectType,
pub unsafe fn unsafe_cast_ref<T>(&self) -> &T where
T: ObjectType,
T: ObjectType,
impl<O> ConstraintTargetExt for O where
O: IsA<ConstraintTarget>,
O: IsA<ConstraintTarget>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ObjectExt for T where
T: ObjectType,
T: ObjectType,
pub fn is<U>(&self) -> bool where
U: StaticType,
U: StaticType,
pub fn get_type(&self) -> Type
pub fn get_object_class(&self) -> &Class<Object>
pub fn set_properties(
&self,
property_values: &[(&str, &dyn ToValue)]
) -> Result<(), BoolError>
&self,
property_values: &[(&str, &dyn ToValue)]
) -> Result<(), BoolError>
pub fn set_properties_generic(
&self,
property_values: &[(&str, Value)]
) -> Result<(), BoolError>
&self,
property_values: &[(&str, Value)]
) -> Result<(), BoolError>
pub fn set_property<'a, N, V>(
&self,
property_name: N,
value: &V
) -> Result<(), BoolError> where
V: ToValue,
N: Into<&'a str>,
&self,
property_name: N,
value: &V
) -> Result<(), BoolError> where
V: ToValue,
N: Into<&'a str>,
pub fn set_property_generic<'a, N>(
&self,
property_name: N,
value: &Value
) -> Result<(), BoolError> where
N: Into<&'a str>,
&self,
property_name: N,
value: &Value
) -> Result<(), BoolError> where
N: Into<&'a str>,
pub fn get_property<'a, N>(&self, property_name: N) -> Result<Value, BoolError> where
N: Into<&'a str>,
N: Into<&'a str>,
pub unsafe fn set_qdata<QD>(&self, key: Quark, value: QD) where
QD: 'static,
QD: 'static,
pub unsafe fn get_qdata<QD>(&self, key: Quark) -> Option<&QD> where
QD: 'static,
QD: 'static,
pub unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD> where
QD: 'static,
QD: 'static,
pub unsafe fn set_data<QD>(&self, key: &str, value: QD) where
QD: 'static,
QD: 'static,
pub unsafe fn get_data<QD>(&self, key: &str) -> Option<&QD> where
QD: 'static,
QD: 'static,
pub unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD> where
QD: 'static,
QD: 'static,
pub fn block_signal(&self, handler_id: &SignalHandlerId)
pub fn unblock_signal(&self, handler_id: &SignalHandlerId)
pub fn stop_signal_emission(&self, signal_name: &str)
pub fn disconnect(&self, handler_id: SignalHandlerId)
pub fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&T, &ParamSpec),
F: 'static + Send + Sync + Fn(&T, &ParamSpec),
pub fn connect_notify_local<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&T, &ParamSpec),
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&T, &ParamSpec),
pub unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: Fn(&T, &ParamSpec),
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: Fn(&T, &ParamSpec),
pub fn notify<'a, N>(&self, property_name: N) where
N: Into<&'a str>,
N: Into<&'a str>,
pub fn notify_by_pspec(&self, pspec: &ParamSpec)
pub fn has_property<'a, N>(&self, property_name: N, type_: Option<Type>) -> bool where
N: Into<&'a str>,
N: Into<&'a str>,
pub fn get_property_type<'a, N>(&self, property_name: N) -> Option<Type> where
N: Into<&'a str>,
N: Into<&'a str>,
pub fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec> where
N: Into<&'a str>,
N: Into<&'a str>,
pub fn list_properties(&self) -> Vec<ParamSpec, Global>
pub fn connect<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
N: Into<&'a str>,
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
N: Into<&'a str>,
pub fn connect_local<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + 'static,
N: Into<&'a str>,
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + 'static,
N: Into<&'a str>,
pub unsafe fn connect_unsafe<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
N: Into<&'a str>,
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
N: Into<&'a str>,
pub fn emit<'a, N>(
&self,
signal_name: N,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
&self,
signal_name: N,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
pub fn emit_generic<'a, N>(
&self,
signal_name: N,
args: &[Value]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
&self,
signal_name: N,
args: &[Value]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
pub fn downgrade(&self) -> WeakRef<T>
pub fn bind_property<'a, O, N, M>(
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a> where
O: ObjectType,
N: Into<&'a str>,
M: Into<&'a str>,
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a> where
O: ObjectType,
N: Into<&'a str>,
M: Into<&'a str>,
pub fn ref_count(&self) -> u32
impl<O> OrientableExt for O where
O: IsA<Orientable>,
O: IsA<Orientable>,
pub fn get_orientation(&self) -> Orientation
pub fn set_orientation(&self, orientation: Orientation)
pub fn connect_property_orientation_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
T: ToValue + SetValue + Send + ?Sized,
pub fn to_send_value(&self) -> SendValue
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
T: SetValue + ?Sized,
pub fn to_value(&self) -> Value
pub fn to_value_type(&self) -> Type
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<O> WidgetExt for O where
O: IsA<Widget>,
O: IsA<Widget>,
pub fn action_set_enabled(&self, action_name: &str, enabled: bool)
pub fn activate(&self) -> bool
pub fn activate_action_variant(
&self,
name: &str,
args: Option<&Variant>
) -> bool
&self,
name: &str,
args: Option<&Variant>
) -> bool
pub fn activate_default(&self)
pub fn add_controller<P>(&self, controller: &P) where
P: IsA<EventController>,
P: IsA<EventController>,
pub fn add_css_class(&self, css_class: &str)
pub fn add_mnemonic_label<P>(&self, label: &P) where
P: IsA<Widget>,
P: IsA<Widget>,
pub fn allocate(
&self,
width: i32,
height: i32,
baseline: i32,
transform: Option<&Transform>
)
&self,
width: i32,
height: i32,
baseline: i32,
transform: Option<&Transform>
)
pub fn child_focus(&self, direction: DirectionType) -> bool
pub fn compute_bounds<P>(&self, target: &P) -> Option<Rect> where
P: IsA<Widget>,
P: IsA<Widget>,
pub fn compute_expand(&self, orientation: Orientation) -> bool
pub fn compute_point<P>(&self, target: &P, point: &Point) -> Option<Point> where
P: IsA<Widget>,
P: IsA<Widget>,
pub fn compute_transform<P>(&self, target: &P) -> Option<Matrix> where
P: IsA<Widget>,
P: IsA<Widget>,
pub fn contains(&self, x: f64, y: f64) -> bool
pub fn create_pango_context(&self) -> Context
pub fn create_pango_layout(&self, text: Option<&str>) -> Layout
pub fn drag_check_threshold(
&self,
start_x: i32,
start_y: i32,
current_x: i32,
current_y: i32
) -> bool
&self,
start_x: i32,
start_y: i32,
current_x: i32,
current_y: i32
) -> bool
pub fn error_bell(&self)
pub fn get_allocated_baseline(&self) -> i32
pub fn get_allocated_height(&self) -> i32
pub fn get_allocated_width(&self) -> i32
pub fn get_allocation(&self) -> Rectangle
pub fn get_ancestor(&self, widget_type: Type) -> Option<Widget>
pub fn get_can_focus(&self) -> bool
pub fn get_can_target(&self) -> bool
pub fn get_child_visible(&self) -> bool
pub fn get_clipboard(&self) -> Clipboard
pub fn get_css_classes(&self) -> Vec<GString, Global>
pub fn get_css_name(&self) -> Option<GString>
pub fn get_cursor(&self) -> Option<Cursor>
pub fn get_direction(&self) -> TextDirection
pub fn get_display(&self) -> Display
pub fn get_first_child(&self) -> Option<Widget>
pub fn get_focus_child(&self) -> Option<Widget>
pub fn get_focus_on_click(&self) -> bool
pub fn get_focusable(&self) -> bool
pub fn get_font_map(&self) -> Option<FontMap>
pub fn get_font_options(&self) -> Option<FontOptions>
pub fn get_frame_clock(&self) -> Option<FrameClock>
pub fn get_halign(&self) -> Align
pub fn get_has_tooltip(&self) -> bool
pub fn get_height(&self) -> i32
pub fn get_hexpand(&self) -> bool
pub fn get_hexpand_set(&self) -> bool
pub fn get_last_child(&self) -> Option<Widget>
pub fn get_layout_manager(&self) -> Option<LayoutManager>
pub fn get_mapped(&self) -> bool
pub fn get_margin_bottom(&self) -> i32
pub fn get_margin_end(&self) -> i32
pub fn get_margin_start(&self) -> i32
pub fn get_margin_top(&self) -> i32
pub fn get_name(&self) -> Option<GString>
pub fn get_native(&self) -> Option<Native>
pub fn get_next_sibling(&self) -> Option<Widget>
pub fn get_opacity(&self) -> f64
pub fn get_overflow(&self) -> Overflow
pub fn get_pango_context(&self) -> Context
pub fn get_parent(&self) -> Option<Widget>
pub fn get_preferred_size(&self) -> (Requisition, Requisition)
pub fn get_prev_sibling(&self) -> Option<Widget>
pub fn get_primary_clipboard(&self) -> Clipboard
pub fn get_realized(&self) -> bool
pub fn get_receives_default(&self) -> bool
pub fn get_request_mode(&self) -> SizeRequestMode
pub fn get_root(&self) -> Option<Root>
pub fn get_scale_factor(&self) -> i32
pub fn get_sensitive(&self) -> bool
pub fn get_settings(&self) -> Settings
pub fn get_size(&self, orientation: Orientation) -> i32
pub fn get_size_request(&self) -> (i32, i32)
pub fn get_state_flags(&self) -> StateFlags
pub fn get_style_context(&self) -> StyleContext
pub fn get_template_child(
&self,
widget_type: Type,
name: &str
) -> Option<Object>
&self,
widget_type: Type,
name: &str
) -> Option<Object>
pub fn get_tooltip_markup(&self) -> Option<GString>
pub fn get_tooltip_text(&self) -> Option<GString>
pub fn get_valign(&self) -> Align
pub fn get_vexpand(&self) -> bool
pub fn get_vexpand_set(&self) -> bool
pub fn get_visible(&self) -> bool
pub fn get_width(&self) -> i32
pub fn grab_focus(&self) -> bool
pub fn has_css_class(&self, css_class: &str) -> bool
pub fn has_default(&self) -> bool
pub fn has_focus(&self) -> bool
pub fn has_visible_focus(&self) -> bool
pub fn hide(&self)
pub fn in_destruction(&self) -> bool
pub fn init_template(&self)
pub fn insert_action_group<P>(&self, name: &str, group: Option<&P>) where
P: IsA<ActionGroup>,
P: IsA<ActionGroup>,
pub fn insert_after<P, Q>(&self, parent: &P, previous_sibling: Option<&Q>) where
P: IsA<Widget>,
Q: IsA<Widget>,
P: IsA<Widget>,
Q: IsA<Widget>,
pub fn insert_before<P, Q>(&self, parent: &P, next_sibling: Option<&Q>) where
P: IsA<Widget>,
Q: IsA<Widget>,
P: IsA<Widget>,
Q: IsA<Widget>,
pub fn is_ancestor<P>(&self, ancestor: &P) -> bool where
P: IsA<Widget>,
P: IsA<Widget>,
pub fn is_drawable(&self) -> bool
pub fn is_focus(&self) -> bool
pub fn is_sensitive(&self) -> bool
pub fn is_visible(&self) -> bool
pub fn keynav_failed(&self, direction: DirectionType) -> bool
pub fn list_mnemonic_labels(&self) -> Vec<Widget, Global>
pub fn map(&self)
pub fn measure(
&self,
orientation: Orientation,
for_size: i32
) -> (i32, i32, i32, i32)
&self,
orientation: Orientation,
for_size: i32
) -> (i32, i32, i32, i32)
pub fn mnemonic_activate(&self, group_cycling: bool) -> bool
pub fn observe_children(&self) -> ListModel
pub fn observe_controllers(&self) -> ListModel
pub fn pick(&self, x: f64, y: f64, flags: PickFlags) -> Option<Widget>
pub fn queue_allocate(&self)
pub fn queue_draw(&self)
pub fn queue_resize(&self)
pub fn realize(&self)
pub fn remove_controller<P>(&self, controller: &P) where
P: IsA<EventController>,
P: IsA<EventController>,
pub fn remove_css_class(&self, css_class: &str)
pub fn remove_mnemonic_label<P>(&self, label: &P) where
P: IsA<Widget>,
P: IsA<Widget>,
pub fn set_can_focus(&self, can_focus: bool)
pub fn set_can_target(&self, can_target: bool)
pub fn set_child_visible(&self, child_visible: bool)
pub fn set_css_classes(&self, classes: &[&str])
pub fn set_cursor(&self, cursor: Option<&Cursor>)
pub fn set_cursor_from_name(&self, name: Option<&str>)
pub fn set_direction(&self, dir: TextDirection)
pub fn set_focus_child<P>(&self, child: Option<&P>) where
P: IsA<Widget>,
P: IsA<Widget>,
pub fn set_focus_on_click(&self, focus_on_click: bool)
pub fn set_focusable(&self, focusable: bool)
pub fn set_font_map<P>(&self, font_map: Option<&P>) where
P: IsA<FontMap>,
P: IsA<FontMap>,
pub fn set_font_options(&self, options: Option<&FontOptions>)
pub fn set_halign(&self, align: Align)
pub fn set_has_tooltip(&self, has_tooltip: bool)
pub fn set_hexpand(&self, expand: bool)
pub fn set_hexpand_set(&self, set: bool)
pub fn set_layout_manager<P>(&self, layout_manager: Option<&P>) where
P: IsA<LayoutManager>,
P: IsA<LayoutManager>,
pub fn set_margin_bottom(&self, margin: i32)
pub fn set_margin_end(&self, margin: i32)
pub fn set_margin_start(&self, margin: i32)
pub fn set_margin_top(&self, margin: i32)
pub fn set_name(&self, name: &str)
pub fn set_opacity(&self, opacity: f64)
pub fn set_overflow(&self, overflow: Overflow)
pub fn set_parent<P>(&self, parent: &P) where
P: IsA<Widget>,
P: IsA<Widget>,
pub fn set_receives_default(&self, receives_default: bool)
pub fn set_sensitive(&self, sensitive: bool)
pub fn set_size_request(&self, width: i32, height: i32)
pub fn set_state_flags(&self, flags: StateFlags, clear: bool)
pub fn set_tooltip_markup(&self, markup: Option<&str>)
pub fn set_tooltip_text(&self, text: Option<&str>)
pub fn set_valign(&self, align: Align)
pub fn set_vexpand(&self, expand: bool)
pub fn set_vexpand_set(&self, set: bool)
pub fn set_visible(&self, visible: bool)
pub fn should_layout(&self) -> bool
pub fn show(&self)
pub fn size_allocate(&self, allocation: &Rectangle, baseline: i32)
pub fn snapshot_child<P>(&self, child: &P, snapshot: &Snapshot) where
P: IsA<Widget>,
P: IsA<Widget>,
pub fn translate_coordinates<P>(
&self,
dest_widget: &P,
src_x: f64,
src_y: f64
) -> Option<(f64, f64)> where
P: IsA<Widget>,
&self,
dest_widget: &P,
src_x: f64,
src_y: f64
) -> Option<(f64, f64)> where
P: IsA<Widget>,
pub fn trigger_tooltip_query(&self)
pub fn unmap(&self)
pub fn unparent(&self)
pub fn unrealize(&self)
pub fn unset_state_flags(&self, flags: StateFlags)
pub fn get_property_has_default(&self) -> bool
pub fn get_property_has_focus(&self) -> bool
pub fn get_property_height_request(&self) -> i32
pub fn set_property_height_request(&self, height_request: i32)
pub fn get_property_width_request(&self) -> i32
pub fn set_property_width_request(&self, width_request: i32)
pub fn connect_destroy<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, TextDirection),
F: 'static + Fn(&O, TextDirection),
pub fn connect_hide<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_keynav_failed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, DirectionType) -> Inhibit,
F: 'static + Fn(&O, DirectionType) -> Inhibit,
pub fn connect_map<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, bool) -> Inhibit,
F: 'static + Fn(&O, bool) -> Inhibit,
pub fn connect_move_focus<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, DirectionType),
F: 'static + Fn(&O, DirectionType),
pub fn emit_move_focus(&self, direction: DirectionType)
pub fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, i32, i32, bool, &Tooltip) -> bool,
F: 'static + Fn(&O, i32, i32, bool, &Tooltip) -> bool,
pub fn connect_realize<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_show<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, StateFlags),
F: 'static + Fn(&O, StateFlags),
pub fn connect_unmap<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_unrealize<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_can_focus_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_can_target_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_css_classes_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_cursor_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_focusable_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_halign_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_has_default_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_has_focus_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_height_request_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_hexpand_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_layout_manager_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_margin_end_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_margin_start_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_margin_top_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_name_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_opacity_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_overflow_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_parent_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_receives_default_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_root_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_scale_factor_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_sensitive_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_valign_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_vexpand_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_visible_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_width_request_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
impl<O> WidgetExtManual for O where
O: IsA<Widget>,
O: IsA<Widget>,
pub fn add_tick_callback<P>(&self, callback: P) -> TickCallbackId where
P: 'static + Fn(&O, &FrameClock) -> Continue,
P: 'static + Fn(&O, &FrameClock) -> Continue,