summaryrefslogtreecommitdiff
path: root/otk/strut.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-06 07:01:59 +0000
committerDana Jansens <danakj@orodu.net>2002-11-06 07:01:59 +0000
commitd3b7c84d4c640face48dfb54d70de2bff1551429 (patch)
tree9fb39c8aa62dd733fa5361a49883f8b233f5e7b8 /otk/strut.hh
parentd017db67e4d77fd7af3f070803a773df0a5768eb (diff)
moving strut into its own .hh. adding OBClient class
Diffstat (limited to 'otk/strut.hh')
-rw-r--r--otk/strut.hh28
1 files changed, 28 insertions, 0 deletions
diff --git a/otk/strut.hh b/otk/strut.hh
new file mode 100644
index 00000000..494cc4f1
--- /dev/null
+++ b/otk/strut.hh
@@ -0,0 +1,28 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
+#ifndef __strut_hh
+#define __strut_hh
+
+/*! @file strut.hh
+ @brief The Strut struct defines a margin on 4 sides
+*/
+
+namespace otk {
+
+//! Defines a margin on 4 sides
+struct Strut {
+ //! The margin on the top of the Strut
+ unsigned int top;
+ //! The margin on the bottom of the Strut
+ unsigned int bottom;
+ //! The margin on the left of the Strut
+ unsigned int left;
+ //! The margin on the right of the Strut
+ unsigned int right;
+
+ //! Constructs a new Strut with no margins
+ Strut(void): top(0), bottom(0), left(0), right(0) {}
+};
+
+}
+
+#endif // __strut_hh