23 #ifndef BAGEL_BAGLIB_PAN_WINDOW_H 24 #define BAGEL_BAGLIB_PAN_WINDOW_H 26 #include "bagel/baglib/pda.h" 27 #include "bagel/baglib/storage_dev_win.h" 28 #include "bagel/baglib/wield.h" 29 #include "bagel/baglib/pan_bitmap.h" 30 #include "bagel/boflib/stdinc.h" 37 #define DEF_HEIGHT 479 42 #define PAN_AREA_WIDTH 480 43 #define PAN_AREA_HEIGHT 360 52 static int _nCorrection;
53 static int _nPanSpeed;
70 bool _bDraggingObject;
72 bool _bStretchToScreen;
73 bool _bPaintToBackdrop;
82 static void initialize();
84 ErrorCode attachActiveObjects()
override;
86 ErrorCode onRender(
CBofBitmap *pBmp, CRect *pRect =
nullptr)
override;
97 void deleteFGObjects();
100 CBofPalette *setSlideBitmap(
const CBofString &xSlideBmp,
const CRect &xSlideRect = CRect(0, 0, 0, 0));
107 uint32 rotateTo(CPoint &xPoint,
int nRate = 8);
110 void deActivateView();
112 void enable()
override;
113 void disable()
override;
121 void setViewPortSize(
const CSize &xViewSize);
122 const CRect getViewPort();
123 const CSize getViewPortSize();
126 return _pSlideBitmap;
128 void setViewPortPos(
const CPoint &pos) {
132 static void setPanSpeed(
int nSpeed) {
135 static int getPanSpeed() {
139 const CPoint getViewPortPos() {
140 return _xViewPortPos;
143 const CRect getMaxView() {
144 return _pSlideBitmap->getMaxView();
146 void setMovementRect(
const CRect &rect) {
147 _xMovementRect = rect;
149 const CRect &getMovementRect() {
150 return _xMovementRect;
152 void setPaintToBackdrop(
const bool bPaint) {
153 _bPaintToBackdrop = bPaint;
155 bool getStretchToScreen() {
156 return _bStretchToScreen;
158 bool setStretchToScreen(
bool val =
true) {
159 return _bStretchToScreen = val;
161 static int getRealCorrection() {
164 static void setRealCorrection(
int n) {
167 int getCorrection() {
168 return _pSlideBitmap->getCorrWidth();
170 void setCorrection(
int nCorr) {
171 _pSlideBitmap->setCorrWidth(nCorr);
174 return _pSlideBitmap->getFOV();
176 void setFOV(
double fov) {
177 _pSlideBitmap->setFOV(fov);
181 return _pSlideBitmap->getPalette();
187 static void flushInputEvents();
189 void onClose()
override;
190 void onMouseMove(uint32 nFlags,
CBofPoint *p,
void * =
nullptr)
override;
191 void onLButtonDown(uint32 nFlags,
CBofPoint *point,
void * =
nullptr)
override;
192 void onLButtonUp(uint32 nFlags,
CBofPoint *point,
void * =
nullptr)
override;
193 void onKeyHit(uint32 lKey, uint32 lRepCount)
override;
194 virtual void onSize(uint32 nType,
int cx,
int cy);
195 void OnWindowPosChanging(
WindowPos *lpwndpos);
197 ErrorCode onCursorUpdate(
int nCurrObj)
override;
Definition: storage_dev_win.h:406
ErrorCode runModal(CBagObject *pObj) override
Definition: pan_bitmap.h:34
Definition: pan_window.h:50
CBofRect unSetSlideBitmap()