Documentation
¶
Index ¶
- func StartUI()
- type ImageInfo
- func (ii *ImageInfo) DeleteSignature()
- func (ii *ImageInfo) Draw(buf *Buffer)
- func (ii *ImageInfo) ScrollAmount(amount int)
- func (ii *ImageInfo) ScrollBottom()
- func (ii *ImageInfo) ScrollDown()
- func (ii *ImageInfo) ScrollHalfPageDown()
- func (ii *ImageInfo) ScrollHalfPageUp()
- func (ii *ImageInfo) ScrollPageDown()
- func (ii *ImageInfo) ScrollPageUp()
- func (ii *ImageInfo) ScrollTop()
- func (ii *ImageInfo) ScrollUp()
- type Tree
- func (self *Tree) Collapse()
- func (self *Tree) CollapseAll()
- func (self *Tree) Draw(buf *Buffer)
- func (self *Tree) Expand()
- func (self *Tree) ExpandAll()
- func (self *Tree) ScrollAmount(amount int)
- func (self *Tree) ScrollBottom()
- func (self *Tree) ScrollDown()
- func (self *Tree) ScrollHalfPageDown()
- func (self *Tree) ScrollHalfPageUp()
- func (self *Tree) ScrollPageDown()
- func (self *Tree) ScrollPageUp()
- func (self *Tree) ScrollTop()
- func (self *Tree) ScrollUp()
- func (self *Tree) SelectedNode() *TreeNode
- func (self *Tree) SetNodes(nodes []*TreeNode)
- func (self *Tree) ToggleExpand()
- func (self *Tree) Walk(fn TreeWalkFn)
- type TreeNode
- type TreeWalkFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImageInfo ¶
type ImageInfo struct { Block Rows *[]rt.Tag WrapText bool TextStyle Style SelectedRow int SelectedRowStyle Style // Pointer to the List shown at the bottom of the UI, with Informations // about the selected Tag. // @ImageTagInfo can also be _nil_ ImageTagInfo *widgets.List // ImagePtr points back to the original Image, // this is needed because BaseImage contains // the Function to delete Signatures ImagePtr *rt.BaseImage // contains filtered or unexported fields }
func NewImageInfo ¶
func NewImageInfo() *ImageInfo
func (*ImageInfo) DeleteSignature ¶
func (ii *ImageInfo) DeleteSignature()
func (*ImageInfo) ScrollAmount ¶
ScrollAmount scrolls by amount given. If amount is < 0, then scroll up. There is no need to set ii.topRow, as this will be set automatically when drawn, since if the selected item is off screen then the topRow variable will change accordingly.
func (*ImageInfo) ScrollBottom ¶
func (ii *ImageInfo) ScrollBottom()
func (*ImageInfo) ScrollDown ¶
func (ii *ImageInfo) ScrollDown()
func (*ImageInfo) ScrollHalfPageDown ¶
func (ii *ImageInfo) ScrollHalfPageDown()
func (*ImageInfo) ScrollHalfPageUp ¶
func (ii *ImageInfo) ScrollHalfPageUp()
func (*ImageInfo) ScrollPageDown ¶
func (ii *ImageInfo) ScrollPageDown()
func (*ImageInfo) ScrollPageUp ¶
func (ii *ImageInfo) ScrollPageUp()
type Tree ¶
type Tree struct { Block TextStyle Style SelectedRowStyle Style WrapText bool SelectedRow int // contains filtered or unexported fields }
Tree is a tree widget.
func (*Tree) ScrollAmount ¶
ScrollAmount scrolls by amount given. If amount is < 0, then scroll up. There is no need to set self.topRow, as this will be set automatically when drawn, since if the selected item is off screen then the topRow variable will change accordingly. noinspection GoReceiverNames
func (*Tree) ScrollHalfPageDown ¶
func (self *Tree) ScrollHalfPageDown()
noinspection GoReceiverNames
type TreeNode ¶
type TreeNode struct { Value fmt.Stringer Expanded bool Nodes []*TreeNode // If Node/ Entry represents an Image, this filed *must* be a Pointer back to the Image Image registry.Image // contains filtered or unexported fields }
TreeNode is a tree node.
type TreeWalkFn ¶
TreeWalkFn is a function used for walking a Tree. To interrupt the walking process function should return false.