Element: ident.visibility

Type

numeric

Description

The visibility status of ident. This element is available only to the following identifiers:

  1. gstructure and compound definitions defining the class visibility for all objects of the type.

  2. child elements of compound definitions of the first generation defining their class visibility.

  3. gstructure and compound objects, defining the visibility of the object.

The visibility has a value (0,1 or -1), indicating whether the graphics of the identifier are to be drawn or not. Its value has the following meanings:

Setting the value to anything else will be treated as 1.

At identifier creation time, its value is -1. For new structure definitions the default value is 1.

Examples

Create a gstructure definition and define its class visibility.

atable test
# Define a gstructure.
gstructure ~test.gtype {
    string value
}
~test.gtype.visibility = 1

Create a gstructure object and define its visibility.

~test.gtype myline = lines { pseries }
myline.visibility = 0

Create a compound definition and define its class visibility, and the class visibility of 1 of its child elements.

# Define a compound.
gstructure ~test.chair {
    entity seat
    entity arms[2]
    entity legs[4]
}
~test.chair.visibility = 1
~test.chair.arms.visibility = -1

Create a compound object and define its visibility.

~test.chair mychair
mychair.visibility = 0