blob: 3e98915af48cb648802554f92fa0ac7697f81baa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#ifndef __SP_ZOOM_CONTEXT_H__
#define __SP_ZOOM_CONTEXT_H__
/*
* Handy zooming tool
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Frank Felfe <innerspace@iname.com>
*
* Copyright (C) 1999-2002 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "event-context.h"
#define SP_ZOOM_CONTEXT(obj) (dynamic_cast<SPZoomContext*>((SPEventContext*)obj))
#define SP_IS_ZOOM_CONTEXT(obj) (dynamic_cast<const SPZoomContext*>((const SPEventContext*)obj) != NULL)
class SPZoomContext : public SPEventContext {
public:
SPZoomContext();
virtual ~SPZoomContext();
static const std::string prefsPath;
virtual void setup();
virtual void finish();
virtual bool root_handler(GdkEvent* event);
virtual const std::string& getPrefsPath();
private:
SPCanvasItem *grabbed;
bool escaped;
};
#endif
|