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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more