00001 // alphablend_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 alphablend_painter : public painter_base, public painter_holder 00022 { 00023 public: 00024 typedef unsigned param0; 00025 00026 // c'tor 00027 alphablend_painter(unsigned transparency); 00028 00029 // virtual functions of painter_base 00030 alphablend_painter* clone() const; 00031 void draw(HDC hDC, int cx, int cy); 00032 00033 // own functions 00034 void transparency(unsigned transparency); 00035 unsigned transparency() const; 00036 00037 private: 00038 unsigned transparency_; 00039 }; 00040 00041 } } // namespace win32::gui
|
by Steven Weiss. You can contact me at steven11@gmx.de. |