MandelbrotExample.h 680 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // This may look like C code, but it's really -*- C++ -*-
  2. /*
  3. * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
  4. *
  5. * See the LICENSE file for terms of use.
  6. */
  7. #ifndef MANDELBROT_EXAMPLE_H_
  8. #define MANDELBROT_EXAMPLE_H_
  9. #include <Wt/WContainerWidget>
  10. #include <Wt/WGlobal>
  11. using namespace Wt;
  12. class MandelbrotImage;
  13. class MandelbrotExample : public WContainerWidget
  14. {
  15. public:
  16. MandelbrotExample(WContainerWidget *parent = 0);
  17. private:
  18. MandelbrotImage *mandelbrot_;
  19. WText *viewPortText_;
  20. void moveLeft();
  21. void moveRight();
  22. void moveUp();
  23. void moveDown();
  24. void zoomIn();
  25. void zoomOut();
  26. void updateViewPortText();
  27. };
  28. #endif // MANDELBROT_EXAMPLE_H_