mirror of https://github.com/mum4k/termdash.git
A widget option to specify the maximum canvas size.
This commit is contained in:
parent
e249f6ffc4
commit
f31887b63c
|
@ -31,12 +31,19 @@ type Options struct {
|
|||
// canvas of any ratio.
|
||||
Ratio image.Point
|
||||
|
||||
// MinimumSize allows a widget to specify the smallest required canvas size.
|
||||
// MinimumSize allows a widget to specify the smallest allowed canvas size.
|
||||
// If the terminal size and/or splits cause the assigned canvas to be
|
||||
// smaller than this, the widget will be skipped. I.e. The Draw() method
|
||||
// won't be called until a resize above the specified minimum.
|
||||
MinimumSize image.Point
|
||||
|
||||
// MaximumSize allows a widget to specify the largest allowed canvas size.
|
||||
// If the terminal size and/or splits cause the assigned canvas to be larger
|
||||
// than this, the widget will only receive a canvas of this size within its
|
||||
// container. Setting any of the two coordinates to zero indicates
|
||||
// unlimited.
|
||||
MaximumSize image.Point
|
||||
|
||||
// WantKeyboard allows a widget to request keyboard events.
|
||||
// If false, keyboard events won't be forwarded to the widget.
|
||||
// If true, the widget receives keyboard events if its container is
|
||||
|
|
Loading…
Reference in New Issue