?? text.cpp
字號:
// Text.cpp//#include <X11/Intrinsic.h>#include <X11/StringDefs.h>#include <X11/Xaw/AsciiText.h> #include "Text.hxx"Text::Text(int width, int height) { my_width = width; my_height = height;}void Text::setup(Widget parent) { Arg args[2]; XtSetArg(args[0], XtNwidth, my_width); XtSetArg(args[1], XtNheight, my_height); my_widget = XtVaCreateManagedWidget("text", asciiTextWidgetClass, parent, XtNtype, XawAsciiString, XtNstring, " ", args, 2, NULL);}char * Text::getText() { Widget w = getWidget(); String str; XtVaGetValues(w, XtNstring, &str, NULL); return str;}void Text::eraseText() { Widget w = getWidget(); XtVaSetValues(w, XtNstring, "", NULL);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -