1/* 2 Copyright 1999, Be Incorporated. All Rights Reserved. 3 This file may be used under the terms of the Be Sample Code License. 4*/ 5 6#ifndef _VIEW_H 7#include <View.h> 8#endif 9#ifndef _BITMAP_H 10#include <Bitmap.h> 11#endif 12 13#include <math.h> 14 15#ifndef TSB 16#define TSB 17 18/*------------------------------------------------------------*/ 19 20#define size_x 384 21#define size_y 384 22 23/*------------------------------------------------------------*/ 24 25class TShowBit : public BView { 26public: 27 BBitmap *the_bitmap; 28 bool busy; 29 bool exit_now; 30 BRect selection; 31 double px; 32 double py; 33 double scale; 34 long iter; 35 36 TShowBit(BRect r, uint32 resizeMask, uint32 flags); 37virtual ~TShowBit(); 38virtual void Draw(BRect); 39virtual void MouseDown(BPoint where); 40virtual void Pulse(); 41 void mand(double vx, double vy, double sx, double sy); 42 long limit_v(long v); 43 long limit_h(long h); 44 BRect sort_rect(BRect *aRect); 45 void clip(long *h, long *v); 46 void change_selection(long h, long v); 47 char has_selection(); 48 void redraw_mand(); 49 void mandb(double vx, double vy, double sx, double sy); 50 void manda(double vx, double vy, double sx, double sy); 51 void set_palette(long code); 52 void set_iter(long i); 53 void precompute(double vx, double vy, double sx, double sy); 54}; 55 56/*------------------------------------------------------------*/ 57 58#endif 59