Skip to main content

CommonTheme

Struct CommonTheme 

Source
pub struct CommonTheme { /* private fields */ }

Implementations§

Source§

impl CommonTheme

Source

pub fn write_css_vars(&self, css_vars: &mut String)

Source§

impl CommonTheme

Source

pub fn font_family_base(&self) -> &String

Source

pub fn font_family_monospace(&self) -> &String

Source

pub fn font_family_numeric(&self) -> &String

Source

pub fn font_family_display(&self) -> &String

Source

pub fn font_size_base_100(&self) -> &String

Source

pub fn font_size_base_200(&self) -> &String

Source

pub fn font_size_base_300(&self) -> &String

Source

pub fn font_size_base_400(&self) -> &String

Source

pub fn font_size_base_500(&self) -> &String

Source

pub fn font_size_base_600(&self) -> &String

Source

pub fn font_size_base_700(&self) -> &String

Source

pub fn font_size_base_800(&self) -> &String

Source

pub fn font_size_base_900(&self) -> &String

Source

pub fn font_size_base_1000(&self) -> &String

Source

pub fn line_height_base_200(&self) -> &String

Source

pub fn line_height_base_300(&self) -> &String

Source

pub fn line_height_base_400(&self) -> &String

Source

pub fn line_height_base_500(&self) -> &String

Source

pub fn font_weight_regular(&self) -> &String

Source

pub fn font_weight_semibold(&self) -> &String

Source

pub fn font_weight_bold(&self) -> &String

Source

pub fn stroke_width_thin(&self) -> &String

Source

pub fn stroke_width_thick(&self) -> &String

Source

pub fn stroke_width_thicker(&self) -> &String

Source

pub fn stroke_width_thickest(&self) -> &String

Source

pub fn border_radius_none(&self) -> &String

Source

pub fn border_radius_small(&self) -> &String

Source

pub fn border_radius_medium(&self) -> &String

Source

pub fn border_radius_large(&self) -> &String

Source

pub fn border_radius_x_large(&self) -> &String

Source

pub fn border_radius_floating(&self) -> &String

Source

pub fn border_radius_circular(&self) -> &String

Source

pub fn spacing_horizontal_none(&self) -> &String

Source

pub fn spacing_horizontal_x_x_s(&self) -> &String

Source

pub fn spacing_horizontal_x_s(&self) -> &String

Source

pub fn spacing_horizontal_s_nudge(&self) -> &String

Source

pub fn spacing_horizontal_s(&self) -> &String

Source

pub fn spacing_horizontal_m_nudge(&self) -> &String

Source

pub fn spacing_horizontal_m(&self) -> &String

Source

pub fn spacing_horizontal_l(&self) -> &String

Source

pub fn spacing_horizontal_x_l(&self) -> &String

Source

pub fn spacing_horizontal_x_x_l(&self) -> &String

Source

pub fn spacing_horizontal_x_x_x_l(&self) -> &String

Source

pub fn spacing_vertical_none(&self) -> &String

Source

pub fn spacing_vertical_x_x_s(&self) -> &String

Source

pub fn spacing_vertical_x_s(&self) -> &String

Source

pub fn spacing_vertical_s_nudge(&self) -> &String

Source

pub fn spacing_vertical_s(&self) -> &String

Source

pub fn spacing_vertical_m_nudge(&self) -> &String

Source

pub fn spacing_vertical_m(&self) -> &String

Source

pub fn spacing_vertical_l(&self) -> &String

Source

pub fn spacing_vertical_x_l(&self) -> &String

Source

pub fn spacing_vertical_x_x_l(&self) -> &String

Source

pub fn spacing_vertical_x_x_x_l(&self) -> &String

Source

pub fn duration_ultra_fast(&self) -> &String

Source

pub fn duration_faster(&self) -> &String

Source

pub fn duration_normal(&self) -> &String

Source

pub fn duration_gentle(&self) -> &String

Source

