Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

# background_wnd/painters/stretch_painter.hpp

    00001 // stretch_painter.hpp
    00002
    00003 // Copyright (C) 2004 Steven Weiß (steven11@gmx.de)
    00004 //
    00005 // Permission to copy, use, sell and distribute this software is granted
    00006 // provided this copyright notice appears in all copies.
    00007 // Permission to modify the code and to distribute modified code is granted
    00008 // provided this copyright notice appears in all copies, and a notice
    00009 // that the code was modified is included with the copyright notice.
    00010 //
    00011 // This software is provided "as is" without express or implied warranty,
    00012 // and with no claim as to its suitability for any purpose.
    00013
    00014
    00015 #pragma once
    00016 #include <background_wnd/painter_holder.hpp>
    00017
    00018
    00019 namespace win32 { namespace gui {
    00020
    00021 class stretch_painter : public painter_base, public painter_holder
    00022 {
    00023 public:
    00024      typedef const rectangle& param0;
    00025      typedef COLORREF param1;
    00026
    00027      // c'tor
    00028      stretch_painter(const rectangle& rc_stretch, COLORREF cr_not_used = RGB(255, 0, 255));
    00029
    00030      // virtual functions of painter_base
    00031      stretch_painter* clone() const;
    00032      void draw(HDC hDC, int cx, int cy);
    00033
    00034      // own functions
    00035      void stretched_rect(const rectangle& rc_stretch);
    00036      rectangle stretched_rect() const;
    00037
    00038 private:
    00039      rectangle rc_stretch_;
    00040      COLORREF cr_not_used_;
    00041 };
    00042
    00043 } }  // namespace win32::gui