#[repr(transparent)]pub struct SDL_HitTestResult(pub c_int);Expand description
Possible return values from the SDL_HitTest callback.
§Thread safety
This function should only be called on the main thread.
§Availability
This enum is available since SDL 3.2.0.
§See also
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
NORMAL | SDL_HITTEST_NORMAL | Region is normal. No special properties. |
DRAGGABLE | SDL_HITTEST_DRAGGABLE | Region can drag entire window. |
RESIZE_TOPLEFT | SDL_HITTEST_RESIZE_TOPLEFT | Region is the resizable top-left corner border. |
RESIZE_TOP | SDL_HITTEST_RESIZE_TOP | Region is the resizable top border. |
RESIZE_TOPRIGHT | SDL_HITTEST_RESIZE_TOPRIGHT | Region is the resizable top-right corner border. |
RESIZE_RIGHT | SDL_HITTEST_RESIZE_RIGHT | Region is the resizable right border. |
RESIZE_BOTTOMRIGHT | SDL_HITTEST_RESIZE_BOTTOMRIGHT | Region is the resizable bottom-right corner border. |
RESIZE_BOTTOM | SDL_HITTEST_RESIZE_BOTTOM | Region is the resizable bottom border. |
RESIZE_BOTTOMLEFT | SDL_HITTEST_RESIZE_BOTTOMLEFT | Region is the resizable bottom-left corner border. |
RESIZE_LEFT | SDL_HITTEST_RESIZE_LEFT | Region is the resizable left border. |
Tuple Fields§
§0: c_intImplementations§
Source§impl SDL_HitTestResult
impl SDL_HitTestResult
Sourcepub const RESIZE_TOPLEFT: Self
pub const RESIZE_TOPLEFT: Self
Region is the resizable top-left corner border.
Sourcepub const RESIZE_TOP: Self
pub const RESIZE_TOP: Self
Region is the resizable top border.
Sourcepub const RESIZE_TOPRIGHT: Self
pub const RESIZE_TOPRIGHT: Self
Region is the resizable top-right corner border.
Sourcepub const RESIZE_RIGHT: Self
pub const RESIZE_RIGHT: Self
Region is the resizable right border.
Sourcepub const RESIZE_BOTTOMRIGHT: Self
pub const RESIZE_BOTTOMRIGHT: Self
Region is the resizable bottom-right corner border.
Sourcepub const RESIZE_BOTTOM: Self
pub const RESIZE_BOTTOM: Self
Region is the resizable bottom border.
Sourcepub const RESIZE_BOTTOMLEFT: Self
pub const RESIZE_BOTTOMLEFT: Self
Region is the resizable bottom-left corner border.
Sourcepub const RESIZE_LEFT: Self
pub const RESIZE_LEFT: Self
Region is the resizable left border.
Trait Implementations§
Source§impl Clone for SDL_HitTestResult
impl Clone for SDL_HitTestResult
Source§fn clone(&self) -> SDL_HitTestResult
fn clone(&self) -> SDL_HitTestResult
Returns a duplicate 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 SDL_HitTestResult
Available on crate feature debug-impls only.
impl Debug for SDL_HitTestResult
Available on crate feature
debug-impls only.Source§impl Default for SDL_HitTestResult
impl Default for SDL_HitTestResult
Source§fn default() -> SDL_HitTestResult
fn default() -> SDL_HitTestResult
Returns the “default value” for a type. Read more
Source§impl From<SDL_HitTestResult> for c_int
impl From<SDL_HitTestResult> for c_int
Source§fn from(value: SDL_HitTestResult) -> Self
fn from(value: SDL_HitTestResult) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_HitTestResult
Available on crate feature metadata only.
impl GroupMetadata for SDL_HitTestResult
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_HitTestResult
impl Hash for SDL_HitTestResult
Source§impl Ord for SDL_HitTestResult
impl Ord for SDL_HitTestResult
Source§fn cmp(&self, other: &SDL_HitTestResult) -> Ordering
fn cmp(&self, other: &SDL_HitTestResult) -> 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<SDL_HitTestResult> for c_int
impl PartialEq<SDL_HitTestResult> for c_int
Source§impl PartialEq<i32> for SDL_HitTestResult
impl PartialEq<i32> for SDL_HitTestResult
Source§impl PartialEq for SDL_HitTestResult
impl PartialEq for SDL_HitTestResult
Source§impl PartialOrd for SDL_HitTestResult
impl PartialOrd for SDL_HitTestResult
impl Copy for SDL_HitTestResult
impl Eq for SDL_HitTestResult
impl StructuralPartialEq for SDL_HitTestResult
Auto Trait Implementations§
impl Freeze for SDL_HitTestResult
impl RefUnwindSafe for SDL_HitTestResult
impl Send for SDL_HitTestResult
impl Sync for SDL_HitTestResult
impl Unpin for SDL_HitTestResult
impl UnwindSafe for SDL_HitTestResult
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