aboutsummaryrefslogtreecommitdiffstats
path: root/reference/csharp/ui/src/ui_sizing.cs
diff options
context:
space:
mode:
Diffstat (limited to 'reference/csharp/ui/src/ui_sizing.cs')
-rw-r--r--reference/csharp/ui/src/ui_sizing.cs24
1 files changed, 12 insertions, 12 deletions
diff --git a/reference/csharp/ui/src/ui_sizing.cs b/reference/csharp/ui/src/ui_sizing.cs
index b56cf482..dd6e5ffb 100644
--- a/reference/csharp/ui/src/ui_sizing.cs
+++ b/reference/csharp/ui/src/ui_sizing.cs
@@ -16,49 +16,49 @@ public class Example
public static void Main()
{
// Initialize EFL and all UI components
- efl.All.Init(efl.Components.Ui);
+ Efl.All.Init(Efl.Components.Ui);
// Create a window and initialize it
- efl.ui.IWin win = new efl.ui.Win(null, (efl.ui.IWin ewin) => {
- ewin.SetWinType(efl.ui.Win_Type.Basic);
+ Efl.Ui.Win win = new Efl.Ui.Win(null, (Efl.Ui.Win ewin) => {
+ ewin.SetWinType(Efl.Ui.WinType.Basic);
ewin.SetText("Size Control");
ewin.SetAutohide(true);
ewin.HideEvt += (object sender, EventArgs e) => {
// Exit the EFL main loop
- efl.ui.Config.Exit();
+ Efl.Ui.Config.Exit();
};
});
// Create a box container
- efl.ui.IBox box = new efl.ui.Box(win, (efl.ui.IBox ebox) => {
+ Efl.Ui.Box box = new Efl.Ui.Box(win, (Efl.Ui.Box ebox) => {
win.SetContent(ebox);
});
// Create a regular button (without size hints)
- new efl.ui.Button(win, (efl.ui.IButton ebutton) => {
+ new Efl.Ui.Button(win, (Efl.Ui.Button ebutton) => {
ebutton.SetText("Button");
box.DoPack(ebutton);
});
// Create a small button (max size is limited)
- new efl.ui.Button(win, (efl.ui.IButton ebutton) => {
+ new Efl.Ui.Button(win, (Efl.Ui.Button ebutton) => {
ebutton.SetText("Small");
- ebutton.SetHintMax(new eina.Size2D(50,50));
+ ebutton.SetHintMax(new Eina.Size2D(50,50));
box.DoPack(ebutton);
});
// Create a big button (min size is limited)
- new efl.ui.Button(win, (efl.ui.IButton ebutton) => {
+ new Efl.Ui.Button(win, (Efl.Ui.Button ebutton) => {
ebutton.SetText("Big button");
- ebutton.SetHintMin(new eina.Size2D(100,100));
+ ebutton.SetHintMin(new Eina.Size2D(100,100));
box.DoPack(ebutton);
});
// Start the EFL main loop
- efl.ui.Config.Run();
+ Efl.Ui.Config.Run();
// Shutdown EFL
- efl.All.Shutdown();
+ Efl.All.Shutdown();
}
}