Browse Source

feat(flex): Add `GetDirection`

tablepad
Andreas Bieber 2 years ago
parent
commit
85bc397af2
  1. 8
      flex.go

8
flex.go

@ -58,6 +58,14 @@ func NewFlex() *Flex {
return f
}
// GetDirection returns the direction in which the contained primitives are
// distributed. This can be either FlexColumn (default) or FlexRow.
func (f *Flex) GetDirection() int {
f.l.RLock()
defer f.l.RUnlock()
return f.direction
}
// SetDirection sets the direction in which the contained primitives are
// distributed. This can be either FlexColumn (default) or FlexRow.
func (f *Flex) SetDirection(direction int) *Flex {

Loading…
Cancel
Save