[−][src]Struct kas_theme::FlatTheme
A theme with flat (unshaded) rendering
Implementations
impl FlatTheme
[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 FlatTheme
[src]
impl Debug for FlatTheme
[src]
impl<D: DrawShared + 'static> Theme<D> for FlatTheme where
D::Draw: DrawRounded + DrawText,
[src]
D::Draw: DrawRounded + DrawText,
type Window = DimensionsWindow
The associated Window
implementation.
type DrawHandle = DrawHandle<'static, D::Draw>
The associated DrawHandle
implementation.
pub fn init(&mut self, _draw: &mut D)
[src]
pub fn new_window(&self, _draw: &mut D::Draw, dpi_factor: f32) -> Self::Window
[src]
pub fn update_window(&self, window: &mut Self::Window, dpi_factor: f32)
[src]
pub 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
pub fn clear_color(&self) -> Colour
[src]
impl ThemeApi for FlatTheme
[src]
pub fn set_font_size(&mut self, size: f32) -> ThemeAction
[src]
pub 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 FlatTheme
impl Send for FlatTheme
impl Sync for FlatTheme
impl Unpin for FlatTheme
impl UnwindSafe for FlatTheme
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<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>,