/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/ |
ButtonGroup.java | 21 /** Manages a group of buttons to enforce a minimum and maximum number of checked buttons. This enables "radio button"
27 private final Array<T> buttons = new Array();
field in class:ButtonGroup 37 public ButtonGroup (T... buttons) {
39 add(buttons);
46 boolean shouldCheck = button.isChecked() || buttons.size < minCheckCount;
49 buttons.add(button);
53 public void add (T... buttons) {
54 if (buttons == null) throw new IllegalArgumentException("buttons cannot be null."); [all...] |
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
HierarchicalMove.java | 32 Button[] buttons = new Button[6]; field in class:HierarchicalMove 45 buttons[0] = (Button) findViewById(R.id.button0); 46 buttons[1] = (Button) findViewById(R.id.button1); 47 buttons[2] = (Button) findViewById(R.id.button2); 48 buttons[3] = (Button) findViewById(R.id.button3); 49 buttons[4] = (Button) findViewById(R.id.button4); 50 buttons[5] = (Button) findViewById(R.id.button5); 52 // Move button0, then buttons 1/2 together, then buttons 3/4/5 sequentially: 67 move0.addTarget(buttons[0]) [all...] |
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/extras/LIRC/ |
OISLIRC.h | 36 RemoteInfo() : buttons(0) {} 40 buttons = other.buttons; 44 int buttons; member in struct:OIS::RemoteInfo
|
/external/autotest/frontend/client/src/autotest/common/table/ |
RadioButtonSetFilter.java | 15 private Vector<RadioButton> buttons; field in class:RadioButtonSetFilter 25 buttons = new Vector(); 35 int formValue = buttons.size(); 38 buttons.add(radioButton); 43 if (index < buttons.size()) 45 buttons.get(index).setChecked(true); 53 return buttons.size();
|
/developers/build/prebuilts/gradle/BasicGestureDetect/Application/src/main/java/com/example/android/basicgesturedetect/ |
GestureListener.java | 120 touchTypeDescription += ", buttons pressed: " + getButtonsPressed(e); 140 * Returns a human-readable string listing all the stylus buttons that were pressed when the 145 String buttons = ""; local 148 buttons += " primary"; 152 buttons += " secondary"; 156 buttons += " tertiary"; 160 buttons += " back"; 164 buttons += " forward"; 167 if (buttons.equals("")){ 168 buttons = "none" [all...] |
/developers/samples/android/input/gestures/BasicGestureDetect/Application/src/main/java/com/example/android/basicgesturedetect/ |
GestureListener.java | 120 touchTypeDescription += ", buttons pressed: " + getButtonsPressed(e); 140 * Returns a human-readable string listing all the stylus buttons that were pressed when the 145 String buttons = ""; local 148 buttons += " primary"; 152 buttons += " secondary"; 156 buttons += " tertiary"; 160 buttons += " back"; 164 buttons += " forward"; 167 if (buttons.equals("")){ 168 buttons = "none" [all...] |
/development/samples/browseable/BasicGestureDetect/src/com.example.android.basicgesturedetect/ |
GestureListener.java | 120 touchTypeDescription += ", buttons pressed: " + getButtonsPressed(e); 140 * Returns a human-readable string listing all the stylus buttons that were pressed when the 145 String buttons = ""; local 148 buttons += " primary"; 152 buttons += " secondary"; 156 buttons += " tertiary"; 160 buttons += " back"; 164 buttons += " forward"; 167 if (buttons.equals("")){ 168 buttons = "none" [all...] |
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/includes/linux/ |
LinuxPrereqs.h | 56 JoyStickInfo(): devId(-1),joyFileD(-1),version(0),axes(0),buttons(0),hats(0) {} 67 //! Number of buttons 68 unsigned char buttons; member in class:OIS::JoyStickInfo 71 //! Maps Linux button values to OIS buttons values
|
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/includes/ |
OISMouse.h | 44 MouseState() : width(50), height(50), buttons(0) {}; 60 //! represents all buttons - bit position indicates button down 61 int buttons; member in class:OIS::MouseState 66 return ((buttons & ( 1L << button )) == 0) ? false : true; 75 buttons = 0; 86 //! The state of the mouse - including buttons and axes
|
/external/lzma/CPP/Windows/Control/ |
ToolBar.h | 20 // maybe it must be fixed for more than 1 buttons
35 bool AddButton(UINT numButtons, LPTBBUTTON buttons) { return LRESULTToBool(SendMessage(TB_ADDBUTTONS, numButtons, (LPARAM)buttons)); }
37 bool AddButtonW(UINT numButtons, LPTBBUTTON buttons) { return LRESULTToBool(SendMessage(TB_ADDBUTTONSW, numButtons, (LPARAM)buttons)); }
|
/hardware/bsp/intel/peripheral/libupm/examples/c++/ |
at42qt1070.cxx | 43 uint8_t buttons = touch->getButtons(); local 45 cout << "Buttons Pressed: "; 48 if (buttons & (1 << i))
|
/hardware/bsp/intel/peripheral/libupm/examples/javascript/ |
at42qt1070.js | 31 var buttons = touchObj.getButtons(); 33 process.stdout.write("Buttons Pressed: "); 36 if (buttons & (1 << i))
|
/hardware/bsp/intel/peripheral/libupm/examples/python/ |
at42qt1070.py | 30 buttons = touchObj.getButtons() 32 sys.stdout.write("Buttons Pressed: ") 34 if (buttons & (1 << i)):
|
/external/libgdx/extensions/gdx-controllers/gdx-controllers-lwjgl3/src/com/badlogic/gdx/controllers/lwjgl3/ |
Lwjgl3Controller.java | 42 ByteBuffer buttons = GLFW.glfwGetJoystickButtons(index); local 43 if(buttons == null) { 58 for(int i = 0; i < buttons.limit(); i++) { 59 if(buttonState[i] != (buttons.get(i) == GLFW.GLFW_PRESS)) { 61 if(buttons.get(i) == GLFW.GLFW_PRESS) { 67 manager.buttonChanged(this, i, buttons.get(i) == GLFW.GLFW_PRESS); 69 buttonState[i] = buttons.get(i) == GLFW.GLFW_PRESS;
|
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/src/com/badlogic/gdx/controllers/desktop/ois/ |
OisJoystick.java | 30 private final boolean[] buttons;
field in class:OisJoystick 40 buttons = new boolean[getButtonCount()];
52 buttons[buttonIndex] = true;
57 buttons[buttonIndex] = false;
134 if (buttonIndex < 0 || buttonIndex >= buttons.length) return false;
135 return buttons[buttonIndex];
|
/external/libgdx/extensions/gdx-controllers/gdx-controllers-gwt/src/com/badlogic/gdx/controllers/gwt/ |
GwtController.java | 35 protected final IntFloatMap buttons = new IntFloatMap(); field in class:GwtController 58 return buttons.get(buttonCode, 0) >= 0.5f; 62 return buttons.get(buttonCode, 0);
|
/external/autotest/frontend/client/src/autotest/afe/ |
AbortSynchronousDialog.java | 55 Panel buttons = new HorizontalPanel(); local 56 buttons.add(abortAll); 58 buttons.add(abortAsynchronous); 60 buttons.add(cancel); 61 contents.add(buttons);
|
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/mac/ |
MacMouse.cpp | 272 mState.buttons |= 1 << mouseButton; 277 mState.buttons |= 1 << mouseButton; 282 mState.buttons |= 1 << mouseButton; 319 //Once we regain focus, we do not really know what state all the buttons are in - for now, set to not pressed. todo, check current status 321 mState.buttons = 0; 333 mState.buttons &= ~(1 << mouseButton); 338 mState.buttons &= ~(1 << mouseButton); 343 mState.buttons &= ~(1 << mouseButton);
|
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/src/linux/ |
EventHelpers.cpp | 44 vector<int> buttons, relAxes, absAxes, hats; member in class:DeviceComponentInfo 137 << ") : Reading device buttons features" << endl; 141 OIS_EXCEPT( E_General, "Could not read device buttons features"); 147 components.buttons.push_back(j); 165 int buttons = 0; local 172 for(vector<int>::iterator i = info.buttons.begin(), e = info.buttons.end(); i != e; ++i ) 180 js.button_map[*i] = buttons++; 184 << " OIS Button Num: " << dec << buttons-1 << endl; 191 //Joy Buttons found, so it must be a joystick or pa [all...] |
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
MusicTest.java | 40 TextureRegion buttons;
field in class:MusicTest 53 buttons = new TextureRegion(new Texture(Gdx.files.internal("data/playback.png")));
87 batch.draw(buttons, 0, 0);
115 buttons.getTexture().dispose();
|
/prebuilts/gdb/darwin-x86/lib/python2.7/lib-tk/ |
SimpleDialog.py | 10 text='', buttons=[], default=None, cancel=None, 27 for num in range(len(buttons)): 28 s = buttons[num] 98 "the buttons below would have been glowing " 101 buttons=["Yes", "No", "Cancel"],
|
/prebuilts/gdb/linux-x86/lib/python2.7/lib-tk/ |
SimpleDialog.py | 10 text='', buttons=[], default=None, cancel=None, 27 for num in range(len(buttons)): 28 s = buttons[num] 98 "the buttons below would have been glowing " 101 buttons=["Yes", "No", "Cancel"],
|
/prebuilts/misc/darwin-x86_64/sdl2/include/SDL2/ |
SDL_messagebox.h | 100 const SDL_MessageBoxButtonData *buttons; member in struct:__anon44484
|
/prebuilts/misc/windows/sdl2/i686-w64-mingw32/include/SDL2/ |
SDL_messagebox.h | 100 const SDL_MessageBoxButtonData *buttons; member in struct:__anon44593
|
/prebuilts/misc/windows/sdl2/include/ |
SDL_messagebox.h | 100 const SDL_MessageBoxButtonData *buttons; member in struct:__anon44672
|