C# 클래스 SciterSharp.SciterWindow

상속: System.Windows.Forms.IWin32Window
파일 보기 프로젝트 열기: MISoftware/SciterSharp 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_api SciterSharp.Interop.SciterX.ISciterAPI

공개 메소드들

메소드 설명
CallFunction ( string name ) : SciterValue
CenterTopLevelWindow ( ) : void

Centers the window in the screen. You must call it after the window is created, but before it is shown to avoid flickering

Close ( ) : void

Close the window. Posts WM_CLOSE message on Windows.

CreateChildWindow ( IntPtr hwnd_parent ) : void

Create an owned top-level Sciter window

CreateMainWindow ( int width, int height, SciterXDef creationFlags = DefaultCreateFlags ) : void
CreateOwnedWindow ( IntPtr owner, int width, int height, SciterXDef creationFlags = DefaultCreateFlags ) : void
CreateWindow ( PInvokeUtils frame = newPInvokeUtils.RECT(), SciterXDef creationFlags = DefaultCreateFlags, IntPtr parent = newIntPtr() ) : void

Creates the Sciter window and returns the native handle

Destroy ( ) : void
ElementAtPoint ( int x, int y ) : SciterElement

Find element at point x/y of the window, client area relative

ElementByUID ( uint uid ) : SciterElement

Searches this windows DOM tree for element with the given UID

EvalScript ( string script ) : SciterValue
GetMinHeight ( uint for_width ) : uint
GetMinWidth ( ) : uint
GetPrimaryMonitorScreenSize ( ) : PInvokeUtils.SIZE

Cross-platform handy method to get the size of the screen

LoadHtml ( string html, string baseUrl = null ) : bool

Loads HTML input from a string

LoadPage ( string url_or_filepath ) : bool

Loads the page resource from the given URL or file path

SciterWindow ( ) : System
SetMediaType ( string mediaType ) : bool

For example media type can be "handheld", "projection", "screen", "screen-hires", etc. By default sciter window has "screen" media type. Media type name is used while loading and parsing style sheets in the engine so you should call this function* before* loading document in it.

SetMediaVars ( SciterValue mediaVars ) : bool

For example media type can be "handheld:true", "projection:true", "screen:true", etc. By default sciter window has "screen:true" and "desktop:true"/"handheld:true" media variables. Media variables can be changed in runtime. This will cause styles of the document to be reset.

SetSciterOption ( SciterXDef option, IntPtr value ) : bool
Show ( bool show = true ) : void
ShowModal ( ) : void
UpdateWindow ( ) : bool

Update pending changes in Sciter window and forces painting if necessary

보호된 메소드들

메소드 설명
ProcessWindowMessage ( IntPtr hwnd, uint msg, IntPtr wParam, IntPtr lParam, IntPtr &lResult ) : bool

비공개 메소드들

메소드 설명
InternalProcessSciterWindowMessage ( IntPtr hwnd, uint msg, IntPtr wParam, IntPtr lParam, IntPtr pParam, bool &handled ) : IntPtr

메소드 상세

CallFunction() 공개 메소드

public CallFunction ( string name ) : SciterValue
name string
리턴 SciterValue

CenterTopLevelWindow() 공개 메소드

Centers the window in the screen. You must call it after the window is created, but before it is shown to avoid flickering
public CenterTopLevelWindow ( ) : void
리턴 void

Close() 공개 메소드

Close the window. Posts WM_CLOSE message on Windows.
public Close ( ) : void
리턴 void

CreateChildWindow() 공개 메소드

Create an owned top-level Sciter window
public CreateChildWindow ( IntPtr hwnd_parent ) : void
hwnd_parent System.IntPtr
리턴 void

CreateMainWindow() 공개 메소드

public CreateMainWindow ( int width, int height, SciterXDef creationFlags = DefaultCreateFlags ) : void
width int
height int
creationFlags SciterSharp.Interop.SciterXDef
리턴 void

CreateOwnedWindow() 공개 메소드

public CreateOwnedWindow ( IntPtr owner, int width, int height, SciterXDef creationFlags = DefaultCreateFlags ) : void
owner System.IntPtr
width int
height int
creationFlags SciterSharp.Interop.SciterXDef
리턴 void

