pub struct Ctx<'a> {
pub pres: &'a Presentation,
pub master: &'a Master,
pub layout: Option<&'a Layout>,
pub owner: Owner,
pub scheme: ColorScheme,
pub color_map: Vec<(String, String)>,
}Fields§
§pres: &'a Presentation§master: &'a Master§layout: Option<&'a Layout>§owner: Owner§scheme: ColorScheme§color_map: Vec<(String, String)>The colour map in force: the slide’s override, else its layout’s, else the master’s.
Implementations§
Source§impl<'a> Ctx<'a>
impl<'a> Ctx<'a>
pub fn for_slide(pres: &'a Presentation, slide: &Slide) -> Option<Ctx<'a>>
pub fn for_layout( pres: &'a Presentation, master: &'a Master, layout: &'a Layout, ) -> Ctx<'a>
pub fn for_master(pres: &'a Presentation, master: &'a Master) -> Ctx<'a>
pub fn color(&self, c: &ColorRef, ph: Option<Rgba>) -> Rgba
Auto Trait Implementations§
impl<'a> Freeze for Ctx<'a>
impl<'a> RefUnwindSafe for Ctx<'a>
impl<'a> Send for Ctx<'a>
impl<'a> Sync for Ctx<'a>
impl<'a> Unpin for Ctx<'a>
impl<'a> UnsafeUnpin for Ctx<'a>
impl<'a> UnwindSafe for Ctx<'a>
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