class SwitchNode

Bases: SelectiveChildNode

A node that renders only one of its children, according to the user’s indication.

Inheritance diagram

Inheritance diagram of SwitchNode

explicit SwitchNode(std::string const &name)
static TypeHandle get_class_type(void)
virtual int get_visible_child(void) const

Returns the index of the child that should be visible.

void set_visible_child(int index)

Specifies the particular child of this node, by index, that will be visible.