38 uint32_t height,
int x,
int y);
63 virtual uint32_t
width()
const = 0;
73 virtual int x()
const = 0;
78 virtual int y()
const = 0;
119 virtual void Resize(uint32_t width, uint32_t height) = 0;
130 friend class OverlayManager;
#define AExport
Definition Defines.h:42
Web-content overlay.
Definition Overlay.h:20
static RefPtr< Overlay > Create(RefPtr< Window > window, RefPtr< View > view, int x, int y)
Create a new Overlay, wrapping an existing View.
virtual void Hide()=0
Hide the overlay (will no longer be drawn)
virtual bool has_focus() const =0
Whether or not this overlay has keyboard focus.
virtual uint32_t width() const =0
Get the width (in pixels).
virtual void Focus()=0
Grant this overlay exclusive keyboard focus.
virtual void Resize(uint32_t width, uint32_t height)=0
Resize the overlay (and underlying View), dimensions should be specified in pixels.
virtual bool is_hidden() const =0
Whether or not the overlay is hidden (not drawn).
virtual bool NeedsRepaint()=0
Whether or not this Overlay needs repaint (either it has moved, resized, or the internal View needs r...
virtual void MoveTo(int x, int y)=0
Move the overlay to a new position (in pixels).
virtual int y() const =0
Get the y-position (offset from the top of the Window), in pixels.
virtual int x() const =0
Get the x-position (offset from the left of the Window), in pixels.
virtual void Unfocus()=0
Remove keyboard focus.
virtual ultralight::RefPtr< ultralight::View > view()=0
Get the underlying View.
virtual uint32_t height() const =0
Get the height (in pixels).
static RefPtr< Overlay > Create(RefPtr< Window > window, uint32_t width, uint32_t height, int x, int y)
Create a new Overlay.
virtual void Show()=0
Show the overlay.
Interface for all ref-counted objects that will be managed using the RefPtr<> smart pointer.
Definition RefPtr.h:47
A nullable smart pointer.
Definition RefPtr.h:79