pub fn duration_slow(&self) -> &String

Source

pub fn curve_accelerate_mid(&self) -> &String

Source

pub fn curve_decelerate_max(&self) -> &String

Source

pub fn curve_decelerate_mid(&self) -> &String

Source

pub fn curve_easy_ease(&self) -> &String

Source

pub fn curve_easy_ease_max(&self) -> &String

Source§

impl CommonTheme

Source

pub fn set_font_family_base(&mut self, val: String) -> &mut Self

Source

pub fn set_font_family_monospace(&mut self, val: String) -> &mut Self

Source

pub fn set_font_family_numeric(&mut self, val: String) -> &mut Self

Source

pub fn set_font_family_display(&mut self, val: String) -> &mut Self

Source

pub fn set_font_size_base_100(&mut self, val: String) -> &mut Self

Source

pub fn set_font_size_base_200(&mut self, val: String) -> &mut Self

Source

pub fn set_font_size_base_300(&mut self, val: String) -> &mut Self

Source

pub fn set_font_size_base_400(&mut self, val: String) -> &mut Self

Source

pub fn set_font_size_base_500(&mut self, val: String) -> &mut Self

Source

pub fn set_font_size_base_600(&mut self, val: String) -> &mut Self

Source

pub fn set_font_size_base_700(&mut self, val: String) -> &mut Self

Source

pub fn set_font_size_base_800(&mut self, val: String) -> &mut Self

Source

pub fn set_font_size_base_900(&mut self, val: String) -> &mut Self

Source

pub fn set_font_size_base_1000(&mut self, val: String) -> &mut Self

Source

pub fn set_line_height_base_200(&mut self, val: String) -> &mut Self

Source

pub fn set_line_height_base_300(&mut self, val: String) -> &mut Self

Source

pub fn set_line_height_base_400(&mut self, val: String) -> &mut Self

Source

pub fn set_line_height_base_500(&mut self, val: String) -> &mut Self

Source

pub fn set_font_weight_regular(&mut self, val: String) -> &mut Self

Source

pub fn set_font_weight_semibold(&mut self, val: String) -> &mut Self

Source

pub fn set_font_weight_bold(&mut self, val: String) -> &mut Self

Source

pub fn set_stroke_width_thin(&mut self, val: String) -> &mut Self

Source

pub fn set_stroke_width_thick(&mut self, val: String) -> &mut Self

Source

pub fn set_stroke_width_thicker(&mut self, val: String) -> &mut Self

Source

pub fn set_stroke_width_thickest(&mut self, val: String) -> &mut Self

Source

pub fn set_border_radius_none(&mut self, val: String) -> &mut Self

Source

pub fn set_border_radius_small(&mut self, val: String) -> &mut Self

Source

pub fn set_border_radius_medium(&mut self, val: String) -> &mut Self

Source

pub fn set_border_radius_large(&mut self, val: String) -> &mut Self

Source

pub fn set_border_radius_x_large(&mut self, val: String) -> &mut Self

Source

pub fn set_border_radius_floating(&mut self, val: String) -> &mut Self

Source

