pub fn available_size(&self, r: &Region) -> Vec2 {
        if self.main_wrap {
            if self.main_dir.is_horizontal() {
                vec2(r.max_rect.width(), r.max_rect.bottom() - r.cursor.y)
            } else {
                vec2(r.max_rect.right() - r.cursor.x, r.max_rect.height())
            }
        } else {
            self.available_from_cursor_max_rect(r.cursor, r.max_rect)
                .size()
        }
    }
/// Amount of space available for a widget.
/// Wor wrapping layouts, this is the maximum (after wrap)
Amount of space available for a widget.
Wor wrapping layouts, this is the maximum (after wrap)
Amount of space available for a widget . Wor wrapping layouts this is the maximum ( after wrap )
pub fn available_size(&self, r: &Region) -> Vec2 {
        if self.main_wrap {
            if self.main_dir.is_horizontal() {
                vec2(r.max_rect.width(), r.max_rect.bottom() - r.cursor.y)
            } else {
                vec2(r.max_rect.right() - r.cursor.x, r.max_rect.height())
            }
        } else {
            self.available_from_cursor_max_rect(r.cursor, r.max_rect)
                .size()
        }
    }
pub fn available_size ( & self , r : & Region ) -> Vec2 { if self . main_wrap { if self . main_dir . is_horizontal ( ) { vec2 ( r . max_rect . width ( ) , r . max_rect . bottom ( ) - r . cursor . y ) } else { vec2 ( r . max_rect . right ( ) - r . cursor . x , r . max_rect . height ( ) ) } } else { self . available_from_cursor_max_rect ( r . cursor , r . max_rect ) . size ( ) } }
Amount of space available for a widget.
Amount of space available for a widget .
&self
r
&Region
&self
r
&Region