text::RenderTask Class Reference

Render task definition for text plugin. The render task is responsible for rendering a specified page. More...

#include <text_tasks.h>

Inheritance diagram for text::RenderTask:
Inheritance graph
[legend]
Collaboration diagram for text::RenderTask:
Collaboration graph
[legend]

Public Member Functions

 RenderTask (unsigned int _id, TextView *_view, const Position &_pos, void *_user_data, unsigned char *_bmp)
 Constructors and destructors.
virtual ~RenderTask ()
virtual void execute ()
 Execute task with task context.

Detailed Description

Render task definition for text plugin. The render task is responsible for rendering a specified page.

Definition at line 119 of file text_tasks.h.


Constructor & Destructor Documentation

text::RenderTask::RenderTask ( unsigned int  _id,
TextView _view,
const Position _pos,
void *  _user_data,
unsigned char *  _bmp 
)

Constructors and destructors.

Definition at line 134 of file text_tasks.cpp.

00139 : id(_id)
00140 , text_view(_view)
00141 , start_pos(_pos)
00142 , user_data(_user_data)
00143 , bmp(_bmp)
00144 {
00145 }

text::RenderTask::~RenderTask (  )  [virtual]

Definition at line 147 of file text_tasks.cpp.

00148 {
00149 }


Member Function Documentation

void text::RenderTask::execute (  )  [virtual]

Execute task with task context.

Implements common::Task.

Definition at line 151 of file text_tasks.cpp.

References utils::Signal< A1, A2, A3, A4, A5 >::broadcast(), text::TextView::render(), and text::TextView::render_done_signal.

00152 {
00153     Position end_pos = text_view->render(bmp, start_pos);
00154 
00155     // Tell listener that render done.
00156     text_view->render_done_signal.broadcast(id, start_pos, end_pos, user_data);
00157 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208