Documentation
¶
Index ¶
- type LayoutMode
- type Manager
- func (m *Manager) CenterWidth() int
- func (m *Manager) DashboardWidth() int
- func (m *Manager) GapX() int
- func (m *Manager) Height() int
- func (m *Manager) LeftGutter() int
- func (m *Manager) Mode() LayoutMode
- func (m *Manager) Render(dashboard, center, sidebar string) string
- func (m *Manager) Resize(width, height int)
- func (m *Manager) RightGutter() int
- func (m *Manager) ShowCenter() bool
- func (m *Manager) ShowSidebar() bool
- func (m *Manager) SidebarWidth() int
- func (m *Manager) TopGutter() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LayoutMode ¶
type LayoutMode int
LayoutMode determines how many panes are visible
const ( LayoutThreePane LayoutMode = iota // Dashboard + Center + Sidebar LayoutTwoPane // Dashboard + Center LayoutOnePane // Dashboard only )
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles the three-pane layout
func (*Manager) CenterWidth ¶
CenterWidth returns the center pane width
func (*Manager) DashboardWidth ¶
DashboardWidth returns the dashboard pane width
func (*Manager) LeftGutter ¶
LeftGutter returns the left margin before the dashboard pane.
func (*Manager) RightGutter ¶
RightGutter returns the right margin after the sidebar pane.
func (*Manager) ShowCenter ¶
ShowCenter returns whether the center pane should be shown
func (*Manager) ShowSidebar ¶
ShowSidebar returns whether the sidebar should be shown
func (*Manager) SidebarWidth ¶
SidebarWidth returns the sidebar pane width
Click to show internal directories.
Click to hide internal directories.