summaryrefslogtreecommitdiff
path: root/ElmSharp.Test
diff options
context:
space:
mode:
authorSeunghyun Choi <sh4682.choi@samsung.com>2017-05-17 13:26:12 +0900
committerSeunghyun Choi <sh4682.choi@samsung.com>2017-06-07 20:49:08 +0900
commitcda61ab3d138d0887d9e9479e90201a7b903097d (patch)
tree2252aa27af83f30416d6c7ecee84906322b75e30 /ElmSharp.Test
parent2e64ba1ee3b6ff540e792d6ac53c3fef7e35a46c (diff)
downloadelm-sharp-cda61ab3d138d0887d9e9479e90201a7b903097d.tar.gz
elm-sharp-cda61ab3d138d0887d9e9479e90201a7b903097d.tar.bz2
elm-sharp-cda61ab3d138d0887d9e9479e90201a7b903097d.zip
Enhance Background Widget
Change-Id: I199e612365e21b889c22de1ffec80a4b865cdfea Signed-off-by: Seunghyun Choi <sh4682.choi@samsung.com>
Diffstat (limited to 'ElmSharp.Test')
-rw-r--r--ElmSharp.Test/TC/BackgroundTest1.cs14
1 files changed, 9 insertions, 5 deletions
diff --git a/ElmSharp.Test/TC/BackgroundTest1.cs b/ElmSharp.Test/TC/BackgroundTest1.cs
index a9514d5..ed2a447 100644
--- a/ElmSharp.Test/TC/BackgroundTest1.cs
+++ b/ElmSharp.Test/TC/BackgroundTest1.cs
@@ -31,13 +31,17 @@ namespace ElmSharp.Test
Color = Color.Orange
};
- Background bg2 = new Background(window) {
- File = "/opt/home/owner/res/tizen.png",
- BackgroundOption = BackgroundOptions.Tile
+ Background bg2 = new Background(window)
+ {
+ File = "/home/owner/apps_rw/ElmSharpTest/res/picture.png",
+ BackgroundOption = BackgroundOptions.Center,
+ BackgroundColor = Color.Gray
};
+ bg2.SetFileLoadSize(50, 50);
+
Show(bg1, 0, 0, 100, 100);
- Show(bg2, 100, 100, 500, 500);
+ Show(bg2, 0, 100, 700, 700);
}
void Show(Background bg, int x, int y, int w, int h)
@@ -47,4 +51,4 @@ namespace ElmSharp.Test
bg.Resize(w, h);
}
}
-}
+} \ No newline at end of file