Skip to main content

style/values/computed/
ui.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5//! Computed values for UI properties
6
7use crate::values::computed::Number;
8use crate::values::computed::color::Color;
9use crate::values::computed::image::Image;
10use crate::values::generics::ui as generics;
11
12pub use crate::values::specified::ui::{
13    BoolInteger, CursorKind, FieldSizing, ImeMode, Inert, MozTheme, PointerEvents, ScrollbarWidth,
14    UserFocus, UserSelect, WindowDragging, WindowShadow,
15};
16
17/// A computed value for the `cursor` property.
18pub type Cursor = generics::GenericCursor<CursorImage>;
19
20/// A computed value for item of `image cursors`.
21pub type CursorImage = generics::GenericCursorImage<Image, Number>;
22
23/// A computed value for `scrollbar-color` property.
24pub type ScrollbarColor = generics::GenericScrollbarColor<Color>;