Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->Linux技术 ->系统管理 ->正文

GDK Reference Manual

来源:Linux-cn.com 作者:Webmaster 时间:2007-05-05 点击: [收藏] [投稿]

  filename : the filename of a file containing XPM data.

  Returns : the GdkPixmap


gdk_pixmap_colormap_create_from_xpm ()
GdkPixmap*gdk_pixmap_colormap_create_from_xpm
(GdkWindow *window,GdkColormap *colormap,GdkBitmap **mask,
GdkColor *transparent_color,const gchar *filename); 

  Create a pixmap from a XPM file using a particular colormap.

  window : a GdkWindow, used to determine default values for the new pixmap. Can be NULL if colormap is given.

  colormap : the GdkColormap that the new pixmap will be use. If omitted, the colormap for window will be used.

  mask : a pointer to a place to store a bitmap representing the transparency mask of the XPM file. Can be NULL, in which case transparency will be ignored.

  transparent_color : the color to be used for the pixels that are transparent in the input file. Can be NULL, in which case a default color will be used.

  filename : the filename of a file containing XPM data.

  Returns : the GdkPixmap.


gdk_pixmap_create_from_xpm_d ()
GdkPixmap*gdk_pixmap_create_from_xpm_d(GdkWindow *window,
GdkBitmap **mask,GdkColor *transparent_color,gchar **data); 

  Create a pixmap from data in XPM format.

  window : a GdkWindow, used to determine default values for the new pixmap.

  mask : Pointer to a place to store a bitmap representing the transparency mask of the XPM file. Can be NULL, in which case transparency will be ignored.

  transparent_color : This color will be used for the pixels that are transparent in the input file. Can be NULL in which case a default color will be used.

  data : Pointer to a string containing the XPM data.

  Returns : the GdkPixmap


gdk_pixmap_colormap_create_from_xpm_d ()
GdkPixmap*gdk_pixmap_colormap_create_from_xpm_d
(GdkWindow *window,GdkColormap *colormap,
GdkBitmap **mask,GdkColor *transparent_color,gchar **data); 

  Create a pixmap from data in XPM format using a particular colormap.

  window : a GdkWindow, used to determine default values for the new pixmap. Can be NULL if colormap is given.

  colormap : the GdkColormap that the new pixmap will be use. If omitted, the colormap for window will be used.

  mask : a pointer to a place to store a bitmap representing the transparency mask of the XPM file. Can be NULL, in which case transparency will be ignored.

  transparent_color : the color to be used for the pixels that are transparent in the input file. Can be NULL, in which case a default color will be used.

  data : Pointer to a string containing the XPM data.

  Returns : the GdkPixmap.


gdk_pixmap_ref ()
GdkPixmap*gdk_pixmap_ref(GdkPixmap *pixmap); 

  Increase the reference count of a pixmap.

  pixmap : a GdkPixmap

  Returns : pixmap


gdk_pixmap_unref ()
voidgdk_pixmap_unref(GdkPixmap *pixmap); 

  Decrease the reference count of a pixmap. If the resulting reference count is zero, destroy the pixmap.

  pixmap : a GdkPixmap

  struct GdkBitmap


struct GdkBitmap
{
gpointer user_data;
}; 

  An opaque structure representing an offscreen drawable of depth 1. Pointers to structures of type GdkPixmap, GdkBitmap, and GdkWindow, can often be used interchangeably. The type GdkDrawable refers generically to any of these types.


gdk_bitmap_ref ()
GdkBitmap*gdk_bitmap_ref(GdkBitmap *pixmap); 

  Increase the reference count of a bitmap. An alias for gdk_pixmap_ref().

  pixmap :

  Returns :


gdk_bitmap_unref ()
voidgdk_bitmap_unref(GdkBitmap *pixmap); 

  Decrease the reference count of a bitmap. An alias for gdk_pixmap_unref().

  pixmap :

  GdkRGB

  Name

  GdkRGB -- displays RGB images (as well as grayscale and colormapped) to the native window.

  Synopsis



 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<



上一篇:GTK v1.2 Tutorial(英文)   下一篇:Java入门(12) 事件与错误处理

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章