IUP-Go Documentation 4.0

IupSeparator

Creates an interface element that is a Separator, but it does not have native decorations.

It inherits from IupCanvas.

Creation

Ihandle* IupSeparator();

Returns: the identifier of the created element, or NULL if an error occurs.

Attributes

Inherits all attributes and callbacks of the IupCanvas, but redefines a few attributes.

BARSIZE (non-inheritable): controls the size of the separator in the opposite direction of its orientation. Default: 5.

COLOR (non-inheritable): Changes the color of the separator. Default: "160 160 160" ("90 90 90" when DARKMODE is enabled).

ORIENTATION (non-inheritable): Indicates the orientation of the separator. Possible values are "VERTICAL" or "HORIZONTAL". Default: "VERTICAL".

EXPAND (non-inheritable): Its behavior depends on the orientation. It will expand in the direction of the separator, but occupying only the available space.

STYLE (non-inheritable): The separator appearance. Can be: "LINE", "SUNKENLINE", "DUALLINES", "GRIP", "FILL" or "EMPTY". Default: SUNKENLINE. FILL is a rectangle filled with COLOR. EMPTY uses the parent background color only, COLOR is ignored. GRIP is a short mark centered on the bar, drawn only while the cursor is over it.


FONT, SIZE, RASTERSIZE, CLIENTSIZE, CLIENTOFFSET, POSITION, MINSIZE, MAXSIZE, THEME: also accepted.

Callbacks

Inherits all callbacks of the IupCanvas, but redefines the ACTION callback.

Notes

The IupSeparator is used internally in IupSplit and in IupSbox.

Examples

Browse for Example Files

GTK Qt Win32 macOS