pub fn set_border_radius_circular(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_horizontal_none(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_horizontal_x_x_s(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_horizontal_x_s(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_horizontal_s_nudge(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_horizontal_s(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_horizontal_m_nudge(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_horizontal_m(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_horizontal_l(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_horizontal_x_l(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_horizontal_x_x_l(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_horizontal_x_x_x_l(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_vertical_none(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_vertical_x_x_s(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_vertical_x_s(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_vertical_s_nudge(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_vertical_s(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_vertical_m_nudge(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_vertical_m(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_vertical_l(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_vertical_x_l(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_vertical_x_x_l(&mut self, val: String) -> &mut Self

Source

pub fn set_spacing_vertical_x_x_x_l(&mut self, val: String) -> &mut Self

Source

pub fn set_duration_ultra_fast(&mut self, val: String) -> &mut Self

Source

pub fn set_duration_faster(&mut self, val: String) -> &mut Self

Source

pub fn set_duration_normal(&mut self, val: String) -> &mut Self

Source

pub fn set_duration_gentle(&mut self, val: String) -> &mut Self

Source

pub fn set_duration_slow(&mut self, val: String) -> &mut Self

Source

pub fn set_curve_accelerate_mid(&mut self, val: String) -> &mut Self

Source

pub fn set_curve_decelerate_max(&mut self, val: String) -> &mut Self

Source

pub fn set_curve_decelerate_mid(&mut self, val: String) -> &mut Self

Source

pub fn set_curve_easy_ease(&mut self, val: String) -> &mut Self

Source

pub fn set_curve_easy_ease_max(&mut self, val: String) -> &mut Self

Source§

impl CommonTheme

Source

pub fn new() -> Self

Source

pub fn write_orb_motion_css_vars(&self, css_vars: &mut String)

Emits Orbital --orb-motion-* tokens plus legacy --duration* / --curve* aliases.

Source§

impl CommonTheme

Source

pub fn write_orb_common_css_vars(&self, css_vars: &mut String)

Emits --orb-type-*, --orb-space-*, --orb-radius-*, --orb-stroke-* only.

Trait Implementations§

Source§

impl Clone for CommonTheme

Source§

fn clone(&self) -> CommonTheme

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for CommonTheme

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for T
where Request: Req<E> + Send + 'static, Encoding: Decodes<T>, E: FromServerFnError,

Source§

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
Source§

impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for T
where Request: Req<E> + Send + 'static, Encoding: Decodes<T>, E: FromServerFnError,

Source§

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
Source§

impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for T
where Request: Req<E> + Send + 'static, Encoding: Decodes<T>, E: FromServerFnError,

Source§

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
Source§

impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for T
where Response: ClientRes<E> + Send, Encoding: Decodes<T>, E: FromServerFnError,

Source§

async fn from_res(res: Response) -> Result<T, E>

Attempts to deserialize the outputs from a response.
Source§

impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for T
where Response: ClientRes<E> + Send, Encoding: Decodes<T>, E: FromServerFnError,

Source§

async fn from_res(res: Response) -> Result<T, E>

Attempts to deserialize the outputs from a response.
Source§

impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for T
where Response: ClientRes<E> + Send, Encoding: Decodes<T>, E: FromServerFnError,

Source§

async fn from_res(res: Response) -> Result<T, E>

Attempts to deserialize the outputs from a response.
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for T
where Request: ClientReq<E>, Encoding: Encodes<T>, E: FromServerFnError,

Source§

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
Source§

impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for T
where Request: ClientReq<E>, Encoding: Encodes<T>, E: FromServerFnError,

Source§

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
Source§

impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for T
where Request: ClientReq<E>, Encoding: Encodes<T>, E: FromServerFnError,

Source§

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
Source§

impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
where Response: TryRes<E>, Encoding: Encodes<T>, E: FromServerFnError + Send, T: Send,

Source§

async fn into_res(self) -> Result<Response, E>

Attempts to serialize the output into an HTTP response.
Source§

impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
where Response: TryRes<E>, Encoding: Encodes<T>, E: FromServerFnError + Send, T: Send,

Source§

async fn into_res(self) -> Result<Response, E>

Attempts to serialize the output into an HTTP response.
Source§

impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
where Response: TryRes<E>, Encoding: Encodes<T>, E: FromServerFnError + Send, T: Send,

Source§

async fn into_res(self) -> Result<Response, E>

Attempts to serialize the output into an HTTP response.
Source§

impl<T> SerializableKey for T

Source§

fn ser_key(&self) -> String

Serializes the key to a unique string. Read more
Source§

impl<T> StorageAccess<T> for T

Source§

fn as_borrowed(&self) -> &T

Borrows the value.
Source§

fn into_taken(self) -> T

Takes the value.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more