Documentation ¶
Index ¶
- Constants
- type Align
- type Button
- type Check
- type CheckChangedCallback
- type Checkable
- type CheckableWidget
- type ColorDrawable
- type Column
- type Editor
- type Image
- type ImageDrawable
- type Label
- type Layer
- type OnVisualChanged
- type Options
- type Radio
- type Repeat
- type Row
- type ScaleType
- type Scroll
- type Shape
- type ShapeDrawable
- type Switch
- type Text
- type Visible
- type Visual
- type WidgetVisual
- func (me *WidgetVisual) Background() nux.Drawable
- func (me *WidgetVisual) Disable() bool
- func (me *WidgetVisual) Foreground() nux.Drawable
- func (me *WidgetVisual) SetBackground(background nux.Drawable)
- func (me *WidgetVisual) SetBackgroundColor(background nux.Color)
- func (me *WidgetVisual) SetDisable(disable bool)
- func (me *WidgetVisual) SetForeground(foreground nux.Drawable)
- func (me *WidgetVisual) SetForegroundColor(foreground nux.Color)
- func (me *WidgetVisual) SetTranslucent(translucent bool)
- func (me *WidgetVisual) SetVisible(visible Visible)
- func (me *WidgetVisual) Translucent() bool
- func (me *WidgetVisual) Visible() Visible
Constants ¶
View Source
const ( Gone Visible = 0 Show Visible = 1 Hide Visible = 2 Center = 0 Left = 1 Top = 2 Right = 3 Bottom = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckChangedCallback ¶
type CheckChangedCallback func(widget CheckableWidget, checked bool, fromUser bool)
type CheckableWidget ¶
type ColorDrawable ¶
func NewColorDrawable ¶
func NewColorDrawable(attr nux.Attr) ColorDrawable
func NewColorDrawableWithColor ¶
func NewColorDrawableWithColor(color nux.Color) ColorDrawable
type Image ¶
type ImageDrawable ¶
func NewImageDrawable ¶
func NewImageDrawable(attr nux.Attr) ImageDrawable
TODO:: if src exised, get cached image
func NewImageDrawableWithResource ¶
func NewImageDrawableWithResource(src string) ImageDrawable
type Label ¶
type OnVisualChanged ¶
type Options ¶
type Options interface { nux.Component Values() []string Selected() bool SetOnSelectionChanged(callback func(widget Options, fromUser bool)) }
func NewOptions ¶
type Shape ¶
type ShapeDrawable ¶
func NewShapeDrawable ¶
func NewShapeDrawable(attr nux.Attr) ShapeDrawable
type Text ¶
type Visual ¶
type Visual interface { Background() nux.Drawable SetBackground(nux.Drawable) SetBackgroundColor(nux.Color) Foreground() nux.Drawable SetForeground(nux.Drawable) SetForegroundColor(nux.Color) Visible() Visible SetVisible(visible Visible) Disable() bool SetDisable(bool) Translucent() bool // TODO:: Can the event penetrate ? SetTranslucent(bool) }
type WidgetVisual ¶
type WidgetVisual struct {
// contains filtered or unexported fields
}
func NewWidgetVisual ¶
func NewWidgetVisual(owner nux.Widget, attr nux.Attr) *WidgetVisual
func (*WidgetVisual) Background ¶
func (me *WidgetVisual) Background() nux.Drawable
func (*WidgetVisual) Disable ¶
func (me *WidgetVisual) Disable() bool
func (*WidgetVisual) Foreground ¶
func (me *WidgetVisual) Foreground() nux.Drawable
func (*WidgetVisual) SetBackground ¶
func (me *WidgetVisual) SetBackground(background nux.Drawable)
func (*WidgetVisual) SetBackgroundColor ¶
func (me *WidgetVisual) SetBackgroundColor(background nux.Color)
func (*WidgetVisual) SetDisable ¶
func (me *WidgetVisual) SetDisable(disable bool)
func (*WidgetVisual) SetForeground ¶
func (me *WidgetVisual) SetForeground(foreground nux.Drawable)
func (*WidgetVisual) SetForegroundColor ¶
func (me *WidgetVisual) SetForegroundColor(foreground nux.Color)
func (*WidgetVisual) SetTranslucent ¶
func (me *WidgetVisual) SetTranslucent(translucent bool)
func (*WidgetVisual) SetVisible ¶
func (me *WidgetVisual) SetVisible(visible Visible)
func (*WidgetVisual) Translucent ¶
func (me *WidgetVisual) Translucent() bool
func (*WidgetVisual) Visible ¶
func (me *WidgetVisual) Visible() Visible
Click to show internal directories.
Click to hide internal directories.