Struct macroquad::ui::StyleBuilder
source · pub struct StyleBuilder { /* private fields */ }Implementations
sourceimpl StyleBuilder
impl StyleBuilder
pub fn font(self, ttf_bytes: &[u8]) -> Result<StyleBuilder, FontError>
pub fn background(self, background: Image) -> StyleBuilder
pub fn margin(self, margin: RectOffset) -> StyleBuilder
pub fn background_margin(self, margin: RectOffset) -> StyleBuilder
pub fn background_hovered(self, background_hovered: Image) -> StyleBuilder
pub fn background_clicked(self, background_clicked: Image) -> StyleBuilder
pub fn text_color(self, color: Color) -> StyleBuilder
pub fn text_color_hovered(self, color_hovered: Color) -> StyleBuilder
pub fn text_color_clicked(self, color_clicked: Color) -> StyleBuilder
pub fn font_size(self, font_size: u16) -> StyleBuilder
pub fn color(self, color: Color) -> StyleBuilder
pub fn color_hovered(self, color_hovered: Color) -> StyleBuilder
pub fn color_clicked(self, color_clicked: Color) -> StyleBuilder
pub fn color_selected(self, color_selected: Color) -> StyleBuilder
pub fn color_selected_hovered(
self,
color_selected_hovered: Color
) -> StyleBuilder
pub fn color_inactive(self, color_inactive: Color) -> StyleBuilder
pub fn reverse_background_z(self, reverse_background_z: bool) -> StyleBuilder
pub fn build(self) -> Style
Auto Trait Implementations
impl !RefUnwindSafe for StyleBuilder
impl !Send for StyleBuilder
impl !Sync for StyleBuilder
impl Unpin for StyleBuilder
impl !UnwindSafe for StyleBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more