gdk.h

来自「gtk是linux一款强大的夸平台的图形化开发工具」· C头文件 代码 · 共 1,023 行 · 第 1/3 页

H
1,023
字号
			  GdkGC	       *gc,			  gint		filled,			  GdkPoint     *points,			  gint		npoints);void gdk_draw_string	 (GdkDrawable  *drawable,			  GdkFont      *font,			  GdkGC	       *gc,			  gint		x,			  gint		y,			  const gchar  *string);void gdk_draw_text	 (GdkDrawable  *drawable,			  GdkFont      *font,			  GdkGC	       *gc,			  gint		x,			  gint		y,			  const gchar  *text,			  gint		text_length);void gdk_draw_text_wc	 (GdkDrawable	 *drawable,			  GdkFont	 *font,			  GdkGC		 *gc,			  gint		  x,			  gint		  y,			  const GdkWChar *text,			  gint		  text_length);void gdk_draw_pixmap	 (GdkDrawable  *drawable,			  GdkGC	       *gc,			  GdkDrawable  *src,			  gint		xsrc,			  gint		ysrc,			  gint		xdest,			  gint		ydest,			  gint		width,			  gint		height);void gdk_draw_bitmap	 (GdkDrawable  *drawable,			  GdkGC	       *gc,			  GdkDrawable  *src,			  gint		xsrc,			  gint		ysrc,			  gint		xdest,			  gint		ydest,			  gint		width,			  gint		height);void gdk_draw_image	 (GdkDrawable  *drawable,			  GdkGC	       *gc,			  GdkImage     *image,			  gint		xsrc,			  gint		ysrc,			  gint		xdest,			  gint		ydest,			  gint		width,			  gint		height);void gdk_draw_points	 (GdkDrawable  *drawable,			  GdkGC	       *gc,			  GdkPoint     *points,			  gint		npoints);void gdk_draw_segments	 (GdkDrawable  *drawable,			  GdkGC	       *gc,			  GdkSegment   *segs,			  gint		nsegs);void gdk_draw_lines      (GdkDrawable  *drawable,                          GdkGC        *gc,                          GdkPoint     *points,                          gint          npoints); /* Selections */gint	   gdk_selection_owner_set (GdkWindow	 *owner,				    GdkAtom	  selection,				    guint32	  time,				    gint	  send_event);GdkWindow* gdk_selection_owner_get (GdkAtom	  selection);void	   gdk_selection_convert   (GdkWindow	 *requestor,				    GdkAtom	  selection,				    GdkAtom	  target,				    guint32	  time);gint	   gdk_selection_property_get (GdkWindow  *requestor,				       guchar	 **data,				       GdkAtom	  *prop_type,				       gint	  *prop_format);void	   gdk_selection_send_notify (guint32	    requestor,				      GdkAtom	    selection,				      GdkAtom	    target,				      GdkAtom	    property,				      guint32	    time);gint	   gdk_text_property_to_text_list (GdkAtom encoding, gint format,					   guchar *text, gint length,					   gchar ***list);void	   gdk_free_text_list		  (gchar **list);gint	   gdk_string_to_compound_text	  (gchar *str,					   GdkAtom *encoding, gint *format,					   guchar **ctext, gint *length);void	   gdk_free_compound_text	  (guchar *ctext);/* Properties */GdkAtom gdk_atom_intern	    (const gchar *atom_name,			     gint	  only_if_exists);gchar*	gdk_atom_name	    (GdkAtom atom);gint	gdk_property_get    (GdkWindow	 *window,			     GdkAtom	  property,			     GdkAtom	  type,			     gulong	  offset,			     gulong	  length,			     gint	  pdelete,			     GdkAtom	 *actual_property_type,			     gint	 *actual_format,			     gint	 *actual_length,			     guchar	**data);void	gdk_property_change (GdkWindow	 *window,			     GdkAtom	  property,			     GdkAtom	  type,			     gint	  format,			     GdkPropMode  mode,			     guchar	 *data,			     gint	  nelements);void	gdk_property_delete (GdkWindow	 *window,			     GdkAtom	  property);/* Rectangle utilities */gint gdk_rectangle_intersect (GdkRectangle *src1,			      GdkRectangle *src2,			      GdkRectangle *dest);void gdk_rectangle_union     (GdkRectangle *src1,			      GdkRectangle *src2,			      GdkRectangle *dest);/* XInput support */void gdk_input_init			    (void);void gdk_input_exit			    (void);GList *gdk_input_list_devices		    (void);void gdk_input_set_extension_events	    (GdkWindow *window,					     gint mask,					     GdkExtensionMode mode);void gdk_input_set_source		    (guint32 deviceid,					     GdkInputSource source);gint gdk_input_set_mode			    (guint32 deviceid,					     GdkInputMode mode);void gdk_input_set_axes			    (guint32 deviceid,					     GdkAxisUse *axes);void gdk_input_set_key			    (guint32 deviceid,					     guint   index,					     guint   keyval,					     GdkModifierType modifiers);void gdk_input_window_get_pointer     (GdkWindow       *window,				       guint32	       deviceid,				       gdouble	       *x,				       gdouble	       *y,				       gdouble	       *pressure,				       gdouble	       *xtilt,				       gdouble	       *ytilt,				       GdkModifierType *mask);GdkTimeCoord *gdk_input_motion_events (GdkWindow *window,				       guint32 deviceid,				       guint32 start,				       guint32 stop,				       gint *nevents_return);/* International Input Method Support Functions */gint         gdk_im_ready	   (void);void         gdk_im_begin	   (GdkIC               *ic, 				    GdkWindow           *window);void         gdk_im_end		   (void);GdkIMStyle   gdk_im_decide_style   (GdkIMStyle           supported_style);GdkIMStyle   gdk_im_set_best_style (GdkIMStyle           best_allowed_style);GdkIC*       gdk_ic_new		   (GdkICAttr 		*attr,				    GdkICAttributesType mask);void         gdk_ic_destroy	   (GdkIC               *ic);GdkIMStyle   gdk_ic_get_style	   (GdkIC               *ic);GdkEventMask gdk_ic_get_events     (GdkIC               *ic);GdkICAttr*   gdk_ic_attr_new       (void);void         gdk_ic_attr_destroy   (GdkICAttr *attr);GdkICAttributesType  gdk_ic_set_attr (GdkIC              *ic,                                        GdkICAttr          *attr,                                      GdkICAttributesType mask);GdkICAttributesType  gdk_ic_get_attr (GdkIC              *ic,                                       GdkICAttr          *attr,                                      GdkICAttributesType mask);/* Conversion functions between wide char and multibyte strings.  */gchar     *gdk_wcstombs          (const GdkWChar   *src);gint       gdk_mbstowcs          (GdkWChar         *dest,				  const gchar      *src,				  gint              dest_max);/* Color Context */GdkColorContext *gdk_color_context_new			  (GdkVisual   *visual,							   GdkColormap *colormap);GdkColorContext *gdk_color_context_new_mono		  (GdkVisual   *visual,							   GdkColormap *colormap);void		 gdk_color_context_free			  (GdkColorContext *cc);gulong		 gdk_color_context_get_pixel		  (GdkColorContext *cc,							   gushort	    red,							   gushort	    green,							   gushort	    blue,							   gint		   *failed);void		 gdk_color_context_get_pixels		  (GdkColorContext *cc,							   gushort	   *reds,							   gushort	   *greens,							   gushort	   *blues,							   gint		    ncolors,							   gulong	   *colors,							   gint		   *nallocated);void		 gdk_color_context_get_pixels_incremental (GdkColorContext *cc,							   gushort	   *reds,							   gushort	   *greens,							   gushort	   *blues,							   gint		    ncolors,							   gint		   *used,							   gulong	   *colors,							   gint		   *nallocated);gint		 gdk_color_context_query_color		  (GdkColorContext *cc,							   GdkColor	   *color);gint		 gdk_color_context_query_colors		  (GdkColorContext *cc,							   GdkColor	   *colors,							   gint		    num_colors);gint		 gdk_color_context_add_palette		  (GdkColorContext *cc,							   GdkColor	   *palette,							   gint		    num_palette);void		 gdk_color_context_init_dither		  (GdkColorContext *cc);void		 gdk_color_context_free_dither		  (GdkColorContext *cc);gulong		 gdk_color_context_get_pixel_from_palette (GdkColorContext *cc,							   gushort	   *red,							   gushort	   *green,							   gushort	   *blue,							   gint		   *failed);guchar		 gdk_color_context_get_index_from_palette (GdkColorContext *cc,							   gint		   *red,							   gint		   *green,							   gint		   *blue,							   gint		   *failed);/* Regions */GdkRegion*     gdk_region_new	    (void);void	       gdk_region_destroy   (GdkRegion	   *region);void	       gdk_region_get_clipbox(GdkRegion    *region,				      GdkRectangle *rectangle);gboolean       gdk_region_empty	    (GdkRegion	   *region);gboolean       gdk_region_equal	    (GdkRegion	   *region1,				     GdkRegion	   *region2);gboolean       gdk_region_point_in  (GdkRegion	   *region,				     int		   x,				     int		   y);GdkOverlapType gdk_region_rect_in   (GdkRegion	   *region,				     GdkRectangle  *rect);GdkRegion*     gdk_region_polygon   (GdkPoint      *points,				     gint           npoints,				     GdkFillRule    fill_rule);void	       gdk_region_offset   (GdkRegion	   *region,				    gint	   dx,				    gint	   dy);void	       gdk_region_shrink   (GdkRegion	   *region,				    gint	   dx,				    gint	   dy);GdkRegion*    gdk_region_union_with_rect  (GdkRegion	  *region,					   GdkRectangle	  *rect);GdkRegion*    gdk_regions_intersect	  (GdkRegion	  *source1,					   GdkRegion	  *source2);GdkRegion*    gdk_regions_union		  (GdkRegion	  *source1,					   GdkRegion	  *source2);GdkRegion*    gdk_regions_subtract	  (GdkRegion	  *source1,					   GdkRegion	  *source2);GdkRegion*    gdk_regions_xor		  (GdkRegion	  *source1,					   GdkRegion	  *source2);/* Miscellaneous */void     gdk_event_send_clientmessage_toall (GdkEvent    *event);gboolean gdk_event_send_client_message (GdkEvent    *event,					guint32      xid);/* Key values */gchar*   gdk_keyval_name		  (guint	keyval);guint    gdk_keyval_from_name		  (const gchar *keyval_name);guint    gdk_keyval_to_upper		  (guint	keyval);guint    gdk_keyval_to_lower		  (guint	keyval);gboolean gdk_keyval_is_upper		  (guint	keyval);gboolean gdk_keyval_is_lower		  (guint	keyval);/* Threading */extern GMutex *gdk_threads_mutex;void     gdk_threads_enter                (void);void     gdk_threads_leave                (void);#ifdef	G_THREADS_ENABLED#  define GDK_THREADS_ENTER()	G_STMT_START {	\      if (gdk_threads_mutex)                 	\        g_mutex_lock (gdk_threads_mutex);   	\   } G_STMT_END#  define GDK_THREADS_LEAVE()	G_STMT_START { 	\      if (gdk_threads_mutex)                 	\        g_mutex_unlock (gdk_threads_mutex); 	\   } G_STMT_END#else	/* !G_THREADS_ENABLED */#  define GDK_THREADS_ENTER()#  define GDK_THREADS_LEAVE()#endif	/* !G_THREADS_ENABLED */#include <gdk/gdkrgb.h>#ifdef __cplusplus}#endif /* __cplusplus */#endif /* __GDK_H__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?