X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-editor-devel.h;h=b2dc43a907d98ee33b91b0f8aff5e99824ed95d7;hb=refs%2Fchanges%2F57%2F139457%2F2;hp=473adbafa336091c3bcf49f2dadb850a4fcfdf04;hpb=eaebf2e8aa5903e4acbb37ae46050e009863146c;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h b/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h index 473adba..b2dc43a 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h +++ b/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h @@ -107,6 +107,9 @@ namespace Property /** * @brief The size of font in pixels. + * + * Conversion from Point size to Pixel size : + * Pixel size = Point size * DPI / 72 * @details name "pixelSize", type float */ PIXEL_SIZE, @@ -128,11 +131,64 @@ namespace Property * @brief The placeholder-text color. * @details name "placeholderTextColor", type vector4 */ - PLACEHOLDER_TEXT_COLOR + PLACEHOLDER_TEXT_COLOR, + + /** + * @brief Enables Text selection, such as the cursor, handle, clipboard, and highlight color. + * @details name "enableSelection", type bool + */ + ENABLE_SELECTION, + + /** + * @brief Sets the placeholder : text, color, font family, font style, point size, and pixel size. + * + * @code + * Property::Map propertyMap; + * propertyMap["placeholderText"] = "Setting Placeholder Text"; + * propertyMap["placeholderTextFocused"] = "Setting Placeholder Text Focused"; + * propertyMap["placeholderColor"] = Color::RED; + * propertyMap["placeholderFontFamily"] = "Arial"; + * propertyMap["placeholderPointSize"] = 12.0f; + * + * Property::Map fontStyleMap; + * fontStyleMap.Insert( "weight", "bold" ); + * fontStyleMap.Insert( "width", "condensed" ); + * fontStyleMap.Insert( "slant", "italic" ); + * propertyMap["placeholderFontStyle"] = fontStyleMap; + * + * editor.SetProperty( DevelTextEditor::Property::PLACEHOLDER, propertyMap ); + * @endcode + * + * @details name "placeholder", type MAP + */ + PLACEHOLDER }; } // namespace Property -} // namespace DevelText +namespace Scroll +{ + enum Type + { + STARTED, ///< Scrolling is started. + FINISHED ///< Scrolling is finished. + }; +} // namespace Scroll + +typedef Signal< void ( TextEditor, Scroll::Type ) > ScrollStateChangedSignalType; + +/** + * @brief This signal is emitted when TextEditor scrolling is started or finished. + * + * A callback of the following type may be connected: + * @code + * void YourCallbackName( ScrollState::Type type ); + * @endcode + * type: Whether the scrolling is started or finished. + * @return The signal to connect to + */ +DALI_IMPORT_API ScrollStateChangedSignalType& ScrollStateChangedSignal( TextEditor textEditor ); + +} // namespace DevelTextEditor } // namespace Toolkit