Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages | Examples

OpenGUI API & programers guide

version 0.9.6 ( for OpenGUI 5.2.0)

Copyright 1996-2005 Marian Krivos

LGPL License


Overview

Features:

The library consists of three layers. The first layer is a hand-coded and fast assembler kernel. This layer does the biggest piece of hard work. The second layer implements the API for drawing graphics primitives like lines, rectangles, circles etc. This layer is comparable to Borland BGI API. The third layer is written with C++ and offers a complete object set for the GUI developer. This layer implements objects like edit boxes, windows, buttons, menus, bitmaps etc, with addition of integrated mouse & keyboards support. To create a simple demonstration that draws on the screen a window captioned "HELLO WORLD", a button labelled "Finish" and shows a mouse pointer only, these few lines are required:

    #include <fastgl/fastgl.h>

    #ifdef FG_NAMESPACE
    using namespace fgl;
    #endif

    int main(int argc, char **argv )
    {
       FGApp MyApp(3,argc,argv,CDARK,APP_ENABLEALTX);
       FGWindow *MyWindow = new FGWindow(&MyWindow, 100, 100,200,100, "Window");
       MyWindow->set_fcolor(CRED);
       MyWindow->printf(54,15,"Hello World!\n");
       MyWindow->AddPushButton(60,45,80,21,"Exit app",'F', FGControl::Quit);
       MyApp.Run();
       return 0;
    }

Generated on Wed Feb 9 11:31:32 2005 for OpenGUI by  doxygen 1.4.0