ui.h

来自「pixil 最新的嵌入linux 應用程序集,別的地方很難下載」· C头文件 代码 · 共 59 行

H
59
字号
#ifndef X11_UI_H#define X11_UI_H#include "Picture.h"#include "MCursor.h"class UI{    XtIntervalId timer;    int playing;    Picture icon;    void get_coords(Position * x, Position * y);    MCursor defaultcursor, downcursor;    GC stdgc, whitegc;  public:      UI()    {	playing = 0;	timer = (XtIntervalId) 0;    }    Display *display;    XtAppContext app;    Drawable window, rootwindow;    Colormap colormap;    int depth;    XColor white, black;    Pixmap offscreen;    void restart_timer();    void kill_timer();    void pause_game();    void resume_game();    void initialize(int *argc, char **argv);    void make_mainwin();    void make_windows();    void popup_dialog(int dialog);    void set_cursor(int cursor);    void load_cursors();    void graph_init();    void clear();    void refresh();    void draw(Picture picture, int x, int y);    void draw_centered(Picture picture);    void draw_line(int x1, int y1, int x2, int y2);    void draw_str(char *str, int x, int y);    void set_pausebutton(int action);    void MainLoop();    void update_scorebox(int level, int score);    void update_hsbox(char *str);};#endif

⌨️ 快捷键说明

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