pub fn line_separator(&mut self, component_length: usize) {
        let component_length = component_length as f32;

        match self.line_dir {
            LineDir::Horizontal => {
                let width = self.style.separator_width;
                let color = self.style.separator_color;

                let a = Vec2 {
                    x: self.caret_start.x + width/2.0, 
                    y: self.caret.y + self.line_size,
                };
                let b = Vec2 {
                    x: a.x + self.style.comp_width*component_length + self.style.margin.x*(component_length - 1.0),
                    y: a.y,
                };

                line(&mut self.draw_data, a, b, width, color);
            },
            LineDir::Vertical => {
                panic!("NYI at {}:{}", module_path!(), line!());
            },
        }
        self.next_line();
    }
/// Draws a separator and advances to the next line. See [`next_line`] for more info. This
/// draws a separator long enough to cap a line with `component_length` components on a line. 
///
/// [`next_line`]: struct.Ui.html#method.next_line
Draws a separator and advances to the next line. See [`next_line`] for more info. This
draws a separator long enough to cap a line with `component_length` components on a line.


Draws a separator and advances to the next line . See [ ` next_line ` ] for more info . This draws a separator long enough to cap a line with ` component_length ` components on a line .
pub fn line_separator(&mut self, component_length: usize) {
        let component_length = component_length as f32;
        match self.line_dir {
            LineDir::Horizontal => {
                let width = self.style.separator_width;
                let color = self.style.separator_color;
                let a = Vec2 {
                    x: self.caret_start.x + width/2.0, 
                    y: self.caret.y + self.line_size,
                };
                let b = Vec2 {
                    x: a.x + self.style.comp_width*component_length + self.style.margin.x*(component_length - 1.0),
                    y: a.y,
                };
                line(&mut self.draw_data, a, b, width, color);
            },
            LineDir::Vertical => {
                panic!("NYI at {}:{}", module_path!(), line!());
            },
        }
        self.next_line();
    }
pub fn line_separator ( & mut self , component_length : usize ) { let component_length = component_length as f32 ; match self . line_dir { LineDir :: Horizontal => { let width = self . style . separator_width ; let color = self . style . separator_color ; let a = Vec2 { x : self . caret_start . x + width / 2.0 , y : self . caret . y + self . line_size , } ; let b = Vec2 { x : a . x + self . style . comp_width * component_length + self . style . margin . x * ( component_length - 1.0 ) , y : a . y , } ; line ( & mut self . draw_data , a , b , width , color ) ; } , LineDir :: Vertical => { panic ! ( " " module_path ( ) line ( ) ) ; } , } self . next_line ( ) ; }
Draws a separator and advances to the next line.
Draws a separator and advances to the next line .
&mut self
component_length
usize
&mut self
component_length
usize