![]() |
libxputty 0.1
|
Go to the source code of this file.
Functions | |
cairo_status_t | png_stream_reader (void *_stream, unsigned char *data, unsigned int length) |
cairo_surface_t * | cairo_image_surface_create_from_stream (const unsigned char *name) |
cairo_image_surface_create_from_stream - read binary data into cairo surface from stream | |
void | _copy_surface_to_widget (Widget_t *w, cairo_surface_t *getpng) |
void | _copy_scaled_surface_to_widget (Widget_t *w, cairo_surface_t *getpng) |
void | widget_get_png (Widget_t *w, const unsigned char *name) |
widget_get_png - read png into Widget_t xlib surface | |
void | widget_get_scaled_png (Widget_t *w, const unsigned char *name) |
widget_get_scaled_png - read scaled png into Widget_t xlib surface | |
void | widget_get_png_from_file (Widget_t *w, const char *filename) |
widget_get_png_from_file - read png from file into Widget_t xlib surface | |
void | widget_get_scaled_png_from_file (Widget_t *w, const char *filename) |
widget_get_scaled_png_from_file - read scaled png into Widget_t xlib surface | |
void | widget_get_surface_ptr (Widget_t *w, Widget_t *wid) |
widget_get_surface_ptr - set pointer to a 2. Widget_t xlib surface | |
cairo_surface_t * | surface_get_png (Widget_t *w, cairo_surface_t *sf, const unsigned char *name) |
surface_get_png - read png into Widget_t xlib surface | |
void | widget_set_icon_from_surface (Widget_t *w, cairo_surface_t *image) |
widget_set_icon_from_surface - set icon image from cairo surface for Widget_t those icon will be used in the Window decoration and the toolbar (depending on the Widnow manager) | |
void | widget_set_icon_from_png (Widget_t *w, const unsigned char *name) |
widget_set_icon_from_png - set icon image from png binary to Widget_t those icon will be used in the Window decoration and the toolbar (depending on the Widnow manager) | |
void _copy_scaled_surface_to_widget | ( | Widget_t * | w, |
cairo_surface_t * | getpng | ||
) |
Definition at line 56 of file xpngloader.c.
References Widget_t::image, Resize_t::init_height, Resize_t::init_width, Widget_t::scale, and Widget_t::surface.
Referenced by widget_get_scaled_png(), and widget_get_scaled_png_from_file().
void _copy_surface_to_widget | ( | Widget_t * | w, |
cairo_surface_t * | getpng | ||
) |
Definition at line 42 of file xpngloader.c.
References Widget_t::image, and Widget_t::surface.
Referenced by widget_get_png(), and widget_get_png_from_file().
cairo_surface_t * cairo_image_surface_create_from_stream | ( | const unsigned char * | name | ) |
cairo_image_surface_create_from_stream - read binary data into cairo surface from stream
*name | - pointer to the binary image data LDVAR(name) |
Definition at line 35 of file xpngloader.c.
References binary_stream::data, png_stream_reader(), and binary_stream::position.
Referenced by surface_get_png(), widget_get_png(), widget_get_scaled_png(), and widget_set_icon_from_png().
cairo_status_t png_stream_reader | ( | void * | _stream, |
unsigned char * | data, | ||
unsigned int | length | ||
) |
Definition at line 28 of file xpngloader.c.
References binary_stream::data, and binary_stream::position.
Referenced by cairo_image_surface_create_from_stream().
cairo_surface_t * surface_get_png | ( | Widget_t * | w, |
cairo_surface_t * | sf, | ||
const unsigned char * | name | ||
) |
surface_get_png - read png into Widget_t xlib surface
*w | - pointer to the Widget_t which should use the png |
*sf | - pointer to the cairo_surface_t which should hold the png |
*name | - pointer to the binary image data LDVAR(name) |
Definition at line 104 of file xpngloader.c.
References cairo_image_surface_create_from_stream(), and Widget_t::surface.
Referenced by add_listview(), and add_multi_listview().
void widget_get_png | ( | Widget_t * | w, |
const unsigned char * | name | ||
) |
widget_get_png - read png into Widget_t xlib surface
*w | - pointer to the Widget_t which should use the png |
*name | - pointer to the binary image data LDVAR(name) |
Definition at line 75 of file xpngloader.c.
References _copy_surface_to_widget(), and cairo_image_surface_create_from_stream().
Referenced by add_directory_button(), add_file_button(), add_save_file_button(), and open_message_dialog().
void widget_get_png_from_file | ( | Widget_t * | w, |
const char * | filename | ||
) |
widget_get_png_from_file - read png from file into Widget_t xlib surface
*w | - pointer to the Widget_t which should use the png |
*filename | - pointer to the image path/file |
Definition at line 87 of file xpngloader.c.
References _copy_surface_to_widget().
void widget_get_scaled_png | ( | Widget_t * | w, |
const unsigned char * | name | ||
) |
widget_get_scaled_png - read scaled png into Widget_t xlib surface
*w | - pointer to the Widget_t which should use the png |
*name | - pointer to the binary image data LDVAR(name) |
Definition at line 81 of file xpngloader.c.
References _copy_scaled_surface_to_widget(), and cairo_image_surface_create_from_stream().
void widget_get_scaled_png_from_file | ( | Widget_t * | w, |
const char * | filename | ||
) |
widget_get_scaled_png_from_file - read scaled png into Widget_t xlib surface
*w | - pointer to the Widget_t which should use the png |
*filename | - pointer to the image path/file |
Definition at line 93 of file xpngloader.c.
References _copy_scaled_surface_to_widget().
widget_get_surface_ptr - set pointer to a 2. Widget_t xlib surface
*w | - pointer to the Widget_t which should use the surface |
*wid | - pointer to the Widget_t which hold the surface |
Definition at line 99 of file xpngloader.c.
References Widget_t::flags, Widget_t::image, and REUSE_IMAGE.
void widget_set_icon_from_png | ( | Widget_t * | w, |
const unsigned char * | name | ||
) |
widget_set_icon_from_png - set icon image from png binary to Widget_t those icon will be used in the Window decoration and the toolbar (depending on the Widnow manager)
*w | - pointer to the Widget_t which should use the icon |
*name | - pointer to the binary image data LDVAR(name) |
Definition at line 159 of file xpngloader.c.
References Widget_t::app, cairo_image_surface_create_from_stream(), Xputty::dpy, and Widget_t::widget.
Referenced by mk_open_midi_keyboard(), open_directory_dialog(), open_file_dialog(), and save_file_dialog().
void widget_set_icon_from_surface | ( | Widget_t * | w, |
cairo_surface_t * | image | ||
) |
widget_set_icon_from_surface - set icon image from cairo surface for Widget_t those icon will be used in the Window decoration and the toolbar (depending on the Widnow manager)
*w | - pointer to the Widget_t which should use the icon |
*image | - pointer to the cairo_surface_t to use for the icon |
Definition at line 119 of file xpngloader.c.
References Widget_t::app, Xputty::dpy, and Widget_t::widget.
Referenced by open_message_dialog().