X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Frendering%2Ftext-typesetter.h;h=ee57e29fe5d6ce907f46a3df0217add0a6073b83;hb=0f5a244a8e8f8fa680dccafca44ccc9fedb387a8;hp=c9cd4cc89e7765d7fa885b7c43b2dc688115ae54;hpb=38217811ad89debdb195c12f6c059f265fe6d5cd;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/rendering/text-typesetter.h b/dali-toolkit/internal/text/rendering/text-typesetter.h index c9cd4cc..ee57e29 100644 --- a/dali-toolkit/internal/text/rendering/text-typesetter.h +++ b/dali-toolkit/internal/text/rendering/text-typesetter.h @@ -123,7 +123,7 @@ private: Typesetter& operator=(const Typesetter& handle); /** - * @brief Create the image buffer for the given range of the glyphs in the given style. + * @brief Create & draw the image buffer for the given range of the glyphs in the given style. * * Does the following operations: * - Retrieves the data buffers from the text model. @@ -145,6 +145,19 @@ private: Devel::PixelBuffer CreateImageBuffer(const unsigned int bufferWidth, const unsigned int bufferHeight, Typesetter::Style style, bool ignoreHorizontalAlignment, Pixel::Format pixelFormat, int horizontalOffset, int verticalOffset, TextAbstraction::GlyphIndex fromGlyphIndex, TextAbstraction::GlyphIndex toGlyphIndex); /** + * @brief Create an initialized image buffer. + * + * Creates the pixel data used to generate the final image with the given size. + * + * @param[in] bufferWidth The width of the image buffer. + * @param[in] bufferHeight The height of the image buffer. + * @param[in] pixelFormat The format of the pixel in the image that the text is rendered as (i.e. either Pixel::BGRA8888 or Pixel::L8). + * + * @return An image buffer. + */ + Devel::PixelBuffer CreateImageBuffer(const unsigned int bufferWidth, const unsigned int bufferHeight, Pixel::Format pixelFormat); + + /** * @brief Combine the two RGBA image buffers together. * * The top layer buffer will blend over the bottom layer buffer: