wxRuby Documentation Home

Wx::SizerFlags

PRELIMINARY.

Normally, when you add something to a sizer via Sizer#add, you have to specify a lot of flags and parameters. This can be unwieldy.

This is where SizerFlags comes in. Instead of a bunch of flags and other stuff, you can use SizerFlags, which is a convenient class for doing so.

Note that by specification, all methods of SizerFlags return the SizerFlags object itself to ease the calling of multiple methods at a time.

Methods

SizerFlags.new

SizerFlags.new(%(arg-type)Integer% proportion = 0)

Creates the Sizer with the proportion specified by proportion.

SizerFlags#align

“SizerFlags& ":sizerflags& .html align(%(arg-type)Integer% align = 0)

Sets the alignment of this SizerFlags to align.

Note that if this method is not called, the SizerFlags has no specified alignment.

See also

Left,

Right,

Centre

SizerFlags#border

“SizerFlags& ":sizerflags& .html border(%(arg-type)Integer% direction, Integer borderinpixels)

Sets the SizerFlags to have a border of a number of pixels specified by borderinpixels with the directions specified by direction.

“SizerFlags& ":sizerflags& .html border(%(arg-type)Integer% direction = ALL)

Sets the SizerFlags to have a border of a default size with the directions specified by direction.

SizerFlags#center

“SizerFlags& ":sizerflags& .html center()

Sets the object of the SizerFlags to center itself in the area it is given.

SizerFlags#centre

“SizerFlags& ":sizerflags& .html centre()

SizerFlags#center for people with the other dialect of english.

SizerFlags#expand

“SizerFlags& ":sizerflags& .html expand()

Sets the object of the SizerFlags to expand to fill as much area as it can.

SizerFlags#left

“SizerFlags& ":sizerflags& .html left()

Aligns the object to the left, shortcut for Align(ALIGN_LEFT)

See also

Align

SizerFlags#proportion

“SizerFlags& ":sizerflags& .html proportion(%(arg-type)Integer% proportion = 0)

Sets the proportion of this SizerFlags to proportion

SizerFlags#right

“SizerFlags& ":sizerflags& .html right()

Aligns the object to the right, shortcut for Align(ALIGN_RIGHT)

See also

Align

[This page automatically generated from the Textile source at 2023-06-13 21:31:34 +0000]