RTPEG-32 is an event-driven, object-oriented C++ GUI library for embedded systems. It supports implementing professional Windows 95 or custom look-and-feel user interfaces. Device drivers for VGA and SVGA/VESA graphics hardware are included. |
|
| Using RTPEG-32 is very simple. Program Window Builder can
be used to automatically generate source code for complex user interface
objects. Using predefined or custom controls and windows is a snap, as
shown by the "Hello RTPEG-32" demo program below:
|
#include <peg.hpp>
int main(void)
{
PegPresentationManager * pPresent;
PegMessageWindow * pWin;
pPresent = PegInitialize(CreatePegScreen_VESA_8(),
sizeof(class PegScreen));
pWin = new PegMessageWindow("Example Message Window",
"This is a message window with a raised frame.",
MW_OK | MW_CANCEL | MW_RETRY | FF_RAISED);
pPresent->Center(pWin);
pPresent->Add(pWin);
PegExecute(pPresent);
return 0;
}
|
|
The program displays this message box:
|
RTPEG-32 comes with many graphical user interface objects
which are all easily customizable through their constructors or by using
them as base classes for application specific objects. Below is a list of
all available window, control, chart, dial, etc. classes. The On Time
RTOS-32 Evaluation Kit contains examples using many of these classes. The
included documentation contains sample pictures of each window or control.
|
| Below are a few screen shots of some of the more complex
GUI objects shipped with RTPEG-32. Most of these displays have been
produced with only a few lines of code. The complete code of these
examples is included in the RTPEG-32 documentation.
|
Back to On-Time Main Page | Back to Testech Home Page | Compiler | RTOS | Emulator/Debugging