119 template <
typename ViewRef>
120 requires std::convertible_to<ViewRef&&, RefPtr<View>>
122 return AdoptPanel(
RefPtr<View>(std::forward<ViewRef>(view)), options);
#define AExport
Definition Defines.h:41
Floating layer that displays panels above a window's layout.
Definition Foreground.h:68
virtual RefPtr< Panel > AddPanel(const ForegroundPanelOptions &options, const ViewConfig &view_config)=0
Create a floating panel with a caller-supplied ViewConfig (the same rules as Container::AddPanel()).
virtual bool Remove(RefPtr< Panel > panel)=0
Remove a floating panel from the foreground layer.
virtual RefPtr< Panel > FindPanel(const String &key)=0
Find a floating panel by key.
virtual RefPtr< Panel > AdoptPanel(RefPtr< View > view, const ForegroundPanelOptions &options={})=0
Create a floating panel that adopts an existing View (including a View created through a Session,...
RefPtr< Panel > AddPanel(ViewRef &&view, const ForegroundPanelOptions &options={})
Adopt an existing View (shorthand for AdoptPanel()).
Definition Foreground.h:121
virtual int panel_count() const =0
Get the number of floating panels (hidden panels included).
virtual RefPtr< Panel > panel_at(int index) const =0
Get the floating panel at an index in current z-order, bottom-most first.
virtual RefPtr< Panel > AddPanel(const ForegroundPanelOptions &options={})=0
Create a floating panel with a new View (window-default view configuration).
Interface for all ref-counted objects that will be managed using the RefPtr<> smart pointer.
Definition RefPtr.h:49
A nullable smart pointer.
Definition RefPtr.h:126
Unicode string container with conversions for UTF-8, UTF-16, and UTF-32.
Definition String.h:31
Root namespace for every public Ultralight type, function, and enumeration.
PanelSpec panel(PanelOptions options={}, RefPtr< Panel > *out=nullptr)
Describe a panel in a builder expression (see Builder.h for an example).
Definition Builder.h:90
Configuration options for a floating panel.
Definition Options.h:95
View-specific configuration settings.
Definition View.h:100