14class LayoutRegistration;
173 explicit operator bool()
const {
return IsActive(); }
199 LayoutRegistration* registration()
const;
#define AExport
Definition Defines.h:41
@ Adopt
Definition JSRetainPtr.h:48
A layout node that organizes child nodes into a row or column.
Definition Container.h:101
void Remove()
Stop receiving callbacks now.
LayoutCallback()
Create an empty LayoutCallback (it owns no registration and IsActive() is false).
~LayoutCallback()
Unregister the callback (if it is still registered) and release the registration.
LayoutCallback & operator=(LayoutCallback &&other) noexcept
Move assignment.
LayoutCallback(const LayoutCallback &)=delete
bool IsActive() const
The named form of operator bool.
void Detach()
Leave the callback registered for the rest of its node's lifetime and give up this object.
LayoutCallback(LayoutCallback &&other) noexcept
Move constructor (transfers the registration, other becomes empty).
LayoutCallback & operator=(const LayoutCallback &)=delete
Base class for Panels and Containers in a window layout tree.
Definition LayoutNode.h:108
A layout node that hosts a single web view.
Definition Panel.h:59
A nullable smart pointer.
Definition RefPtr.h:126
A native OS window that displays web content.
Definition Window.h:636
Root namespace for every public Ultralight type, function, and enumeration.
void(*) LayoutPanelCallback(void *user_data, Panel *panel)
Callback fired for a panel event.
Definition Callback.h:49
void(*) LayoutFocusCallback(void *user_data, Window *window, Panel *focused)
Callback fired when a window's focused panel changes.
Definition Callback.h:62
void(*) LayoutNodeCallback(void *user_data, LayoutNode *node)
Callback fired for a layout node event.
Definition Callback.h:38
void(*) LayoutOverrideCallback(void *user_data, Container *container, Rect content_box)
Layout delegate, called to place a container's children yourself.
Definition Callback.h:92
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
void(*) LayoutEditableStateCallback(void *user_data, Window *window, Panel *panel, const EditableState &state)
Callback fired when the focused panel's editable state changes.
Definition Callback.h:78
void(*) LayoutDestroyUserDataCallback(void *user_data)
Destroy hook for a callback registration's user data.
Definition Callback.h:27
The conditions that decide whether an input method should be active.
Definition Editor.h:145
Float Rectangle Helper.
Definition Geometry.h:416