Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateItem ¶
type CreateItem struct {
*widgets.ImageButton
Key string
}
func NewCreateItem ¶
func NewCreateItem(key string, image paint.ImageOp, title string) *CreateItem
type CreateModal ¶
type CreateModal struct {
CreateBtn widget.Clickable
CloseBtn widget.Clickable
Items []*CreateItem
// contains filtered or unexported fields
}
func NewCreateModal ¶
func NewCreateModal(items []*CreateItem) *CreateModal
func (*CreateModal) ItemsLayout ¶
func (n *CreateModal) ItemsLayout(gtx layout.Context, th *chapartheme.Theme) layout.Dimensions
func (*CreateModal) Layout ¶
func (n *CreateModal) Layout(gtx layout.Context, th *chapartheme.Theme) layout.Dimensions
type D ¶
type D = layout.Dimensions
type InputText ¶
type InputText struct {
TextField *widgets.TextField
AddBtn widget.Clickable
CloseBtn widget.Clickable
Title string
}
func NewInputText ¶
func (*InputText) Layout ¶
func (i *InputText) Layout(gtx layout.Context, th *chapartheme.Theme) layout.Dimensions
type Message ¶
type Message struct {
Title string
Body string
Type MessageType
OKBtn widget.Clickable
}
func (*Message) Layout ¶
func (m *Message) Layout(gtx layout.Context, th *chapartheme.Theme) layout.Dimensions
type MessageType ¶
type MessageType string
const ( MessageTypeInfo MessageType = "info" MessageTypeWarn MessageType = "warn" MessageTypeErr MessageType = "err" )
Click to show internal directories.
Click to hide internal directories.