File: Picture.h

package info (click to toggle)
xbill 2.0-9
  • links: PTS
  • area: main
  • in suites: slink
  • size: 528 kB
  • ctags: 339
  • sloc: cpp: 1,803; makefile: 38; sh: 21
file content (18 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef X11_PICTURE_H
#define X11_PICTURE_H

#include <X11/Xlib.h>
#include <X11/Intrinsic.h>
#include <X11/xpm.h>

class Picture {
public:
	Dimension width, height;
	Pixmap pix;
	GC gc;
	void draw (int x, int y);
	void draw_centered ();
	void load(const char *name, int index=-1);
};

#endif