2013-07-26 14:37:26 +08:00
|
|
|
/****************************************************************************
|
|
|
|
Copyright (c) 2013 cocos2d-x.org
|
|
|
|
|
|
|
|
http://www.cocos2d-x.org
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include "cocos-ext.h"
|
|
|
|
|
|
|
|
NS_CC_EXT_BEGIN
|
|
|
|
|
|
|
|
const Control::EventType CCControlEventTouchDown = Control::EventType::TOUCH_DOWN;
|
|
|
|
const Control::EventType CCControlEventTouchDragInside = Control::EventType::DRAG_INSIDE;
|
|
|
|
const Control::EventType CCControlEventTouchDragOutside = Control::EventType::DRAG_OUTSIDE;
|
|
|
|
const Control::EventType CCControlEventTouchDragEnter = Control::EventType::DRAG_ENTER;
|
|
|
|
const Control::EventType CCControlEventTouchDragExit = Control::EventType::DRAG_EXIT;
|
|
|
|
const Control::EventType CCControlEventTouchUpInside = Control::EventType::TOUCH_UP_INSIDE;
|
|
|
|
const Control::EventType CCControlEventTouchUpOutside = Control::EventType::TOUCH_UP_OUTSIDE;
|
|
|
|
const Control::EventType CCControlEventTouchCancel = Control::EventType::TOUCH_CANCEL;
|
|
|
|
const Control::EventType CCControlEventValueChanged = Control::EventType::VALUE_CHANGED;
|
|
|
|
|
|
|
|
const Control::State CCControlStateNormal = Control::State::NORMAL;
|
|
|
|
const Control::State CCControlStateHighlighted = Control::State::HIGH_LIGHTED;
|
|
|
|
const Control::State CCControlStateDisabled = Control::State::DISABLED;
|
|
|
|
const Control::State CCControlStateSelected = Control::State::SELECTED;
|
|
|
|
|
2013-07-26 21:36:32 +08:00
|
|
|
const EditBox::KeyboardReturnType kKeyboardReturnTypeDefault = EditBox::KeyboardReturnType::DEFAULT;
|
|
|
|
const EditBox::KeyboardReturnType kKeyboardReturnTypeDone = EditBox::KeyboardReturnType::DONE;
|
|
|
|
const EditBox::KeyboardReturnType kKeyboardReturnTypeSend = EditBox::KeyboardReturnType::SEND;
|
|
|
|
const EditBox::KeyboardReturnType kKeyboardReturnTypeSearch = EditBox::KeyboardReturnType::SEARCH;
|
|
|
|
const EditBox::KeyboardReturnType kKeyboardReturnTypeGo = EditBox::KeyboardReturnType::GO;
|
2013-07-26 17:45:01 +08:00
|
|
|
|
|
|
|
const EditBox::InputMode kEditBoxInputModeAny = EditBox::InputMode::ANY;
|
|
|
|
const EditBox::InputMode kEditBoxInputModeEmailAddr = EditBox::InputMode::EMAIL_ADDRESS;
|
|
|
|
const EditBox::InputMode kEditBoxInputModeNumeric = EditBox::InputMode::NUMERIC;
|
|
|
|
const EditBox::InputMode kEditBoxInputModePhoneNumber = EditBox::InputMode::PHONE_NUMBER;
|
|
|
|
const EditBox::InputMode kEditBoxInputModeUrl = EditBox::InputMode::URL;
|
|
|
|
const EditBox::InputMode kEditBoxInputModeDecimal = EditBox::InputMode::DECIMAL;
|
|
|
|
const EditBox::InputMode kEditBoxInputModeSingleLine = EditBox::InputMode::SINGLE_LINE;
|
|
|
|
|
|
|
|
const EditBox::InputFlag kEditBoxInputFlagPassword = EditBox::InputFlag::PASSWORD;
|
|
|
|
const EditBox::InputFlag kEditBoxInputFlagSensitive = EditBox::InputFlag::SENSITIVE;
|
|
|
|
const EditBox::InputFlag kEditBoxInputFlagInitialCapsWord = EditBox::InputFlag::INITIAL_CAPS_WORD;
|
|
|
|
const EditBox::InputFlag kEditBoxInputFlagInitialCapsSentence = EditBox::InputFlag::INITIAL_CAPS_SENTENCE;
|
|
|
|
const EditBox::InputFlag kEditBoxInputFlagInitialCapsAllCharacters = EditBox::InputFlag::INTIAL_CAPS_ALL_CHARACTERS;
|
|
|
|
|
2013-07-26 22:55:41 +08:00
|
|
|
|
|
|
|
const ScrollView::Direction kCCScrollViewDirectionNone = ScrollView::Direction::NONE;
|
|
|
|
const ScrollView::Direction kCCScrollViewDirectionHorizontal = ScrollView::Direction::HORIZONTAL;
|
|
|
|
const ScrollView::Direction kCCScrollViewDirectionVertical = ScrollView::Direction::VERTICAL;
|
|
|
|
const ScrollView::Direction kCCScrollViewDirectionBoth = ScrollView::Direction::BOTH;
|
|
|
|
|
|
|
|
const TableView::VerticalFillOrder kCCTableViewFillTopDown = TableView::VerticalFillOrder::TOP_DOWN;
|
|
|
|
const TableView::VerticalFillOrder kCCTableViewFillBottomUp = TableView::VerticalFillOrder::BOTTOM_UP;
|
|
|
|
|
|
|
|
|
2013-07-26 14:37:26 +08:00
|
|
|
NS_CC_EXT_END
|