pub fn on_paint(&self) -> &PaintData {
        match self {
            EventData::OnPaint(p) => p,
            d => panic!("Wrong data type: {:?}", d)
        }
    }
/// Unwraps event data into a `&PaintData`. Panics if it's not the right type.
Unwraps event data into a `&PaintData`. Panics if it's not the right type.
Unwraps event data into a ` &PaintData ` . Panics if it ' s not the right type .
pub fn on_paint(&self) -> &PaintData {
        match self {
            EventData::OnPaint(p) => p,
            d => panic!("Wrong data type: {:?}", d)
        }
    }
pub fn on_paint ( & self ) -> & PaintData { match self { EventData :: OnPaint ( p ) => p , d => panic ! ( " " d ) } }
Unwraps event data into a `&PaintData`.
Unwraps event data into a ` &PaintData ` .
&self