FlowView:
Filter:
Classes | GUI > Views

FlowView : SCViewHolder : Object

CompositeView with a FlowLayout as decorator

Description

In the simplest respect this is a lazy contraction of this:

FlowView add some features to this setup.

Class Methods

FlowView.new(parent, bounds, margin, gap, windowTitle: "")

Arguments:

parent

Parent widget.

bounds

An instance of Rect, or a Point indicating width@height.

margin

...

gap

...

windowTitle

Title of the window.

Inherited class methods

Undocumented class methods

FlowView.layout(f, bounds)

FlowView.viewClass

Instance Methods

.startRow

Start a new row.

.indentedRemaining

The maximum space that is left, starting at the current cursor position.

.used

The area used so far, rounded up to the nearest rectangle plus margin.

.flow(func, bounds)

From extension in /usr/local/share/SuperCollider/SCClassLibrary/Common/GUI/backwardsCompatibility/viewExtensions.sc

Insert a sub flow view into the current view.

Arguments:

func

(describe argument here)

bounds

(describe argument here)

.comp(func, bounds)

From extension in /usr/local/share/SuperCollider/SCClassLibrary/Common/GUI/backwardsCompatibility/viewExtensions.sc

Insert a sub composite view into the current view.

Arguments:

func

(describe argument here)

bounds

(describe argument here)

Inherited instance methods

Undocumented instance methods

.add(child)

.allocateRemaining

.anyChildExceeds

.asFlowView

.asPageLayout

.bounds

.bounds_(b, reflow: true)

From superclass: SCViewHolder

.children

.decorator

.decorator = dec

.didUseAllocated(vbounds)

.front

.horz(func, bounds, spacing)

From extension in /usr/local/share/SuperCollider/SCClassLibrary/Common/GUI/backwardsCompatibility/viewExtensions.sc

.hr(color, height: 3)

.innerBounds

.parent

.prClose

.prRemoveChild(child)

.reflowAll

.reflowDeep

.remove

.removeAll

.removeOnClose(updater)

.resizeToFit(reflow: false, tryParent: false)

.scroll(func, bounds, autohidesScrollers: true, autoScrolls: true, hasHorizontalScroller: true, hasVerticalScroller: true)

From extension in /usr/local/share/SuperCollider/SCClassLibrary/Common/GUI/backwardsCompatibility/viewExtensions.sc

.vert(func, bounds, spacing)

From extension in /usr/local/share/SuperCollider/SCClassLibrary/Common/GUI/backwardsCompatibility/viewExtensions.sc

.viewDidClose

.wouldExceedBottom(aBounds)

Examples