aboutsummaryrefslogtreecommitdiff
path: root/dw/table.hh
diff options
context:
space:
mode:
Diffstat (limited to 'dw/table.hh')
-rw-r--r--dw/table.hh17
1 files changed, 10 insertions, 7 deletions
diff --git a/dw/table.hh b/dw/table.hh
index 3729da71..ad1a2ddc 100644
--- a/dw/table.hh
+++ b/dw/table.hh
@@ -325,6 +325,14 @@ namespace dw {
class Table: public oof::OOFAwareWidget
{
private:
+ struct Cell {
+ core::Widget *widget;
+ int colspanOrig, colspanEff, rowspan;
+ };
+ struct SpanSpace {
+ int startCol, startRow; // where the cell starts
+ };
+
struct Child
{
enum {
@@ -332,13 +340,8 @@ private:
SPAN_SPACE // part of a spanning cell
} type;
union {
- struct {
- core::Widget *widget;
- int colspanOrig, colspanEff, rowspan;
- } cell;
- struct {
- int startCol, startRow; // where the cell starts
- } spanSpace;
+ struct Cell cell;
+ struct SpanSpace spanSpace;
};
};