Class: GroupLayer

Parent class: MohoLayer

Member Functions


int CountLayers()

Returns the number of sub-layers in the group.

Return value (int): the number of sub-layers in the group
MohoLayer Layer(id)

Returns a layer in the group (starting at 0 for the first layer).

Return value (MohoLayer): a layer in the group id (int): index number of the layer
MohoLayer LayerByDepth(id)

Returns a layer in the group, ir order from furthest to nearest (starting at 0 for the furthest layer).

Return value (MohoLayer): a layer in the group id (int): depth index number of the layer
bool IsExpanded()

Tests whether the group is expanded in the Moho Layers window.

Return value (bool): true if expanded, otherwise false
void Expand(b)

Expands or contracts the group in the Moho Layers window.

Return value: none b (bool): true to expand, false to contract
int GetGroupMask()

Returns the group's masking mode. See group masking mode constants.

Return value (int): the group's masking mode
void SetGroupMask(mask)

Sets the group's masking mode. See group masking mode constants.

Return value: none mask (int): the group's masking mode
void FullDepthSort(doc)

Perform a full depth sort on the group's sub-layers.

Return value: none doc (MohoDoc): the Moho document
void DepthSort(doc)

Perform an incremental depth sort on the group's sub-layers.

Return value: none doc (MohoDoc): the Moho document