Enum sfml::window::CursorType
source · #[repr(C)]
pub enum CursorType {
Show 13 variants
Arrow,
ArrowWait,
Wait,
Text,
Hand,
SizeHorizontal,
SizeVertical,
SizeTopLeftBottomRight,
SizeBottomLeftTopRight,
SizeAll,
Cross,
Help,
NotAllowed,
}
Expand description
Enumeration of the native system cursor types.
Refer to the following table to determine which cursor is available on which platform.
Type | Linux | Mac OS X | Windows |
---|---|---|---|
Arrow | yes | yes | yes |
ArrowWait | no | no | yes |
Wait | yes | no | yes |
Text | yes | yes | yes |
Hand | yes | yes | yes |
SizeHorizontal | yes | yes | yes |
SizeVertical | yes | yes | yes |
SizeTopLeftBottomRight | no | yes* | yes |
SizeBottomLeftTopRight | no | yes* | yes |
SizeAll | yes | no | yes |
Cross | yes | yes | yes |
Help | yes | yes* | yes |
NotAllowed | yes | yes | yes |
- These cursor types are undocumented so may not be available on all versions, but have been tested on 10.13
Variants§
Arrow
ArrowWait
Wait
Text
Hand
SizeHorizontal
SizeVertical
SizeTopLeftBottomRight
SizeBottomLeftTopRight
SizeAll
Cross
Help
NotAllowed
Trait Implementations§
source§impl Clone for sfCursorType
impl Clone for sfCursorType
source§fn clone(&self) -> sfCursorType
fn clone(&self) -> sfCursorType
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 sfCursorType
impl Debug for sfCursorType
source§impl Hash for sfCursorType
impl Hash for sfCursorType
source§impl Ord for sfCursorType
impl Ord for sfCursorType
source§fn cmp(&self, other: &sfCursorType) -> Ordering
fn cmp(&self, other: &sfCursorType) -> 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<sfCursorType> for sfCursorType
impl PartialEq<sfCursorType> for sfCursorType
source§fn eq(&self, other: &sfCursorType) -> bool
fn eq(&self, other: &sfCursorType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<sfCursorType> for sfCursorType
impl PartialOrd<sfCursorType> for sfCursorType
source§fn partial_cmp(&self, other: &sfCursorType) -> Option<Ordering>
fn partial_cmp(&self, other: &sfCursorType) -> 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 more