## gcr-viewer-widget gcr-viewer-widget |

## Synopsis

                        GcrViewerWidget;
    GcrViewerWidget *   gcr_viewer_widget_new               (void);
    void                gcr_viewer_widget_load_data         (GcrViewerWidget *self,
                                                             const gchar *display_name,
                                                             const guchar *data,
                                                             gsize n_data);
    void                gcr_viewer_widget_load_file         (GcrViewerWidget *self,
                                                             GFile *file);
    GcrParser *         gcr_viewer_widget_get_parser        (GcrViewerWidget *self);
    void                gcr_viewer_widget_show_error        (GcrViewerWidget *self,
                                                             const gchar *message,
                                                             GError *error);
    void                gcr_viewer_widget_clear_error       (GcrViewerWidget *self);
    const gchar *       gcr_viewer_widget_get_display_name  (GcrViewerWidget *self);
    void                gcr_viewer_widget_set_display_name  (GcrViewerWidget *self,
                                                             const gchar *display_name);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkWidget
                   +----GtkContainer
                         +----GtkBox
                               +----GcrViewerWidget

## Implemented Interfaces

GcrViewerWidget implements AtkImplementorIface, GtkBuildable and GtkOrientable.

## Properties

      "display-name"             gchar*                : Read / Write
      "parser"                   GcrParser*            : Read

## Signals

      "added"                                          : Run Last

## Description

## Details

### GcrViewerWidget

    typedef struct _GcrViewerWidget GcrViewerWidget;

### gcr_viewer_widget_new ()

    GcrViewerWidget *   gcr_viewer_widget_new               (void);

### gcr_viewer_widget_load_data ()

    void                gcr_viewer_widget_load_data         (GcrViewerWidget *self,
                                                             const gchar *display_name,
                                                             const guchar *data,
                                                             gsize n_data);

### gcr_viewer_widget_load_file ()

    void                gcr_viewer_widget_load_file         (GcrViewerWidget *self,
                                                             GFile *file);

### gcr_viewer_widget_get_parser ()

    GcrParser *         gcr_viewer_widget_get_parser        (GcrViewerWidget *self);

### gcr_viewer_widget_show_error ()

    void                gcr_viewer_widget_show_error        (GcrViewerWidget *self,
                                                             const gchar *message,
                                                             GError *error);

### gcr_viewer_widget_clear_error ()

    void                gcr_viewer_widget_clear_error       (GcrViewerWidget *self);

### gcr_viewer_widget_get_display_name ()

    const gchar *       gcr_viewer_widget_get_display_name  (GcrViewerWidget *self);

### gcr_viewer_widget_set_display_name ()

    void                gcr_viewer_widget_set_display_name  (GcrViewerWidget *self,
                                                             const gchar *display_name);

## Property Details

### The `"display-name"` property

      "display-name"             gchar*                : Read / Write

Display name.

Default value: NULL

### The `"parser"` property

      "parser"                   GcrParser*            : Read

Parser used to parse viewable items.

## Signal Details

### The `"added"` signal

    void                user_function                      (GcrViewerWidget *gcrviewerwidget,
                                                            GObject         *arg1,
                                                            GcrParsed       *arg2,
                                                            gpointer         user_data)            : Run Last

`gcrviewerwidget` : | the object which received the signal.
`user_data` : | user data set when the signal handler was connected.