⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xt.4

📁 Object-Oriented Programming With ANSI-C这本书中的源代码!找了很久
💻 4
字号:
.\"	Xt.4 -- 1.2 Sep 30 06:44:32 1993.\"	Copyright (c) 1993 Axel T. Schreiner.TH Xt 4 "local: ats".SH NAME\f3Class  Xt: Object\fP \(em input/output objects for X11.SH SYNOPSIS.nfObjct    \f3Xt\fP        XawBox        XawCommand            XButton        XawForm        XawLabel            XLineOut        XtApplicationShell.sp .5.B new(Xt());.BI "new(XtApplicationShell(), & " argc ", " argv );\f3new(XawBox(), \f2parent\f3, "\f2name\f3");\f1\f3new(XawCommand(), \f2parent\f3, "\f2name\f3");\f1\f3new(XawForm(), \f2parent\f3, "\f2name\f3");\f1\f3new(XawLabel(), \f2parent\f3, "\f2name\f3");\f1\f3new(XButton(), \f2parent\f3, "\f2name\f3", "\f2label\f3");\f1\f3new(XLineOut(), \f2parent\f3, "\f2name\f3", "\f2label\f3");\f1.sp .5\f3void * makeWidget (\f2self\f3, WidgetClass \f2wc\f3, va_list * \f2app\f3)\f1.BI "void addAllAccelerators (" self )\f3void setLabel (\f2self\f3, const char * \f2label\f3)\f1\f3void addCallback (\f2self\f3, XtCallbackProc \f2fun\f3, XtPointer \f2data\f3)\f1.sp .5.BI "void mainLoop (" self ).fi.SH DESCRIPTIONAn.B Xtobject wraps a widget from the X toolkit..B makeWidget()is used to create and install the widget in the hierarchy;it takes a.I parent.B Xtobject and a widget.I namefrom the argument list pointer to which.I apppoints..B addAllAccelerators()is used to install the accelerators below the.B Xtobject..B setLabel()sets the.B labelresource..B addCallback()adds a callback function to the.B callbacklist..PPAn.B XtApplicationShellobject wraps an application shell widget from the X toolkit.When it is created,the shell widget is also createdand X toolkit options are removed from the main programargument list passed to.BR new() .The application main loop is.BR mainLoop() ..PP.BR XawBox ,.BR XawCommand ,.BR XawForm ,and.BR XawLabelobjects wrap the corresponding Athena widgets.When they are created,the widgets are also created..B setLabel()is accepted by.B XawCommandand.BR XawLabel .A callback function can be registered with an.B XawCommandobject by.BR addCallback() ..PPAn.B XButtonobject is a.B Buttonobject implemented with an.B XawCommandobject.It forwards.B wire()to its internal.B Buttonobject and it sets a callback to.B gate()to this buttonso that it sends its.I texton if.B notify()is executed, i.e., if the button is clicked.Accelerators can be used to arrange for other calls to.BR notify() ..PPAn.B XLineOutobject is a.B LineOutobject implemented with an.B XawLabelobject.It forwards.B gate()to itself to receive and display a string.If permitted by the parent widget,its widget will change its size according to the string..SH SEE ALSOEvent(4)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -