view src/aosd/ghosd-internal.h @ 867:d9c7b1d413c9 trunk

[svn] - last commit wasn't obviously related wit changes here; revert stuff that is still being tested
author giacomo
date Fri, 16 Mar 2007 18:58:10 -0700
parents 6584e697e6da
children 13cdd6999598
line wrap: on
line source

/* ghosd -- OSD with fake transparency, cairo, and pango.
 * Copyright (C) 2006 Evan Martin <martine@danga.com>
 *
 * With further development by Giacomo Lozito <james@develia.org>
 * for the ghosd-based Audacious OSD
 */

#include <X11/Xlib.h>

#include "ghosd.h"

typedef struct {
  GhosdRenderFunc func;
  void *data;
  void (*data_destroy)(void*);
} RenderCallback;

typedef struct {
  GhosdEventButtonCb func;
  void *data;
} EventButtonCallback;

struct _Ghosd {
  Display *dpy;
  Window win;
  int transparent;
  int x, y, width, height;
  
  Pixmap background;
  RenderCallback render;
  EventButtonCallback eventbutton;
};

/* vim: set ts=2 sw=2 et cino=(0 : */