Displays colour rectangle.
Methods
method draw(self: SwitchPtr; w, h: GLfloat) {...}{.raises: [GLerror, Exception], tags: [RootEffect].}
- this method uses in the window.nim.
method duplicate(self: SwitchPtr): SwitchPtr {...}{.base, raises: [], tags: [].}
- Duplicates Switch object and create a new Switch pointer.
method handle(self: SwitchPtr; event: InputEvent; mouse_on: var NodePtr) {...}{. raises: [Exception], tags: [RootEffect].}
- Handles user input. This uses in the window.nim.
method toggle(self: SwitchPtr) {...}{.base, raises: [], tags: [].}
- Toggles value.