| 1 | /*************************************************************************** |
| 2 | graphic.h - description |
| 3 | ------------------- |
| 4 | begin : Sat Oct 14 2000 |
| 5 | copyright : (C) 2000 by Waldemar Baraldi |
| 6 | email : [email protected] |
| 7 | ***************************************************************************/ |
| 8 | |
| 9 | /*************************************************************************** |
| 10 | * * |
| 11 | * This program is free software; you can redistribute it and/or modify * |
| 12 | * it under the terms of the GNU General Public License as published by * |
| 13 | * the Free Software Foundation; either version 2 of the License, or * |
| 14 | * (at your option) any later version. * |
| 15 | * * |
| 16 | ***************************************************************************/ |
| 17 | |
| 18 | #ifndef GRAPHIC_H |
| 19 | #define GRAPHIC_Hcxx . . $ `src/graphic.h:19:9`! |
| 20 | |
| 21 | #include "surface.h"cxx . . $ `<file>/src/surface.h`/ |
| 22 | #include "SDL.h" |
| 23 | #include <string.h> // Only for Red Hat |
| 24 | |
| 25 | |
| 26 | #define OPAQUEcxx . . $ `src/graphic.h:26:9`! 255 |
| 27 | #define TRANSPARENTcxx . . $ `src/graphic.h:27:9`! 0 |
| 28 | |
| 29 | |
| 30 | enum Axiscxx . . $ Axis# {HAxiscxx . . $ HAxis., VAxiscxx . . $ VAxis.}; |
| 31 | |
| 32 | class Graphiccxx . . $ Graphic#: public Surfacecxx . . $ Surface#{ |
| 33 | |
| 34 | public: |
| 35 | |
| 36 | Graphiccxx . . $ Graphic#Graphic(49f6e7a06ebc5aa8).(); |
| 37 | |
| 38 | Graphiccxx . . $ Graphic#Graphic(1507bd8ff93ab3fd).(Graphiccxx . . $ Graphic# * g); |
| 39 | |
| 40 | Graphiccxx . . $ Graphic#Graphic(3e454b8ccf442868).(int width, int height); |
| 41 | |
| 42 | virtual ~cxx . . $ Graphic#`~Graphic`(ced63f7c635d850d).Graphiccxx . . $ Graphic#(); |
| 43 | |
| 44 | void setAlphacxx . . $ Graphic#setAlpha(44b6ea1973a07080).(char value=OPAQUEcxx . . $ `src/graphic.h:26:9`!); |
| 45 | |
| 46 | /** Enable or disable clipping.*/ |
| 47 | void enableClippingcxx . . $ Graphic#enableClipping(b45ddcbc8423892c).(bool flag=true); |
| 48 | |
| 49 | /** Establish the cliping zone.*/ |
| 50 | void setClippingcxx . . $ Graphic#setClipping(748afa4755bc9595).(int top, int left, int bottom, int right); |
| 51 | |
| 52 | virtual void flipcxx . . $ Graphic#flip(cf90abbfd5bcb432).(Axiscxx . . $ Axis# a=HAxiscxx . . $ HAxis.); |
| 53 | |
| 54 | virtual void fillcxx . . $ Graphic#fill(b1146eedae1e1d0b).(int r, int g, int b); |
| 55 | |
| 56 | virtual void fillRectcxx . . $ Graphic#fillRect(399580efc014f2ba).(int x, int y, int w, int h, int r, int g, int b, int a); |
| 57 | |
| 58 | protected: |
| 59 | |
| 60 | int clip_xcxx . . $ Graphic#clip_x., clip_ycxx . . $ Graphic#clip_y., clip_widthcxx . . $ Graphic#clip_width., clip_heightcxx . . $ Graphic#clip_height.; |
| 61 | bool clip_activecxx . . $ Graphic#clip_active.; |
| 62 | void * pixelscxx . . $ Graphic#pixels.; |
| 63 | }; |
| 64 | |
| 65 | |
| 66 | #endif |
| 67 |