Documentation ButtonMenu.js
This commit is contained in:
@@ -47,6 +47,7 @@ function ButtonMenu(canvas, settings) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Brings the buttons to the front inside the canvas
|
||||
* @return {ButtonMenu}
|
||||
*/
|
||||
this.bringToFront = function() {
|
||||
@@ -57,6 +58,7 @@ function ButtonMenu(canvas, settings) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets all buttons inside the menu.
|
||||
* @return {Array}
|
||||
*/
|
||||
this.getItems = function() {
|
||||
@@ -64,12 +66,16 @@ function ButtonMenu(canvas, settings) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets the full width of the buttonMenu.
|
||||
* @return {Number}
|
||||
*/
|
||||
this.getWidth = function() {
|
||||
return _width;
|
||||
};
|
||||
|
||||
/**
|
||||
* Hides the buttons
|
||||
*/
|
||||
this.hide = function() {
|
||||
_textButtons.forEach(function(textButton) {
|
||||
textButton.set({
|
||||
@@ -79,6 +85,9 @@ function ButtonMenu(canvas, settings) {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows all the buttons
|
||||
*/
|
||||
this.show = function() {
|
||||
_textButtons.forEach(function(textButton) {
|
||||
textButton.set({
|
||||
|
||||
Reference in New Issue
Block a user