blob: 99b38dbcd8e090dfc1349c071896c1670f80d41a (
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) 2011-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
*
*/
#include "ScilabView.hxx"
extern "C"
{
#include <string.h>
#include "getGraphicObjectProperty.h"
#include "setGraphicObjectProperty.h"
#include "graphicObjectProperties.h"
#include "BOOL.h"
#include "CurrentObject.h"
}
int getCurrentObject(void)
{
return ScilabView::getCurrentObject();
}
void setCurrentObject(int UID)
{
ScilabView::setCurrentObject(UID);
}
BOOL isCurrentObject(int UID)
{
if (UID == ScilabView::getCurrentObject())
{
return TRUE;
}
return FALSE;
}
int getParentObject(int iUID)
{
int iParent = 0;
int* piParent = &iParent;
if (iUID == 0)
{
return 0;
}
getGraphicObjectProperty(iUID, __GO_PARENT__, jni_int, (void**)&piParent);
return iParent;
}
void setParentObject(int iUID, int iParent)
{
setGraphicObjectProperty(iUID, __GO_PARENT__, &iParent, jni_int, 1);
return;
}
|