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

📄 modified-graphics.h

📁 CMAC神经网络机械臂控制的设计matlab源码
💻 H
字号:
// header file for modified graphics file #include <stdlib.h>#include <stdio.h>#include <malloc.h>#include <string.h>#include <math.h>#include <iostream.h>#include <fstream.h>#include <X11/Xlib.h>//#include <X11/Xlibint.h>#include <X11/Xutil.h>#include <X11/Xos.h>#if !defined(_BASIC_GRAPHICS_)//  remember server, actual window, and graphics defaults #define FALSE 0typedef struct{  Display *disp;  Window win;  GC gcon;  unsigned long fg;} jwin;#endif#define _BASIC_GRAPHICS_//  function prototypes jwin *j_make_window (int width, int height, char *color,		     char *host, char *font, int expose);unsigned long find_color_val (char *name, jwin *w);void j_kill_window (jwin *w);void j_clear_window (jwin *w);void j_refresh_window (jwin *w);void j_name_window (jwin *w, char *title);void j_draw_line (int x1, int y1, int x2, int y2,		  unsigned long color, int thickness, int dashed, int xor,		  jwin *w);void j_draw_rectangle (int xlo, int ylo, int width, int height,		       unsigned long color, int thickness, int xor,		       jwin *w);void j_draw_circle (int xcent, int ycent, int radius,		    unsigned long color, int thickness, int xor,		    jwin *w);void j_draw_string (int xleft, int ybase, char *text,		    unsigned long color, jwin *w);int mouse_coords (int *x, int *y, int *button, jwin *w);int mouse_click (int *x, int *y, jwin *w);

⌨️ 快捷键说明

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