CSGuiToolbarButton
in package
Tags
Table of Contents
- $attributes : mixed
- $id : string
- $index : mixed
- $toolbar : mixed
- $type : mixed
- __construct() : mixed
- getAttribute() : mixed
- returns a property of the toolbar button
- getID() : string
- returns the id of the toolbar button
- getTitle() : string
- returns the title of the toolbar button
- setPosition() : void
- changes the position of the toolbar button within the toolbar
Properties
$attributes
public
mixed
$attributes
Tags
$id
public
string
$id
Tags
$index
public
mixed
$index
= \null
Tags
$toolbar
public
mixed
$toolbar
Tags
$type
public
mixed
$type
Tags
Methods
__construct()
public
__construct(mixed $type[, mixed $attributes = array() ][, mixed $toolbar = null ]) : mixed
Parameters
- $type : mixed
- $attributes : mixed = array()
- $toolbar : mixed = null
Tags
Return values
mixed —getAttribute()
returns a property of the toolbar button
public
getAttribute(string $name) : mixed
Parameters
- $name : string
-
the name of the property
Tags
Return values
mixed —the value of the property
getID()
returns the id of the toolbar button
public
getID() : string
Tags
Return values
string —the id of the toolbar button
getTitle()
returns the title of the toolbar button
public
getTitle() : string
Tags
Return values
string —the title of the toolbar button
setPosition()
changes the position of the toolbar button within the toolbar
public
setPosition(int $index) : void
Parameters
- $index : int
-
the new position of the button (starting at index 0)
