crash.software
Projects
Pull Requests
Issues
Builds
termdash
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
termdash
Files
🤬
Sign In
9a82474a
ROOT
/
container
/
options.go
Search
History
770 lines
|
ISO-8859-1
|
25 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
applyOptions
(c *Container, opts ...Option)
:
error
validateOptions
(c *Container)
:
error
Option
set
(*Container)
:
error
options
id
:
string
inherited
:
inherited
split
:
splitType
splitPercent
:
int
widget
:
widgetapi.Widget
hAlign
:
align.Horizontal
vAlign
:
align.Vertical
border
:
linestyle.LineStyle
borderTitle
:
string
borderTitleHAlign
:
align.Horizontal
padding
:
padding
margin
:
margin
margin
topCells
:
int
topPerc
:
int
rightCells
:
int
rightPerc
:
int
bottomCells
:
int
bottomPerc
:
int
leftCells
:
int
leftPerc
:
int
padding
topCells
:
int
topPerc
:
int
rightCells
:
int
rightPerc
:
int
bottomCells
:
int
bottomPerc
:
int
leftCells
:
int
leftPerc
:
int
inherited
borderColor
:
cell.Color
focusedColor
:
cell.Color
newOptions
(parent *options)
:
*options
option
set
(c *Container)
:
error
SplitOption
setSplit
(*options)
:
error
splitOption
setSplit
(opts *options)
:
error
DefaultSplitPercent
SplitPercent
(p int)
:
SplitOption
SplitVertical
(l LeftOption, r RightOption, opts ...SplitOption)
:
Option
SplitHorizontal
(t TopOption, b BottomOption, opts ...SplitOption)
:
Option
ID
(id string)
:
Option
Clear
()
:
Option
PlaceWidget
(w widgetapi.Widget)
:
Option
MarginTop
(cells int)
:
Option
MarginRight
(cells int)
:
Option
MarginBottom
(cells int)
:
Option
MarginLeft
(cells int)
:
Option
MarginTopPercent
(perc int)
:
Option
MarginRightPercent
(perc int)
:
Option
MarginBottomPercent
(perc int)
:
Option
MarginLeftPercent
(perc int)
:
Option
PaddingTop
(cells int)
:
Option
PaddingRight
(cells int)
:
Option
PaddingBottom
(cells int)
:
Option
PaddingLeft
(cells int)
:
Option
PaddingTopPercent
(perc int)
:
Option
PaddingRightPercent
(perc int)
:
Option
PaddingBottomPercent
(perc int)
:
Option
PaddingLeftPercent
(perc int)
:
Option
AlignHorizontal
(h align.Horizontal)
:
Option
AlignVertical
(v align.Vertical)
:
Option
Border
(ls linestyle.LineStyle)
:
Option
BorderTitle
(title string)
:
Option
BorderTitleAlignLeft
()
:
Option
BorderTitleAlignCenter
()
:
Option
BorderTitleAlignRight
()
:
Option
BorderColor
(color cell.Color)
:
Option
FocusedColor
(color cell.Color)
:
Option
splitType
String
()
:
string
splitTypeNames
splitTypeVertical
:
splitType
splitTypeHorizontal
LeftOption
lOpts
()
:
[]Option
leftOption
lOpts
()
:
[]Option
Left
(opts ...Option)
:
LeftOption
RightOption
rOpts
()
:
[]Option
rightOption
rOpts
()
:
[]Option
Right
(opts ...Option)
:
RightOption
TopOption
tOpts
()
:
[]Option
topOption
tOpts
()
:
[]Option
Top
(opts ...Option)
:
TopOption
BottomOption
bOpts
()
:
[]Option
bottomOption
bOpts
()
:
[]Option
Bottom
(opts ...Option)
:
BottomOption
*margin
apply
(ar image.Rectangle)
:
(image.Rectangle, error)
*padding
apply
(ar image.Rectangle)
:
(image.Rectangle, error)
All occurrences
Please wait...
Page is in error, reload to recover