6 #ifndef TB_STYLE_EDIT_CONTENT_H
7 #define TB_STYLE_EDIT_CONTENT_H
26 virtual void Click(TBTextFragment * ,
int , uint32_t ) {}
27 virtual int32_t GetWidth(TBFontFace * , TBTextFragment * ) {
return 0; }
28 virtual int32_t GetHeight(TBFontFace * , TBTextFragment * ) {
return 0; }
29 virtual int32_t GetBaseline(TBFontFace * font, TBTextFragment * fragment) {
return GetHeight(font, fragment); }
30 virtual bool GetAllowBreakBefore() {
return true; }
31 virtual bool GetAllowBreakAfter() {
return true; }
48 int32_t width_in_percent, height;
58 virtual bool GetAllowBreakBefore() {
return true; }
59 virtual bool GetAllowBreakAfter() {
return false; }
70 virtual bool GetAllowBreakBefore() {
return true; }
71 virtual bool GetAllowBreakAfter() {
return false; }
83 virtual bool GetAllowBreakBefore() {
return true; }
84 virtual bool GetAllowBreakAfter() {
return false; }
115 virtual bool GetAllowBreakBefore() {
return false; }
116 virtual bool GetAllowBreakAfter() {
return true; }
121 #endif // TB_STYLE_EDIT_CONTENT_H
A horizontal line for TBStyleEdit.
Definition: tb_style_edit_content.h:39
Fragment content that changes size in a TBStyleEdit.
Definition: tb_style_edit_content.h:100
Fragment content that changes size in a TBStyleEdit.
Definition: tb_style_edit_content.h:89
Content for a non-text TBTextFragment.
Definition: tb_style_edit_content.h:17
TBFontFace represents a loaded font that can measure and render strings.
Definition: tb_font_renderer.h:142
TBTextProps is a stack of properties used during layout & paint of TBStyleEdit.
Definition: tb_style_edit.h:146
Fragment content that enables underline in a TBStyleEdit.
Definition: tb_style_edit_content.h:53
Fragment content that changes color in a TBStyleEdit.
Definition: tb_style_edit_content.h:64
The textfragment baseclass for TBStyleEdit.
Definition: tb_style_edit.h:265
TBColor contains a 32bit color.
Definition: tb_color.h:21
virtual void UpdatePos(int, int)
Update the position of the content, relative to the first line of text (no scrolling applied)...
Definition: tb_style_edit_content.h:23
Fragment content that ends a change of style in a TBStyleEdit.
Definition: tb_style_edit_content.h:111
Fragment content that changes size in a TBStyleEdit.
Definition: tb_style_edit_content.h:76
virtual uint32_t GetType()
Get type of fragment content.
Definition: tb_style_edit_content.h:34