home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / gcc / !GCC / patches / DeskLib / h / DragASpr < prev    next >
Encoding:
Text File  |  1994-10-03  |  1.4 KB  |  48 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    DragASpr.h
  12.     Author:  Copyright © 1992 Shaun Blackmore and Jason Williams
  13.     Version: 1.01 (30 Apr 1992)
  14.     Purpose: Function veneers for DragASpr SWIs
  15. */
  16.  
  17. #ifndef __dl_dragaspr_h
  18. #define __dl_dragaspr_h
  19.  
  20. #ifndef __dl_wimp_h
  21. #include "wimp.h"
  22. #endif
  23.  
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27.  
  28. extern os_error *DragASprite_Start(int flags, void *spritearea, char *name,
  29.                                    wimp_rect *bound, wimp_rect *parent);
  30.  
  31. extern os_error *DragASprite_Stop(void);
  32.  
  33. /*
  34.  *  DragASprite_DragIcon(window, icon)
  35.  *
  36.  *  This is a simple interface for DragASpr. Simply call it when you want
  37.  *  to start a drag operation of a sprite icon, and it starts a dragasprite
  38.  *  drag IF POSSIBLE, or a normal Wimp_DragBox if not (i.e. this is a
  39.  *  RISC OS 2 compatible call)
  40.  */
  41. extern os_error *DragASprite_DragIcon(window_handle window, icon_handle icon);
  42.  
  43. #ifdef __cplusplus
  44.            }
  45. #endif
  46.  
  47. #endif
  48.