Skip to content

Configuration transformations

Tonic Artos edited this page May 17, 2016 · 1 revision

Configuration transformations are implemented as a kind of layout helper. In this document are the particulars of each layout configuration offered, and the effects of the operation performed.

l = left, t = top, r = right, b = bottom, w = width, h = height

LTR (a no-op transformation)

ltr(l, t, r, b) = (l, t, r, b)

RTL

Mirrors the horizontal values within the finite space.
rtl(l, t, r, b) = (w - r, t, w - l, b)

Stack from end

Mirrors the vertical values.
sfe(l, t, r, b) = (l, h - b, r, h - t)

Reverse

Mirrors both the horizontal and vertical values.
rev(l, t, r, b) = (w - r, h - b, w - l, h - t)

Vertical orientation

A no-op transformation.
ver(l, t, r, b) = (l, t, r, b)

Horizontal orientation

Swaps the top and left values, and the bottom and right values. Effectively mirroring along a line drawn from the NW corner to the SE corner.
hor(l, t, r, b) = (t, l, b, r) It is important to note that for horizontal scrolling configurations, width and height measurement calls are transposed. w = h and h = w

Versioned Pages

0.4

[Getting Started](Getting started with version 0.4)
[User's Guide](User's guide for version 0.4)

version5 (WIP)

User documentation
[Basic usage](A simple tutorial)
[Advanced usage](All the cool things)
[SuperSLiM and RxJava](Using SuperSLiM with RxJava)

Developers documentation
Glossary
[The section graph](The section graph)
[Tracking data changes](Tracking data changes)
[Configuration transformations](Configuration transformations)
[Layout helpers](Layout helpers)
[Section configuration](Section configuration)
[Section state](Section state)
[Section layout managers](Section layout managers)
[Header layout managers](Header layout managers)

Clone this wiki locally