pub fn debug_paint_cursor(&self, region: &Region, painter: &crate::Painter) {
        use crate::paint::*;

        let cursor = region.cursor;

        let color = Color32::GREEN;
        let stroke = Stroke::new(2.0, color);

        let align;

        let l = 64.0;

        match self.main_dir {
            Direction::LeftToRight => {
                painter.arrow(cursor, vec2(l, 0.0), stroke);
                align = (Align::Min, Align::Min);
            }
            Direction::RightToLeft => {
                painter.arrow(cursor, vec2(-l, 0.0), stroke);
                align = (Align::Max, Align::Min);
            }
            Direction::TopDown => {
                painter.arrow(cursor, vec2(0.0, l), stroke);
                align = (Align::Min, Align::Min);
            }
            Direction::BottomUp => {
                painter.arrow(cursor, vec2(0.0, -l), stroke);
                align = (Align::Min, Align::Max);
            }
        }

        painter.text(cursor, align, "cursor", TextStyle::Monospace, color);
    }
/// Shows where the next widget is going to be placed
Shows where the next widget is going to be placed
Shows where the next widget is going to be placed
pub fn debug_paint_cursor(&self, region: &Region, painter: &crate::Painter) {
        use crate::paint::*;
        let cursor = region.cursor;
        let color = Color32::GREEN;
        let stroke = Stroke::new(2.0, color);
        let align;
        let l = 64.0;
        match self.main_dir {
            Direction::LeftToRight => {
                painter.arrow(cursor, vec2(l, 0.0), stroke);
                align = (Align::Min, Align::Min);
            }
            Direction::RightToLeft => {
                painter.arrow(cursor, vec2(-l, 0.0), stroke);
                align = (Align::Max, Align::Min);
            }
            Direction::TopDown => {
                painter.arrow(cursor, vec2(0.0, l), stroke);
                align = (Align::Min, Align::Min);
            }
            Direction::BottomUp => {
                painter.arrow(cursor, vec2(0.0, -l), stroke);
                align = (Align::Min, Align::Max);
            }
        }
        painter.text(cursor, align, "cursor", TextStyle::Monospace, color);
    }
pub fn debug_paint_cursor ( & self , region : & Region , painter : & crate :: Painter ) { use crate :: paint :: * ; let cursor = region . cursor ; let color = Color32 :: GREEN ; let stroke = Stroke :: new ( 2.0 , color ) ; let align ; let l = 64.0 ; match self . main_dir { Direction :: LeftToRight => { painter . arrow ( cursor , vec2 ( l , 0.0 ) , stroke ) ; align = ( Align :: Min , Align :: Min ) ; } Direction :: RightToLeft => { painter . arrow ( cursor , vec2 ( - l , 0.0 ) , stroke ) ; align = ( Align :: Max , Align :: Min ) ; } Direction :: TopDown => { painter . arrow ( cursor , vec2 ( 0.0 , l ) , stroke ) ; align = ( Align :: Min , Align :: Min ) ; } Direction :: BottomUp => { painter . arrow ( cursor , vec2 ( 0.0 , - l ) , stroke ) ; align = ( Align :: Min , Align :: Max ) ; } } painter . text ( cursor , align , " " , TextStyle :: Monospace , color ) ; }
Shows where the next widget is going to be placed
Shows where the next widget is going to be placed
&self
region
&Region
painter
&crate::Painter
&self
region
&Region
painter
&crate::Painter