2007-06-18 18:18:35 +04:00
|
|
|
/*
|
|
|
|
* $Id$
|
|
|
|
*
|
2008-10-02 13:42:19 +04:00
|
|
|
* ede-desktop, desktop and icon manager
|
2007-06-18 18:18:35 +04:00
|
|
|
* Part of Equinox Desktop Environment (EDE).
|
2008-10-02 13:42:19 +04:00
|
|
|
* Copyright (c) 2006-2008 EDE Authors.
|
2007-06-18 18:18:35 +04:00
|
|
|
*
|
|
|
|
* This program is licensed under terms of the
|
|
|
|
* GNU General Public License version 2 or newer.
|
|
|
|
* See COPYING for details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WALLPAPER_H__
|
|
|
|
#define __WALLPAPER_H__
|
|
|
|
|
2007-06-20 14:58:07 +04:00
|
|
|
#include <X11/Xlib.h> // XImage, Pixmap
|
2008-10-02 13:42:19 +04:00
|
|
|
#include <FL/Fl_Box.H>
|
2007-06-20 14:58:07 +04:00
|
|
|
|
2007-06-18 18:18:35 +04:00
|
|
|
/*
|
|
|
|
* Class responsible for displaying images at background
|
2009-02-26 14:15:27 +03:00
|
|
|
* their scaling (TODO), caching(TODO) and making coffee at the spare time.
|
2007-06-18 18:18:35 +04:00
|
|
|
*/
|
|
|
|
class Wallpaper : public Fl_Box {
|
2009-02-26 14:15:27 +03:00
|
|
|
private:
|
|
|
|
Pixmap rootpmap_pixmap;
|
|
|
|
bool tiled;
|
|
|
|
void set_rootpmap(void);
|
2007-06-18 18:18:35 +04:00
|
|
|
|
2009-02-26 14:15:27 +03:00
|
|
|
public:
|
|
|
|
Wallpaper(int X, int Y, int W, int H);
|
|
|
|
~Wallpaper();
|
2007-06-18 18:18:35 +04:00
|
|
|
|
2009-02-26 14:15:27 +03:00
|
|
|
bool set(const char* path);
|
|
|
|
bool set_tiled(const char* path);
|
|
|
|
virtual void draw(void);
|
|
|
|
virtual int handle(int event);
|
2007-06-18 18:18:35 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|