navit  0.5.3-trunk
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)
 
navit_float(* get_dpi )(struct graphics_priv *gr)
 
void(* draw_polygon_with_holes )(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count, int hole_count, int *ccount, struct point **holes)
 

Field Documentation

◆ background_gc

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

◆ draw_circle

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

◆ draw_drag

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

◆ draw_image

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

◆ draw_image_warp

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)

◆ draw_lines

void(* graphics_methods::draw_lines) (struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count)

◆ draw_mode

void(* graphics_methods::draw_mode) (struct graphics_priv *gr, enum draw_mode_num mode)

◆ draw_polygon

void(* graphics_methods::draw_polygon) (struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count)

◆ draw_polygon_with_holes

void(* graphics_methods::draw_polygon_with_holes) (struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count, int hole_count, int *ccount, struct point **holes)

◆ draw_rectangle

void(* graphics_methods::draw_rectangle) (struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int w, int h)

◆ draw_text

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)

◆ font_new

◆ gc_new

struct graphics_gc_priv*(* graphics_methods::gc_new) (struct graphics_priv *gr, struct graphics_gc_methods *meth)

◆ get_data

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

◆ get_dpi

navit_float(* graphics_methods::get_dpi) (struct graphics_priv *gr)

◆ get_text_bbox

◆ graphics_destroy

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

◆ hide_native_keyboard

void(* graphics_methods::hide_native_keyboard) (struct graphics_keyboard *kbd)

◆ image_free

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

◆ image_new

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 graphics_svg_debug_new(), image_new_helper(), and svg_debug_image_new().

◆ overlay_disable

void(* graphics_methods::overlay_disable) (struct graphics_priv *gr, int disable)

◆ overlay_new

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_svg_debug_new().

◆ overlay_resize

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

◆ set_attr

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

◆ show_native_keyboard

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

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