Struct kas_theme::ShadedTheme [−][src]
A theme using simple shading to give apparent depth to elements
Implementations
impl ShadedTheme
[src]
pub fn new() -> Self
[src]
Construct
pub fn with_font_size(self, pt_size: f32) -> Self
[src]
Set font size
Units: Points per Em (standard unit of font size)
pub fn with_colours(self, scheme: &str) -> Self
[src]
Set the colour scheme
If no scheme by this name is found the scheme is left unchanged.
Trait Implementations
impl Clone for ShadedTheme
[src]
fn clone(&self) -> ShadedTheme
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ShadedTheme
[src]
impl<D: DrawShared + 'static> Theme<D> for ShadedTheme where
D::Draw: DrawRounded + DrawShaded + DrawText,
[src]
D::Draw: DrawRounded + DrawShaded + DrawText,
type Window = DimensionsWindow
The associated Window
implementation.
type DrawHandle = DrawHandle<'static, D::Draw>
The associated DrawHandle
implementation.
fn init(&mut self, _draw: &mut D)
[src]
fn new_window(&self, _draw: &mut D::Draw, dpi_factor: f32) -> Self::Window
[src]
fn update_window(&self, window: &mut Self::Window, dpi_factor: f32)
[src]
unsafe fn draw_handle<'a>(
&'a self,
draw: &'a mut D::Draw,
window: &'a mut Self::Window,
rect: Rect
) -> Self::DrawHandle
[src]
&'a self,
draw: &'a mut D::Draw,
window: &'a mut Self::Window,
rect: Rect
) -> Self::DrawHandle
fn clear_color(&self) -> Colour
[src]
impl ThemeApi for ShadedTheme
[src]
fn set_font_size(&mut self, size: f32) -> ThemeAction
[src]
fn set_colours(&mut self, scheme: &str) -> ThemeAction
[src]
pub fn set_theme(&mut self, _theme: &str) -> ThemeAction
[src]
Auto Trait Implementations
impl RefUnwindSafe for ShadedTheme
impl Send for ShadedTheme
impl Sync for ShadedTheme
impl Unpin for ShadedTheme
impl UnwindSafe for ShadedTheme
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<S, T> Cast<T> for S where
T: Conv<S>,
T: Conv<S>,
impl<S, T> CastFloat<T> for S where
T: ConvFloat<S>,
T: ConvFloat<S>,
pub fn cast_trunc(self) -> T
pub fn cast_nearest(self) -> T
pub fn cast_floor(self) -> T
pub fn cast_ceil(self) -> T
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
impl<T> Conv<T> for T
impl<'a, T, X> Filter<&'a T> for X where
T: Clone,
X: Filter<T>,
[src]
T: Clone,
X: Filter<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,