navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
graphics_methods Struct Reference

#include <graphics.h>

Data Fields

void(* graphics_destroy )(struct graphics_priv *gr)
 
void(* draw_mode )(struct graphics_priv *gr, enum draw_mode_num mode)
 
void(* draw_lines )(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count)
 
void(* draw_polygon )(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count)
 
void(* draw_rectangle )(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int w, int h)
 
void(* draw_circle )(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int r)
 
void(* draw_text )(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct graphics_gc_priv *bg, struct graphics_font_priv *font, char *text, struct point *p, int dx, int dy)
 
void(* draw_image )(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, struct graphics_image_priv *img)
 
void(* draw_image_warp )(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, int count, struct graphics_image_priv *img)
 
void(* draw_drag )(struct graphics_priv *gr, struct point *p)
 
struct graphics_font_priv *(* font_new )(struct graphics_priv *gr, struct graphics_font_methods *meth, char *font, int size, int flags)
 
struct graphics_gc_priv *(* gc_new )(struct graphics_priv *gr, struct graphics_gc_methods *meth)
 
void(* background_gc )(struct graphics_priv *gr, struct graphics_gc_priv *gc)
 
struct graphics_priv *(* overlay_new )(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int wraparound)
 
struct graphics_image_priv *(* image_new )(struct graphics_priv *gr, struct graphics_image_methods *meth, char *path, int *w, int *h, struct point *hot, int rotation)
 Load an image from a file. More...
 
void *(* get_data )(struct graphics_priv *gr, const char *type)
 
void(* image_free )(struct graphics_priv *gr, struct graphics_image_priv *priv)
 
void(* get_text_bbox )(struct graphics_priv *gr, struct graphics_font_priv *font, char *text, int dx, int dy, struct point *ret, int estimate)
 
void(* overlay_disable )(struct graphics_priv *gr, int disable)
 
void(* overlay_resize )(struct graphics_priv *gr, struct point *p, int w, int h, int wraparound)
 
int(* set_attr )(struct graphics_priv *gr, struct attr *attr)
 
int(* show_native_keyboard )(struct graphics_keyboard *kbd)
 
void(* hide_native_keyboard )(struct graphics_keyboard *kbd)
 

Field Documentation

void(* graphics_methods::background_gc)(struct graphics_priv *gr, struct graphics_gc_priv *gc)

Referenced by graphics_background_gc().

void(* graphics_methods::draw_circle)(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int r)

Referenced by graphics_draw_circle().

void(* graphics_methods::draw_drag)(struct graphics_priv *gr, struct point *p)

Referenced by graphics_draw_drag().

void(* graphics_methods::draw_image)(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, struct graphics_image_priv *img)
void(* graphics_methods::draw_image_warp)(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, int count, struct graphics_image_priv *img)

Referenced by displayitem_draw().

void(* graphics_methods::draw_lines)(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count)
void(* graphics_methods::draw_mode)(struct graphics_priv *gr, enum draw_mode_num mode)
void(* graphics_methods::draw_polygon)(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count)
void(* graphics_methods::draw_rectangle)(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int w, int h)
void(* graphics_methods::draw_text)(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct graphics_gc_priv *bg, struct graphics_font_priv *font, char *text, struct point *p, int dx, int dy)
struct graphics_gc_priv*(* graphics_methods::gc_new)(struct graphics_priv *gr, struct graphics_gc_methods *meth)

Referenced by graphics_gc_new().

void*(* graphics_methods::get_data)(struct graphics_priv *gr, const char *type)

Referenced by graphics_get_data().

void(* graphics_methods::graphics_destroy)(struct graphics_priv *gr)

Referenced by graphics_free().

void(* graphics_methods::hide_native_keyboard)(struct graphics_keyboard *kbd)
void(* graphics_methods::image_free)(struct graphics_priv *gr, struct graphics_image_priv *priv)

Referenced by graphics_free().

struct graphics_image_priv*(* graphics_methods::image_new)(struct graphics_priv *gr, struct graphics_image_methods *meth, char *path, int *w, int *h, struct point *hot, int rotation)

Load an image from a file.

Parameters
grgraphics object
methoutput parameter for graphics methods object
pathfile name/path of image to load
wIn: width to scale image to, or IMAGE_W_H_UNSET for original width. Out: Actual width of returned image.
hheigth; see w
hotoutput parameter for image hotspot
rotateangle to rotate the image, in 90 degree steps (not supported by all plugins).
Returns
pointer to allocated image, to be freed by image_free()
See Also
image_free()

Referenced by image_new_helper().

void(* graphics_methods::overlay_disable)(struct graphics_priv *gr, int disable)
struct graphics_priv*(* graphics_methods::overlay_new)(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int wraparound)

Referenced by graphics_overlay_new().

void(* graphics_methods::overlay_resize)(struct graphics_priv *gr, struct point *p, int w, int h, int wraparound)

Referenced by graphics_overlay_resize().

int(* graphics_methods::set_attr)(struct graphics_priv *gr, struct attr *attr)

Referenced by graphics_set_attr().

int(* graphics_methods::show_native_keyboard)(struct graphics_keyboard *kbd)

The documentation for this struct was generated from the following file: