Enum gtk4::ResponseType
source · 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
§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
§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
.