Documentation ¶
Index ¶
- Variables
- type Button
- type Constructor
- type Option
- func WithButtonWidth(v float64) Option
- func WithButtons(v []Button) Option
- func WithColor(v color.Color) Option
- func WithDoubleClickThreshold(v time.Duration) Option
- func WithHeight(v float64) Option
- func WithHighlightColor(v color.Color) Option
- func WithLayers(v []int) Option
- func WithMouseDownColor(v color.Color) Option
- func WithTitle(v string) Option
- func WithTitleFontSize(v int) Option
- func WithTitleTextColor(v color.Color) Option
- func WithTitleXOffset(v int) Option
- type TitleBar
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConstructor = Constructor{ Color: color.RGBA{128, 128, 128, 255}, Height: 32, Layers: []int{}, Buttons: []Button{ ButtonMinimize, ButtonMaximize, ButtonClose, }, ButtonWidth: 32, TitleFontSize: 17, TitleXOffset: 10, TitleTextColor: color.RGBA{255, 255, 255, 255}, DoubleClickThreshold: 200 * time.Millisecond, }
Functions ¶
This section is empty.
Types ¶
type Constructor ¶
type Option ¶
type Option func(Constructor) Constructor
func WithButtonWidth ¶
func WithButtons ¶
func WithHeight ¶
func WithHighlightColor ¶
func WithLayers ¶
func WithMouseDownColor ¶
func WithTitleFontSize ¶
func WithTitleTextColor ¶
func WithTitleXOffset ¶
Click to show internal directories.
Click to hide internal directories.