Skip to content

struct

ObjectClasses

pub struct ObjectClasses {
    pub base: Look,
    pub hover: Look,
    pub active: Look,
    pub focus: Look,
    pub duration_ms: Option<f32>,
}

An object's classes: its own look and how it changes.

Fields

base

pub base: Look

Its look at rest.

hover

pub hover: Look

Changes while the pointer is over it (hover:).

active

pub active: Look

Changes while it's pressed (active:).

focus

pub focus: Look

Changes while it has focus (focus:).

duration_ms

pub duration_ms: Option<f32>

From duration-* (or transition's 150 ms).

Methods

is_interactive

pub fn is_interactive(&self) -> bool

Whether it changes with hover, press or focus.

Trait implementations