tickit_renderbuffer_new - Man Page
create a new render buffer instance
Synopsis
#include <tickit.h> TickitRenderBuffer *tickit_renderbuffer_new(int lines, int cols);
Link with -ltickit.
Description
tickit_renderbuffer_new() creates a new TickitRenderBuffer instance of the given size. Once constructed, the size is fixed. Initially it has a clipping region covering the entire area, a zero translation offset, no applied masks, no stored pen and no virtual cursor position. It can be reset back to this state at any time by calling tickit_renderbuffer_reset(3).
The reference count of a newly-constructed render buffer instance will be one. This can be incremented or decremented using tickit_renderbuffer_ref(3) and tickit_renderbuffer_unref(3). When its reference count reaches zero it is destroyed.
Return Value
If successful, tickit_renderbuffer_new() returns a pointer to the new instance.
See Also
tickit_renderbuffer_text(3), tickit_renderbuffer_blit(3), tickit_renderbuffer_flush_to_term(3), tickit_renderbuffer(7), tickit(7)
Referenced By
tickit_renderbuffer(7), tickit_renderbuffer_blit(3), tickit_renderbuffer_char(3), tickit_renderbuffer_clip(3), tickit_renderbuffer_copyrect(3), tickit_renderbuffer_erase(3), tickit_renderbuffer_eraserect(3), tickit_renderbuffer_flush_to_term(3), tickit_renderbuffer_get_cursorpos(3), tickit_renderbuffer_get_size(3), tickit_renderbuffer_goto(3), tickit_renderbuffer_hline_at(3), tickit_renderbuffer_ref(3), tickit_renderbuffer_reset(3), tickit_renderbuffer_save(3), tickit_renderbuffer_setpen(3), tickit_renderbuffer_skip(3), tickit_renderbuffer_text(3), tickit_renderbuffer_translate(3).