X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fcontrol.h;h=af840cd7ddbf6830fc3532a0d302ebd6c1fb1e13;hb=92c67ea7a5d7218acb4e59d6dd3d9065788bda04;hp=1911030ce7bfd0ff81b707f3eb0ad4a3a3986c9b;hpb=2ddfbb9e23a7c3fc30e604236c41e0ef6d2ed6a2;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/controls/control.h b/dali-toolkit/public-api/controls/control.h index 1911030..af840cd 100644 --- a/dali-toolkit/public-api/controls/control.h +++ b/dali-toolkit/public-api/controls/control.h @@ -46,35 +46,51 @@ class Control; * * The implementation of the control must be supplied; see Internal::Control for more details. * @see Internal::Control + * + * Signals + * | %Signal Name | Method | + * |-------------------|-----------------------------------------------------| + * | key-event | @ref KeyEventSignal() | + * | tapped | @ref GetTapGestureDetector().DetectedSignal() | + * | panned | @ref GetPanGestureDetector().DetectedSignal() | + * | pinched | @ref GetPinchGestureDetector().DetectedSignal() | + * | long-pressed | @ref GetLongPressGestureDetector().DetectedSignal() | + * + * Actions + * | %Action Name | %Control method called | + * |-------------------|-----------------------------------------------------| + * | control-activated | %OnActivated() | */ class DALI_IMPORT_API Control : public CustomActor { public: - /// @name Properties - /** @{ */ - static const Property::Index PROPERTY_BACKGROUND_COLOR; ///< name "background-color", @see SetBackgroundColor, type VECTOR4 - static const Property::Index PROPERTY_BACKGROUND; ///< name "background", @see SetBackground, type MAP - static const Property::Index PROPERTY_WIDTH_POLICY; ///< name "width-policy", @see SetSizePolicy, type STRING - static const Property::Index PROPERTY_HEIGHT_POLICY; ///< name "height-policy", @see SetSizePolicy, type STRING - static const Property::Index PROPERTY_MINIMUM_SIZE; ///< name "minimum-size", @see SetMinimumSize, type VECTOR3 - static const Property::Index PROPERTY_MAXIMUM_SIZE; ///< name "maximum-size", @see SetMaximumSize, type VECTOR3 - static const Property::Index PROPERTY_KEY_INPUT_FOCUS; ///< name "key-input-focus", @see SetKeyInputFocus, type BOOLEAN - /** @} */ - - /// @name Signals - /** @{ */ - static const char* const SIGNAL_KEY_EVENT; ///< name "key-event" - static const char* const SIGNAL_TAPPED; ///< name "tapped" - static const char* const SIGNAL_PANNED; ///< name "panned" - static const char* const SIGNAL_PINCHED; ///< name "pinched" - static const char* const SIGNAL_LONG_PRESSED; ///< name "long-pressed" - /** @} */ - - /// @name Actions - /** @{ */ - static const char* const ACTION_CONTROL_ACTIVATED; ///< name "control-activated" - /** @} */ + /** + * @brief The start and end property ranges for control. + */ + enum PropertyRange + { + PROPERTY_START_INDEX = PROPERTY_REGISTRATION_START_INDEX, ///< Start index is used by the property registration macro. + CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX, ///< Start index of Control properties. + CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000 ///< Reserving 1000 property indices. + }; + + /** + * @brief An enumeration of properties belonging to the Control class. + */ + struct Property + { + enum + { + BACKGROUND_COLOR = PROPERTY_START_INDEX, ///< name "background-color", @see SetBackgroundColor, type Vector4 + BACKGROUND, ///< name "background", @see SetBackground, type Map + WIDTH_POLICY, ///< name "width-policy", @see SetSizePolicy, type std::string + HEIGHT_POLICY, ///< name "height-policy", @see SetSizePolicy, type std::string + MINIMUM_SIZE, ///< name "minimum-size", @see SetMinimumSize, type Vector3 + MAXIMUM_SIZE, ///< name "maximum-size", @see SetMaximumSize, type Vector3 + KEY_INPUT_FOCUS, ///< name "key-input-focus", @see SetKeyInputFocus, type bool + }; + }; /** * @brief Describes how a control could be resized.