///
lyx::pos_type pos() const;
///
- void end(lyx::pos_type p);
+ void endpos(lyx::pos_type p);
///
- lyx::pos_type end() const;
- ///
- void fill(int f);
- ///
- int fill() const;
+ lyx::pos_type endpos() const;
///
void height(unsigned int h) { height_ = h; }
///
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_;
/// one behind last pos covered by this row
lyx::pos_type end_;
- /** what is missing to a full row. Can be negative.
- Needed for hfills, flushright, block etc. */
- mutable int fill_;
///
unsigned int height_;
///
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