X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Finput-style.h;h=a9e6eab0acc307c114122ba0b5784f7d1f103f27;hp=cd562ec058615c61c77ba4e8aaa5ee0b23add7cc;hb=4d763eb68b5aa2448dfc81d90fc5ce598c68c99f;hpb=bd0b6d9d85d1e484aad8e96b0de89c494f013827 diff --git a/dali-toolkit/internal/text/input-style.h b/dali-toolkit/internal/text/input-style.h index cd562ec..a9e6eab 100644 --- a/dali-toolkit/internal/text/input-style.h +++ b/dali-toolkit/internal/text/input-style.h @@ -21,6 +21,9 @@ // EXTERNAL INCLUDES #include +// INTERNAL INCLUDES +#include + namespace Dali { @@ -35,7 +38,37 @@ namespace Text */ struct InputStyle { -Vector4 textColor; + InputStyle() + : textColor( Color::BLACK ), + fontStyle(), + familyName(), + weight( TextAbstraction::FontWeight::NORMAL ), + width( TextAbstraction::FontWidth::NORMAL ), + slant( TextAbstraction::FontSlant::NORMAL ), + size( 0.f ), + familyDefined( false ), + weightDefined( false ), + widthDefined( false ), + slantDefined( false ), + sizeDefined( false ) + {} + + ~InputStyle() + {}; + + Vector4 textColor; ///< The text's color. + std::string fontStyle; ///< The font's style string. + std::string familyName; ///< The font's family name. + FontWeight weight; ///< The font's weight. + FontWidth width; ///< The font's width. + FontSlant slant; ///< The font's slant. + float size; ///< The font's size. + + bool familyDefined : 1; ///< Whether the font's family is defined. + bool weightDefined : 1; ///< Whether the font's weight is defined. + bool widthDefined : 1; ///< Whether the font's width is defined. + bool slantDefined : 1; ///< Whether the font's slant is defined. + bool sizeDefined : 1; ///< Whether the font's size is defined. }; } // namespace Text