~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to routines/xsci/wf_w_cursor.c

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * FIG : Facility for Interactive Generation of figures
 
3
 * Copyright (c) 1985 by Supoj Sutanthavibul
 
4
 *
 
5
 * "Permission to use, copy, modify, distribute, and sell this software and its
 
6
 * documentation for any purpose is hereby granted without fee, provided that
 
7
 * the above copyright notice appear in all copies and that both the copyright
 
8
 * notice and this permission notice appear in supporting documentation. 
 
9
 * No representations are made about the suitability of this software for 
 
10
 * any purpose.  It is provided "as is" without express or implied warranty."
 
11
 */
 
12
 
 
13
#include "wf_fig.h"
 
14
#include "wf_figx.h"
 
15
#include "wf_resources.h"
 
16
 
 
17
Cursor          cur_wf_cursor,arrow_wf_cursor, wait_wf_cursor;
 
18
 
 
19
void init_wf_cursor()
 
20
{
 
21
    register Display *d = tool_d;
 
22
    cur_wf_cursor               = arrow_wf_cursor;  /* current cursor */
 
23
    arrow_wf_cursor     = XCreateFontCursor(d, XC_left_ptr);
 
24
    wait_wf_cursor              = XCreateFontCursor(d, XC_watch);
 
25
}
 
26
 
 
27
void reset_wf_cursor()
 
28
{
 
29
    XDefineCursor(tool_d, tool_win, cur_wf_cursor);
 
30
}
 
31
 
 
32
void set_temp_wf_cursor(cursor)
 
33
    Cursor          cursor;
 
34
{
 
35
    XDefineCursor(tool_d, tool_win, cursor);
 
36
}
 
37
 
 
38
void set_wf_cursor(cursor)
 
39
    Cursor          cursor;
 
40
{
 
41
    cur_wf_cursor = cursor;
 
42
    XDefineCursor(tool_d, tool_win, cursor);
 
43
}
 
44
 
 
45