aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/VerticalWrappingWidget.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/VerticalWrappingWidget.cs')
-rw-r--r--src/VerticalWrappingWidget.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/VerticalWrappingWidget.cs b/src/VerticalWrappingWidget.cs
new file mode 100644
index 00000000..dbebcad0
--- /dev/null
+++ b/src/VerticalWrappingWidget.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Cairo;
+
+namespace go
+{
+ public class VerticalWrappingWidget : WrappedWidgetGroup
+ {
+ public VerticalWrappingWidget(int _borderWidth = 0) :
+ base()
+ {
+ Orientation = Orientation.Vertical;
+ borderWidth = _borderWidth;
+ sizeToContent = true;
+ background = Color.Transparent;
+ }
+ public VerticalWrappingWidget(Color _borderColor, int _borderWidth = 1) :
+ base()
+ {
+ Orientation = Orientation.Vertical;
+ borderWidth = _borderWidth;
+ borderColor = _borderColor;
+ background = Color.Transparent;
+ sizeToContent = true;
+ }
+ public VerticalWrappingWidget(Color _borderColor, Color _background, int _borderWidth = 1) :
+ base()
+ {
+ Orientation = Orientation.Vertical;
+ borderWidth = _borderWidth;
+ borderColor = _borderColor;
+ background = _background;
+ sizeToContent = true;
+ }
+
+ }
+}