23 #ifndef BAGEL_BAGLIB_PAN_WINDOW_H 24 #define BAGEL_BAGLIB_PAN_WINDOW_H 26 #include "bagel/spacebar/baglib/pda.h" 27 #include "bagel/spacebar/baglib/storage_dev_win.h" 28 #include "bagel/spacebar/baglib/wield.h" 29 #include "bagel/spacebar/baglib/pan_bitmap.h" 30 #include "bagel/boflib/stdinc.h" 38 #define DEF_HEIGHT 479 43 #define PAN_AREA_WIDTH 480 44 #define PAN_AREA_HEIGHT 360 53 static int _nCorrection;
54 static int _nPanSpeed;
71 bool _bDraggingObject;
73 bool _bStretchToScreen;
74 bool _bPaintToBackdrop;
83 static void initialize();
85 ErrorCode attachActiveObjects()
override;
98 void deleteFGObjects();
108 uint32 rotateTo(
CBofPoint &xPoint,
int nRate = 8);
111 void deActivateView();
113 void enable()
override;
114 void disable()
override;
122 void setViewPortSize(
const CBofSize &xViewSize);
127 return _pSlideBitmap;
129 void setViewPortPos(
const CBofPoint &pos) {
133 static void setPanSpeed(
int nSpeed) {
136 static int getPanSpeed() {
141 return _xViewPortPos;
145 return _pSlideBitmap->getMaxView();
147 void setMovementRect(
const CBofRect &rect) {
148 _xMovementRect = rect;
151 return _xMovementRect;
153 void setPaintToBackdrop(
const bool bPaint) {
154 _bPaintToBackdrop = bPaint;
156 bool getStretchToScreen() {
157 return _bStretchToScreen;
159 bool setStretchToScreen(
bool val =
true) {
160 return _bStretchToScreen = val;
162 static int getRealCorrection() {
165 static void setRealCorrection(
int n) {
168 int getCorrection() {
169 return _pSlideBitmap->getCorrWidth();
171 void setCorrection(
int nCorr) {
172 _pSlideBitmap->setCorrWidth(nCorr);
175 return _pSlideBitmap->getFOV();
177 void setFOV(
double fov) {
178 _pSlideBitmap->setFOV(fov);
182 return _pSlideBitmap->getPalette();
188 static void flushInputEvents();
190 void onClose()
override;
191 void onMouseMove(uint32 nFlags,
CBofPoint *p,
void * =
nullptr)
override;
192 void onLButtonDown(uint32 nFlags,
CBofPoint *point,
void * =
nullptr)
override;
193 void onLButtonUp(uint32 nFlags,
CBofPoint *point,
void * =
nullptr)
override;
194 void onKeyHit(uint32 lKey, uint32 lRepCount)
override;
195 virtual void onSize(uint32 nType,
int cx,
int cy);
196 void OnWindowPosChanging(
WindowPos *lpwndpos);
198 ErrorCode onCursorUpdate(
int nCurrObj)
override;
Definition: pan_window.h:51
Definition: storage_dev_win.h:410
CBofRect unSetSlideBitmap()
ErrorCode runModal(CBagObject *pObj) override
Definition: pan_bitmap.h:35