Enum chessground::GroundMsg
[−]
[src]
pub enum GroundMsg { Flip, SetOrientation(Color), SetPos(Pos), SetBoard(Board), UserMove(Square, Square, Option<Role>), ShapesChanged(Vec<DrawShape>), }
Chessground events and messages.
Variants
Flip
Flip the board.
SetOrientation(Color)
Set the board orientation.
SetPos(Pos)
Set up a position configuration.
SetBoard(Board)
Set up a board.
UserMove(Square, Square, Option<Role>)
Sent when the completed a piece drag or move.
ShapesChanged(Vec<DrawShape>)
Sent when shapes are added, removed or cleared.
Trait Implementations
impl Debug for GroundMsg
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl DisplayVariant for GroundMsg
[src]
fn display_variant(&self) -> &'static str
[src]
Formats the current variant of the enum.