GATE
gate::ui::Webview Class Reference
Inheritance diagram for gate::ui::Webview:
gate::ui::Control gate::NonCopyable

Classes

struct  NavigateProgressArg
 
struct  NavigateStartArg
 

Public Types

enum  CommandEnum {
  Command_None = 0 , Command_Stop = GATE_UI_WEBVIEW_COMMAND_STOP , Command_Refresh = GATE_UI_WEBVIEW_COMMAND_REFRESH , Command_GoHome = GATE_UI_WEBVIEW_COMMAND_GOHOME ,
  Command_GoBack = GATE_UI_WEBVIEW_COMMAND_GOBACK , Command_GoNext = GATE_UI_WEBVIEW_COMMAND_GONEXT
}
 
typedef Event< Webview, NavigateStartArg >::delegate_t NavigateStartEventHandler
 
typedef Event< Webview, NavigateProgressArg >::delegate_t NavigateProgressEventHandler
 
typedef String const NavigateCompleteArg
 
typedef Event< Webview, NavigateCompleteArg >::delegate_t NavigateCompleteEventHandler
 
typedef enumint_t InternalStateChangedArg
 
typedef Event< Webview, InternalStateChangedArg > InternalStateChangedEventHandler
 
typedef String const TitleTextChangedArg
 
typedef Event< Webview, TitleTextChangedArg >::delegate_t TitleTextChangedEventHandler
 
typedef String const StatusTextChangedArg
 
typedef Event< Webview, StatusTextChangedArg >::delegate_t StatusTextChangedEventHandler
 
typedef WebviewNewWindowArg
 
typedef Event< Webview, NewWindowArg >::delegate_t NewWindowEventHandler
 

Public Member Functions

void create (ControlContainer &parent, Position const &pose, uint32_t flags=(Webview::Flag_Enabled|Webview::Flag_Visible))
 
void navigateTo (String const &address)
 
void execute (CommandEnum cmd)
 
- Public Member Functions inherited from gate::ui::Control
bool isCreated () const noexcept
 
bool isEnabled () const
 
bool isFocused () const
 
Position getPosition () const
 
Size getSize () const
 
uint32_t getTextLength () const
 
String getText () const
 
int32_t getState () const
 
void setEnabled (bool enabled)
 
void setVisible (bool visible)
 
void setPosition (Point const *position, Size const *size)
 
void setPosition (Position const &pos)
 
void setFocus ()
 
void setText (String const &text)
 
void setState (int32_t state)
 
void destroy () noexcept
 
gate_ui_ctrl_tc_impl () const
 
gate_ui_ctrl_toperator* () const
 

Public Attributes

Event< Webview, NavigateStartArgNavigateStartEvent
 
Event< Webview, NavigateProgressArgNavigateProgressEvent
 
Event< Webview, NavigateCompleteArg > NavigateCompleteEvent
 
Event< Webview, InternalStateChangedArg > InternalStateChangedEvent
 
Event< Webview, TitleTextChangedArg > TitleTextChangedEvent
 
Event< Webview, StatusTextChangedArg > StatusTextChangedEvent
 
Event< Webview, NewWindowArgNewWindowEvent
 

Protected Member Functions

virtual void onNavigateStart (String const &url, bool_t &cancel)
 
virtual void onNavigateProgress (int32_t progress, int32_t progressMax)
 
virtual void onNavigateComplete (String const &url)
 
virtual void onInternalStateChanged (enumint_t stateId)
 
virtual void onTitleTextChanged (String const &text)
 
virtual void onStatusTextChanged (String const &text)
 
virtual void onNewWindow (Webview *&targetWebview)
 
- Protected Member Functions inherited from gate::ui::Control
 Control (gate_ui_ctrl_t *ctrlimpl)
 
void attachNativeControl (gate_ui_ctrl_t *ctl)
 
void failIfCreated (char const *sourceFunction=NULL)
 
void failIfNotCreated (char const *sourceFunction=NULL)
 

Additional Inherited Members

- Static Public Attributes inherited from gate::ui::Control
static uint32_t const Flag_Enabled = GATE_UI_FLAG_ENABLED
 
static uint32_t const Flag_Visible = GATE_UI_FLAG_VISIBLE
 
static uint32_t const Flag_Resizable = GATE_UI_FLAG_RESIZABLE
 

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