projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(C#) Changed Rectangle to have float properties
[platform/core/uifw/dali-toolkit.git]
/
plugins
/
dali-swig
/
SWIG
/
events
/
rectangle.i
diff --git
a/plugins/dali-swig/SWIG/events/rectangle.i
b/plugins/dali-swig/SWIG/events/rectangle.i
index
b9e9c95
..
0d7f7b7
100644
(file)
--- a/
plugins/dali-swig/SWIG/events/rectangle.i
+++ b/
plugins/dali-swig/SWIG/events/rectangle.i
@@
-25,6
+25,10
@@
%define DALI_RECTANGLE_PROPERTY_PARAM(NameSpace,ClassName)
%typemap(cscode) NameSpace::ClassName %{
%define DALI_RECTANGLE_PROPERTY_PARAM(NameSpace,ClassName)
%typemap(cscode) NameSpace::ClassName %{
+ public Rectangle(float x, float y, float width, float height) : this( (int)x, (int)y, (int)width, (int)height )
+ {
+ }
+
public static bool operator ==(Rectangle a, Rectangle b)
{
// If both are null, or both are same instance, return true.
public static bool operator ==(Rectangle a, Rectangle b)
{
// If both are null, or both are same instance, return true.
@@
-48,12
+52,12
@@
return !(a == b);
}
return !(a == b);
}
- ///< X position of the rectangle
- public
in
t X
+ ///< X position of the rectangle
, values after the decimal point are ignored, float type provided for convenience.
+ public
floa
t X
{
set
{
{
set
{
- x =
value
;
+ x =
(int)( value )
;
}
get
{
}
get
{
@@
-61,12
+65,12
@@
}
}
}
}
- ///< Y position of the rectangle
- public
in
t Y
+ ///< Y position of the rectangle
, values after the decimal point are ignored, float type provided for convenience.
+ public
floa
t Y
{
set
{
{
set
{
- y =
value
;
+ y =
(int)( value )
;
}
get
{
}
get
{
@@
-74,12
+78,12
@@
}
}
}
}
- ///< Width of the rectangle
- public
in
t Width
+ ///< Width of the rectangle
, values after the decimal point are ignored, float type provided for convenience.
+ public
floa
t Width
{
set
{
{
set
{
- width =
value
;
+ width =
(int)( value )
;
}
get
{
}
get
{
@@
-87,12
+91,12
@@
}
}
}
}
- ///< Height of the rectangle
- public
in
t Height
+ ///< Height of the rectangle
, values after the decimal point are ignored, float type provided for convenience.
+ public
floa
t Height
{
set
{
{
set
{
- height =
value
;
+ height =
(int)( value )
;
}
get
{
}
get
{