#include #include #include #include #include #include #include #include #include Widget Ggraf, Gfeedback; int main(int argc, char **argv) { XtAppContext app_context; Widget GtopLevel = XtVaAppInitialize(&app_context, "X11ODTest", NULL,0, &argc,argv, NULL, NULL); #if 1 XmFontList* fontTable[4]; XtVaGetValues(GtopLevel, XmNtextFontList, &fontTable[0], XmNtextFontList, &fontTable[1], XmNbuttonFontList, &fontTable[2], XmNbuttonFontList, &fontTable[3], 0); std::cout << "Ptr: " << (void*)fontTable[0] << " " << (void*)fontTable[1] << " " << (void*)fontTable[2] << " " << (void*)fontTable[3] << std::endl; #endif Widget Gwindow = XtVaCreateManagedWidget( "Gwindow", xmFormWidgetClass, GtopLevel, NULL); Widget Gbutton = XtVaCreateManagedWidget( "Gbutton", xmPushButtonGadgetClass, Gwindow, XmNtopAttachment,XmATTACH_FORM, XmNleftAttachment,XmATTACH_FORM, NULL); #ifdef DUMP Widget GcopyButton = XtVaCreateManagedWidget( "GcopyButton", xmPushButtonGadgetClass, Gwindow, XmNtopAttachment,XmATTACH_FORM, XmNleftAttachment,XmATTACH_WIDGET, XmNleftWidget, Gbutton, NULL); #endif XtRealizeWidget(GtopLevel); XtAppMainLoop(app_context); return 1; }