Back to index

nux  3.0.0
test_graphics_display.cpp File Reference
#include <iostream>
#include "Nux/Nux.h"
#include "Nux/VLayout.h"
#include "Nux/WindowThread.h"

Go to the source code of this file.


void ThreadWidgetInit (nux::NThread *thread, void *InitData)
int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 

Definition at line 33 of file test_graphics_display.cpp.

    // When the GUI thread is created, it creates the GraphicsDisplay.
    nux::WindowThread* wt = nux::CreateGUIThread(TEXT("Graphics Display"),
                                                 300, 200, 0, &ThreadWidgetInit, 0);

    // Test to see if the variable in GraphicsDisplay is initialized
    int result = 1;
    if (!nux::GetGraphicsDisplay()->PointerIsGrabbed())
      // Zero return code is good.
      result = 0;
      std::cerr << "FAIL: GraphicsDisplay hasn't correctly initialized.\n";

    delete wt;
    return result;

Here is the call graph for this function:

void ThreadWidgetInit ( nux::NThread thread,
void *  InitData 

Definition at line 27 of file test_graphics_display.cpp.

Here is the call graph for this function: