summaryrefslogtreecommitdiff
path: root/modules/graphics/includes/SetProperty.h
blob: e7febb2e78dd4ca286e67dc6467c89431f0f3e9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) 2001 - 2002 - INRIA - Matthhieu Philippe
 * Copyright (C) 2002 - 2004 - INRIA - Djalel Abdemouche
 * Copyright (C) 2004 - 2006 - INRIA - Fabrice Leray
 * Copyright (C) 2005 - INRIA - Jean-Baptiste Silvy
 * Copyright (C) 2010 - Paul Griffiths
 * Copyright (C) 2011 - DIGITEO - Bruno JOFRET
 *
 * This file must be used under the terms of the CeCILL.
 * This source file is licensed as described in the file COPYING, which
 * you should have received as part of this distribution.  The terms
 * are also available at
 * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
 *
 */

/*------------------------------------------------------------------------
 *    Graphic library
 *    -This file contains all functions used to SET the properties of graphics
 *    objects.
 *    - there are two kinds of functions : the sciInit*** which only set an object
 *      property and sciSet*** which do the same work but check before if it is
 *      necessary to do so.
 *    - The returning status of each functions is as follow :
 *      0 for correct execution, 1 if no change was made
 *      and -1 if an error occurred.
 --------------------------------------------------------------------------*/


#ifndef __SCI_SET_PROPERTY__
#define __SCI_SET_PROPERTY__

#include "dynlib_graphics.h"
#include "BOOL.h"

GRAPHICS_IMPEXP int sciSetLineWidth (int iObj, double linewidth) ;  /* SET */

GRAPHICS_IMPEXP int sciSetLineStyle (int iObj, int linestyle) ; /* SET */

GRAPHICS_IMPEXP int sciSetMarkSize (int iObj, int marksize); /* SET */

/* Text Functions */
GRAPHICS_IMPEXP int sciSetText (int iObj, char ** text, int nbRow, int nbCol) ; /* SET */

/* GMODE */
GRAPHICS_IMPEXP int sciSetDefaultValues (void); /* SET */


/* Window Functions */
GRAPHICS_IMPEXP int sciSetSelectedSubWin (int iSubwinobj); /* SET */

GRAPHICS_IMPEXP int sciSetPoint(int iObj, double *tab, int *numrow, int *numcol); /* SET */

GRAPHICS_IMPEXP BOOL sciCheckColorIndex(int iObj, int colorIndex);

GRAPHICS_IMPEXP int sciSetMarkOffset(int iObjUID, int offset);

GRAPHICS_IMPEXP int sciSetMarkStride(int iObjUID, int stride);

/*---------------------------------------------------------------------------*/

#endif /* __SCI_SET_PROPERTY__ */