📄 test1.c
字号:
#include <stdio.h>#include <Xm/Xm.h>#include <Xm/DrawingA.h>intmain(int argc, char **argv){ XtAppContext theApp; Widget toplevel, drawingArea; toplevel = XtVaAppInitialize(&theApp, "drawingArea", NULL, 0, &argc, argv, NULL, NULL); drawingArea= XtVaCreateManagedWidget("drawingArea", xmDrawingAreaWidgetClass, toplevel, NULL); XtRealizeWidget(toplevel); {static XtWidgetGeometry Expected[] = { CWWidth | CWHeight , 506, 322, 1, 1, 0,0,0, /* drawingArea */};/* toplevel should be replaced with to correct applicationShell */PrintDetails(toplevel, Expected);} LessTifTestMainLoop(toplevel); XtAppMainLoop(theApp); exit(0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -