pub enum ResponseType {
None,
Reject,
Accept,
DeleteEvent,
Ok,
Cancel,
Close,
Yes,
No,
Apply,
Help,
Other(u16),
// some variants omitted
}
Expand description
Predefined values for use as response ids in gtk_dialog_add_button().
All predefined values are negative; GTK leaves values of 0 or greater for application-defined response ids.
Variants§
None
Returned if an action widget has no response id, or if the dialog gets programmatically hidden or destroyed
Reject
Generic response id, not used by GTK dialogs
Accept
Generic response id, not used by GTK dialogs
DeleteEvent
Returned if the dialog is deleted
Ok
Returned by OK buttons in GTK dialogs
Cancel
Returned by Cancel buttons in GTK dialogs
Close
Returned by Close buttons in GTK dialogs
Yes
Returned by Yes buttons in GTK dialogs
No
Returned by No buttons in GTK dialogs
Apply
Returned by Apply buttons in GTK dialogs
Help
Returned by Help buttons in GTK dialogs
Other(u16)
Trait Implementations§
Source§impl Clone for ResponseType
impl Clone for ResponseType
Source§fn clone(&self) -> ResponseType
fn clone(&self) -> ResponseType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResponseType
impl Debug for ResponseType
Source§impl Display for ResponseType
impl Display for ResponseType
Source§impl From<ResponseType> for Value
impl From<ResponseType> for Value
Source§fn from(t: ResponseType) -> Self
fn from(t: ResponseType) -> Self
Converts to this type from the input type.
Source§impl From<ResponseType> for i32
impl From<ResponseType> for i32
Source§fn from(r: ResponseType) -> Self
fn from(r: ResponseType) -> Self
Converts to this type from the input type.
Source§impl From<i32> for ResponseType
impl From<i32> for ResponseType
Source§impl<'a> FromValue<'a> for ResponseType
impl<'a> FromValue<'a> for ResponseType
Source§type Checker = GenericValueTypeChecker<ResponseType>
type Checker = GenericValueTypeChecker<ResponseType>
Value type checker.
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Get the contained value from a
Value
. Read moreSource§impl Hash for ResponseType
impl Hash for ResponseType
Source§impl Ord for ResponseType
impl Ord for ResponseType
Source§fn cmp(&self, other: &ResponseType) -> Ordering
fn cmp(&self, other: &ResponseType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<ResponseType> for i32
impl PartialEq<ResponseType> for i32
Source§impl PartialEq<i32> for ResponseType
impl PartialEq<i32> for ResponseType
Source§impl PartialEq for ResponseType
impl PartialEq for ResponseType
Source§impl PartialOrd for ResponseType
impl PartialOrd for ResponseType
Source§impl StaticType for ResponseType
impl StaticType for ResponseType
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for ResponseType
impl ToValue for ResponseType
Source§impl ValueType for ResponseType
impl ValueType for ResponseType
Source§type Type = ResponseType
type Type = ResponseType
Type to get the
Type
from. Read moreimpl Copy for ResponseType
impl Eq for ResponseType
impl StructuralPartialEq for ResponseType
Auto Trait Implementations§
impl Freeze for ResponseType
impl RefUnwindSafe for ResponseType
impl Send for ResponseType
impl Sync for ResponseType
impl Unpin for ResponseType
impl UnwindSafe for ResponseType
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.