summaryrefslogtreecommitdiff
path: root/reference/csharp/ui
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-04-23 12:32:06 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-04-23 12:33:00 +0200
commit595be4aa12fe5a6ab5fa177fb308a2b880acaf65 (patch)
tree7a4c24e69454923c5e836bf386f1ac5406644b26 /reference/csharp/ui
parentf47f1f3672ec35ec9ce5969572a6d4d6f8563125 (diff)
csharp: Update examples after repeated method name
Summary: In essence, IPack.DoPack became IPack.Pack Depends on D8650 Reviewers: felipealmeida, vitor.sousa, segfaultxavi Reviewed By: segfaultxavi Differential Revision: https://phab.enlightenment.org/D8651
Diffstat (limited to 'reference/csharp/ui')
-rw-r--r--reference/csharp/ui/src/focus_main.cs8
-rw-r--r--reference/csharp/ui/src/ui_container.cs4
-rw-r--r--reference/csharp/ui/src/ui_sizing.cs6
3 files changed, 9 insertions, 9 deletions
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index 494c86a..cc806f7 100644
--- a/reference/csharp/ui/src/focus_main.cs
+++ b/reference/csharp/ui/src/focus_main.cs
@@ -32,14 +32,14 @@ public class Example : Efl.Csharp.Application
32 checkbox.SetText("Check " + i); 32 checkbox.SetText("Check " + i);
33 checkbox.SetHintAlign(0.5, 0.5); 33 checkbox.SetHintAlign(0.5, 0.5);
34 checkbox.FocusChangedEvt += FocusChangedCb; 34 checkbox.FocusChangedEvt += FocusChangedCb;
35 vbox.DoPack(checkbox); 35 vbox.Pack(checkbox);
36 if (i == 0) first_checkbox = checkbox; 36 if (i == 0) first_checkbox = checkbox;
37 }; 37 };
38 38
39 // Create an horizontal box to contain the two buttons 39 // Create an horizontal box to contain the two buttons
40 var hbox = new Efl.Ui.Box(vbox); 40 var hbox = new Efl.Ui.Box(vbox);
41 hbox.SetDirection(Efl.Ui.Dir.Horizontal); 41 hbox.SetDirection(Efl.Ui.Dir.Horizontal);
42 vbox.DoPack(hbox); 42 vbox.Pack(hbox);
43 43
44 // Create a "Focus Mover" button 44 // Create a "Focus Mover" button
45 var button = new Efl.Ui.Button(hbox); 45 var button = new Efl.Ui.Button(hbox);
@@ -50,7 +50,7 @@ public class Example : Efl.Csharp.Application
50 // Manually transfer focus to the first check box 50 // Manually transfer focus to the first check box
51 Efl.Ui.Focus.Util.Focus(first_checkbox); 51 Efl.Ui.Focus.Util.Focus(first_checkbox);
52 }; 52 };
53 hbox.DoPack(button); 53 hbox.Pack(button);
54 54
55 // Create a Quit button 55 // Create a Quit button
56 button = new Efl.Ui.Button(hbox); 56 button = new Efl.Ui.Button(hbox);
@@ -60,7 +60,7 @@ public class Example : Efl.Csharp.Application
60 Console.WriteLine("Clicked Quit"); 60 Console.WriteLine("Clicked Quit");
61 Efl.Ui.Config.Exit(); 61 Efl.Ui.Config.Exit();
62 }; 62 };
63 hbox.DoPack(button); 63 hbox.Pack(button);
64 64
65 // Show the focus highlight 65 // Show the focus highlight
66 win.SetFocusHighlightEnabled(true); 66 win.SetFocusHighlightEnabled(true);
diff --git a/reference/csharp/ui/src/ui_container.cs b/reference/csharp/ui/src/ui_container.cs
index 0cb9c23..3d3c7e1 100644
--- a/reference/csharp/ui/src/ui_container.cs
+++ b/reference/csharp/ui/src/ui_container.cs
@@ -26,7 +26,7 @@ public class Example : Efl.Csharp.Application
26 // Button 2 has its maximum size limited, so it will be smaller 26 // Button 2 has its maximum size limited, so it will be smaller
27 button.SetHintSizeMax(new Eina.Size2D(100,50)); 27 button.SetHintSizeMax(new Eina.Size2D(100,50));
28 } 28 }
29 box.DoPack(button); 29 box.Pack(button);
30 } 30 }
31 31
32 return box; 32 return box;
@@ -46,7 +46,7 @@ public class Example : Efl.Csharp.Application
46 // Add 4 buttons, following the defined table flow 46 // Add 4 buttons, following the defined table flow
47 button = new Efl.Ui.Button(win); 47 button = new Efl.Ui.Button(win);
48 button.SetText($"Table {i}"); 48 button.SetText($"Table {i}");
49 table.DoPack(button); 49 table.Pack(button);
50 } 50 }
51 51
52 // Last button spans two table cells 52 // Last button spans two table cells
diff --git a/reference/csharp/ui/src/ui_sizing.cs b/reference/csharp/ui/src/ui_sizing.cs
index 7ccfa10..07f5769 100644
--- a/reference/csharp/ui/src/ui_sizing.cs
+++ b/reference/csharp/ui/src/ui_sizing.cs
@@ -29,19 +29,19 @@ public class Example : Efl.Csharp.Application
29 // Create a regular button (without size hints) 29 // Create a regular button (without size hints)
30 var button = new Efl.Ui.Button(win); 30 var button = new Efl.Ui.Button(win);
31 button.SetText("Button"); 31 button.SetText("Button");
32 box.DoPack(button); 32 box.Pack(button);
33 33
34 // Create a small button (max size is limited) 34 // Create a small button (max size is limited)
35 button = new Efl.Ui.Button(win); 35 button = new Efl.Ui.Button(win);
36 button.SetText("Small"); 36 button.SetText("Small");
37 button.SetHintSizeMax(new Eina.Size2D(50,50)); 37 button.SetHintSizeMax(new Eina.Size2D(50,50));
38 box.DoPack(button); 38 box.Pack(button);
39 39
40 // Create a big button (min size is limited) 40 // Create a big button (min size is limited)
41 button = new Efl.Ui.Button(win); 41 button = new Efl.Ui.Button(win);
42 button.SetText("Big button"); 42 button.SetText("Big button");
43 button.SetHintSizeMin(new Eina.Size2D(100,100)); 43 button.SetHintSizeMin(new Eina.Size2D(100,100));
44 box.DoPack(button); 44 box.Pack(button);
45 } 45 }
46 46
47#if WIN32 47#if WIN32