Class rehex.Tab

A top-level tab in the application.

The Tab holds an open Document and any associated objects (main DocumentCtrl, tool panels, etc).

Fields

rehex.Tab.doc The Document object within the tab.

Methods

rehex.Tab:get_selection_linear () Get the current selection (if linear).


Fields

rehex.Tab.doc
The Document object within the tab.

Methods

rehex.Tab:get_selection_linear ()
Get the current selection (if linear).

This returns the current selection in the document, but only if it is a linear sequence of bytes in the underlying file. Non-linear selections can occur when virtual sections are in use and a selection spans multiple non-contiguous selections.

Example usage:

local selection_off, selection_length = tab:get_selection_linear() if selection_off ~= nil then ... else ... end

Returns:

    Selection range or nil
generated by LDoc 1.4.6 Last updated 2024-02-14 23:56:27