Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
WebImageButton Class Reference

#include <qwasmwindownonclientarea.h>

+ Collaboration diagram for WebImageButton:

Classes

class  Callbacks
 

Public Member Functions

 WebImageButton ()
 
 ~WebImageButton ()
 
void setCallbacks (Callbacks callbacks)
 
void setImage (std::string_view imageData, std::string_view format)
 
void setVisible (bool visible)
 
emscripten::val htmlElement () const
 
emscripten::val imageElement () const
 

Detailed Description

Definition at line 48 of file qwasmwindownonclientarea.h.

Constructor & Destructor Documentation

◆ WebImageButton()

WebImageButton::WebImageButton ( )

Definition at line 40 of file qwasmwindownonclientarea.cpp.

◆ ~WebImageButton()

WebImageButton::~WebImageButton ( )
default

Member Function Documentation

◆ htmlElement()

emscripten::val WebImageButton::htmlElement ( ) const
inline

Definition at line 80 of file qwasmwindownonclientarea.h.

◆ imageElement()

emscripten::val WebImageButton::imageElement ( ) const
inline

Definition at line 81 of file qwasmwindownonclientarea.h.

◆ setCallbacks()

void WebImageButton::setCallbacks ( Callbacks callbacks)

Definition at line 53 of file qwasmwindownonclientarea.cpp.

References callbacks, WebImageButton::Callbacks::onClick(), WebImageButton::Callbacks::onInteraction(), and dom::syncCSSClassWith().

+ Here is the call graph for this function:

◆ setImage()

void WebImageButton::setImage ( std::string_view imageData,
std::string_view format )

Definition at line 77 of file qwasmwindownonclientarea.cpp.

References imageData.

◆ setVisible()

void WebImageButton::setVisible ( bool visible)

Definition at line 83 of file qwasmwindownonclientarea.cpp.


The documentation for this class was generated from the following files: