download graphics.h
Language: C++
LOC: 30
Project Info
BeKaffe
Server: SourceForge
Type: cvs
...fe\libraries\clib\awt\BeOS\
   cbd.c
   clr.c
   evt.c
   fnt.c
   gra.c
   graphics.c
   graphics.h
   img.c
   imggif.c
   imgjpeg.c
   imgpng.c
   japp.c
   japp.h
   jview.c
   jview.h
   jwindow.c
   jwindow.h
   keysyms.h
   libawt.la
   Makefile.am
   Makefile.in
   tlk.c
   tlkprops.h
   toolkit.h
   wnd.c

/* graphics.h */

/*
        (c) Copyright others....
        (c) Copyright Sim IJskes 1999
*/

#include "jview.h"

class Graphics {

public:
	void setBackColor( rgb_color clr );
	void setForeColor( rgb_color clr );
	void setClip( int xClip, int yClip, int wClip, int hClip );

	void drawRect( int x, int y, int width, int height );
    void setXORMode(rgb_color clr);
    void setPaintMode();
private:
	int lock();
	void unlock();

	BView *view ;
	
	BRegion oldreg;
	BRegion newreg;

	rgb_color backColor ;
	rgb_color foreColor ;
	
public:
	// OLD stuff
	jView  *drw;
#if TODO
  GC        gc;
#endif
/*
  int       fg;
  int       bg;
*/
  rgb_color fg;
  rgb_color bg;
  char      xor;
  rgb_color xclr;

  int       x0;
  int       y0;

} ;

#define VIEW(graphics)	 ((graphics)->drw)

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us