#[non_exhaustive]pub enum AssistantPageType {
Content,
Intro,
Confirm,
Summary,
Progress,
Custom,
}Since 4.10
Expand description
Determines the role of a page inside a Assistant.
The role is used to handle buttons sensitivity and visibility.
Note that an assistant needs to end its page flow with a page of type
Confirm, Summary or
Progress to be correct.
The Cancel button will only be shown if the page isnโt โcommittedโ. See gtk_assistant_commit() for details.
ยงDeprecated since 4.10
Assistant will be removed in GTK 5
Variants (Non-exhaustive)ยง
This enum is marked as non-exhaustive
Content
Since 4.10
The page has regular contents. Both the Back and forward buttons will be shown.
Intro
Since 4.10
The page contains an introduction to the assistant task. Only the Forward button will be shown if there is a next page.
Confirm
Since 4.10
The page lets the user confirm or deny the changes. The Back and Apply buttons will be shown.
Summary
Since 4.10
The page informs the user of the changes done. Only the Close button will be shown.
Progress
Since 4.10
Used for tasks that take a long time to complete, blocks the assistant until the page is marked as complete. Only the back button will be shown.
Custom
Since 4.10
Used for when other page types are not appropriate. No buttons will be shown, and the application must add its own buttons through gtk_assistant_add_action_widget().
Trait Implementationsยง
Sourceยงimpl Clone for AssistantPageType
impl Clone for AssistantPageType
Sourceยงfn clone(&self) -> AssistantPageType
fn clone(&self) -> AssistantPageType
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AssistantPageType
Sourceยงimpl Debug for AssistantPageType
impl Debug for AssistantPageType
impl Eq for AssistantPageType
Sourceยงimpl From<AssistantPageType> for Value
impl From<AssistantPageType> for Value
Sourceยงfn from(v: AssistantPageType) -> Self
fn from(v: AssistantPageType) -> Self
Sourceยงimpl<'a> FromValue<'a> for AssistantPageType
impl<'a> FromValue<'a> for AssistantPageType
Sourceยงtype Checker = GenericValueTypeChecker<AssistantPageType>
type Checker = GenericValueTypeChecker<AssistantPageType>
Sourceยงunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSourceยงimpl HasParamSpec for AssistantPageType
impl HasParamSpec for AssistantPageType
type ParamSpec = ParamSpecEnum
Sourceยงtype SetValue = AssistantPageType
type SetValue = AssistantPageType
type BuilderFn = fn(&str, AssistantPageType) -> ParamSpecEnumBuilder<'_, AssistantPageType>
fn param_spec_builder() -> Self::BuilderFn
Sourceยงimpl Hash for AssistantPageType
impl Hash for AssistantPageType
Sourceยงimpl Ord for AssistantPageType
impl Ord for AssistantPageType
Sourceยงfn cmp(&self, other: &AssistantPageType) -> Ordering
fn cmp(&self, other: &AssistantPageType) -> Ordering
1.21.0 (const: unstable) ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงimpl PartialEq for AssistantPageType
impl PartialEq for AssistantPageType
Sourceยงfn eq(&self, other: &AssistantPageType) -> bool
fn eq(&self, other: &AssistantPageType) -> bool
self and other values to be equal, and is used by ==.Sourceยงimpl PartialOrd for AssistantPageType
impl PartialOrd for AssistantPageType
Sourceยงimpl StaticType for AssistantPageType
impl StaticType for AssistantPageType
Sourceยงfn static_type() -> Type
fn static_type() -> Type
Self.impl StructuralPartialEq for AssistantPageType
Sourceยงimpl ToValue for AssistantPageType
impl ToValue for AssistantPageType
Sourceยงimpl ValueType for AssistantPageType
impl ValueType for AssistantPageType
Sourceยงtype Type = AssistantPageType
type Type = AssistantPageType
Type from. Read moreAuto Trait Implementationsยง
impl Freeze for AssistantPageType
impl RefUnwindSafe for AssistantPageType
impl Send for AssistantPageType
impl Sync for AssistantPageType
impl Unpin for AssistantPageType
impl UnsafeUnpin for AssistantPageType
impl UnwindSafe for AssistantPageType
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
ยงimpl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
fn into_closure_return_value(self) -> Option<Value>
ยงimpl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
ยงimpl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
ยงfn ensure_type()
fn ensure_type()
ยงimpl<T> ToSendValue for T
impl<T> ToSendValue for T
ยงfn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.