Hasty Badger
Small UI library (a branch of Turbo Badger)
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
tb::TBTextFragmentContentFactory Class Reference

Creates TBTextFragmentContent if the sequence of text matches known content. More...

#include <tb_style_edit.h>

Inheritance diagram for tb::TBTextFragmentContentFactory:
tb::TBEditFieldContentFactory

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 TBTextFragmentContentCreateFragmentContent (const char *text, int text_len)
 Create content for a string previosly consumed by calling GetContent. More...
 

Detailed Description

Creates TBTextFragmentContent if the sequence of text matches known content.

Member Function Documentation

TBTextFragmentContent * tb::TBTextFragmentContentFactory::CreateFragmentContent ( const char *  text,
int  text_len 
)
virtual

Create content for a string previosly consumed by calling GetContent.

Reimplemented in tb::TBEditFieldContentFactory.

int tb::TBTextFragmentContentFactory::GetContent ( const char *  text)
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.


The documentation for this class was generated from the following files: