visible_line.h

Go to the documentation of this file.
00001 #ifndef VISIBLE_LINE_CLASS
00002 #define VISIBLE_LINE_CLASS
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : visible_line                                                      *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *  Purpose:                                                                   *
00010 *                                                                             *
00011 *    Permits a line segment to be drawn on a canvas.                          *
00012 *                                                                             *
00013 *******************************************************************************
00014 * Copyright (c) 1991-$now By Author.  This program is free software; you can  *
00015 * redistribute it and/or modify it under the terms of the GNU General Public  *
00016 * License as published by the Free Software Foundation; either version 2 of   *
00017 * the License or (at your option) any later version.  This is online at:      *
00018 *     http://www.fsf.org/copyleft/gpl.html                                    *
00019 * Please send any updates to: fred@gruntose.com                               *
00020 \*****************************************************************************/
00021 
00022 #include "paintable.h"
00023 
00024 class WP_PASSIVE_CLASS_STYLE visible_line : public paintable, private c_line
00025 {
00026 public:
00027   visible_line(canvas &draw_on, const c_line &init,
00028      const color &foreground = colors::WHITE, bool attach = true);
00029   virtual c_rectangle dimensions() const;
00030   virtual void plot(const color &to_plot_in);
00031   virtual void set_origin(const c_point &new_origin);
00032 
00033   c_line base() const;
00034   void base(const c_line &new_base);
00035 };
00036 
00037 #endif
00038 

Generated on Fri Nov 28 04:29:05 2008 for HOOPLE Libraries by  doxygen 1.5.1