Documentation
¶
Index ¶
- Constants
- func Show(title string, columns []string, rows [][]string)
- func ShowWithWidths(title string, columns []string, widths []int, rows [][]string)
- func WaitAll()
- type FontConfig
- type INITCOMMONCONTROLSEX
- type LVCOLUMNW
- type LVITEMW
- type MSG
- type POINT
- type PaginatedTable
- func (pt *PaginatedTable) ColumnNames(names ...string) *PaginatedTable
- func (pt *PaginatedTable) Columns(cols ...string) *PaginatedTable
- func (pt *PaginatedTable) ContentFont(name string, size int, bold, italic bool) *PaginatedTable
- func (pt *PaginatedTable) HeaderFont(name string, size int, bold, italic bool) *PaginatedTable
- func (pt *PaginatedTable) Row(values ...string) *PaginatedTable
- func (pt *PaginatedTable) Rows(data [][]string) *PaginatedTable
- func (pt *PaginatedTable) SearchInColumnIndices(indices ...int) *PaginatedTable
- func (pt *PaginatedTable) SearchInColumns(columnNames ...string) *PaginatedTable
- func (pt *PaginatedTable) Show(hold ...bool)
- func (pt *PaginatedTable) WithColumnSelector() *PaginatedTable
- func (pt *PaginatedTable) WithSearch() *PaginatedTable
- func (pt *PaginatedTable) WithSort() *PaginatedTable
- type RECT
- type Table
- func (t *Table) ColumnNames(names ...string) *Table
- func (t *Table) ColumnWidths(widths ...int) *Table
- func (t *Table) Columns(cols ...string) *Table
- func (t *Table) ContentFont(name string, size int, bold, italic bool) *Table
- func (t *Table) Fields(fieldNames ...string) *Table
- func (t *Table) HeaderFont(name string, size int, bold, italic bool) *Table
- func (t *Table) Row(values ...string) *Table
- func (t *Table) Rows(data [][]string) *Table
- func (t *Table) Show(hold ...bool)
- type WNDCLASSEXW
Constants ¶
View Source
const ( WS_OVERLAPPEDWINDOW = 0x00CF0000 WS_VISIBLE = 0x10000000 WS_CHILD = 0x40000000 WS_VSCROLL = 0x00200000 WS_HSCROLL = 0x00100000 WS_BORDER = 0x00800000 LVS_REPORT = 0x0001 LVS_SHOWSELALWAYS = 0x0008 LVS_SINGLESEL = 0x0004 LVS_EX_FULLROWSELECT = 0x00000020 LVS_EX_GRIDLINES = 0x00000001 LVM_FIRST = 0x1000 LVM_INSERTCOLUMNW = LVM_FIRST + 97 LVM_INSERTITEMW = LVM_FIRST + 77 LVM_SETITEMW = LVM_FIRST + 76 LVM_SETEXTENDEDLISTVIEWSTYLE = LVM_FIRST + 54 LVM_GETHEADER = LVM_FIRST + 31 LVCF_TEXT = 0x0004 LVCF_WIDTH = 0x0002 LVCF_FMT = 0x0001 LVCFMT_LEFT = 0x0000 LVCFMT_RIGHT = 0x0001 LVCFMT_CENTER = 0x0002 LVIF_TEXT = 0x0001 WM_SIZE = 0x0005 WM_DESTROY = 0x0002 WM_CLOSE = 0x0010 WM_SETFONT = 0x0030 CW_USEDEFAULT = 0x80000000 FW_NORMAL = 400 FW_BOLD = 700 DEFAULT_CHARSET = 1 OUT_DEFAULT_PRECIS = 0 CLIP_DEFAULT_PRECIS = 0 DEFAULT_QUALITY = 0 DEFAULT_PITCH = 0 FF_DONTCARE = 0 SW_SHOW = 5 )
View Source
const ( WS_TABSTOP = 0x00010000 BS_PUSHBUTTON = 0x00000000 BS_DEFPUSHBUTTON = 0x00000001 WM_COMMAND = 0x0111 BN_CLICKED = 0 ES_LEFT = 0x0000 ES_AUTOHSCROLL = 0x0080 EM_SETSEL = 0x00B1 EM_GETLINE = 0x00C4 WM_GETTEXT = 0x000D WM_GETTEXTLENGTH = 0x000E WM_SETTEXT = 0x000C // ComboBox styles and messages CBS_DROPDOWNLIST = 0x0003 CBS_HASSTRINGS = 0x0200 CB_ADDSTRING = 0x0143 CB_GETCURSEL = 0x0147 CB_SETCURSEL = 0x014E CBN_SELCHANGE = 1 )
Variables ¶
This section is empty.
Functions ¶
func ShowWithWidths ¶
Types ¶
type FontConfig ¶
type FontConfig struct {
// contains filtered or unexported fields
}
type INITCOMMONCONTROLSEX ¶
type PaginatedTable ¶
type PaginatedTable struct {
*Table
// contains filtered or unexported fields
}
func FromMapsPaginated ¶
func FromMapsPaginated(title string, data []map[string]any, pageSize int) *PaginatedTable
func FromStructsPaginated ¶
func FromStructsPaginated[T any](title string, data []T, pageSize int) *PaginatedTable
func NewPaginated ¶
func NewPaginated(title string, pageSize int) *PaginatedTable
func (*PaginatedTable) ColumnNames ¶
func (pt *PaginatedTable) ColumnNames(names ...string) *PaginatedTable
func (*PaginatedTable) Columns ¶
func (pt *PaginatedTable) Columns(cols ...string) *PaginatedTable
func (*PaginatedTable) ContentFont ¶
func (pt *PaginatedTable) ContentFont(name string, size int, bold, italic bool) *PaginatedTable
func (*PaginatedTable) HeaderFont ¶
func (pt *PaginatedTable) HeaderFont(name string, size int, bold, italic bool) *PaginatedTable
func (*PaginatedTable) Row ¶
func (pt *PaginatedTable) Row(values ...string) *PaginatedTable
func (*PaginatedTable) Rows ¶
func (pt *PaginatedTable) Rows(data [][]string) *PaginatedTable
func (*PaginatedTable) SearchInColumnIndices ¶
func (pt *PaginatedTable) SearchInColumnIndices(indices ...int) *PaginatedTable
func (*PaginatedTable) SearchInColumns ¶
func (pt *PaginatedTable) SearchInColumns(columnNames ...string) *PaginatedTable
func (*PaginatedTable) Show ¶
func (pt *PaginatedTable) Show(hold ...bool)
func (*PaginatedTable) WithColumnSelector ¶
func (pt *PaginatedTable) WithColumnSelector() *PaginatedTable
func (*PaginatedTable) WithSearch ¶
func (pt *PaginatedTable) WithSearch() *PaginatedTable
func (*PaginatedTable) WithSort ¶
func (pt *PaginatedTable) WithSort() *PaginatedTable
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func FromStructs ¶
func (*Table) ColumnNames ¶
func (*Table) ColumnWidths ¶
func (*Table) ContentFont ¶
func (*Table) HeaderFont ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
basic
command
|
|
|
fonts
command
|
|
|
independent
command
|
|
|
nonblocking
command
|
|
|
pagination
command
|
Click to show internal directories.
Click to hide internal directories.