#[repr(transparent)]pub struct SDL_SystemCursor(pub c_int);Expand description
Cursor types for SDL_CreateSystemCursor().
§Availability
This enum is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
DEFAULT | SDL_SYSTEM_CURSOR_DEFAULT | Default cursor. Usually an arrow. |
TEXT | SDL_SYSTEM_CURSOR_TEXT | Text selection. Usually an I-beam. |
WAIT | SDL_SYSTEM_CURSOR_WAIT | Wait. Usually an hourglass or watch or spinning ball. |
CROSSHAIR | SDL_SYSTEM_CURSOR_CROSSHAIR | Crosshair. |
PROGRESS | SDL_SYSTEM_CURSOR_PROGRESS | Program is busy but still interactive. Usually it’s WAIT with an arrow. |
NWSE_RESIZE | SDL_SYSTEM_CURSOR_NWSE_RESIZE | Double arrow pointing northwest and southeast. |
NESW_RESIZE | SDL_SYSTEM_CURSOR_NESW_RESIZE | Double arrow pointing northeast and southwest. |
EW_RESIZE | SDL_SYSTEM_CURSOR_EW_RESIZE | Double arrow pointing west and east. |
NS_RESIZE | SDL_SYSTEM_CURSOR_NS_RESIZE | Double arrow pointing north and south. |
MOVE | SDL_SYSTEM_CURSOR_MOVE | Four pointed arrow pointing north, south, east, and west. |
NOT_ALLOWED | SDL_SYSTEM_CURSOR_NOT_ALLOWED | Not permitted. Usually a slashed circle or crossbones. |
POINTER | SDL_SYSTEM_CURSOR_POINTER | Pointer that indicates a link. Usually a pointing hand. |
NW_RESIZE | SDL_SYSTEM_CURSOR_NW_RESIZE | Window resize top-left. This may be a single arrow or a double arrow like NWSE_RESIZE. |
N_RESIZE | SDL_SYSTEM_CURSOR_N_RESIZE | Window resize top. May be NS_RESIZE. |
NE_RESIZE | SDL_SYSTEM_CURSOR_NE_RESIZE | Window resize top-right. May be NESW_RESIZE. |
E_RESIZE | SDL_SYSTEM_CURSOR_E_RESIZE | Window resize right. May be EW_RESIZE. |
SE_RESIZE | SDL_SYSTEM_CURSOR_SE_RESIZE | Window resize bottom-right. May be NWSE_RESIZE. |
S_RESIZE | SDL_SYSTEM_CURSOR_S_RESIZE | Window resize bottom. May be NS_RESIZE. |
SW_RESIZE | SDL_SYSTEM_CURSOR_SW_RESIZE | Window resize bottom-left. May be NESW_RESIZE. |
W_RESIZE | SDL_SYSTEM_CURSOR_W_RESIZE | Window resize left. May be EW_RESIZE. |
COUNT | SDL_SYSTEM_CURSOR_COUNT |
Tuple Fields§
§0: c_intImplementations§
Source§impl SDL_SystemCursor
impl SDL_SystemCursor
Sourcepub const PROGRESS: Self
pub const PROGRESS: Self
Program is busy but still interactive. Usually it’s WAIT with an arrow.
Sourcepub const NWSE_RESIZE: Self
pub const NWSE_RESIZE: Self
Double arrow pointing northwest and southeast.
Sourcepub const NESW_RESIZE: Self
pub const NESW_RESIZE: Self
Double arrow pointing northeast and southwest.
Sourcepub const NOT_ALLOWED: Self
pub const NOT_ALLOWED: Self
Not permitted. Usually a slashed circle or crossbones.
Sourcepub const NW_RESIZE: Self
pub const NW_RESIZE: Self
Window resize top-left. This may be a single arrow or a double arrow like NWSE_RESIZE.
pub const COUNT: Self
Trait Implementations§
Source§impl Clone for SDL_SystemCursor
impl Clone for SDL_SystemCursor
Source§fn clone(&self) -> SDL_SystemCursor
fn clone(&self) -> SDL_SystemCursor
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_SystemCursor
Available on crate feature debug-impls only.
impl Debug for SDL_SystemCursor
Available on crate feature
debug-impls only.Source§impl Default for SDL_SystemCursor
impl Default for SDL_SystemCursor
Source§fn default() -> SDL_SystemCursor
fn default() -> SDL_SystemCursor
Returns the “default value” for a type. Read more
Source§impl From<SDL_SystemCursor> for c_int
impl From<SDL_SystemCursor> for c_int
Source§fn from(value: SDL_SystemCursor) -> Self
fn from(value: SDL_SystemCursor) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_SystemCursor
Available on crate feature metadata only.
impl GroupMetadata for SDL_SystemCursor
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_SystemCursor
impl Hash for SDL_SystemCursor
Source§impl Ord for SDL_SystemCursor
impl Ord for SDL_SystemCursor
Source§fn cmp(&self, other: &SDL_SystemCursor) -> Ordering
fn cmp(&self, other: &SDL_SystemCursor) -> 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_SystemCursor> for c_int
impl PartialEq<SDL_SystemCursor> for c_int
Source§impl PartialEq<i32> for SDL_SystemCursor
impl PartialEq<i32> for SDL_SystemCursor
Source§impl PartialEq for SDL_SystemCursor
impl PartialEq for SDL_SystemCursor
Source§impl PartialOrd for SDL_SystemCursor
impl PartialOrd for SDL_SystemCursor
impl Copy for SDL_SystemCursor
impl Eq for SDL_SystemCursor
impl StructuralPartialEq for SDL_SystemCursor
Auto Trait Implementations§
impl Freeze for SDL_SystemCursor
impl RefUnwindSafe for SDL_SystemCursor
impl Send for SDL_SystemCursor
impl Sync for SDL_SystemCursor
impl Unpin for SDL_SystemCursor
impl UnwindSafe for SDL_SystemCursor
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