.section Widgets
.topic widget.spacer
.title Spacer
.toc 0 Spacer
.index Spacer
.index wgtSpacer

.h2 Spacer

An invisible widget used for layout purposes. By default it has weight=100, so it absorbs available extra space. Useful for pushing other widgets apart or aligning them to edges.

Header: widgets/widgetSpacer.h

.h3 Creation

.code
WidgetT *row = wgtHBox(parent);
wgtButton(row, "OK");
wgtSpacer(row);           // pushes Cancel to the right
wgtButton(row, "Cancel");
.endcode

.h3 Macro

.table
  Macro                Description
  -----                -----------
  wgtSpacer(parent)    Create an invisible spacer widget.
.endtable

.h3 Events

Spacer is an invisible layout widget. No events.

.hr
