Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateItem ¶
func NewCreateItem ¶
func NewCreateItem(key string, icon widgets.Icon, title string) *CreateItem
func (*CreateItem) Layout ¶ added in v0.4.6
func (c *CreateItem) Layout(gtx layout.Context, th *chapartheme.Theme) layout.Dimensions
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) Layout ¶
func (n *CreateModal) Layout(gtx layout.Context, th *chapartheme.Theme) layout.Dimensions
type D ¶
type D = layout.Dimensions
type ImportItem ¶ added in v0.4.3
type ImportItem struct {
*widgets.ImageButton
Key string
}
func NewImportItem ¶ added in v0.4.3
func NewImportItem(key string, image paint.ImageOp, title string) *ImportItem
type ImportModal ¶ added in v0.4.3
type ImportModal struct {
CloseBtn widget.Clickable
Items []*ImportItem
// contains filtered or unexported fields
}
func NewImportModal ¶ added in v0.4.3
func NewImportModal() *ImportModal
func (*ImportModal) ItemsLayout ¶ added in v0.4.3
func (n *ImportModal) ItemsLayout(gtx layout.Context, th *chapartheme.Theme) layout.Dimensions
func (*ImportModal) Layout ¶ added in v0.4.3
func (n *ImportModal) Layout(gtx layout.Context, th *chapartheme.Theme) 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.