mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
f5ca9cd65a
Small code reordering. Interface where ede-desktop listens is now org.equinoxproject.Desktop. New config format.
40 lines
849 B
C++
40 lines
849 B
C++
/*
|
|
* $Id$
|
|
*
|
|
* ede-desktop, desktop and icon manager
|
|
* Part of Equinox Desktop Environment (EDE).
|
|
* Copyright (c) 2006-2008 EDE Authors.
|
|
*
|
|
* 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__
|
|
|
|
#include <X11/Xlib.h> // XImage, Pixmap
|
|
#include <FL/Fl_Box.H>
|
|
|
|
/*
|
|
* Class responsible for displaying images at background
|
|
* their scaling (TODO), caching(TODO) and making coffee at the spear time.
|
|
*/
|
|
class Wallpaper : public Fl_Box {
|
|
private:
|
|
Pixmap rootpmap_pixmap;
|
|
bool tiled;
|
|
void set_rootpmap(void);
|
|
|
|
public:
|
|
Wallpaper(int X, int Y, int W, int H);
|
|
~Wallpaper();
|
|
|
|
bool set(const char* path);
|
|
bool set_tiled(const char* path);
|
|
virtual void draw(void);
|
|
virtual int handle(int event);
|
|
};
|
|
|
|
#endif
|