#include <X11/Xft/Xft.h>
#include <glib.h>
#include "color.h"
+#include "../kernel/geom.h"
typedef enum {
Surface_Planar,
typedef enum {
Bitmask,
Text,
- RGBA
+ RGBA,
+ NoTexture
} TextureType;
+struct Appearance;
+
typedef struct PlanarSurface {
SurfaceColorType grad;
ReliefType relief;
color_rgb *border_color;
gboolean interlaced;
gboolean border;
+ struct Appearance *parent;
+ int parentx;
+ int parenty;
pixel32 *pixel_data;
} PlanarSurface;
} TextureMask;
typedef struct TextureRGBA {
- int poo;
+ int width;
+ int height;
+ unsigned long *data;
+/* cached scaled so we don't have to scale often */
+ int cwidth;
+ int cheight;
+ unsigned long *cache;
} TextureRGBA;
typedef union {