diff options
Diffstat (limited to 'src/HorizontalWrappingWidget.cs')
| -rw-r--r-- | src/HorizontalWrappingWidget.cs | 38 |
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; + } + } +} |