Mouse 1.96 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* Copyright 1997 Acorn Computers Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/***************************************************/
/* File   : Mouse.h                                */
17
/*                                                 */
18
/* Purpose: Mouse pointer related functions for    */
19 20
/*          the browser.                           */
/*                                                 */
21
/* Author : A.D.Hodgkinson                         */
22 23
/*                                                 */
/* History: 14-Mar-97: Created.                    */
24 25 26 27
/***************************************************/

/* Shape definitions */

28 29 30 31 32 33 34 35 36 37
#define Mouse_Shape_Off       0
#define Mouse_Shape_Normal    1
#define Mouse_Shape_Link      2
#define Mouse_Shape_Map       3
#define Mouse_Shape_UD        4
#define Mouse_Shape_LR        5
#define Mouse_Shape_UDLR      6
#define Mouse_Shape_NoResize  7
#define Mouse_Shape_ToScroll  8
#define Mouse_Shape_Scrolling 9
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53

/* Function prototypes */

void   mouse_watch_pointer_control (int on);
int    mouse_watch_pointer         (int eventcode, WimpPollBlock * block, IdBlock * idb, void * handle);

void   mouse_pointer_on            (void);
void   mouse_pointer_off           (void);
void   mouse_force_unused          (void);

void   mouse_set_pointer_shape     (int shape);

int    mouse_pointer_is_on         (void);

void   mouse_to                    (int x, int y, int now);
BBox * mouse_rectangle             (BBox * rect, int now);