gdkimage-win32.c File Reference

#include "config.h"
#include "gdk.h"
#include "gdkimage.h"
#include "gdkprivate.h"
#include "gdkwin32.h"

Go to the source code of this file.

Functions

static void gdk_win32_image_destroy (GdkImage *image)
static void gdk_image_put (GdkImage *image, GdkDrawable *drawable, GdkGC *gc, gint xsrc, gint ysrc, gint xdest, gint ydest, gint width, gint height)
void gdk_image_exit (void)
GdkImagegdk_image_new_bitmap (GdkVisual *visual, gpointer data, gint w, gint h)
void gdk_image_init (void)
static GdkImagegdk_image_new_with_depth (GdkImageType type, GdkVisual *visual, gint width, gint height, gint depth)
GdkImagegdk_image_new (GdkImageType type, GdkVisual *visual, gint width, gint height)
GdkImagegdk_image_bitmap_new (GdkImageType type, GdkVisual *visual, gint width, gint height)
GdkImagegdk_image_get (GdkWindow *window, gint x, gint y, gint width, gint height)
guint32 gdk_image_get_pixel (GdkImage *image, gint x, gint y)
void gdk_image_put_pixel (GdkImage *image, gint x, gint y, guint32 pixel)

Variables

static GdkImageClass image_class
static GListimage_list = NULL


Function Documentation

GdkImage* gdk_image_bitmap_new ( GdkImageType  type,
GdkVisual visual,
gint  width,
gint  height 
)

Definition at line 275 of file gdkimage-win32.c.

References gdk_image_new_with_depth().

Referenced by gdk_pixmap_create_on_shared_image().

void gdk_image_exit ( void   ) 

Definition at line 49 of file gdkimage-win32.c.

References gdk_win32_image_destroy(), image, and image_list.

Referenced by gdk_exit_func().

GdkImage* gdk_image_get ( GdkWindow window,
gint  x,
gint  y,
gint  width,
gint  height 
)

Definition at line 281 of file gdkimage-win32.c.

References BI_RGB, tagBITMAPINFOHEADER::biBitCount, tagBITMAPINFOHEADER::biClrImportant, tagBITMAPINFOHEADER::biClrUsed, tagBITMAPINFOHEADER::biCompression, tagBITMAPINFOHEADER::biHeight, tagBITMAPINFOHEADER::biPlanes, tagBITMAPINFOHEADER::biSize, tagBITMAPINFOHEADER::biSizeImage, tagBITMAPINFOHEADER::biWidth, tagBITMAPINFOHEADER::biXPelsPerMeter, tagBITMAPINFOHEADER::biYPelsPerMeter, bmi, tagBITMAPINFO::bmiHeader, _GdkVisual::depth, DWORD, g_assert_not_reached, g_free(), g_new, g_print(), g_return_val_if_fail, g_warning(), GDK_DRAWABLE_DESTROYED, GDK_DRAWABLE_PIXMAP, GDK_DRAWABLE_TYPE, GDK_DRAWABLE_XID, GDK_IMAGE_SHARED, GDK_LSB_FIRST, GDK_NOTE, gdk_visual_get_system(), GDK_VISUAL_PSEUDO_COLOR, gdk_window_get_visual, HDC(), i, image, image_class, NULL, private, u, and WIN32_GDI_FAILED.

Referenced by gdk_cursor_new_from_pixmap(), TGWin32::GetBackground(), TGWin32::SetOpacity(), test_one_line_on_drawable(), test_one_point_on_drawable(), test_one_rectangle_on_drawable(), test_pixmaps(), test_some_arcs_on_drawable(), and TGWin32::WriteGIF().

guint32 gdk_image_get_pixel ( GdkImage image,
gint  x,
gint  y 
)

Definition at line 486 of file gdkimage-win32.c.

References g_return_val_if_fail, height, image, NULL, and width.

Referenced by test_one_line_on_drawable(), test_one_point_on_drawable(), test_one_rectangle_on_drawable(), and test_some_arcs_on_drawable().

void gdk_image_init ( void   ) 

Definition at line 129 of file gdkimage-win32.c.

Referenced by gdk_init_check().

GdkImage* gdk_image_new ( GdkImageType  type,
GdkVisual visual,
gint  width,
gint  height 
)

Definition at line 263 of file gdkimage-win32.c.

References Visual::bitspixel, _GdkVisual::depth, gdk_image_new_with_depth(), and _GdkVisualPrivate::xvisual.

Referenced by _gdk_pixmap_create_from_xpm(), TGWin32::CreateImage(), gdk_pixmap_create_on_shared_image(), gdk_rgb_init(), TGWin32::RenderString(), and test_images().

GdkImage* gdk_image_new_bitmap ( GdkVisual visual,
gpointer  data,
gint  w,
gint  h 
)

Definition at line 59 of file gdkimage-win32.c.

