- // get the length of the parameters in pixels
- Length offset = Length(to_ascii(getParam("offset")));
- int o = offset.inPixels(pi.base.textwidth,
- fm.width(char_type('M')));
- Length const width(to_ascii(getParam("width")));
- int w = width.inPixels(pi.base.textwidth,
- fm.width(char_type('M')));
- Length height = Length(to_ascii(getParam("height")));
- int h = height.inPixels(pi.base.textwidth,
- fm.width(char_type('M')));
+void InsetLine::draw(PainterInfo & pi, int x, int y) const
+{
+ Dimension const dim = dimension(*pi.base.bv);