Fan

 

Frame is the main top level window in flux applications.

Slots

commandSource

FluxCommand? command(Str id)

Lookup a predefined command by id or return null if not found. See CommandId for the predefined id strings.

consoleSource

Console console()

Convenience for getting the console sidebar.

findByIdSource

static Frame? findById(Str id, Bool checked := true)

Lookup a frame by its id within the VM. If the frame cannot be found and checked is true then throw an Err, otherwise return null. This method can only be called on the UI thread.

idSource

const Str id

Get the id of this frame within the VM. The id may be used as an immutable pointer to the frame to pass between threads. See findById to resolve a frame by id. The id is an opaque string, no attempt should be made to interpret the format.

loadSource

Void load(Uri uri, LoadMode mode := LoadMode())

Load the specified resource Uri in the active tab. The default mode will replace the current tab.

loadMarkSource

Void loadMark(Mark mark, LoadMode mode := LoadMode())

Load the specified mark's Uri in the active tab. If the current tab is already at the specified uri, then it is not reloaded.

marksSource

Mark[] marks := Mark[,].ro

The current mark list for the frame. This is the list of uris with optional line/col numbers which the user can currently cycle thru using the jumpPrev and jumpNext commands. This list is always readonly, set the field to update the marks and invoke the onMarks callback for each view.

selectSource

Void select(View view)

Select the active view tab.

SideBar? sideBar(Type t, Bool make := true)

Get the sidebar for the specified SideBar type. If the sidebar has already been created for this frame then return that instance. Otherwise if make is true, then create a new sidebar for this frame. If make is false return null.

SideBar[] sideBars()

Get the sidebars which are currently created for this frame. This list includes both showing and hidden sidebars.

viewSource

View view()

Get the active view. A given frame always has exactly one view active.

viewsSource

View[] views()

Get the list of views this frame has opened in tabs.