Drawing area for the sequential images.
More...
#include <RL_ImageFrame.hpp>
List of all members.
Public Member Functions |
| RL_ImageFrame (BaseObjectType *cobject, const Glib::RefPtr< Gnome::Glade::Xml > &refGlade) |
| The constructor called from glade. This constructor is needed for the derived widgets.
|
| RL_ImageFrame () |
| The constructor for RL_ImageFrame.
|
virtual | ~RL_ImageFrame () |
| The deconstructor for RL_ImageFrame.
|
void | Initialize (unsigned int width, unsigned int height) |
| Initialization procedure for RL_ImageFrame the frames must be initialized. The initialization can be only done once.
|
void | SetFlip (bool set) |
| Set the frame to rotate 180 degrees.
|
bool | UpdateBuffer (unsigned char *data) |
| Update the image buffer for the display.
|
Protected Member Functions |
bool | ExposeEvent (GdkEventExpose *e) |
| Called by main Gtk Thread.
|
bool | Timeout () |
| Forces the image widget to redraw itself.
|
Protected Attributes |
guint8 * | buf |
Glib::RefPtr< Gdk::Pixbuf > | pixbuf |
Gtk::Container * | parent |
Detailed Description
Drawing area for the sequential images.
Constructor & Destructor Documentation
RL_ImageFrame::RL_ImageFrame |
( |
BaseObjectType * |
cobject, |
|
|
const Glib::RefPtr< Gnome::Glade::Xml > & |
refGlade |
|
) |
| |
The constructor called from glade. This constructor is needed for the derived widgets.
- Parameters:
-
BaseObjectType* | cobject - used by glade |
Glib::RefPtr<Gtk::Builder>& | refGlade - used by glade |
Member Function Documentation
bool RL_ImageFrame::ExposeEvent |
( |
GdkEventExpose * |
e ) |
[protected] |
Called by main Gtk Thread.
- Parameters:
-
GdkEventExpose* | e - Expose event from GDK |
- Returns:
- true
void RL_ImageFrame::Initialize |
( |
unsigned int |
width, |
|
|
unsigned int |
height |
|
) |
| |
Initialization procedure for RL_ImageFrame the frames must be initialized. The initialization can be only done once.
- Parameters:
-
unsigned | int width - width |
unsigned | int height - height |
void RL_ImageFrame::SetFlip |
( |
bool |
set ) |
|
Set the frame to rotate 180 degrees.
- Parameters:
-
bool | set - true if rotate the frame 180 degree, otherwise false. |
bool RL_ImageFrame::Timeout |
( |
) |
[protected] |
Forces the image widget to redraw itself.
- Returns:
- true
bool RL_ImageFrame::UpdateBuffer |
( |
unsigned char * |
data ) |
|
Update the image buffer for the display.
- Parameters:
-
unsigned | char* data - new image frame |
- Returns:
- bool - returns false if the widget is not initialized
Member Data Documentation
Pointer to the parent widget
Pixbuf object used to create new pixbuf when there is a new buffer to draw
The documentation for this class was generated from the following files: