C# 클래스 SciterSharp.SciterHost

파일 보기 프로젝트 열기: MISoftware/SciterSharp

공개 메소드들

메소드 설명
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