From dab0f2befeda33bd1c8e59ec41a2e1768712086b Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Sat, 16 Nov 2013 09:16:43 +0100 Subject: first commit --- src/HorizontalWrappingWidget.cs | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/HorizontalWrappingWidget.cs (limited to 'src/HorizontalWrappingWidget.cs') 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; + } + } +} -- cgit v1.3.1-4-g156e