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

Content for a non-text TBTextFragment. More...

#include <tb_style_edit_content.h>

Inheritance diagram for tb::TBTextFragmentContent:
tb::TBTextFragmentContentHR tb::TBTextFragmentContentStylePop tb::TBTextFragmentContentSubscript tb::TBTextFragmentContentSuperscript tb::TBTextFragmentContentTextColor tb::TBTextFragmentContentTextSize tb::TBTextFragmentContentUnderline tb::TBTextFragmentContentWidget

Public Member Functions

virtual void UpdatePos (int, int)
 Update the position of the content, relative to the first line of text (no scrolling applied). More...
 
virtual void Paint (TBTextFragment *, int32_t, int32_t, TBTextProps *)
 
virtual void Click (TBTextFragment *, int, uint32_t)
 
virtual int32_t GetWidth (TBFontFace *, TBTextFragment *)
 
virtual int32_t GetHeight (TBFontFace *, TBTextFragment *)
 
virtual int32_t GetBaseline (TBFontFace *font, TBTextFragment *fragment)
 
virtual bool GetAllowBreakBefore ()
 
virtual bool GetAllowBreakAfter ()
 
virtual uint32_t GetType ()
 Get type of fragment content. More...
 

Detailed Description

Content for a non-text TBTextFragment.

Member Function Documentation

virtual uint32_t tb::TBTextFragmentContent::GetType ( )
inlinevirtual

Get type of fragment content.

All standard fragments return 0.

virtual void tb::TBTextFragmentContent::UpdatePos ( int  ,
int   
)
inlinevirtual

Update the position of the content, relative to the first line of text (no scrolling applied).

Reimplemented in tb::TBTextFragmentContentWidget.


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