mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
eed5749909
Also center ede-launch window.
32 lines
710 B
C++
32 lines
710 B
C++
//
|
|
// PImage.hh for pekwm
|
|
// Copyright © 2007-2009 Claes Nästén <me@pekdon.net>
|
|
//
|
|
// This program is licensed under the GNU GPL.
|
|
// See the LICENSE file for more information.
|
|
//
|
|
|
|
#ifndef _PIMAGE_NATIVE_ICON_HH_
|
|
#define _PIMAGE_NATIVE_ICON_HH_
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif // HAVE_CONFIG_H
|
|
|
|
#include "PImage.hh"
|
|
|
|
//! @brief Image class with pekwm native backend.
|
|
class PImageIcon : public PImage {
|
|
public:
|
|
PImageIcon(Display *dpy);
|
|
virtual ~PImageIcon(void);
|
|
|
|
bool loadFromWindow(Window win);
|
|
|
|
private:
|
|
bool setImageFromData(uchar *data, ulong actual);
|
|
static void convertARGBtoRGBA(ulong size, long *from_data, uchar *to_data);
|
|
};
|
|
|
|
#endif // _PIMAGE_NATIVE_ICON_HH_
|