Hex.Widget.get_selection

### Method

# Hex Widgetget_selection

#### Declaration

    gboolean
    hex_widget_get_selection (
      HexWidget* gh,
      gint64* start,
      gint64* end
    )

#### Description

Get the current widget selection (highlights).

#### Parameters

`start`

  Type: `gint64*`

  Where to store the start of the current selection, as offset by byte within the buffer.

  The argument will be set by the function.
  The argument can be set to `NULL` by the method.

`end`

  Type: `gint64*`

  Where to store the end of the current selection, as offset by byte within the buffer.

  The argument will be set by the function.
  The argument can be set to `NULL` by the method.

#### Return value

Type: `gboolean`

`TRUE` if there is an active selection (start and end are different), and `FALSE` if there is no selection (start and end are the same).