Documentation ¶
Index ¶
- type Block
- func (b *Block) AddChild(child ui.Widget)
- func (b *Block) AddChildAtIndex(child ui.Widget, index int)
- func (b *Block) Background() color.Color
- func (b *Block) Border() border.Border
- func (b *Block) Bounds() geom.Rect
- func (b *Block) Children() []ui.Widget
- func (b *Block) Enabled() bool
- func (b *Block) EventHandlers() *event.Handlers
- func (b *Block) Focusable() bool
- func (b *Block) Focused() bool
- func (b *Block) FromWindow(pt geom.Point) geom.Point
- func (b *Block) GrabFocusWhenClickedOn() bool
- func (b *Block) IndexOfChild(child ui.Widget) int
- func (b *Block) Layout() layout.Layout
- func (b *Block) LayoutData() interface{}
- func (b *Block) LocalBounds() geom.Rect
- func (b *Block) LocalInsetBounds() geom.Rect
- func (b *Block) Location() geom.Point
- func (b *Block) NeedLayout() bool
- func (b *Block) Paint(gc *draw.Graphics, dirty geom.Rect)
- func (b *Block) Parent() ui.Widget
- func (b *Block) ParentTarget() event.Target
- func (b *Block) RemoveChild(child ui.Widget)
- func (b *Block) RemoveChildAtIndex(index int)
- func (b *Block) RemoveFromParent()
- func (b *Block) Repaint()
- func (b *Block) RepaintBounds(bounds geom.Rect)
- func (b *Block) RootOfWindow() bool
- func (b *Block) ScrollIntoView()
- func (b *Block) SetBackground(color color.Color)
- func (b *Block) SetBorder(border border.Border)
- func (b *Block) SetBounds(bounds geom.Rect)
- func (b *Block) SetEnabled(enabled bool)
- func (b *Block) SetFocusable(focusable bool)
- func (b *Block) SetGrabFocusWhenClickedOn(grabsFocus bool)
- func (b *Block) SetLayout(layout layout.Layout)
- func (b *Block) SetLayoutData(data interface{})
- func (b *Block) SetLocation(pt geom.Point)
- func (b *Block) SetNeedLayout(needLayout bool)
- func (b *Block) SetParent(parent ui.Widget)
- func (b *Block) SetSize(size geom.Size)
- func (b *Block) SetSizer(sizer layout.Sizer)
- func (b *Block) SetWindow(wnd ui.Window)
- func (b *Block) Size() geom.Size
- func (b *Block) Sizer() layout.Sizer
- func (b *Block) String() string
- func (b *Block) ToWindow(pt geom.Point) geom.Point
- func (b *Block) ValidateLayout()
- func (b *Block) WidgetAt(pt geom.Point) ui.Widget
- func (b *Block) Window() ui.Window
- type CellFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
Block is the basic graphical block in a window.
func (*Block) AddChildAtIndex ¶
AddChildAtIndex implements the Widget interface.
func (*Block) Background ¶
Background implements the Widget interface.
func (*Block) EventHandlers ¶
EventHandlers implements the event.Target interface.
func (*Block) FromWindow ¶
FromWindow implements the Widget interface.
func (*Block) GrabFocusWhenClickedOn ¶
GrabFocusWhenClickedOn implements the Widget interface.
func (*Block) IndexOfChild ¶
IndexOfChild implements the Widget interface.
func (*Block) LayoutData ¶
func (b *Block) LayoutData() interface{}
LayoutData implements the Widget interface.
func (*Block) LocalBounds ¶
LocalBounds implements the Widget interface.
func (*Block) LocalInsetBounds ¶
LocalInsetBounds implements the Widget interface.
func (*Block) NeedLayout ¶
NeedLayout implements the Widget interface.
func (*Block) ParentTarget ¶
ParentTarget implements the event.Target interface.
func (*Block) RemoveChild ¶
RemoveChild implements the Widget interface.
func (*Block) RemoveChildAtIndex ¶
RemoveChildAtIndex implements the Widget interface.
func (*Block) RemoveFromParent ¶
func (b *Block) RemoveFromParent()
RemoveFromParent implements the Widget interface.
func (*Block) RepaintBounds ¶
RepaintBounds implements the Widget interface.
func (*Block) RootOfWindow ¶
RootOfWindow implements the Widget interface.
func (*Block) ScrollIntoView ¶
func (b *Block) ScrollIntoView()
ScrollIntoView attempts to scroll the block into view.
func (*Block) SetBackground ¶
SetBackground implements the Widget interface.
func (*Block) SetEnabled ¶
SetEnabled implements the Widget interface.
func (*Block) SetFocusable ¶
SetFocusable implements the Widget interface.
func (*Block) SetGrabFocusWhenClickedOn ¶
SetGrabFocusWhenClickedOn implements the Widget interface.
func (*Block) SetLayoutData ¶
func (b *Block) SetLayoutData(data interface{})
SetLayoutData implements the Widget interface.
func (*Block) SetLocation ¶
SetLocation implements the Widget interface.
func (*Block) SetNeedLayout ¶
SetNeedLayout implements the Widget interface.
func (*Block) SetWindow ¶
SetWindow sets the window of this Block and the Block's bounds to the window's ContentLocalFrame().
func (*Block) ValidateLayout ¶
func (b *Block) ValidateLayout()
ValidateLayout implements the Widget interface.
type CellFactory ¶
type CellFactory interface { // CellHeight returns the height to use for the cells. A value less than 1 indicates that each // cell's height may be different. CellHeight() float64 // CreateCell creates a new cell for 'owner' using 'element' as the content. 'index' indicates // which row the element came from. 'selected' indicates the cell should be created in its // selected state. 'focused' indicates the cell should be created in its focused state. CreateCell(owner ui.Widget, element interface{}, index int, selected, focused bool) ui.Widget }
CellFactory defines methods all cell factories must implement.