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
Combined Stage and Window class, and removed Stage class
[platform/core/uifw/dali-toolkit.git]
/
plugins
/
dali-sharp
/
examples
/
hello-world.cs
diff --git
a/plugins/dali-sharp/examples/hello-world.cs
b/plugins/dali-sharp/examples/hello-world.cs
index
1daf6a0
..
4f2667c
100755
(executable)
--- a/
plugins/dali-sharp/examples/hello-world.cs
+++ b/
plugins/dali-sharp/examples/hello-world.cs
@@
-27,7
+27,7
@@
namespace MyCSharpExample
private Dali.Application _application;
private Animation _animation;
private TextLabel _text;
private Dali.Application _application;
private Animation _animation;
private TextLabel _text;
- private
Stage _stage
;
+ private
Window _window
;
public Example(Dali.Application application)
{
public Example(Dali.Application application)
{
@@
-38,9
+38,9
@@
namespace MyCSharpExample
public void Initialize(object source, NUIApplicationInitEventArgs e)
{
Console.WriteLine("Customized Application Initialize event handler");
public void Initialize(object source, NUIApplicationInitEventArgs e)
{
Console.WriteLine("Customized Application Initialize event handler");
- _
stage = Stage
.Instance;
- _
stage
.BackgroundColor = Color.White;
- _
stage.Touch += OnStage
Touched;
+ _
window = Window
.Instance;
+ _
window
.BackgroundColor = Color.White;
+ _
window.Touch += OnWindow
Touched;
// 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");
@@
-49,7
+49,7
@@
namespace MyCSharpExample
_text.HorizontalAlignment = "CENTER";
_text.PointSize = 32.0f;
_text.TextColor = Color.Magenta;
_text.HorizontalAlignment = "CENTER";
_text.PointSize = 32.0f;
_text.TextColor = Color.Magenta;
- _
stage
.Add(_text);
+ _
window
.Add(_text);
_animation = new Animation
{
_animation = new Animation
{
@@
-95,8
+95,8
@@
namespace MyCSharpExample
}
}
}
}
- // Callback for
stage
touched signal handling
- public void On
StageTouched(object sender, Stage
.TouchEventArgs e)
+ // Callback for
window
touched signal handling
+ public void On
WindowTouched(object sender, Window
.TouchEventArgs e)
{
// Only animate the _text label when touch down happens
if (e.Touch.GetState(0) == PointStateType.DOWN)
{
// Only animate the _text label when touch down happens
if (e.Touch.GetState(0) == PointStateType.DOWN)