Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Functions | Variables
gdk-pixbuf-xlib.c File Reference
#include "scconfig.h"
#include <X11/Xlib.h>
#include "gdk-pixbuf-xlib-private.h"

Go to the source code of this file.

Functions

void gdk_pixbuf_xlib_init (Display *display, int screen_num)
 gdk_pixbuf_xlib_init: : X display to use.
void gdk_pixbuf_xlib_init_with_depth (Display *display, int screen_num, int prefDepth)
 gdk_pixbuf_xlib_init_with_depth: : X display to use.

Variables

Display * gdk_pixbuf_dpy = NULL
int gdk_pixbuf_screen = -1

Function Documentation

void gdk_pixbuf_xlib_init ( Display *  display,
int  screen_num 
)

gdk_pixbuf_xlib_init: : X display to use.

: Screen number.

Initializes the gdk-pixbuf Xlib machinery by calling xlib_rgb_init(). This function should be called near the beginning of your program, or before using any of the gdk-pixbuf-xlib functions.

Definition at line 39 of file gdk-pixbuf-xlib.c.

{
    xlib_rgb_init (display, ScreenOfDisplay (display, screen_num));
    gdk_pixbuf_dpy = display;
    gdk_pixbuf_screen = screen_num;
}

Here is the call graph for this function:

void gdk_pixbuf_xlib_init_with_depth ( Display *  display,
int  screen_num,
int  prefDepth 
)

gdk_pixbuf_xlib_init_with_depth: : X display to use.

: Screen number. : Preferred depth for XlibRGB.

Similar to gdk_pixbuf_xlib_init(), but also lets you specify the preferred depth for XlibRGB if you do not want it to use the default depth it picks.

Definition at line 56 of file gdk-pixbuf-xlib.c.

{
    xlib_rgb_init_with_depth (display, ScreenOfDisplay (display, screen_num),
                           prefDepth);
    gdk_pixbuf_dpy = display;
    gdk_pixbuf_screen = screen_num;
}

Here is the call graph for this function:


Variable Documentation

Display* gdk_pixbuf_dpy = NULL

Definition at line 26 of file gdk-pixbuf-xlib.c.

Definition at line 27 of file gdk-pixbuf-xlib.c.