24 #include <geometry/gtk/line_segment_drawer.h>
25 #include <geometry/line_segment.h>
45 delete m_line_segment;
52 context->move_to( m_line_segment->
p1().
x(),
53 m_line_segment->
p1().
y() );
54 context->line_to( m_line_segment->
p2().
x(),
55 m_line_segment->
p2().
y() );
virtual float y() const
RO-getter for y.
const HomPoint & p1() const
Get the starting point.
virtual ~LineSegmentDrawer()
Destructor.
LineSegmentDrawer(LineSegment l)
Constructor.
const HomPoint & p2() const
Get the endpoint.
virtual void draw(Cairo::RefPtr< Cairo::Context > &context)
This method is called by the GeomDrawingArea.
virtual float x() const
RO-getter for x.