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

📄 label.cpp

📁 GNU/Linux程序开发指南书的所有例子源代码
💻 CPP
字号:
// Label.cpp//#include <X11/Intrinsic.h>#include <X11/StringDefs.h>#include <X11/Xaw/Label.h>#include "Label.hxx"Label::Label(char *label, int width, int height) {  my_label = label;  my_width = width;  my_height = height;}void Label::setup(Widget parent) {  Arg args[2];  XtSetArg(args[0], XtNwidth,  my_width);  XtSetArg(args[1], XtNheight, my_height);  my_widget = XtCreateManagedWidget(my_label, labelWidgetClass, parent,                                    args, 2);}

⌨️ 快捷键说明

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