CreateWindow() 공개 메소드

Creates the Sciter window and returns the native handle
public CreateWindow ( PInvokeUtils frame = newPInvokeUtils.RECT(), SciterXDef creationFlags = DefaultCreateFlags, IntPtr parent = newIntPtr() ) : void
frame SciterSharp.Interop.PInvokeUtils Rectangle of the window
creationFlags SciterSharp.Interop.SciterXDef Flags for the window creation, defaults to SW_MAIN | SW_TITLEBAR | SW_RESIZEABLE | SW_CONTROLS | SW_ENABLE_DEBUG
parent System.IntPtr
리턴 void

Destroy() 공개 메소드

public Destroy ( ) : void
리턴 void

ElementAtPoint() 공개 메소드

Find element at point x/y of the window, client area relative
public ElementAtPoint ( int x, int y ) : SciterElement
x int
y int
리턴 SciterElement

ElementByUID() 공개 메소드

Searches this windows DOM tree for element with the given UID
public ElementByUID ( uint uid ) : SciterElement
uid uint
리턴 SciterElement

EvalScript() 공개 메소드

public EvalScript ( string script ) : SciterValue
script string
리턴 SciterValue

GetMinHeight() 공개 메소드

public GetMinHeight ( uint for_width ) : uint
for_width uint
리턴 uint

GetMinWidth() 공개 메소드

public GetMinWidth ( ) : uint
리턴 uint

GetPrimaryMonitorScreenSize() 공개 정적인 메소드

Cross-platform handy method to get the size of the screen
public static GetPrimaryMonitorScreenSize ( ) : PInvokeUtils.SIZE
리턴 SciterSharp.Interop.PInvokeUtils.SIZE

LoadHtml() 공개 메소드

Loads HTML input from a string
public LoadHtml ( string html, string baseUrl = null ) : bool
html string HTML of the page to be loaded
baseUrl string Base Url given to the loaded page
리턴 bool

LoadPage() 공개 메소드

Loads the page resource from the given URL or file path
public LoadPage ( string url_or_filepath ) : bool
url_or_filepath string URL or file path of the page
리턴 bool

ProcessWindowMessage() 보호된 메소드

protected ProcessWindowMessage ( IntPtr hwnd, uint msg, IntPtr wParam, IntPtr lParam, IntPtr &lResult ) : bool
hwnd System.IntPtr
msg uint
wParam System.IntPtr
lParam System.IntPtr
lResult System.IntPtr
리턴 bool

SciterWindow() 공개 메소드

public SciterWindow ( ) : System
리턴 System

SetMediaType() 공개 메소드

For example media type can be "handheld", "projection", "screen", "screen-hires", etc. By default sciter window has "screen" media type. Media type name is used while loading and parsing style sheets in the engine so you should call this function* before* loading document in it.
public SetMediaType ( string mediaType ) : bool
mediaType string
리턴 bool

SetMediaVars() 공개 메소드

For example media type can be "handheld:true", "projection:true", "screen:true", etc. By default sciter window has "screen:true" and "desktop:true"/"handheld:true" media variables. Media variables can be changed in runtime. This will cause styles of the document to be reset.
public SetMediaVars ( SciterValue mediaVars ) : bool
mediaVars SciterValue Map that contains name/value pairs - media variables to be set
리턴 bool

SetSciterOption() 공개 메소드

public SetSciterOption ( SciterXDef option, IntPtr value ) : bool
option SciterSharp.Interop.SciterXDef
value System.IntPtr
리턴 bool

Show() 공개 메소드

public Show ( bool show = true ) : void
show bool
리턴 void

ShowModal() 공개 메소드

public ShowModal ( ) : void
리턴 void

UpdateWindow() 공개 메소드

Update pending changes in Sciter window and forces painting if necessary
public UpdateWindow ( ) : bool
리턴 bool

프로퍼티 상세

_api 보호되어 있는 정적으로 프로퍼티

protected static SciterX.ISciterAPI,SciterSharp.Interop _api
리턴 SciterSharp.Interop.SciterX.ISciterAPI