unsigned int y_offset() const { return y_offset_; }
/// cache the y position
void y_offset(unsigned int newy) { y_offset_ = newy; }
- ///
- float x() const;
- ///
- void x(float);
- ///
- float fill_separator() const;
- ///
- void fill_separator(float);
- ///
- float fill_hfill() const;
- ///
- void fill_hfill(float);
- ///
- float fill_label_hfill() const;
- ///
- void fill_label_hfill(float);
/// current debugging only
void dump(const char * = "") const;
+
private:
/// first pos covered by this row
lyx::pos_type pos_;
unsigned int top_of_text_;
///
unsigned int baseline_;
- /// offet from left border
- float x_;
- ///
- float fill_separator_;
- ///
- float fill_hfill_;
- ///
- float fill_label_hfill_;
};
+
+class RowMetrics {
+public:
+ RowMetrics();
+ /// width of a separator (i.e. space)
+ double separator;
+ /// width of hfills in the body
+ double hfill;
+ /// width of hfills in the label
+ double label_hfill;
+ /// the x position of the row
+ double x;
+};
+
+
#endif