r3packer
oops/r3packer.h
r3oops
The Packer class is a geometry manager that places its slaves from left to right or top to bottom. The slaves can have different attributes to change behaviour in case there is more than the minimum space available.
r3Gmanager
R3CLID_GMANAGER
r3Packer
R3CLID_PACKER - 22
GETFIRSTSLAVE, GETSLAVEBYPOSITION, GETSLAVESNEARPOSITION, ADD,
int R3RegisterPackerClass(R3APP *app);
R3PAM_GETFIRSTSLAVE
GETFIRSTSLAVE
R3PAM_GETFIRSTSLAVE
R3OBJ*, the slave
rc = obj.GETFIRSTSLAVE();
Return the first slave in the packing order.
R3PAM_GETSLAVEBYPOSITION
GETSLAVEBYPOSITION
R3PAM_GETSLAVEBYPOSITION
R3OBJ*, slave before the position.
rc = obj.GETSLAVEBYPOSITION();
Gets previous slave for position.
R3PAM_GETSLAVESNEARPOSITION
GETSLAVESNEARPOSITION
R3PAM_GETSLAVESNEARPOSITION
R3OBJ*, slave at the position
R3OBJ**, prev slave
R3OBJ**, next slave
rc = obj.GETSLAVESNEARPOSITION(p1, p2, 0);
Gets slaves at, before, and after a position.
R3PAM_ADD
ADD
R3PAM_ADD
R3INT, pack flags
R3INT, alignment flags
R3OBJ*, slave,
obj.ADD(p1, p2, p3);
Add new slave with given pack and anchor flags.
Orientation
Orientation
R3PA_Orientation
Integer
R3INT
R3RM_CREATE, R3PAOF_VERTICAL/R3PAOF_HORIZONTAL
jsobj.SetOrientation(value);
value = jsobj.GetOrientation();
R3INT value = ...;
R3SetAttrs(r3obj, R3PA_Orientation, value, R3TAG_END);
R3INT value;
R3GetAttrs(r3obj, R3PA_Orientation, &value, R3TAG_END);
SlaveList
SlaveList
R3PA_SlaveList
r3List
R3LIST*
R3RM_GET, get the list of slaves
value = jsobj.GetSlaveList();
R3LIST* value;
R3GetAttrs(r3obj, R3PA_SlaveList, &value, R3TAG_END);
Values for R3PA_Orientation tag
Values for R3PA_PackFlags tag
Values for R3PA_Anchor tag
Special value for R3GA_Slave