C# Класс SciterSharp.SciterHost

Показать файл Открыть проект

Открытые методы

Метод Описание
AttachEvh ( SciterEventHandler evh ) : void

Attacheds a window level event-handler: it receives every event for all elements of the page. You can only attach a single event-handler.

CallFunction ( string name ) : SciterValue
DebugInspect ( ) : void

Runs the inspector process, waits 1 second, and calls view.connectToInspector() to inspect your page. Assumes that the 'inspector(.exe)' executable is in the same directory of OmniCode.dll assembly (so just it to its dir) (Before everything it kills any previous instance of the inspector process)

DebugInspect ( string inspector_exe_path ) : void

Runs the inspector process, waits 1 second, and calls view.connectToInspector() to inspect your page. (Before everything it kills any previous instance of the inspector process)

EvalScript ( string script ) : SciterValue
InvokePost ( System.Action what ) : void

Posts a message to the UI thread to invoke the given Action. This methods returns immediatly, does not wait for the message processing.

InvokeSend ( System.Action what, uint timeout = 3000 ) : void

Sends a message to the UI thread to invoke the given Action. This methods waits for the message processing until timeout is exceeded.

PostNotification ( IntPtr wparam, IntPtr lparam, uint timeout ) : IntPtr

Sciter cross-platform alternative for posting a message in the message queue. It will be received as a SC_POSTED_NOTIFICATION notification by this SciterHost instance. Override OnPostedNotification() to handle it.

RegisterBehaviorHandler ( string behaviorName, Type eventHandlerType ) : void
SciterHost ( SciterWindow wnd ) : System
SetupWindow ( IntPtr hwnd ) : void
SetupWindow ( SciterWindow wnd ) : void

Защищенные методы

Метод Описание
OnAttachBehavior ( SciterElement el, string behaviorName, SciterEventHandler &elementEvh ) : bool
OnDataLoaded ( SciterXDef sdl ) : void
OnEngineDestroyed ( ) : void
OnGraphicsCriticalFailure ( IntPtr hwnd ) : void
OnLoadData ( SciterXDef sld ) : SciterXDef.LoadResult
OnPostedNotification ( IntPtr wparam, IntPtr lparam ) : IntPtr

Приватные методы

Метод Описание
HandleNotification ( IntPtr ptrNotification, IntPtr callbackParam ) : uint
SciterHost ( ) : System

Описание методов

AttachEvh() публичный Метод

Attacheds a window level event-handler: it receives every event for all elements of the page. You can only attach a single event-handler.
public AttachEvh ( SciterEventHandler evh ) : void
evh SciterEventHandler
Результат void

CallFunction() публичный Метод

public CallFunction ( string name ) : SciterValue
name string
Результат SciterValue

DebugInspect() публичный Метод

Runs the inspector process, waits 1 second, and calls view.connectToInspector() to inspect your page. Assumes that the 'inspector(.exe)' executable is in the same directory of OmniCode.dll assembly (so just it to its dir) (Before everything it kills any previous instance of the inspector process)
public DebugInspect ( ) : void
Результат void

DebugInspect() публичный Метод

Runs the inspector process, waits 1 second, and calls view.connectToInspector() to inspect your page. (Before everything it kills any previous instance of the inspector process)
public DebugInspect ( string inspector_exe_path ) : void
inspector_exe_path string Path to the inspector executable, can be an absolute or relative path.
Результат void

EvalScript() публичный Метод

public EvalScript ( string script ) : SciterValue
script string
Результат SciterValue

InvokePost() публичный Метод

Posts a message to the UI thread to invoke the given Action. This methods returns immediatly, does not wait for the message processing.
public InvokePost ( System.Action what ) : void
what System.Action The delegate which will be invoked
Результат void

InvokeSend() публичный Метод

Sends a message to the UI thread to invoke the given Action. This methods waits for the message processing until timeout is exceeded.
public InvokeSend ( System.Action what, uint timeout = 3000 ) : void
what System.Action The delegate which will be invoked
timeout uint
Результат void

OnAttachBehavior() защищенный Метод

protected OnAttachBehavior ( SciterElement el, string behaviorName, SciterEventHandler &elementEvh ) : bool
el SciterElement
behaviorName string
elementEvh SciterEventHandler
Результат bool

OnDataLoaded() защищенный Метод

protected OnDataLoaded ( SciterXDef sdl ) : void
sdl SciterSharp.Interop.SciterXDef
Результат void

OnEngineDestroyed() защищенный Метод

protected OnEngineDestroyed ( ) : void
Результат void

OnGraphicsCriticalFailure() защищенный Метод

protected OnGraphicsCriticalFailure ( IntPtr hwnd ) : void
hwnd System.IntPtr
Результат void

OnLoadData() защищенный Метод

protected OnLoadData ( SciterXDef sld ) : SciterXDef.LoadResult
sld SciterSharp.Interop.SciterXDef
Результат SciterXDef.LoadResult

OnPostedNotification() защищенный Метод

protected OnPostedNotification ( IntPtr wparam, IntPtr lparam ) : IntPtr
wparam System.IntPtr
lparam System.IntPtr
Результат System.IntPtr

PostNotification() публичный Метод

Sciter cross-platform alternative for posting a message in the message queue. It will be received as a SC_POSTED_NOTIFICATION notification by this SciterHost instance. Override OnPostedNotification() to handle it.
public PostNotification ( IntPtr wparam, IntPtr lparam, uint timeout ) : IntPtr
wparam System.IntPtr
lparam System.IntPtr
timeout uint /// If timeout is > 0 this methods SENDs the message instead of POSTing and this is the timeout for waiting the processing of the message. Leave it as 0 for actually POSTing the message. ///
Результат System.IntPtr

RegisterBehaviorHandler() публичный Метод

public RegisterBehaviorHandler ( string behaviorName, Type eventHandlerType ) : void
behaviorName string
eventHandlerType System.Type
Результат void

SciterHost() публичный Метод

public SciterHost ( SciterWindow wnd ) : System
wnd SciterWindow
Результат System

SetupWindow() публичный Метод

public SetupWindow ( IntPtr hwnd ) : void
hwnd System.IntPtr
Результат void

SetupWindow() публичный Метод

public SetupWindow ( SciterWindow wnd ) : void
wnd SciterWindow
Результат void