Drag[en]gine Script Module DragonScript  1.23
Dragengine.Gui.EditBindingsListModelEntry Class Reference

Command entry in EditBindingsListModel. More...

Inheritance diagram for Dragengine.Gui.EditBindingsListModelEntry:

Classes

enum  InputSource
 Input source. More...
 

Public Member Functions

void addAxisBinding (Binding binding)
 Add axis binding. More...
 
void addButtonBinding (Binding binding)
 Add button binding. More...
 
void forEachAxisBinding (Block ablock)
 Visit axis bindings with block with parameter Binding. More...
 
void forEachButtonBinding (Block ablock)
 Visit button bindings with block with parameter Binding. More...
 
Binding getAxisBindingAt (int index)
 Axis binding at index. More...
 
int getAxisBindingCount ()
 Number of axis bindings. More...
 
Binding getButtonBindingAt (int index)
 Button binding at index. More...
 
int getButtonBindingCount ()
 Number of button bindings. More...
 
Command getCommand ()
 Command. More...
 
InputSource getInputSource ()
 Input source. More...
 
bool hasAxisBinding (Binding binding)
 Axis binding is present. More...
 
bool hasButtonBinding (Binding binding)
 Button binding is present. More...
 
EditBindingsListModelEntry new (Command command, InputSource inputSource)
 Create command entry for EditBindingsListModel. More...
 
void removeAllAxisBindings ()
 Remove all axis bindings. More...
 
void removeAllButtonBindings ()
 Remove all button bindings. More...
 
void removeAxisBinding (Binding binding)
 Remove axis binding. More...
 
void removeButtonBinding (Binding binding)
 Remove button binding. More...
 
void updateBindings (EditBindingsListModel model)
 Update bindings. More...
 

Public Attributes

Array pAxisBindings
 
Array pButtonBindings
 
Command pCommand
 
InputSource pInputSource
 

Detailed Description

Command entry in EditBindingsListModel.

Member Function Documentation

◆ addAxisBinding()

void Dragengine.Gui.EditBindingsListModelEntry.addAxisBinding ( Binding  binding)

Add axis binding.

Call model.notifyContentChanged(int, int) to notifiy listeners about the change.

◆ addButtonBinding()

void Dragengine.Gui.EditBindingsListModelEntry.addButtonBinding ( Binding  binding)

Add button binding.

Call model.notifyContentChanged(int, int) to notifiy listeners about the change.

◆ forEachAxisBinding()

void Dragengine.Gui.EditBindingsListModelEntry.forEachAxisBinding ( Block  ablock)

Visit axis bindings with block with parameter Binding.

◆ forEachButtonBinding()

void Dragengine.Gui.EditBindingsListModelEntry.forEachButtonBinding ( Block  ablock)

Visit button bindings with block with parameter Binding.

◆ getAxisBindingAt()

Binding Dragengine.Gui.EditBindingsListModelEntry.getAxisBindingAt ( int  index)

Axis binding at index.

◆ getAxisBindingCount()

int Dragengine.Gui.EditBindingsListModelEntry.getAxisBindingCount ( )

Number of axis bindings.

◆ getButtonBindingAt()

Binding Dragengine.Gui.EditBindingsListModelEntry.getButtonBindingAt ( int  index)

Button binding at index.

◆ getButtonBindingCount()

int Dragengine.Gui.EditBindingsListModelEntry.getButtonBindingCount ( )

Number of button bindings.

◆ getCommand()

Command Dragengine.Gui.EditBindingsListModelEntry.getCommand ( )

Command.

◆ getInputSource()

InputSource Dragengine.Gui.EditBindingsListModelEntry.getInputSource ( )

Input source.

◆ hasAxisBinding()

bool Dragengine.Gui.EditBindingsListModelEntry.hasAxisBinding ( Binding  binding)

Axis binding is present.

Version
1.20

◆ hasButtonBinding()

bool Dragengine.Gui.EditBindingsListModelEntry.hasButtonBinding ( Binding  binding)

Button binding is present.

Version
1.20

◆ new()

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.

Parameters
commandCommand to show.
inputSourceInput source required for this command.

◆ removeAllAxisBindings()

void Dragengine.Gui.EditBindingsListModelEntry.removeAllAxisBindings ( )

Remove all axis bindings.

Call model.notifyContentChanged(int, int) to notifiy listeners about the change.

◆ removeAllButtonBindings()

void Dragengine.Gui.EditBindingsListModelEntry.removeAllButtonBindings ( )

Remove all button bindings.

Call model.notifyContentChanged(int, int) to notifiy listeners about the change.

◆ removeAxisBinding()

void Dragengine.Gui.EditBindingsListModelEntry.removeAxisBinding ( Binding  binding)

Remove axis binding.

Version
1.20

Call model.notifyContentChanged(int, int) to notifiy listeners about the change.

◆ removeButtonBinding()

void Dragengine.Gui.EditBindingsListModelEntry.removeButtonBinding ( Binding  binding)

Remove button binding.

Version
1.20

Call model.notifyContentChanged(int, int) to notifiy listeners about the change.

◆ 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.

Member Data Documentation

◆ pAxisBindings

Array Dragengine.Gui.EditBindingsListModelEntry.pAxisBindings

◆ pButtonBindings

Array Dragengine.Gui.EditBindingsListModelEntry.pButtonBindings

◆ pCommand

Command Dragengine.Gui.EditBindingsListModelEntry.pCommand

◆ pInputSource

InputSource Dragengine.Gui.EditBindingsListModelEntry.pInputSource

The documentation for this class was generated from the following file: