Struct gtk::builders::StyleContextBuilder
source · [−]pub struct StyleContextBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct StyleContext
objects.
Implementations
sourceimpl StyleContextBuilder
impl StyleContextBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new StyleContextBuilder
.
sourcepub fn build(self) -> StyleContext
pub fn build(self) -> StyleContext
Build the StyleContext
.
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
Trait Implementations
sourceimpl Clone for StyleContextBuilder
impl Clone for StyleContextBuilder
sourcefn clone(&self) -> StyleContextBuilder
fn clone(&self) -> StyleContextBuilder
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for StyleContextBuilder
impl Default for StyleContextBuilder
sourcefn default() -> StyleContextBuilder
fn default() -> StyleContextBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for StyleContextBuilder
impl !Send for StyleContextBuilder
impl !Sync for StyleContextBuilder
impl Unpin for StyleContextBuilder
impl UnwindSafe for StyleContextBuilder
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