summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pages/develop/guides/csharp/ui/sizing.md.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/pages/develop/guides/csharp/ui/sizing.md.txt b/pages/develop/guides/csharp/ui/sizing.md.txt
index aaf246b01..acd14fe34 100644
--- a/pages/develop/guides/csharp/ui/sizing.md.txt
+++ b/pages/develop/guides/csharp/ui/sizing.md.txt
@@ -20,23 +20,23 @@ You can find an usage example in the [EFL examples repository](https://git.enlig
20 20
21## Setting a Widget's Minimum Size ## 21## Setting a Widget's Minimum Size ##
22 22
23When a widget's **minimum** size is defined with `SetHintMin()`, resizing the rest of the UI will not shrink the widget below the size you set. You can use it to create elements which are bigger than normal, as well as prevent the UI from becoming too small: 23When a widget's **minimum** size is defined with `SetHintSizeMin()`, resizing the rest of the UI will not shrink the widget below the size you set. You can use it to create elements which are bigger than normal, as well as prevent the UI from becoming too small:
24 24
25```csharp 25```csharp
26button = new Efl.Ui.Button(win); 26button = new Efl.Ui.Button(win);
27button.SetText("Big button"); 27button.SetText("Big button");
28button.SetHintMin(new Eina.Size2D(100,100)); 28button.SetHintSizeMin(new Eina.Size2D(100,100));
29box.DoPack(button); 29box.DoPack(button);
30``` 30```
31 31
32## Setting a Widget's Maximum Size ## 32## Setting a Widget's Maximum Size ##
33 33
34When a widget's **maximum** size is defined with `SetHintMax()`, resizing the rest of the UI will not expand the widget beyond the size you set. Use it to create elements that are smaller than normal or that will not expand past a given point when the UI grows. 34When a widget's **maximum** size is defined with `SetHintSizeMax()`, resizing the rest of the UI will not expand the widget beyond the size you set. Use it to create elements that are smaller than normal or that will not expand past a given point when the UI grows.
35 35
36```csharp 36```csharp
37button = new Efl.Ui.Button(win); 37button = new Efl.Ui.Button(win);
38button.SetText("Small"); 38button.SetText("Small");
39button.SetHintMax(new Eina.Size2D(50,50)); 39button.SetHintSizeMax(new Eina.Size2D(50,50));
40box.DoPack(button); 40box.DoPack(button);
41``` 41```
42 42