r3gmanag

r3packer
r3rowcol
r3placer

r3gmanag

Class

oops/r3gmanag.h

Library

r3oops

Description:

The base class for geometry managers. Geometry managers place gadgets and windows according to different algorithms to make window layouts more flexible than would be the case with only placing them in screen coordinates. In addition to gadgets, geometry managers can consists of other geometry managers.

See Also

oops/r3widget.h

Super Class

r3Widget

R3CLID_WIDGET

JavaScript

r3Gmanager

Class Identifier

R3CLID_GMANAGER - 24

Methods

INSERT, REMOVE, REALREFRESH, REFRESHDIRTY, ENUMGADGETS, _private, SETINSERTPARAMS, GETINSERTPARAMS,

Attributes

Stealth, NoShrink, ShrinkIfLargerWidth, ShrinkIfLargerHeight, ParentManager,

Registration

int R3RegisterGmanagerClass(R3APP *app);

R3GMM_INSERT

Method

INSERT

Identifier

R3GMM_INSERT

Param 3:

R3TAG*, tag list containg at least R3GMA_Slave. Inherited classes might need more tags.

JavaScript

obj.INSERT(p3);

Description

insert a new gadget to be slave

R3GMM_REMOVE

Method

REMOVE

Identifier

R3GMM_REMOVE

Param 3:

R3TAG*, tag list containg R3GMA_Slave.

JavaScript

obj.REMOVE(p3);

Description

remove a managed slave

R3GMM_REALREFRESH

Method

REALREFRESH

Identifier

R3GMM_REALREFRESH

JavaScript

obj.REALREFRESH();

Description

R3GMM_REFRESHDIRTY

Method

REFRESHDIRTY

Identifier

R3GMM_REFRESHDIRTY

JavaScript

obj.REFRESHDIRTY();

Description

R3GMM_ENUMGADGETS

Method

ENUMGADGETS

Identifier

R3GMM_ENUMGADGETS

Return

R3BOOL, TRUE if enumeration should continue, otherwise a value <= 0

Param 1:

R3OBJ*, Object to be sent a message to for each slave.

Param 2:

R3INT, Method to send to object.

Param 3:

void*, private data to send as last param to object

JavaScript

rc = obj.ENUMGADGETS(p1, p2, p3);

Description

recursively enumerate all slaves. For each slave send a message to p1 like this: R3SendMsgA2(p1, p2, slave, p3);

R3GMM__private

Method

_private

Identifier

R3GMM__private

JavaScript

obj._private();

Description

R3GMM_SETINSERTPARAMS

Method

SETINSERTPARAMS

Identifier

R3GMM_SETINSERTPARAMS

Param 3:

R3TAG*, tag list containg at least R3GMA_Slave. Inherited classes might support more tags.

JavaScript

obj.SETINSERTPARAMS(p3);

Description

changes the insert parameters of a slave

R3GMM_GETINSERTPARAMS

Method

GETINSERTPARAMS

Identifier

R3GMM_GETINSERTPARAMS

Param 3:

R3TAG*, tag list containg at least R3GMA_Slave. Inherited classes might support more tags.

JavaScript

obj.GETINSERTPARAMS(p3);

Description

gets the insert parameters of a slave

Stealth

Attribute

Stealth

Identifier

R3GMA_Stealth

JavaScript type

Boolean

C type

R3BOOL

Description

TRUE/FALSE, When true makes all slaves invisible and returns 0 for size

Syntax


jsobj.SetStealth(value);
value = jsobj.GetStealth();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3GMA_Stealth, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3GMA_Stealth, &value, R3TAG_END);

NoShrink

Attribute

NoShrink

Identifier

R3GMA_NoShrink

JavaScript type

Boolean

C type

R3BOOL

Description

TRUE/FALSE, Never report a smaller size than previous

Syntax


jsobj.SetNoShrink(value);
value = jsobj.GetNoShrink();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3GMA_NoShrink, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3GMA_NoShrink, &value, R3TAG_END);

ShrinkIfLargerWidth

Attribute

ShrinkIfLargerWidth

Identifier

R3GMA_ShrinkIfLargerWidth

JavaScript type

Integer

C type

R3INT

Description

R3RM_SET, Shrink if larger than this even if NoShrink is set

Syntax


jsobj.SetShrinkIfLargerWidth(value);
value = jsobj.GetShrinkIfLargerWidth();


R3INT value = ...;
R3SetAttrs(r3obj, R3GMA_ShrinkIfLargerWidth, value, R3TAG_END);
R3INT value;
R3GetAttrs(r3obj, R3GMA_ShrinkIfLargerWidth, &value, R3TAG_END);

ShrinkIfLargerHeight

Attribute

ShrinkIfLargerHeight

Identifier

R3GMA_ShrinkIfLargerHeight

JavaScript type

Integer

C type

R3INT

Description

R3RM_SET, Shrink if larger than this even if NoShrink is set

Syntax


jsobj.SetShrinkIfLargerHeight(value);
value = jsobj.GetShrinkIfLargerHeight();


R3INT value = ...;
R3SetAttrs(r3obj, R3GMA_ShrinkIfLargerHeight, value, R3TAG_END);
R3INT value;
R3GetAttrs(r3obj, R3GMA_ShrinkIfLargerHeight, &value, R3TAG_END);

ParentManager

Attribute

ParentManager

Identifier

R3GMA_ParentManager

JavaScript type

Object

C type

R3OBJ*

Description

parent gmanager

Syntax


jsobj.SetParentManager(value);
value = jsobj.GetParentManager();


R3OBJ* value = ...;
R3SetAttrs(r3obj, R3GMA_ParentManager, value, R3TAG_END);
R3OBJ* value;
R3GetAttrs(r3obj, R3GMA_ParentManager, &value, R3TAG_END);

Tags

Tags

R3GMA_Slave