#[non_exhaustive]pub enum AssistantPageType {
Content,
Intro,
Confirm,
Summary,
Progress,
Custom,
}
Expand description
Determines the page role 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.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Content
The page has regular contents. Both the Back and forward buttons will be shown.
Intro
The page contains an introduction to the assistant task. Only the Forward button will be shown if there is a next page.
Confirm
The page lets the user confirm or deny the changes. The Back and Apply buttons will be shown.
Summary
The page informs the user of the changes done. Only the Close button will be shown.
Progress
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
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AssistantPageType
impl Debug 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 · 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§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
.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 moreimpl Copy for AssistantPageType
impl Eq for AssistantPageType
impl StructuralPartialEq for AssistantPageType
Auto Trait Implementations§
impl Freeze for AssistantPageType
impl RefUnwindSafe for AssistantPageType
impl Send for AssistantPageType
impl Sync for AssistantPageType
impl Unpin 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,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.