Main Page | Alphabetical List | Class List | File List | Class Members

scrollable_wnd.hpp

00001 // scrollable_wnd.h
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 #pragma once
00015 #include <win32gui/window.hpp>
00016 
00017 
00018 namespace win32 { namespace gui {
00019 
00020 struct scrollable_wnd : wnd_extend<window_base, scrollable_wnd>
00021 {
00022      scrollable_wnd();
00023 
00024      // operations
00025      void  total_size(unsigned cx, unsigned cy);
00026      SIZE  total_size() const;
00027      void  line_scrolling_size(int cx, int cy);
00028      SIZE  line_scrolling_size() const; 
00029      void  page_factor(float xFactor, float yFactor);
00030      float page_factor_x() const;
00031      float page_factor_y() const;
00032      void  wheel_factor(float yFactor);
00033      float wheel_factor() const;
00034      void  scroll_pos(unsigned x, unsigned y);
00035      POINT scroll_pos() const;
00036 
00037 private:
00038      SIZE line_size_;
00039      float xPage_factor_;
00040      float yPage_factor_;
00041      float yWheel_factor_;
00042 };
00043 
00044 } }  // namespace win32::gui

Generated on Mon Dec 27 17:34:37 2004 for scrollable_wnd by  doxygen 1.3.9.1