class::draw::TextBox

class draw::TextBox
  : public TextAttr
  : public draw::Drawing

This class is a scrolling text box that can be used to show long text messages.

Members

TextBox()
int count_lines(

sg_size_t w
)

void dec_scroll()
virtual void draw_to_scale(

const DrawingScaledAttr & attr
)

void inc_scroll()
sg_size_t scroll() const
sg_size_t scroll_max() const
static int count_lines(

const sgfx::Font * font,
sg_size_t w,
const TextAttr & text_attr
)

Details

TextBox()

Construct a new text box


int count_lines(

sg_size_t w
)


void dec_scroll()

virtual void draw_to_scale(

const DrawingScaledAttr & attr
)

This methods draws the drawing on the specified attributes.

Parameters

  • attr Specifies the bitmap, point and area to draw the drawing

void inc_scroll()

sg_size_t scroll() const

Access the scroll value


sg_size_t scroll_max() const

Access the max scroll value


static int count_lines(

const sgfx::Font * font,
sg_size_t w,
const TextAttr & text_attr
)


X

Thanks for Coming!

Subscribe to news and updates