Enum style_traits::cursor::Cursor
[−]
[src]
#[repr(u8)]pub enum Cursor { None, Default, Pointer, ContextMenu, Help, Progress, Wait, Cell, Crosshair, Text, VerticalText, Alias, Copy, Move, NoDrop, NotAllowed, Grab, Grabbing, EResize, NResize, NeResize, NwResize, SResize, SeResize, SwResize, WResize, EwResize, NsResize, NeswResize, NwseResize, ColResize, RowResize, AllScroll, ZoomIn, ZoomOut, }
Variants
None
Default
Pointer
ContextMenu
Help
Progress
Wait
Cell
Crosshair
Text
VerticalText
Alias
Copy
Move
NoDrop
NotAllowed
Grab
Grabbing
EResize
NResize
NeResize
NwResize
SResize
SeResize
SwResize
WResize
EwResize
NsResize
NeswResize
NwseResize
ColResize
RowResize
AllScroll
ZoomIn
ZoomOut
Methods
impl Cursor
[src]
pub fn from_css_keyword(keyword: &str) -> Result<Cursor, ()>
[src]
Given a CSS keyword, get the corresponding cursor enum.
pub fn from_u8(value: u8) -> Result<Cursor, ()>
[src]
From the C u8 value, get the corresponding Cursor enum.
Trait Implementations
impl Clone for Cursor
[src]
fn clone(&self) -> Cursor
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Cursor
[src]
impl Debug for Cursor
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for Cursor
[src]
impl MallocSizeOf for Cursor
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl PartialEq for Cursor
[src]
fn eq(&self, __arg_0: &Cursor) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.