pub struct StyleContextBuilder { /* private fields */ }Expand description
A builder-pattern type to construct StyleContext objects.
Implementations§
Source§impl StyleContextBuilder
impl StyleContextBuilder
pub fn direction(self, direction: TextDirection) -> Self
pub fn paint_clock(self, paint_clock: &FrameClock) -> Self
Sourcepub fn parent(self, parent: &impl IsA<StyleContext>) -> Self
pub fn parent(self, parent: &impl IsA<StyleContext>) -> Self
Sets or gets the style context’s parent. See StyleContextExt::set_parent()
for details.
pub fn screen(self, screen: &Screen) -> Self
Sourcepub fn build(self) -> StyleContext
pub fn build(self) -> StyleContext
Build the StyleContext.
Auto Trait Implementations§
impl !Send for StyleContextBuilder
impl !Sync for StyleContextBuilder
impl Freeze for StyleContextBuilder
impl RefUnwindSafe for StyleContextBuilder
impl Unpin for StyleContextBuilder
impl UnsafeUnpin for StyleContextBuilder
impl UnwindSafe for StyleContextBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more