📄 pixmap.h
字号:
// Pixmap.h: interface for the CPixmap class.
//
//////////////////////////////////////////////////////////////////////
#ifndef _WG_PIXMAP_H_
#define _WG_PIXMAP_H_
#include <gtk/gtk.h>
class CPixmap
{
public:
CPixmap(const gchar* filename);
CPixmap(const CPixmap& pix);
CPixmap& operator=(CPixmap& pix);
virtual ~CPixmap();
int GetWidth()
{ int width;
gdk_window_get_size (m_pixmap, &width, (int*)NULL);
return width;
}
int GetHeight()
{ int height;
gdk_window_get_size (m_pixmap, (int*)NULL, &height);
return height;
}
GdkPixmap* GetPixmap() const { return m_pixmap; }
GdkBitmap* GetMask() const { return m_mask; }
private:
GdkPixmap* m_pixmap;
GdkBitmap* m_mask;
};
#endif // _WG_PIXMAP_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -