File: frameobj.h

package info (click to toggle)
vym 1.8.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,000 kB
  • ctags: 1,599
  • sloc: cpp: 14,723; sh: 373; xml: 277; perl: 89; makefile: 16
file content (33 lines) | stat: -rw-r--r-- 791 bytes parent folder | download
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
#ifndef FRAMEOBJ_H
#define FRAMEOBJ_H

#include "mapobj.h"

enum FrameType {NoFrame,Rectangle};

class FrameObj:public MapObj {
public:
    FrameObj();
    FrameObj(QCanvas*);
    ~FrameObj();
    void init();
    void clear();
    void move (double x,double y);    // move to absolute Position
    void moveBy (double x,double y);  // move to relative Position
	void positionBBox();			 
	void calcBBoxSize();			
	void setRect (const QRect &);	  // set dimensions			
    int getBorder();
    FrameType getFrameType ();
    QString getFrameTypeName ();
    void setFrameType (const FrameType &);
    void setFrameType (const QString &);
    void setVisibility(bool);

protected:
    FrameType type;
    QCanvasRectangle* rectFrame;
    int border;									// distance text - frame
};
#endif