Tuix Guide logo Tuix Guide


Pseudo-classes let you change the style of an element based on its state. There are 7 supported pseudo-classes in tuix:

Setting Pseudo-classes on entities

Some pseudo-classes, such as hover, over, and focus, are set automatically by the application. However it’s also possible to set pseudoclass properties on entities directly.

Enabled

entity.set_enabled(state, bool);

Disabled

entity.set_disabled(state, bool);

Active

entity.set_active(state, bool);

Checked

entity.set_checked(state, bool);