home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / desklib / examples / DeskLib / Examples / Widget5 / !Widget5 / h / Misc < prev    next >
Encoding:
Text File  |  1995-05-02  |  1.5 KB  |  46 lines

  1. /************************************************************************
  2.  *                                                                      *
  3.  *        File: Misc.c                                                  *
  4.  *                                                                      *
  5.  *     Purpose: Provides miscellanous routines used by more than one    *
  6.  *              file in the program                                     *
  7.  *                                                                      *
  8.  ************************************************************************/
  9.  
  10. extern void inc_icon(window_handle window, icon_handle icon, int upperlimit);
  11. extern void dec_icon(window_handle window, icon_handle icon, int lowerlimit);
  12.  
  13.  /*
  14.   * set filetype of icon
  15.   */
  16. extern void Icon_SetFileType(window_handle window, icon_handle icon, int filetype);
  17.  
  18.  /*
  19.   * returns filetype or -1 if object not found
  20.   */
  21. extern void Popup_menu(window_handle window, icon_handle icon, menu_ptr menu);
  22.  
  23.  /*
  24.   * reads system variable into buffer and returns TRUE
  25.   * if variable found
  26.   */
  27. extern BOOL OS_ReadVarVal(char *varname, char *buffer, int bufflen);
  28.  
  29.  /*
  30.   * makes the entry in the menu send a menuwarn message or not
  31.   * as yesno
  32.   */
  33. extern void Menu_MakeWarn(menu_ptr menu, int entry, BOOL yesno);
  34.  
  35.  /*
  36.   * gets the current position of the topleft corner of the window
  37.   */
  38. extern void Window_GetPos(window_handle window, wimp_point *pos);
  39.  
  40.  /*
  41.   * Shows the window in the position openpos
  42.   */
  43. extern void Window_ShowPos(window_handle window, wimp_point *openpos);
  44.  
  45.  
  46.