PaneView:
Filter:
PaneView/Classes (extension) | GUI > Views

PaneView
ExtensionExtension

Resizable View with arbitrary number of resizable horizontal/vertical panes(aka tiles)
 

Description

Pane(tile) manager for views.

Class Methods

.new

Creates a new instance of PaneView and makes it a child of another View("parent") PaneView instance automatically follows size on parent View.

Arguments:

parent

The instance of View new PaneView will become a child of.

orientation

\horizontal or \vertical

orientation

\horizontal or \vertical

num_of_panes

number of panes to create (default:2)

partition

\equal(default) or array(size of num_of_panes) of relative sizes (eg. [1,3,1])

handle_size

size in pixels of inter-pane space (default:10)

handle_line_size

size in pixels of inter-pane visual guide line (default:2)

handle_line_color

color of inter-pane visual guide line (default: Color.gray(0.5))

returns: An PaneView

.vfrom

Shortcut - creates vertical PaneView from a list of children

Arguments:

children

List of Layouts/Views-derived instances.

returns: An PaneView

.hfrom

Shortcut - creates horizontal PaneView from a list of children

Arguments:

children

List of Layouts/Views-derived instances.

returns: An PaneView

Instance Methods

.container

returns instance of View which holds panes

.asView

returns instance of View which holds panes

.panes

returns array of panes (instances of View)

.handles

returns array of inter-pane spaces (instances of View)

Examples