makepad_draw/
cx_3d.rs

1use {
2    std::{
3        ops::Deref,
4        ops::DerefMut,
5    },
6    crate::{
7        cx_draw::{CxDraw},
8    }
9};
10
11pub struct Cx3d<'a, 'b> {
12    pub cx: &'b mut CxDraw<'a>,
13}
14
15impl<'a, 'b> Deref for Cx3d<'a,'b> {type Target = CxDraw<'a>; fn deref(&self) -> &Self::Target {self.cx}}
16impl<'a, 'b> DerefMut for Cx3d<'a,'b> {fn deref_mut(&mut self) -> &mut Self::Target {self.cx}}
17
18impl<'a, 'b> Cx3d<'a, 'b> {
19    pub fn new(cx: &'b mut CxDraw<'a>)->Self{
20        Self {
21            cx: cx,
22        }
23    }
24}