Hex.Widget.new
Description: Reference for Hex.Widget.new

### Constructor

# Hex Widgetnew

#### Declaration

    GtkWidget*
    hex_widget_new (
      HexDocument* document
    )

#### Description

Create a new `HexWidget` object.

#### Parameters

`document`

  Type: `HexDocument`

  The `HexDocument` object to be associated with the newly created `HexWidget`.

  The called function takes ownership of the data, and is responsible for freeing it.

#### Return value

Type: `GtkWidget`

A newly created `HexWidget` object, or `NULL`.

The data is owned by the called function.