pub struct Context { /* private fields */ }
Implementations
sourceimpl Context
impl Context
sourcepub fn global() -> &'static Self
pub fn global() -> &'static Self
Retrieves the singleton instance of Settings
Returns
the instance of Settings
. The
returned object is owned by internals and it should not be unreferenced
directly
sourcepub fn display(&self) -> Option<Display>
pub fn display(&self) -> Option<Display>
Retrieves the Display
that is internally associated with the
given self
. This will return the same Display
that was
passed to Context::new
or if None
was passed to
Context::new
then this fn returns a pointer to the
display that was automatically setup internally.
Returns
The Display
associated with the
given self
.
sourcepub fn renderer(&self) -> Option<Renderer>
pub fn renderer(&self) -> Option<Renderer>
Retrieves the Renderer
that is internally associated with the
given self
. This will return the same Renderer
that was
passed to Display::new
or if None
was passed to
Display::new
or Context::new
then this fn returns
a pointer to the renderer that was automatically connected
internally.
Returns
The Renderer
associated with the
given self
.
pub fn init(&self, display: Option<Display>) -> Result<Display, ContextError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.