52 #ifndef __PCL_WebView_h
53 #define __PCL_WebView_h
59 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
73 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
233 void SaveAsPDF(
const String& filePath,
double pageWidth = 210,
double pageHeight = 297,
234 double marginLeft = 10,
double marginTop = 10,
double marginRight = 10,
double marginBottom = 10,
235 bool landscape =
false );
534 EventHandlers() =
default;
535 EventHandlers(
const EventHandlers& ) =
default;
536 EventHandlers& operator =(
const EventHandlers& ) =
default;
541 friend class WebViewEventDispatcher;
Client-side interface to a PixInsight Control object.
Eight-bit string (ISO/IEC-8859-1 or UTF-8 string)
Acts like a union to store instances of different data types.
Client-side interface to a PixInsight WebView control.
RGBA BackgroundColor() const
void RequestPlainText() const
void LoadContent(const String &uri)
void SaveAsPDF(const String &filePath, double pageWidth=210, double pageHeight=297, double marginLeft=10, double marginTop=10, double marginRight=10, double marginBottom=10, bool landscape=false)
void SetZoomFactor(double zoom)
bool HasSelection() const
double ZoomFactor() const
void SetHTML(const String &html)
void SetPlainText(const IsoString &text)
String SelectedText() const
void SetHTML(const IsoString &html)
void EvaluateScript(const String &sourceCode, const IsoString &language=IsoString())
WebView(Control &parent=Control::Null())
void SetPlainText(const String &text)
void SetBackgroundColor(RGBA color)
void SetContent(const ByteArray &data, const IsoString &mimeType=IsoString())
void OnLoadStarted(view_event_handler handler, Control &receiver)
void OnScriptResultAvailable(result_event_handler handler, Control &receiver)
void(Control::*)(WebView &sender, bool state) state_event_handler
void OnPlainTextAvailable(content_event_handler handler, Control &receiver)
void OnHTMLAvailable(content_event_handler handler, Control &receiver)
void OnLoadProgress(progress_event_handler handler, Control &receiver)
void(Control::*)(WebView &sender) view_event_handler
void(Control::*)(WebView &sender, const String &content) content_event_handler
void OnLoadFinished(state_event_handler handler, Control &receiver)
void OnSelectionUpdated(view_event_handler handler, Control &receiver)
void(Control::*)(WebView &sender, const Variant &result) result_event_handler
void(Control::*)(WebView &sender, int loadPercent) progress_event_handler