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<'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 ResponseType
impl PartialEq<ResponseType> for ResponseType
source§fn eq(&self, other: &ResponseType) -> bool
fn eq(&self, other: &ResponseType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ResponseType> for ResponseType
impl PartialOrd<ResponseType> for ResponseType
source§fn partial_cmp(&self, other: &ResponseType) -> Option<Ordering>
fn partial_cmp(&self, other: &ResponseType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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 StructuralEq for ResponseType
impl StructuralPartialEq for ResponseType
Auto Trait Implementations§
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> 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> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.