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
DALi C# binding - Write pure C# Color & Position classes and use typemaps to do the...
[platform/core/uifw/dali-toolkit.git]
/
plugins
/
dali-swig
/
examples
/
hello-world.cs
diff --git
a/plugins/dali-swig/examples/hello-world.cs
b/plugins/dali-swig/examples/hello-world.cs
index
7853ce3
..
df298cc
100755
(executable)
--- a/
plugins/dali-swig/examples/hello-world.cs
+++ b/
plugins/dali-swig/examples/hello-world.cs
@@
-18,6
+18,7
@@
using System;
using System.Runtime.InteropServices;
using Dali;
using System;
using System.Runtime.InteropServices;
using Dali;
+using Dali.CSharp;
namespace MyCSharpExample
{
namespace MyCSharpExample
{
@@
-38,14
+39,14
@@
namespace MyCSharpExample
{
Console.WriteLine("Customized Application Initialize event handler");
Stage stage = Stage.GetCurrent();
{
Console.WriteLine("Customized Application Initialize event handler");
Stage stage = Stage.GetCurrent();
- stage.BackgroundColor = new
Color("white"
);
+ stage.BackgroundColor = new
Dali.CSharp.Color(Dali.CSharp.Colors.Red
);
- stage.Touched += OnStageTouched;
+
stage.Touched += OnStageTouched;
// Add a _text label to the stage
_text = new TextLabel("Hello Mono World");
// Add a _text label to the stage
_text = new TextLabel("Hello Mono World");
- _text.ParentOrigin =
NDalic.ParentOriginCenter
;
- _text.AnchorPoint =
NDalic.AnchorPointCenter
;
+ _text.ParentOrigin =
new Position(NDalic.ParentOriginCenter)
;
+ _text.AnchorPoint =
new Position(NDalic.AnchorPointCenter)
;
_text.HorizontalAlignment = "CENTER";
_text.PointSize = 32.0f;
_text.HorizontalAlignment = "CENTER";
_text.PointSize = 32.0f;