diff options
author | Ole Loots <ole@monochrom.net> | 2012-12-03 00:07:47 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-12-03 00:07:47 +0100 |
commit | 59e2775055ac4cd4a42b1ff510b1255e17afdfbb (patch) | |
tree | a5aa59d06b018bc3768085737c06f4a9462855ec /atari/misc.h | |
parent | e697603f12c73e11fe3b6a3cadf2f6ae3e22addc (diff) | |
download | netsurf-59e2775055ac4cd4a42b1ff510b1255e17afdfbb.tar.gz netsurf-59e2775055ac4cd4a42b1ff510b1255e17afdfbb.tar.bz2 |
Implemented basic mouse input to browser component (click).
Diffstat (limited to 'atari/misc.h')
-rwxr-xr-x | atari/misc.h | 81 |
1 files changed, 41 insertions, 40 deletions
diff --git a/atari/misc.h b/atari/misc.h index cab2a8cb7..b59f19dd7 100755 --- a/atari/misc.h +++ b/atari/misc.h @@ -1,22 +1,22 @@ -/*
- * Copyright 2010 Ole Loots <ole@monochrom.net>
- *
- * This file is part of NetSurf, http://www.netsurf-browser.org/
- *
- * NetSurf is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * NetSurf is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef NS_ATARI_MISC_H
+/* + * Copyright 2010 Ole Loots <ole@monochrom.net> + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * NetSurf is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * NetSurf is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef NS_ATARI_MISC_H #define NS_ATARI_MISC_H #include <windom.h> @@ -25,36 +25,37 @@ #include "content/hlcache.h" #include "desktop/textinput.h" #include "atari/gui.h" -
-#define SBUF8_TO_LBUF8(sbuf,lbuf)\
- lbuf[0] = (long)sbuf[0];\
- lbuf[1] = (long)sbuf[1];\
- lbuf[2] = (long)sbuf[2];\
- lbuf[3] = (long)sbuf[3];\
- lbuf[4] = (long)sbuf[4];\
- lbuf[5] = (long)sbuf[5];\
- lbuf[6] = (long)sbuf[6];\
- lbuf[7] = (long)sbuf[7];
-
+ +#define SBUF8_TO_LBUF8(sbuf,lbuf)\ + lbuf[0] = (long)sbuf[0];\ + lbuf[1] = (long)sbuf[1];\ + lbuf[2] = (long)sbuf[2];\ + lbuf[3] = (long)sbuf[3];\ + lbuf[4] = (long)sbuf[4];\ + lbuf[5] = (long)sbuf[5];\ + lbuf[6] = (long)sbuf[6];\ + lbuf[7] = (long)sbuf[7]; + /* Modes for find_gui_window: */ #define BY_WINDOM_HANDLE 0x0 #define BY_GEM_HANDLE 0x1 typedef int (*scan_process_callback)(int pid, void *data); -
-struct gui_window * find_guiwin_by_aes_handle(short handle);
-bool is_process_running(const char * name);
+ +struct gui_window * find_guiwin_by_aes_handle(short handle); +bool is_process_running(const char * name); void gem_set_cursor( MFORM_EX * cursor ); hlcache_handle *load_icon( const char *name, hlcache_handle_callback cb, - void * pw );
-void dbg_grect( char * str, GRECT * r ); -void dbg_lgrect( char * str, LGRECT * r );
-void dbg_pxy( char * str, short * pxy );
-void * ldg_open( char * name, short * global );
-void * ldg_find( char * name, short * ldg );
+ void * pw ); +void dbg_grect(const char * str, GRECT * r); +void dbg_lgrect( char * str, LGRECT * r); +void dbg_pxy(const char * str, short * pxy); +void dbg_rect(const char * str, int * pxy); +void * ldg_open( char * name, short * global ); +void * ldg_find( char * name, short * ldg ); const char * file_select( const char * title, const char * name ); int ldg_close( void * ldg, short * global ); long nkc_to_input_key(short nkc, long * ucs4_out); -#endif
+#endif |