backend 3 LIBUNICAPGTK Library
backend

## Synopsis

    #define             BACKEND_MERIT_XV
    #define             BACKEND_MERIT_GTK
    #define             BE_INVALID_FORMAT
    #define             BACKEND_FLAGS_SCALING_SUPPORTED
    gboolean            backend_init                        (GtkWidget *widget,
                                                             unicap_format_t *format,
                                                             gpointer *_data,
                                                             GError **err);
    void                backend_update_image                (gpointer _data,
                                                             unicap_data_buffer_t *data_buffer,
                                                             GError **err);
    void                backend_display_image               (gpointer _data);
    void                backend_redraw                      (gpointer _data);
    void                backend_destroy                     (gpointer _data);
    gint                backend_get_merit                   ();
    void                backend_expose_event                (gpointer _data,
                                                             GtkWidget *da,
                                                             GdkEventExpose *event);
    void                backend_get_image_data              (gpointer _data,
                                                             unicap_data_buffer_t *data_buffer,
                                                             int b);
    void                backend_lock                        (gpointer _data);
    void                backend_unlock                      (gpointer _data);
    void                backend_size_allocate               (gpointer _data,
                                                             GtkWidget *widget,
                                                             GtkAllocation *allocation);
    void                backend_set_scale_to_fit            (gpointer _data,
                                                             gboolean scale);
    void                backend_set_pause_state             (gpointer _data,
                                                             gboolean state);
    guint               backend_get_flags                   (gpointer _data);
    gboolean            (*backend_init_func_t)              (GtkWidget *widget,
                                                             unicap_format_t *format,
                                                             gpointer *_data,
                                                             GError **err);
    void                (*backend_destroy_func_t)           (gpointer _data);
    gint                (*backend_get_merit_func_t)         ();
    void                (*backend_set_output_size_func_t)   (gpointer _data,
                                                             gint width,
                                                             gint height);
    void                (*backend_expose_event_t)           (gpointer _data,
                                                             GtkWidget *da,
                                                             GdkEventExpose *event);
    void                (*backend_get_image_data_t)         (gpointer _data,
                                                             unicap_data_buffer_t *data_buffer,
                                                             int b);
    void                (*backend_lock_t)                   (gpointer _data);
    void                (*backend_unlock_t)                 (gpointer _data);
    void                (*backend_size_allocate_t)          (gpointer _data,
                                                             GtkWidget *widget,
                                                             GtkAllocation *allocation);
    void                (*backend_set_scale_to_fit_t)       (gpointer _data,
                                                             gboolean scale);
    void                (*backend_set_pause_state_t)        (gpointer _data,
                                                             gboolean state);
    guint               (*backend_get_flags_t)              (gpointer _data);

## Description

## Details

### BACKEND_MERIT_XV

    #define             BACKEND_MERIT_XV

BACKEND_MERIT_XV

### BACKEND_MERIT_GTK

    #define             BACKEND_MERIT_GTK

BACKEND_MERIT_GTK

### BE_INVALID_FORMAT

    #define             BE_INVALID_FORMAT

BE_INVALID_FORMAT

### BACKEND_FLAGS_SCALING_SUPPORTED

    #define             BACKEND_FLAGS_SCALING_SUPPORTED

BACKEND_FLAGS_SCALING_SUPPORTED

### backend_init ()

    gboolean            backend_init                        (GtkWidget *widget,
                                                             unicap_format_t *format,
                                                             gpointer *_data,
                                                             GError **err);

widget :

format :

_data :

err :

Returns :

backend_init

### backend_update_image ()

    void                backend_update_image                (gpointer _data,
                                                             unicap_data_buffer_t *data_buffer,
                                                             GError **err);

_data :

data_buffer :

err :

backend_update_image

### backend_display_image ()

    void                backend_display_image               (gpointer _data);

_data :

backend_display_image

### backend_redraw ()

    void                backend_redraw                      (gpointer _data);

_data :

backend_redraw

### backend_destroy ()

    void                backend_destroy                     (gpointer _data);

_data :

backend_destroy

### backend_get_merit ()

    gint                backend_get_merit                   ();

Returns :

backend_get_merit

### backend_expose_event ()

    void                backend_expose_event                (gpointer _data,
                                                             GtkWidget *da,
                                                             GdkEventExpose *event);

_data :

da :

event :

backend_expose_event

### backend_get_image_data ()

    void                backend_get_image_data              (gpointer _data,
                                                             unicap_data_buffer_t *data_buffer,
                                                             int b);

_data :

data_buffer :

b :

backend_get_image_data

### backend_lock ()

    void                backend_lock                        (gpointer _data);

_data :

backend_lock

### backend_unlock ()

    void                backend_unlock                      (gpointer _data);

_data :

backend_unlock

### backend_size_allocate ()

    void                backend_size_allocate               (gpointer _data,
                                                             GtkWidget *widget,
                                                             GtkAllocation *allocation);

_data :

widget :

allocation :

backend_size_allocate

### backend_set_scale_to_fit ()

    void                backend_set_scale_to_fit            (gpointer _data,
                                                             gboolean scale);

_data :

scale :

backend_set_scale_to_fit

### backend_set_pause_state ()

    void                backend_set_pause_state             (gpointer _data,
                                                             gboolean state);

_data :

state :

backend_set_pause_state

### backend_get_flags ()

    guint               backend_get_flags                   (gpointer _data);

_data :

Returns :

backend_get_flags

### backend_init_func_t ()

    gboolean            (*backend_init_func_t)              (GtkWidget *widget,
                                                             unicap_format_t *format,
                                                             gpointer *_data,
                                                             GError **err);

widget :

format :

_data :

err :

Returns :

backend_init_func_t

### backend_destroy_func_t ()

    void                (*backend_destroy_func_t)           (gpointer _data);

_data :

backend_destroy_func_t

### backend_get_merit_func_t ()

    gint                (*backend_get_merit_func_t)         ();

Returns :

backend_get_merit_func_t

### backend_set_output_size_func_t ()

    void                (*backend_set_output_size_func_t)   (gpointer _data,
                                                             gint width,
                                                             gint height);

_data :

width :

height :

backend_set_output_size_func_t

### backend_expose_event_t ()

    void                (*backend_expose_event_t)           (gpointer _data,
                                                             GtkWidget *da,
                                                             GdkEventExpose *event);

_data :

da :

event :

backend_expose_event_t

### backend_get_image_data_t ()

    void                (*backend_get_image_data_t)         (gpointer _data,
                                                             unicap_data_buffer_t *data_buffer,
                                                             int b);

_data :

data_buffer :

b :

backend_get_image_data_t

### backend_lock_t ()

    void                (*backend_lock_t)                   (gpointer _data);

_data :

backend_lock_t

### backend_unlock_t ()

    void                (*backend_unlock_t)                 (gpointer _data);

_data :

backend_unlock_t

### backend_size_allocate_t ()

    void                (*backend_size_allocate_t)          (gpointer _data,
                                                             GtkWidget *widget,
                                                             GtkAllocation *allocation);

_data :

widget :

allocation :

backend_size_allocate_t

### backend_set_scale_to_fit_t ()

    void                (*backend_set_scale_to_fit_t)       (gpointer _data,
                                                             gboolean scale);

_data :

scale :

backend_set_scale_to_fit_t

### backend_set_pause_state_t ()

    void                (*backend_set_pause_state_t)        (gpointer _data,
                                                             gboolean state);

_data :

state :

backend_set_pause_state_t

### backend_get_flags_t ()

    guint               (*backend_get_flags_t)              (gpointer _data);

_data :

Returns :

backend_get_flags_t