aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/HorizontalWrappingWidget.cs
diff options
context:
space:
mode:
authorjpbruyere <jp_bruyere@hotmail.com>2013-11-16 09:16:43 +0100
committerjpbruyere <jp_bruyere@hotmail.com>2013-11-16 09:16:43 +0100
commitdab0f2befeda33bd1c8e59ec41a2e1768712086b (patch)
treee1dc606a3d8eeccd221e8adc03edc8639c3daa17 /src/HorizontalWrappingWidget.cs
first commit
Diffstat (limited to 'src/HorizontalWrappingWidget.cs')
-rw-r--r--src/HorizontalWrappingWidget.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/HorizontalWrappingWidget.cs b/src/HorizontalWrappingWidget.cs
new file mode 100644
index 00000000..f16ccf34
--- /dev/null
+++ b/src/HorizontalWrappingWidget.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Cairo;
+
+namespace go
+{
+ public class HorizontalWrappingWidget : WrappedWidgetGroup
+ {
+ public HorizontalWrappingWidget(int _borderWidth = 0) :
+ base()
+ {
+ Orientation = Orientation.Horizontal;
+ borderWidth = _borderWidth;
+ sizeToContent = true;
+ background = Color.Transparent;
+ }
+ public HorizontalWrappingWidget(Color _borderColor, int _borderWidth = 1) :
+ base()
+ {
+ Orientation = Orientation.Horizontal;
+ borderWidth = _borderWidth;
+ borderColor = _borderColor;
+ background = Color.Transparent;
+ sizeToContent = true;
+ }
+ public HorizontalWrappingWidget(Color _borderColor, Color _background, int _borderWidth = 1) :
+ base()
+ {
+ Orientation = Orientation.Horizontal;
+ borderWidth = _borderWidth;
+ borderColor = _borderColor;
+ background = _background;
+ sizeToContent = true;
+ }
+ }
+}