Enum gtk4::ResponseType
source · pub enum ResponseType {
None,
Reject,
Accept,
DeleteEvent,
Ok,
Cancel,
Close,
Yes,
No,
Apply,
Help,
Other(u16),
// some variants omitted
}
Variants§
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 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 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 PartialEq<ResponseType> for i32
impl PartialEq<ResponseType> for i32
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 PartialEq<i32> for ResponseType
impl PartialEq<i32> for ResponseType
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
.