DOKK / manpages / debian 10 / ivtools-dev / struct.3u.en
struct(3U) InterViews Reference Manual struct(3U)

BackCmd, FrontCmd, GroupCmd, UngroupCmd - commands for modifying components structurally

#include <Unidraw/Commands/struct.h>

BackCmd, FrontCmd, GroupCmd, and UngroupCmd are purely interpretive commands for altering the structure of their editor's component. All redefine their Execute and Unexecute operations to let the editor's component interpret them as it wishes.

Construct a new BackCmd.

Construct a new FrontCmd.

Create a new GroupCmd, optionally specifying the component into which components will be grouped.
Execute will set the value of the _executed protected member variable to true as a side effect if anything was grouped. Similarly, Unexecute will set reset the value to false as a side effect the operation was undone.
Get or set the component into which components will be grouped. SetGroup will not delete the old value.

Construct a new UngroupCmd.
Execute will set the value of the _executed protected member variable to true as a side effect if anything was ungrouped. Similarly, Unexecute will set reset the value to false as a side effect the operation was undone.
Explicitly set and get a clipboard containing the child components that were ungrouped, which is stored in the _kids protected member. UngroupCmd does not initialize this member; it merely provides the storage as a convenience to components that interpret the command and need a place to store the ungrouped children to support reverse execution. However, UngroupCmd deletes the clipboard (if it exists) in ~UngroupCmd. SetKids will not delete the old value.

Command(3U), GraphicComp(3U)

24 January 1991 Unidraw