프로퍼티 | 타입 | 설명 | |
---|---|---|---|
_api |
메소드 | 설명 | |
---|---|---|
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 ( |
Create an owned top-level Sciter window
|
|
CreateMainWindow ( int width, int height, |
||
CreateOwnedWindow ( |
||
CreateWindow ( |
Creates the Sciter window and returns the native handle
|
|
Destroy ( ) : void | ||
ElementAtPoint ( int x, int y ) : |
Find element at point x/y of the window, client area relative
|
|
ElementByUID ( uint uid ) : |
Searches this windows DOM tree for element with the given UID
|
|
EvalScript ( string script ) : SciterValue | ||
GetMinHeight ( uint for_width ) : uint | ||
GetMinWidth ( ) : uint | ||
GetPrimaryMonitorScreenSize ( ) : |
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 ( |
||
Show ( bool show = true ) : void | ||
ShowModal ( ) : void | ||
UpdateWindow ( ) : bool |
Update pending changes in Sciter window and forces painting if necessary
|
메소드 | 설명 | |
---|---|---|
ProcessWindowMessage ( |
메소드 | 설명 | |
---|---|---|
InternalProcessSciterWindowMessage ( |
public CreateChildWindow ( |
||
hwnd_parent | ||
리턴 | void |
public CreateMainWindow ( int width, int height, |
||
width | int | |
height | int | |
creationFlags | ||
리턴 | void |
public CreateOwnedWindow ( |
||
owner | ||
width | int | |
height | int | |
creationFlags | ||
리턴 | void |
public CreateWindow ( |
||
frame | Rectangle of the window | |
creationFlags | Flags for the window creation, defaults to SW_MAIN | SW_TITLEBAR | SW_RESIZEABLE | SW_CONTROLS | SW_ENABLE_DEBUG | |
parent | ||
리턴 | void |
public ElementAtPoint ( int x, int y ) : |
||
x | int | |
y | int | |
리턴 |
public static GetPrimaryMonitorScreenSize ( ) : |
||
리턴 |
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 |
public LoadPage ( string url_or_filepath ) : bool | ||
url_or_filepath | string | URL or file path of the page |
리턴 | bool |
protected ProcessWindowMessage ( |
||
hwnd | ||
msg | uint | |
wParam | ||
lParam | ||
lResult | ||
리턴 | bool |
public SetMediaVars ( SciterValue mediaVars ) : bool | ||
mediaVars | SciterValue | Map that contains name/value pairs - media variables to be set |
리턴 | bool |
public SetSciterOption ( |
||
option | ||
value | ||
리턴 | bool |