Avoid overloading of a Windows API function making compilation fail under Windows
[scilab.git] / scilab / modules / scicos_blocks / src / c / scoSetProperty.c
1 /*  Scicos
2 *
3 *  Copyright (C) INRIA - METALAU Project <scicos@inria.fr>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 *
19 * See the file ./license.txt
20 */
21 /*--------------------------------------------------------------------------*/
22 /**
23 \file scoSetProperty.c
24 \author Benoit Bayol
25 \version 1.0
26 \date September 2006 - January 2007
27 \brief Source code of all Mutators for ScopeMemory structure
28 */
29 /*--------------------------------------------------------------------------*/
30 #include "scoSetProperty.h"
31 #include "HandleManagement.h"
32 /*--------------------------------------------------------------------------*/
33 void scoSetHandleShortDraw(ScopeMemory * pScopeMemory, int i,int j, long value)
34 {
35         pScopeMemory->hShortDraw[i][j] = value;
36 }
37 /*--------------------------------------------------------------------------*/
38 void scoSetHandleFromPointerAxes(ScopeMemory * pScopeMemory, int i, scoGraphicalObject value)
39 {
40         pScopeMemory->hAxes[i] = sciGetHandle(value);
41 }
42 /*--------------------------------------------------------------------------*/
43 void scoSetHandleFromPointerShortDraw(ScopeMemory * pScopeMemory, int i,int j, scoGraphicalObject value)
44 {
45         pScopeMemory->hShortDraw[i][j] = sciGetHandle(value);
46 }
47 /*--------------------------------------------------------------------------*/
48 void scoSetHandleLongDraw(ScopeMemory * pScopeMemory, int i,int j, long value)
49 {
50         pScopeMemory->hLongDraw[i][j] = value;
51 }
52 /*--------------------------------------------------------------------------*/
53 void scoSetHandleFromPointerLongDraw(ScopeMemory * pScopeMemory, int i,int j, scoGraphicalObject value)
54 {
55         pScopeMemory->hLongDraw[i][j] = sciGetHandle(value);
56 }
57 /*--------------------------------------------------------------------------*/
58 void scoSetHandleScopeWindow(ScopeMemory * pScopeMemory, long value)
59 {
60         pScopeMemory->hScopeWindow = value;
61 }
62 /*--------------------------------------------------------------------------*/
63 void scoSetHandleFromPointerScopeWindow(ScopeMemory * pScopeMemory, scoGraphicalObject value)
64 {
65         pScopeMemory->hScopeWindow = sciGetHandle(value);
66 }
67 /*--------------------------------------------------------------------------*/
68 void scoSetNewDraw(ScopeMemory * pScopeMemory, int i, int value)
69 {
70         pScopeMemory->new_draw[i] = value;
71 }
72 /*--------------------------------------------------------------------------*/
73 void scoSetPeriodCounter(ScopeMemory * pScopeMemory, int i, int value)
74 {
75         pScopeMemory->period_counter[i] = value;
76 }
77 /*--------------------------------------------------------------------------*/
78 void scoSetLongDrawSize(ScopeMemory * pScopeMemory, int i, int value)
79 {
80         pScopeMemory->longdraw_size[i] = value;
81 }
82 /*--------------------------------------------------------------------------*/
83 void scoSetHandleAxes(ScopeMemory * pScopeMemory, int i, long value)
84 {
85         pScopeMemory->hAxes[i] = value;
86 }
87 /*--------------------------------------------------------------------------*/
88 void scoSetNumberOfCurvesBySubwin(ScopeMemory * pScopeMemory, int i, int value)
89 {
90         pScopeMemory->number_of_curves_by_subwin[i] = value;
91 }
92 /*--------------------------------------------------------------------------*/
93 void scoSetNumberOfSubwin(ScopeMemory * pScopeMemory, int value)
94 {
95         pScopeMemory->number_of_subwin = value;
96 }
97 /*--------------------------------------------------------------------------*/
98 void scoSetWindowID(ScopeMemory * pScopeMemory, int value)
99 {
100         pScopeMemory->win_id = value;
101 }
102 /*--------------------------------------------------------------------------*/
103 void scoSetShortDrawSize(ScopeMemory * pScopeMemory, int i,int value)
104 {
105         pScopeMemory->shortdraw_size[i] = value;
106 }
107 /*--------------------------------------------------------------------------*/
108 void scoSetPeriod(ScopeMemory * pScopeMemory, int i,double value)
109 {
110         pScopeMemory->period[i] = value;
111 }
112 /*--------------------------------------------------------------------------*/
113 void scoSetScopeActivation(ScopeMemory * pScopeMemory, int status)
114 {
115         pScopeMemory->activated = status;
116 }
117 /*--------------------------------------------------------------------------*/