Hasty Badger
Small UI library (a branch of Turbo Badger)
|
Creates TBTextFragmentContent if the sequence of text matches known content. More...
#include <tb_style_edit.h>
Public Member Functions | |
virtual int | GetContent (const char *text) |
Should return then length of the text that represents content that can be created by this factory, or 0 there's no match with any content. More... | |
virtual TBTextFragmentContent * | CreateFragmentContent (const char *text, int text_len) |
Create content for a string previosly consumed by calling GetContent. More... | |
Creates TBTextFragmentContent if the sequence of text matches known content.
|
virtual |
Create content for a string previosly consumed by calling GetContent.
Reimplemented in tb::TBEditFieldContentFactory.
|
virtual |
Should return then length of the text that represents content that can be created by this factory, or 0 there's no match with any content.
F.ex if we can create contet for "<u>" it should return 3 if that is the beginning of text. That length will be consumed from the text output for the created content.
Reimplemented in tb::TBEditFieldContentFactory.