makepad-draw 1.0.0

Makepad 2d drawing API
Documentation
use {
    std::{
        ops::Deref,
        ops::DerefMut,
    },
    crate::{
        cx_draw::{CxDraw},
    }
};

pub struct Cx3d<'a, 'b> {
    pub cx: &'b mut CxDraw<'a>,
}

impl<'a, 'b> Deref for Cx3d<'a,'b> {type Target = CxDraw<'a>; fn deref(&self) -> &Self::Target {self.cx}}
impl<'a, 'b> DerefMut for Cx3d<'a,'b> {fn deref_mut(&mut self) -> &mut Self::Target {self.cx}}

impl<'a, 'b> Cx3d<'a, 'b> {
    pub fn new(cx: &'b mut CxDraw<'a>)->Self{
        Self {
            cx: cx,
        }
    }
}