background

background

Functions

Types and Values

Description

Functions

vik_thr_free_func ()

void
(*vik_thr_free_func) (gpointer Param1);

vik_thr_func ()

void
(*vik_thr_func) (gpointer Param1,
                 gpointer Param2);

a_background_thread ()

void
a_background_thread (Background_Pool_Type bp,
                     GtkWindow *parent,
                     const gchar *message,
                     vik_thr_func func,
                     gpointer userdata,
                     vik_thr_free_func userdata_free_func,
                     vik_thr_free_func userdata_cancel_cleanup_func,
                     gint number_items);

Function to enlist new background function.

Parameters

bp

Which pool this thread should run in

 

func

worker function

 

userdata_free_func

free function for userdata

 

a_background_thread_progress ()

int
a_background_thread_progress (gpointer callbackdata,
                              gdouble fraction);

Called from other threads

Returns a non zero number if the thread should be terminated

Parameters

callbackdata

Thread data

 

fraction

The value should be between 0.0 and 1.0 indicating percentage of the task complete

 

a_background_testcancel ()

int
a_background_testcancel (gpointer callbackdata);

a_background_show_window ()

void
a_background_show_window ();

Display the background window.


a_background_init ()

void
a_background_init ();

Just setup any preferences.


a_background_post_init ()

void
a_background_post_init ();

Initialize background feature.


a_background_uninit ()

void
a_background_uninit ();

Uninitialize background feature.


a_background_add_window ()

void
a_background_add_window (VikWindow *vw);

a_background_remove_window ()

void
a_background_remove_window (VikWindow *vw);

Types and Values

enum Background_Pool_Type

Members

BACKGROUND_POOL_REMOTE

   

BACKGROUND_POOL_LOCAL

   

BACKGROUND_POOL_LOCAL_MAPNIK