#[repr(u8)]pub enum Appearance {
Show 65 variants
None = 0,
Auto = 1,
Searchfield = 2,
Textarea = 3,
Checkbox = 4,
Radio = 5,
Menulist = 6,
Listbox = 7,
Meter = 8,
ProgressBar = 9,
Button = 10,
Textfield = 11,
MenulistButton = 12,
ButtonArrowDown = 13,
ButtonArrowNext = 14,
ButtonArrowPrevious = 15,
ButtonArrowUp = 16,
Dualbutton = 17,
Menupopup = 18,
Meterchunk = 19,
MozMenulistArrowButton = 20,
NumberInput = 21,
PasswordInput = 22,
Progresschunk = 23,
Range = 24,
RangeThumb = 25,
ScrollbarHorizontal = 26,
ScrollbarVertical = 27,
ScrollbarbuttonUp = 28,
ScrollbarbuttonDown = 29,
ScrollbarbuttonLeft = 30,
ScrollbarbuttonRight = 31,
ScrollbarthumbHorizontal = 32,
ScrollbarthumbVertical = 33,
Scrollcorner = 34,
Separator = 35,
Spinner = 36,
SpinnerUpbutton = 37,
SpinnerDownbutton = 38,
SpinnerTextfield = 39,
Splitter = 40,
Statusbar = 41,
Tab = 42,
Tabpanel = 43,
Tabpanels = 44,
TabScrollArrowBack = 45,
TabScrollArrowForward = 46,
Toolbarbutton = 47,
ToolbarbuttonDropdown = 48,
Tooltip = 49,
MozSidebar = 50,
MozMacHelpButton = 51,
MozMacWindow = 52,
MozWindowButtonBox = 53,
MozWindowButtonClose = 54,
MozWindowButtonMaximize = 55,
MozWindowButtonMinimize = 56,
MozWindowButtonRestore = 57,
MozWindowTitlebar = 58,
MozWindowTitlebarMaximized = 59,
MozWindowDecorations = 60,
MozMacDisclosureButtonClosed = 61,
MozMacDisclosureButtonOpen = 62,
FocusOutline = 63,
Count = 64,
}
Expand description
The value for the appearance
property.
https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-appearance
Variants§
None = 0
No appearance at all.
Auto = 1
Default appearance for the element.
This value doesn’t make sense for -moz-default-appearance, but we don’t bother to guard against parsing it.
Searchfield = 2
A searchfield.
Textarea = 3
A multi-line text field, e.g. HTML
Checkbox = 4
A checkbox element.
Radio = 5
A radio element within a radio group.
Menulist = 6
A dropdown list.
Listbox = 7
List boxes.
Meter = 8
A horizontal meter bar.
ProgressBar = 9
A horizontal progress bar.
Button = 10
A typical dialog button.
Textfield = 11
A single-line text field, e.g. HTML .
MenulistButton = 12
The dropdown button(s) that open up a dropdown list.
ButtonArrowDown = 13
Various arrows that go in buttons
ButtonArrowNext = 14
ButtonArrowPrevious = 15
ButtonArrowUp = 16
A dual toolbar button (e.g., a Back button with a dropdown)
Menupopup = 18
Menu Popup background.
Meterchunk = 19
The meter bar’s meter indicator.
MozMenulistArrowButton = 20
The “arrowed” part of the dropdown button that open up a dropdown list.
NumberInput = 21
For HTML’s
PasswordInput = 22
For HTML’s
Progresschunk = 23
The progress bar’s progress indicator
Range = 24
nsRangeFrame and its subparts
RangeThumb = 25
ScrollbarHorizontal = 26
The scrollbar slider
ScrollbarVertical = 27
A scrollbar button (up/down/left/right).
Keep these in order (some code casts these values to int
in order to
compare them against each other).
ScrollbarthumbHorizontal = 32
The scrollbar thumb.
ScrollbarthumbVertical = 33
Scrollcorner = 34
The scroll corner
Separator = 35
A separator. Can be horizontal or vertical.
Spinner = 36
A spin control (up/down control for time/date pickers).
The up button of a spin control.
The down button of a spin control.
SpinnerTextfield = 39
The textfield of a spin control
Splitter = 40
A splitter. Can be horizontal or vertical.
Statusbar = 41
A status bar in a main application window.
Tab = 42
A single tab in a tab widget.
Tabpanel = 43
A single pane (inside the tabpanels container).
Tabpanels = 44
The tab panels container.
TabScrollArrowBack = 45
The tabs scroll arrows (left/right).
TabScrollArrowForward = 46
A single toolbar button (with no associated dropdown).
The dropdown portion of a toolbar button
Tooltip = 49
A tooltip.
MozSidebar = 50
Sidebar appearance.
MozMacHelpButton = 51
Mac help button.
MozMacWindow = 52
An appearance value for the root, so that we can get tinting and unified toolbar looks (which require a transparent gecko background) without really using the whole transparency set-up which otherwise loses window borders, see bug 1870481.
MozWindowButtonBox = 53
Windows themed window frame elements.
MozWindowButtonClose = 54
MozWindowButtonMaximize = 55
MozWindowButtonMinimize = 56
MozWindowButtonRestore = 57
MozWindowTitlebar = 58
MozWindowTitlebarMaximized = 59
MozWindowDecorations = 60
MozMacDisclosureButtonClosed = 61
MozMacDisclosureButtonOpen = 62
FocusOutline = 63
A themed focus outline (for outline:auto).
This isn’t exposed to CSS at all, just here for convenience.
Count = 64
A dummy variant that should be last to let the GTK widget do hackery.
Trait Implementations§
source§impl Clone for Appearance
impl Clone for Appearance
source§fn clone(&self) -> Appearance
fn clone(&self) -> Appearance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Appearance
impl Debug for Appearance
source§impl Hash for Appearance
impl Hash for Appearance
source§impl MallocSizeOf for Appearance
impl MallocSizeOf for Appearance
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl Parse for Appearance
impl Parse for Appearance
source§fn parse<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
source§impl PartialEq for Appearance
impl PartialEq for Appearance
source§impl SpecifiedValueInfo for Appearance
impl SpecifiedValueInfo for Appearance
source§const SUPPORTED_TYPES: u8 = 0u8
const SUPPORTED_TYPES: u8 = 0u8
source§impl ToComputedValue for Appearance
impl ToComputedValue for Appearance
source§type ComputedValue = Appearance
type ComputedValue = Appearance
source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Context
.source§impl ToCss for Appearance
impl ToCss for Appearance
source§impl ToResolvedValue for Appearance
impl ToResolvedValue for Appearance
source§type ResolvedValue = Appearance
type ResolvedValue = Appearance
source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
source§impl ToShmem for Appearance
impl ToShmem for Appearance
impl Copy for Appearance
impl Eq for Appearance
impl StructuralPartialEq for Appearance
Auto Trait Implementations§
impl Freeze for Appearance
impl RefUnwindSafe for Appearance
impl Send for Appearance
impl Sync for Appearance
impl Unpin for Appearance
impl UnwindSafe for Appearance
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more