[][src]Struct megaui::Style

pub struct Style {
    pub margin: f32,
    pub title_height: f32,
    pub scroll_width: f32,
    pub scroll_multiplier: f32,
    pub window_border_focused: Color,
    pub window_border_inactive: Color,
    pub window_background_focused: Color,
    pub window_background_inactive: Color,
    pub editbox_background_focused: Color,
    pub editbox_background_inactive: Color,
    pub scrollbar_background_focused_clicked: Color,
    pub scrollbar_background_focused_hovered: Color,
    pub scrollbar_background_focused: Color,
    pub scrollbar_background_focused_inactive: Color,
    pub inactive_title: Color,
    pub focused_title: Color,
    pub focused_text: Color,
    pub inactive_text: Color,
    pub margin_button: f32,
    pub button_background_focused: Color,
    pub button_background_focused_hovered: Color,
    pub button_background_focused_clicked: Color,
    pub button_background_inactive: Color,
    pub group_border_focused_hovered: Color,
    pub group_border_focused: Color,
    pub group_border_focused_highlight: Color,
    pub group_border_inactive_hovered: Color,
    pub group_border_inactive: Color,
}

Fields

margin: f32title_height: f32scroll_width: f32scroll_multiplier: f32window_border_focused: Colorwindow_border_inactive: Colorwindow_background_focused: Colorwindow_background_inactive: Coloreditbox_background_focused: Coloreditbox_background_inactive: Colorscrollbar_background_focused_clicked: Colorscrollbar_background_focused_hovered: Colorscrollbar_background_focused: Colorscrollbar_background_focused_inactive: Colorinactive_title: Colorfocused_title: Colorfocused_text: Colorinactive_text: Colormargin_button: f32button_background_focused: Colorbutton_background_focused_hovered: Colorbutton_background_focused_clicked: Colorbutton_background_inactive: Colorgroup_border_focused_hovered: Colorgroup_border_focused: Colorgroup_border_focused_highlight: Colorgroup_border_inactive_hovered: Colorgroup_border_inactive: Color

Methods

impl Style[src]

pub fn window_border(&self, focused: bool) -> Color[src]

pub fn background(&self, focused: bool) -> Color[src]

pub fn editbox_background(&self, focused: bool) -> Color[src]

pub fn scroll_bar_handle(
    &self,
    focused: bool,
    hovered: bool,
    clicked: bool
) -> Color
[src]

pub fn title(&self, focused: bool) -> Color[src]

pub fn text(&self, focused: bool) -> Color[src]

pub fn button_background(
    &self,
    focused: bool,
    hovered: bool,
    clicked: bool
) -> Color
[src]

pub fn drag_border(
    &self,
    focused: bool,
    hovered: bool,
    highlight: bool
) -> Color
[src]

pub fn tabbar_background(
    &self,
    focused: bool,
    selected: bool,
    hovered: bool,
    clicked: bool
) -> Color
[src]

Trait Implementations

impl Clone for Style[src]

impl Debug for Style[src]

impl Default for Style[src]

Auto Trait Implementations

impl RefUnwindSafe for Style

impl Send for Style

impl Sync for Style

impl Unpin for Style

impl UnwindSafe for Style

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.