References BI_RGB, tagBITMAPINFOHEADER::biBitCount, tagBITMAPINFOHEADER::biClrImportant, tagBITMAPINFOHEADER::biClrUsed, tagBITMAPINFOHEADER::biCompression, tagBITMAPINFOHEADER::biHeight, tagBITMAPINFOHEADER::biPlanes, tagBITMAPINFOHEADER::biSize, tagBITMAPINFOHEADER::biSizeImage, bits, tagBITMAPINFOHEADER::biWidth, tagBITMAPINFOHEADER::biXPelsPerMeter, tagBITMAPINFOHEADER::biYPelsPerMeter, bmi, tagBITMAPINFO::bmiColors, tagBITMAPINFO::bmiHeader, g_new, g_print(), gdk_DC, GDK_IMAGE_SHARED, GDK_MSB_FIRST, GDK_NOTE, i, image, image_class, memmove, NULL, tagRGBQUAD::rgbBlue, tagRGBQUAD::rgbGreen, tagRGBQUAD::rgbRed, tagRGBQUAD::rgbReserved, and u.

Referenced by gdk_rgb_init().

static GdkImage* gdk_image_new_with_depth ( GdkImageType  type,
GdkVisual visual,
gint  width,
gint  height,
gint  depth 
) [static]

Definition at line 133 of file gdkimage-win32.c.

References BI_RGB, tagBITMAPINFOHEADER::biBitCount, tagBITMAPINFOHEADER::biClrImportant, tagBITMAPINFOHEADER::biClrUsed, tagBITMAPINFOHEADER::biCompression, tagBITMAPINFOHEADER::biHeight, tagBITMAPINFOHEADER::biPlanes, tagBITMAPINFOHEADER::biSize, tagBITMAPINFOHEADER::biSizeImage, tagBITMAPINFOHEADER::biWidth, tagBITMAPINFOHEADER::biXPelsPerMeter, tagBITMAPINFOHEADER::biYPelsPerMeter, _GdkVisual::blue_mask, bmi, tagBITMAPINFO::bmiColors, tagBITMAPINFO::bmiHeader, DWORD, g_assert_not_reached, g_free(), g_new, g_print(), g_warning(), gdk_DC, GDK_IMAGE_FASTEST, GDK_IMAGE_NORMAL, GDK_IMAGE_SHARED, GDK_IMAGE_SHARED_PIXMAP, GDK_LSB_FIRST, GDK_NOTE, GDK_VISUAL_PSEUDO_COLOR, _GdkVisual::green_mask, i, image, image_class, NULL, private, _GdkVisual::red_mask, tagRGBQUAD::rgbBlue, tagRGBQUAD::rgbGreen, tagRGBQUAD::rgbRed, tagRGBQUAD::rgbReserved, u, and WIN32_GDI_FAILED.

Referenced by gdk_image_bitmap_new(), and gdk_image_new().

static void gdk_image_put ( GdkImage image,
GdkDrawable drawable,
GdkGC gc,
gint  xsrc,
gint  ysrc,
gint  xdest,
gint  ydest,
gint  width,
gint  height 
) [static]

Definition at line 591 of file gdkimage-win32.c.

References bmi, tagBITMAPINFO::bmiHeader, _GdkDrawablePrivate::colormap, Reflex::CONST, FALSE, g_print(), g_return_if_fail, GDK_DRAWABLE_DESTROYED, gdk_gc_predraw(), HDC(), i, if(), image, NULL, ColormapStruct::rc_palette, TRUE, WIN32_GDI_FAILED, _GdkColormapPrivateWin32::xcolormap, and _GdkImagePrivateWin32::ximage.

void gdk_image_put_pixel ( GdkImage image,
gint  x,
gint  y,
guint32  pixel 
)

Definition at line 526 of file gdkimage-win32.c.

References g_return_if_fail, height, image, NULL, and width.

Referenced by _gdk_pixmap_create_from_xpm().

static void gdk_win32_image_destroy ( GdkImage image  )  [static]

Definition at line 558 of file gdkimage-win32.c.

References g_assert_not_reached, g_free(), g_print(), g_return_if_fail, GDK_IMAGE_SHARED, GDK_IMAGE_SHARED_PIXMAP, GDK_NOTE, image, NULL, private, and WIN32_GDI_FAILED.

Referenced by gdk_image_exit().


Variable Documentation

GdkImageClass image_class [static]

Initial value:

Definition at line 42 of file gdkimage-win32.c.

Referenced by gdk_image_get(), gdk_image_new_bitmap(), and gdk_image_new_with_depth().

GList* image_list = NULL [static]

Definition at line 47 of file gdkimage-win32.c.

Referenced by gdk_image_exit().


Generated on Tue Jul 5 15:58:42 2011 for ROOT_528-00b_version by  doxygen 1.5.1