Class Fz2D.Gui.Checkbox

Defined in: src/scene/objects/gui/checkbox.coffee
Inherits: Fz2D.Entity

Overview

Public: Checkbox

Instance Method Summary

Inherited Method Summary

Methods inherited from Fz2D.Entity

.constructor, .isOutOfBounds, .play, .stop, .is, .active, .addAnimation, .draw, .update

Methods inherited from Fz2D.Object

.constructor, .kill, .reset, .show, .hide, .draw, .update

Constructor Details

::constructor(x, y, checked, unchecked) Source

Public: Constructor x - position on the X axis y - position on the Y axis checked - Fz2D.Texture unchecked - Fz2D.Texture

Parameters:

  • xposition on the X axis
  • yposition on the Y axis
  • (Fz2D.Texture) checkedFz2D.Texture
  • (Fz2D.Texture) uncheckedFz2D.Texture

Instance Method Details

::onclick(checkbox) Source

Public: On click(ed) callback. button - Fz2D.Gui.Checkbox

Parameters:

::update(timer, input) Source

Public: Updates checkbox on every frame. timer - Fz2D.Timer input - Fz2D.Input

Parameters: