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 /home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/Gui/SystemOverwrites/flowViewExtensions.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 /home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/Gui/SystemOverwrites/flowViewExtensions.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)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/Gui/SystemOverwrites/flowViewExtensions.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 /home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/Gui/SystemOverwrites/flowViewExtensions.sc

.vert(func, bounds)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/Gui/SystemOverwrites/flowViewExtensions.sc

.viewDidClose

.wouldExceedBottom(aBounds)

Examples