X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Ftext%2Fvisual-model.cpp;h=20285a6541731bcb5a0dd1897c763189ddaed3ee;hp=da7bcdfcd1ed73a20a8d7288a48840e6aad96414;hb=refs%2Fchanges%2F35%2F34835%2F7;hpb=bee80770f7faa39a9d71c21e4d9ccf34a47fcc2e diff --git a/dali-toolkit/public-api/text/visual-model.cpp b/dali-toolkit/public-api/text/visual-model.cpp index da7bcdf..20285a6 100644 --- a/dali-toolkit/public-api/text/visual-model.cpp +++ b/dali-toolkit/public-api/text/visual-model.cpp @@ -21,6 +21,7 @@ // INTERNAL INCLUDES #include #include +#include // EXTERNAL INCLUDES #include @@ -35,6 +36,8 @@ namespace Toolkit namespace Text { +const GlyphInfo GLYPH_INFO; // VCC to be removed. + struct VisualModel::Impl { Vector mGlyphs; @@ -79,6 +82,11 @@ void VisualModel::GetGlyphs( GlyphIndex glyphIndex, memcpy( glyphs, &modelGlyphs[glyphIndex], numberOfGlyphs*sizeof(GlyphInfo) ); } +const GlyphInfo& VisualModel::GetGlyphInfo( GlyphIndex glyphIndex ) const +{ + return GLYPH_INFO; +} + CharacterIndex VisualModel::GetCharacterIndex( GlyphIndex glyphIndex ) const { return mImpl->mGlyphsToCharacters[glyphIndex]; @@ -105,6 +113,24 @@ GlyphIndex VisualModel::GetGlyphIndex( CharacterIndex characterIndex ) const return index; } +void VisualModel::GetCharacterToGlyphMap( GlyphIndex* characterToGlyphMap, + CharacterIndex characterIndex, + Length numberOfCharacters ) const +{ +} + +void VisualModel::GetCharactersPerGlyphMap( Length* charactersPerGlyph, + GlyphIndex glyphIndex, + Length numberOfGlyphs ) const +{ +} + +void VisualModel::GetGlyphToCharacterMap( CharacterIndex* glyphToCharacter, + GlyphIndex glyphIndex, + Length numberOfGlyphs ) const +{ +} + void VisualModel::SetGlyphPositions( const Vector2* glyphPositions, Length numberOfGlyphs ) { @@ -121,6 +147,57 @@ void VisualModel::GetGlyphPositions( GlyphIndex glyphIndex, memcpy( glyphPositions, &modelPositions[0], numberOfGlyphs*sizeof(Vector2) ); } +const Vector2& VisualModel::GetGlyphPosition( GlyphIndex glyphIndex ) const +{ + return Vector2::ZERO; +} + +void VisualModel::SetLines( const LineRun* const lines, + Length numberOfLines ) +{ +} + +Length VisualModel::GetNumberOfLines() const +{ + return 0u; +} + +void VisualModel::GetLines( LineRun* lines, + LineIndex lineIndex, + Length numberOfLines ) const +{ +} + +Length VisualModel::GetNumberOfLines( GlyphIndex glyphIndex, + Length numberOfGlyphs ) const +{ + return 0u; +} + +void VisualModel::GetLinesOfGlyphRange( LineRun* lines, + GlyphIndex glyphIndex, + Length numberOfGlyphs ) const +{ +} + +void VisualModel::SetNaturalSize( const Vector2& size ) +{ +} + +const Vector2& VisualModel::GetNaturalSize() const +{ + return Vector2::ZERO; +} + +void VisualModel::SetActualSize( const Vector2& size ) +{ +} + +const Vector2& VisualModel::GetActualSize() const +{ + return Vector2::ZERO; +} + VisualModel::~VisualModel() { delete mImpl;