Class Osd-Element-Measurement

A measurement in one dimension (namely x or y) of an element and
its associated data for laying out in containers.

Part of:

package cityscape

Slot

border-colour
Cons-pair of lists of RGBA float 0.0->1.0 values.
Initform:(cons *default-foreground-colour* *default-foreground-colour*), Initargs::border-colour; Accessors:border-colour; Type:(cons list list).
border-width
Cons-pair of widths in pixels of the border.
Initform:(cons 1 1), Initargs::border-width; Accessors:border-width; Type:(cons real real).
constraints
The (minimum . maximum) size for this measurement.
Initargs::constraints; Accessors:constraints; Type:(cons real real).
current-offset
The actual current offset relative to the parent element
Initform:0, Initargs::current-offset; Accessors:current-offset; Type:real.
current-size
The current measurement size of the content (ie. excluding padding, border and margin).
Initform:(font-line-height (osd-font *application*)), Initargs::current-size; Accessors:current-size; Type:real.
ideal-size
The ideal, preferred absolute size of the content of this measurement.
Initargs::ideal-size; Accessors:ideal-size; Type:real.
margin
Cons-pair of margin widths in pixels outside the border of this element.
Initform:(cons 2 2), Initargs::margin; Accessors:margin; Type:(cons real real).
padding
Cons-pair of widths in pixels of the border.
Initform:(cons 2 2), Initargs::padding; Accessors:padding; Type:(cons real real).

Direct Method

after-border-colour
after-border-width
after-margin
after-padding
before-border-colour
before-border-width
before-margin
before-padding
content-offset
first-border-width
maximum-size
minimum-size
setfafter-border-colour
setfafter-border-width
setfafter-margin
setfafter-padding
setfbefore-border-colour
setfbefore-border-width
setfbefore-margin
setfbefore-padding
setfmaximum-size
setfminimum-size
setftotal-current-size
setftotal-ideal-size
total-current-size
total-ideal-size