view dw/fltkflatview.hh @ 1733:f39cfc38ea10

rework nonCssHints API of StyleEngine * Instead of passing the nonCssHints as a CssPropertyList, set the hints separately and create the list in StyleEngine. * The CssPropertyList holding the nonCssHints is now completely managed by StyleEngine and kept on the stack. * Replace the table_cell_props mechanic in html.cc/table.cc with a new method inheritNonCssHints() in StyleEngine.
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Mon, 11 Oct 2010 21:35:53 +0200
parents b277eed3119c
children 6aa55383f7f3
line wrap: on
line source
#ifndef __DW_FLTKFLATVIEW_HH__
#define __DW_FLTKFLATVIEW_HH__

#include <fltk/Group.h>
#include <fltk/Scrollbar.h>

#include "core.hh"
#include "fltkcore.hh"
#include "fltkviewbase.hh"

namespace dw {
namespace fltk {

class FltkFlatView: public FltkWidgetView
{
protected:
   int translateViewXToCanvasX (int x);
   int translateViewYToCanvasY (int y);
   int translateCanvasXToViewX (int x);
   int translateCanvasYToViewY (int y);

public:
   FltkFlatView (int x, int y, int w, int h, const char *label = 0);
   ~FltkFlatView ();

   void setCanvasSize (int width, int ascent, int descent);

   bool usesViewport ();
   int getHScrollbarThickness ();
   int getVScrollbarThickness ();
   void scrollTo (int x, int y);
   void setViewportSize (int width, int height,
                         int hScrollbarThickness, int vScrollbarThickness);
};

} // namespace fltk
} // namespace dw

#endif // __DW_FLTKFLATVIEW_HH__