mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-08 10:55:35 +00:00
ui/text: add LayoutOptions
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+6
-1
@@ -33,8 +33,13 @@ type Layout struct {
|
||||
Lines []Line
|
||||
}
|
||||
|
||||
type LayoutOptions struct {
|
||||
MaxWidth int
|
||||
SingleLine bool
|
||||
}
|
||||
|
||||
type Face interface {
|
||||
Layout(str string, singleLine bool, maxWidth int) *Layout
|
||||
Layout(str string, opts LayoutOptions) *Layout
|
||||
Path(str String) ui.BlockOp
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user