OnionFrame

An onion frame places its children as layers, drawing one on top of the other, instead of on the side.

Children are placed in order of drawing — the last child will be drawn last, and so, will appear on top.

Constructors

this
this(T args)
Undocumented in source.

Members

Functions

drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
resizeImpl
void resizeImpl(Vector2 available)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin DefineStyles
Undocumented in source.

Inherited Members

From Frame

__anonymous
mixin DefineStyles
Undocumented in source.
__anonymous
mixin ImplHoveredRect
Undocumented in source.
drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
pickStyle
inout(Style) pickStyle()
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

import fluid;

auto myFrame = onionFrame(

    // Draw an image
    imageView("logo.png"),

    // Draw a label in the middle of the frame
    label(
        layout!(1, "center"),
        "Hello, Fluid!"
    ),

);

Meta