|
Drag[en]gine Script Module DragonScript 1.35
|
Command entry in EditBindingsListModel. More...
Classes | |
| enum | InputSource |
| Input source. More... | |
Public Member Functions | |
| void | addAxisBinding (Binding binding) |
| Add axis binding. | |
| void | addButtonBinding (Binding binding) |
| Add button binding. | |
| void | forEachAxisBinding (Block ablock) |
| Visit axis bindings with block with parameter Binding. | |
| void | forEachButtonBinding (Block ablock) |
| Visit button bindings with block with parameter Binding. | |
| Binding | getAxisBindingAt (int index) |
| Axis binding at index. | |
| int | getAxisBindingCount () |
| Number of axis bindings. | |
| Binding | getButtonBindingAt (int index) |
| Button binding at index. | |
| int | getButtonBindingCount () |
| Number of button bindings. | |
| Command | getCommand () |
| Command. | |
| InputSource | getInputSource () |
| Input source. | |
| bool | hasAxisBinding (Binding binding) |
| Axis binding is present. | |
| bool | hasButtonBinding (Binding binding) |
| Button binding is present. | |
| EditBindingsListModelEntry | new (Command command, InputSource inputSource) |
| Create command entry for EditBindingsListModel. | |
| void | removeAllAxisBindings () |
| Remove all axis bindings. | |
| void | removeAllButtonBindings () |
| Remove all button bindings. | |
| void | removeAxisBinding (Binding binding) |
| Remove axis binding. | |
| void | removeButtonBinding (Binding binding) |
| Remove button binding. | |
| void | updateBindings (EditBindingsListModel model) |
| Update bindings. | |
Public Attributes | |
| Array | pAxisBindings |
| Array | pButtonBindings |
| Command | pCommand |
| InputSource | pInputSource |
Command entry in EditBindingsListModel.
| void Dragengine.Gui.EditBindingsListModelEntry.addAxisBinding | ( | Binding | binding | ) |
Add axis binding.
Call model.notifyContentChanged(int, int) to notifiy listeners about the change.
References pAxisBindings.
Referenced by getButtonBindingCount().
| void Dragengine.Gui.EditBindingsListModelEntry.addButtonBinding | ( | Binding | binding | ) |
Add button binding.
Call model.notifyContentChanged(int, int) to notifiy listeners about the change.
References pAxisBindings, and removeAxisBinding().
Referenced by updateBindings().
| void Dragengine.Gui.EditBindingsListModelEntry.forEachAxisBinding | ( | Block | ablock | ) |
Visit axis bindings with block with parameter Binding.
References getAxisBindingAt(), getAxisBindingCount(), and pAxisBindings.
Referenced by removeAllAxisBindings().
| void Dragengine.Gui.EditBindingsListModelEntry.forEachButtonBinding | ( | Block | ablock | ) |
Visit button bindings with block with parameter Binding.
References pAxisBindings, and removeAllAxisBindings().
Referenced by updateBindings().
| Binding Dragengine.Gui.EditBindingsListModelEntry.getAxisBindingAt | ( | int | index | ) |
Axis binding at index.
References getInputSource(), and pInputSource.
Referenced by forEachAxisBinding().
| int Dragengine.Gui.EditBindingsListModelEntry.getAxisBindingCount | ( | ) |
| Binding Dragengine.Gui.EditBindingsListModelEntry.getButtonBindingAt | ( | int | index | ) |
| int Dragengine.Gui.EditBindingsListModelEntry.getButtonBindingCount | ( | ) |
| Command Dragengine.Gui.EditBindingsListModelEntry.getCommand | ( | ) |
| InputSource Dragengine.Gui.EditBindingsListModelEntry.getInputSource | ( | ) |
| bool Dragengine.Gui.EditBindingsListModelEntry.hasAxisBinding | ( | Binding | binding | ) |
| bool Dragengine.Gui.EditBindingsListModelEntry.hasButtonBinding | ( | Binding | binding | ) |
| EditBindingsListModelEntry Dragengine.Gui.EditBindingsListModelEntry.new | ( | Command | command, |
| InputSource | inputSource ) |
Create command entry for EditBindingsListModel.
List of bindings is empty. Use updateBindings() to update the list. The input source defines what kind of bindings can be ued. Only matching input device sources are allowed to be used.
| command | Command to show. |
| inputSource | Input source required for this command. |
References new().
Referenced by new().
| void Dragengine.Gui.EditBindingsListModelEntry.removeAllAxisBindings | ( | ) |
Remove all axis bindings.
Call model.notifyContentChanged(int, int) to notifiy listeners about the change.
References forEachAxisBinding(), hasAxisBinding(), and pAxisBindings.
Referenced by forEachButtonBinding().
| void Dragengine.Gui.EditBindingsListModelEntry.removeAllButtonBindings | ( | ) |
Remove all button bindings.
Call model.notifyContentChanged(int, int) to notifiy listeners about the change.
References getButtonBindingCount(), and pButtonBindings.
Referenced by updateBindings().
| void Dragengine.Gui.EditBindingsListModelEntry.removeAxisBinding | ( | Binding | binding | ) |
Remove axis binding.
Call model.notifyContentChanged(int, int) to notifiy listeners about the change.
Referenced by addButtonBinding().
| void Dragengine.Gui.EditBindingsListModelEntry.removeButtonBinding | ( | Binding | binding | ) |
Remove button binding.
Call model.notifyContentChanged(int, int) to notifiy listeners about the change.
References getButtonBindingAt(), hasButtonBinding(), and pButtonBindings.
Referenced by updateBindings().
| void Dragengine.Gui.EditBindingsListModelEntry.updateBindings | ( | EditBindingsListModel | model | ) |
Update bindings.
Call after bindings affecting command changed in the bindings manager. Call model.notifyContentChanged(int, int) to notifiy listeners about the change.
References addButtonBinding(), forEachButtonBinding(), pAxisBindings, pButtonBindings, pCommand, removeAllButtonBindings(), removeButtonBinding(), and updateBindings().
Referenced by updateBindings().
| Array Dragengine.Gui.EditBindingsListModelEntry.pAxisBindings |
| Array Dragengine.Gui.EditBindingsListModelEntry.pButtonBindings |
Referenced by getInputSource(), removeAllButtonBindings(), removeButtonBinding(), and updateBindings().
| Command Dragengine.Gui.EditBindingsListModelEntry.pCommand |
Referenced by getAxisBindingCount(), getCommand(), and updateBindings().
| InputSource Dragengine.Gui.EditBindingsListModelEntry.pInputSource |
Referenced by getAxisBindingAt(), and getCommand().