#[repr(u8)]pub enum Appearance {
Show 72 variants
None,
Auto,
Searchfield,
Textarea,
Checkbox,
Radio,
Menulist,
Listbox,
Meter,
ProgressBar,
Button,
Textfield,
MenulistButton,
ButtonArrowDown,
ButtonArrowNext,
ButtonArrowPrevious,
ButtonArrowUp,
Dualbutton,
Menupopup,
Meterchunk,
MozMenulistArrowButton,
NumberInput,
Progresschunk,
Range,
RangeThumb,
ScrollbarHorizontal,
ScrollbarVertical,
ScrollbarbuttonUp,
ScrollbarbuttonDown,
ScrollbarbuttonLeft,
ScrollbarbuttonRight,
ScrollbarthumbHorizontal,
ScrollbarthumbVertical,
ScrollbartrackHorizontal,
ScrollbartrackVertical,
Scrollcorner,
Separator,
Spinner,
SpinnerUpbutton,
SpinnerDownbutton,
SpinnerTextfield,
Splitter,
Statusbar,
Tab,
Tabpanel,
Tabpanels,
TabScrollArrowBack,
TabScrollArrowForward,
Toolbarbutton,
ToolbarbuttonDropdown,
Tooltip,
Treeheader,
Treeheadercell,
Treeitem,
Treeline,
Treetwisty,
Treetwistyopen,
Treeview,
MozMacHelpButton,
MozMacUnifiedToolbarWindow,
MozWindowButtonBox,
MozWindowButtonClose,
MozWindowButtonMaximize,
MozWindowButtonMinimize,
MozWindowButtonRestore,
MozWindowTitlebar,
MozWindowTitlebarMaximized,
MozWindowDecorations,
MozMacDisclosureButtonClosed,
MozMacDisclosureButtonOpen,
FocusOutline,
Count,
}
Expand description
The value for the appearance
property.
https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-appearance
Variants§
None
No appearance at all.
Auto
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
A searchfield.
Textarea
A multi-line text field, e.g. HTML
Checkbox
A checkbox element.
Radio
A radio element within a radio group.
Menulist
A dropdown list.
Listbox
List boxes.
Meter
A horizontal meter bar.
ProgressBar
A horizontal progress bar.
Button
A typical dialog button.
Textfield
A single-line text field, e.g. HTML .
MenulistButton
The dropdown button(s) that open up a dropdown list.
ButtonArrowDown
Various arrows that go in buttons
ButtonArrowNext
ButtonArrowPrevious
ButtonArrowUp
A dual toolbar button (e.g., a Back button with a dropdown)
Menupopup
Menu Popup background.
Meterchunk
The meter bar’s meter indicator.
MozMenulistArrowButton
The “arrowed” part of the dropdown button that open up a dropdown list.
NumberInput
For HTML’s
Progresschunk
The progress bar’s progress indicator
Range
nsRangeFrame and its subparts
RangeThumb
ScrollbarHorizontal
The scrollbar slider
ScrollbarVertical
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
The scrollbar thumb.
ScrollbarthumbVertical
ScrollbartrackHorizontal
The scrollbar track.
ScrollbartrackVertical
Scrollcorner
The scroll corner
Separator
A separator. Can be horizontal or vertical.
Spinner
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
The textfield of a spin control
Splitter
A splitter. Can be horizontal or vertical.
Statusbar
A status bar in a main application window.
Tab
A single tab in a tab widget.
Tabpanel
A single pane (inside the tabpanels container).
Tabpanels
The tab panels container.
TabScrollArrowBack
The tabs scroll arrows (left/right).
TabScrollArrowForward
A single toolbar button (with no associated dropdown).
The dropdown portion of a toolbar button
Tooltip
A tooltip.
Treeheader
A listbox or tree widget header
Treeheadercell
An individual header cell
Treeitem
A tree item.
Treeline
A tree widget branch line
Treetwisty
A tree widget twisty.
Treetwistyopen
Open tree widget twisty.
Treeview
A tree widget.
MozMacHelpButton
Mac help button.
MozMacUnifiedToolbarWindow
An appearance value for the root, so that we can get 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
Windows themed window frame elements.
MozWindowButtonClose
MozWindowButtonMaximize
MozWindowButtonMinimize
MozWindowButtonRestore
MozWindowTitlebar
MozWindowTitlebarMaximized
MozWindowDecorations
MozMacDisclosureButtonClosed
MozMacDisclosureButtonOpen
FocusOutline
A themed focus outline (for outline:auto).
This isn’t exposed to CSS at all, just here for convenience.
Count
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<Appearance> for Appearance
impl PartialEq<Appearance> for Appearance
source§fn eq(&self, other: &Appearance) -> bool
fn eq(&self, other: &Appearance) -> bool
self
and other
values to be equal, and is used
by ==
.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
§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
§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 StructuralEq for Appearance
impl StructuralPartialEq for Appearance
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
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