X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Ftext-input%2Ftext-input.h;h=6c52934308490ff1409958db6c48e46f140df05c;hp=b0db2350393fea4a74b193fb612ec802dd468dd3;hb=b458e407eba11c73f38da68bce8e967a30ea03e2;hpb=b8d4bac83c801b93dc7b3298148864a4215e139f diff --git a/dali-toolkit/public-api/controls/text-input/text-input.h b/dali-toolkit/public-api/controls/text-input/text-input.h index b0db235..6c52934 100644 --- a/dali-toolkit/public-api/controls/text-input/text-input.h +++ b/dali-toolkit/public-api/controls/text-input/text-input.h @@ -42,25 +42,40 @@ class DALI_IMPORT_API TextInput : public Control public: - /// @name Properties - /** @{ */ - static const Dali::Property::Index HIGHLIGHT_COLOR_PROPERTY; // Property, name "highlight-color", type VECTOR4 - static const Dali::Property::Index CUT_AND_PASTE_COLOR_PROPERTY; // Property, name "cut-and-paste-bg-color", type VECTOR4 - static const Dali::Property::Index CUT_AND_PASTE_PRESSED_COLOR_PROPERTY; // Property, name "cut-and-paste-pressed-color", type VECTOR4 - static const Dali::Property::Index CUT_AND_PASTE_BORDER_COLOR_PROPERTY; // Property, name "cut-and-paste-border-color", type VECTOR4 - static const Dali::Property::Index CUT_AND_PASTE_ICON_COLOR_PROPERTY; // Property, name "cut-and-paste-icon-color", type VECTOR4 - static const Dali::Property::Index CUT_AND_PASTE_ICON_PRESSED_COLOR_PROPERTY; // Property, name "cut-and-paste-icon-pressed-color", type VECTOR4 - static const Dali::Property::Index CUT_AND_PASTE_TEXT_COLOR_PROPERTY; // Property, name "cut-and-paste-text-color", type VECTOR4 - static const Dali::Property::Index CUT_AND_PASTE_TEXT_PRESSED_COLOR_PROPERTY; // Property, name "cut-and-paste-text-pressed-color", type VECTOR4 - static const Dali::Property::Index CUT_BUTTON_POSITION_PRIORITY_PROPERTY; // Property, name "cut-button-position-priority", type unsigned int - static const Dali::Property::Index COPY_BUTTON_POSITION_PRIORITY_PROPERTY; // Property, name "copy-button-position-priority", type unsigned int - static const Dali::Property::Index PASTE_BUTTON_POSITION_PRIORITY_PROPERTY; // Property, name "paste-button-position-priority", type unsigned int - static const Dali::Property::Index SELECT_BUTTON_POSITION_PRIORITY_PROPERTY; // Property, name "select-button-position-priority", type unsigned int - static const Dali::Property::Index SELECT_ALL_BUTTON_POSITION_PRIORITY_PROPERTY; // Property, name "select-all-button-position-priority", type unsigned int - static const Dali::Property::Index CLIPBOARD_BUTTON_POSITION_PRIORITY_PROPERTY; // Property, name "clipboard-button-position-priority", type unsigned int - static const Dali::Property::Index POP_UP_OFFSET_FROM_TEXT_PROPERTY; // Property, name "popup-offset-from-text", type VECTOR4 - static const Dali::Property::Index CURSOR_COLOR_PROPERTY; // Property, name "cursor-color", type VECTOR4 - /** @} */ + /** + * @brief The start and end property ranges for this control. + */ + enum PropertyRange + { + PROPERTY_START_INDEX = Control::CONTROL_PROPERTY_END_INDEX + 1, + PROPERTY_END_INDEX = PROPERTY_START_INDEX + 512 ///< Reserve property indices + }; + + /** + * @brief An enumeration of properties belonging to the TextInput class. + */ + struct Property + { + enum + { + HIGHLIGHT_COLOR = PROPERTY_START_INDEX, // Property, name "highlight-color", type VECTOR4 + CUT_AND_PASTE_COLOR, // Property, name "cut-and-paste-bg-color", type VECTOR4 + CUT_AND_PASTE_PRESSED_COLOR, // Property, name "cut-and-paste-pressed-color", type VECTOR4 + CUT_AND_PASTE_BORDER_COLOR, // Property, name "cut-and-paste-border-color", type VECTOR4 + CUT_AND_PASTE_ICON_COLOR, // Property, name "cut-and-paste-icon-color", type VECTOR4 + CUT_AND_PASTE_ICON_PRESSED_COLOR, // Property, name "cut-and-paste-icon-pressed-color", type VECTOR4 + CUT_AND_PASTE_TEXT_COLOR, // Property, name "cut-and-paste-text-color", type VECTOR4 + CUT_AND_PASTE_TEXT_PRESSED_COLOR, // Property, name "cut-and-paste-text-pressed-color", type VECTOR4 + CUT_BUTTON_POSITION_PRIORITY, // Property, name "cut-button-position-priority", type UNSIGNED_INTEGER + COPY_BUTTON_POSITION_PRIORITY, // Property, name "copy-button-position-priority", type UNSIGNED_INTEGER + PASTE_BUTTON_POSITION_PRIORITY, // Property, name "paste-button-position-priority", type UNSIGNED_INTEGER + SELECT_BUTTON_POSITION_PRIORITY, // Property, name "select-button-position-priority", type UNSIGNED_INTEGER + SELECT_ALL_BUTTON_POSITION_PRIORITY, // Property, name "select-all-button-position-priority", type UNSIGNED_INTEGER + CLIPBOARD_BUTTON_POSITION_PRIORITY, // Property, name "clipboard-button-position-priority", type UNSIGNED_INTEGER + POP_UP_OFFSET_FROM_TEXT, // Property, name "popup-offset-from-text", type VECTOR4 + CURSOR_COLOR, // Property, name "cursor-color", type VECTOR4 + }; + }; public: