00001 /* 00002 * This file is part of liberscribble. 00003 * 00004 * liberscribble is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * liberscribble is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00023 #ifndef SCBPOINT_H_ 00024 #define SCBPOINT_H_ 00025 00026 #ifdef __cplusplus 00027 extern "C" 00028 { 00029 #endif 00030 00031 // the point defined here is same with X11 and GDK 00032 // we also have another struct dev point, which contains pressure info 00033 // ScbPoint is used when scribble library needs to expose data to gdk/X11 00034 typedef struct _ScbPoint 00035 { 00036 int x; 00037 int y; 00038 }ScbPoint; 00039 typedef ScbPoint * ScbPointPtr; 00040 00041 // device point with pressure. Serves as input parameter 00042 typedef struct _ScbDevPoint 00043 { 00044 int x; 00045 int y; 00046 int pressure; 00047 }ScbDevPoint; 00048 typedef ScbDevPoint * ScbDevPointPtr; 00049 00050 // read point data from string. replaced by other function 00051 // int scb_point_read(ScbPointPtr p, const char * buf, const int length); 00052 00053 // write point data into string. replaced by other function 00054 // int scb_point_write(const ScbPointPtr p, char * buf, const int length); 00055 00056 // dump 00057 void scb_point_dump(const ScbPointPtr p); 00058 00059 00060 #ifdef __cplusplus 00061 } 00062 #endif 00063 00064 #endif
1.5.6