X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-field-devel.h;h=35c2d029324407aced75a3877b340ecf216efb05;hp=21e2d5624f8a6e60ae69a1dad97da9681b47e3fd;hb=b904b864bc3875b6cb0bdfa2ad430d094c140205;hpb=24ea337df1049251ab2e47c556edc6e8458f9c93 diff --git a/dali-toolkit/devel-api/controls/text-controls/text-field-devel.h b/dali-toolkit/devel-api/controls/text-controls/text-field-devel.h index 21e2d56..35c2d02 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-field-devel.h +++ b/dali-toolkit/devel-api/controls/text-controls/text-field-devel.h @@ -86,15 +86,48 @@ namespace Property * @brief Hides the input characters and instead shows a default character for password or pin entry. * @details name "hiddenInputSettings", type map. * @note Optional. + * This property is currently being used for some applications, so it can't be changed. * @see HiddenInput */ HIDDEN_INPUT_SETTINGS = INPUT_OUTLINE + 1, /** * @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 = INPUT_OUTLINE + 2, + + /** + * @brief Enables Text selection, such as the cursor, handle, clipboard, and highlight color. + * @details name "enableSelection", type bool + */ + ENABLE_SELECTION = INPUT_OUTLINE + 3, + + /** + * @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["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; + * + * field.SetProperty( DevelTextField::Property::PLACEHOLDER, propertyMap ); + * @endcode + * + * @details name "placeholder", type MAP + */ + PLACEHOLDER = INPUT_OUTLINE + 4 }; } // namespace Property