fn compute_expand(&self, widget: &Self::Type, hexpand: &mut bool, vexpand: &mut bool) {
        let child = self.child.borrow();
        let child = match child.as_ref() {
            Some(child) => child,
            None => {
                *hexpand = false;
                *vexpand = false;
                return;
            }
        };

        match self.rotation(widget) {
            Rotation::Normal | Rotation::Deg180 => {
                *hexpand = child.compute_expand(gtk::Orientation::Horizontal);
                *vexpand = child.compute_expand(gtk::Orientation::Vertical);
            }
            Rotation::Deg90 | Rotation::Deg270 => {
                *hexpand = child.compute_expand(gtk::Orientation::Vertical);
                *vexpand = child.compute_expand(gtk::Orientation::Horizontal);
            }
        };
    }
// When rotated by 90 or 270 degrees, swap the orientation which expand
// properties are computed against.
When rotated by 90 or 270 degrees, swap the orientation which expand
properties are computed against.
When rotated by 90 or 270 degrees swap the orientation which expand properties are computed against .
fn compute_expand(&self, widget: &Self::Type, hexpand: &mut bool, vexpand: &mut bool) {
        let child = self.child.borrow();
        let child = match child.as_ref() {
            Some(child) => child,
            None => {
                *hexpand = false;
                *vexpand = false;
                return;
            }
        };
        match self.rotation(widget) {
            Rotation::Normal | Rotation::Deg180 => {
                *hexpand = child.compute_expand(gtk::Orientation::Horizontal);
                *vexpand = child.compute_expand(gtk::Orientation::Vertical);
            }
            Rotation::Deg90 | Rotation::Deg270 => {
                *hexpand = child.compute_expand(gtk::Orientation::Vertical);
                *vexpand = child.compute_expand(gtk::Orientation::Horizontal);
            }
        };
    }
fn compute_expand ( & self , widget : & Self :: Type , hexpand : & mut bool , vexpand : & mut bool ) { let child = self . child . borrow ( ) ; let child = match child . as_ref ( ) { Some ( child ) => child , None => { * hexpand = false ; * vexpand = false ; return ; } } ; match self . rotation ( widget ) { Rotation :: Normal | Rotation :: Deg180 => { * hexpand = child . compute_expand ( gtk :: Orientation :: Horizontal ) ; * vexpand = child . compute_expand ( gtk :: Orientation :: Vertical ) ; } Rotation :: Deg90 | Rotation :: Deg270 => { * hexpand = child . compute_expand ( gtk :: Orientation :: Vertical ) ; * vexpand = child . compute_expand ( gtk :: Orientation :: Horizontal ) ; } } ; }
When rotated by 90 or 270 degrees, swap the orientation which expand
properties are computed against.
When rotated by 90 or 270 degrees swap the orientation which expand properties are computed against .
&self
widget
&Self::Type
hexpand
&mut bool
vexpand
&mut bool
&self
widget
&Self::Type
hexpand
&mut bool
vexpand
&mut bool