Enum sdl2_sys::SDL_HitTestResult
source · #[repr(u32)]pub enum SDL_HitTestResult {
SDL_HITTEST_NORMAL = 0,
SDL_HITTEST_DRAGGABLE = 1,
SDL_HITTEST_RESIZE_TOPLEFT = 2,
SDL_HITTEST_RESIZE_TOP = 3,
SDL_HITTEST_RESIZE_TOPRIGHT = 4,
SDL_HITTEST_RESIZE_RIGHT = 5,
SDL_HITTEST_RESIZE_BOTTOMRIGHT = 6,
SDL_HITTEST_RESIZE_BOTTOM = 7,
SDL_HITTEST_RESIZE_BOTTOMLEFT = 8,
SDL_HITTEST_RESIZE_LEFT = 9,
}
Expand description
Possible return values from the SDL_HitTest callback.
\sa SDL_HitTest
Variants§
SDL_HITTEST_NORMAL = 0
< Region is normal. No special properties.
SDL_HITTEST_DRAGGABLE = 1
< Region can drag entire window.
SDL_HITTEST_RESIZE_TOPLEFT = 2
SDL_HITTEST_RESIZE_TOP = 3
SDL_HITTEST_RESIZE_TOPRIGHT = 4
SDL_HITTEST_RESIZE_RIGHT = 5
SDL_HITTEST_RESIZE_BOTTOMRIGHT = 6
SDL_HITTEST_RESIZE_BOTTOM = 7
SDL_HITTEST_RESIZE_BOTTOMLEFT = 8
SDL_HITTEST_RESIZE_LEFT = 9
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 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 Hash for SDL_HitTestResult
impl Hash for SDL_HitTestResult
source§impl PartialEq for SDL_HitTestResult
impl PartialEq for SDL_HitTestResult
source§fn eq(&self, other: &SDL_HitTestResult) -> bool
fn eq(&self, other: &SDL_HitTestResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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