@@ -90,9 +90,9 @@ type PhaseMask uint32
90
90
91
91
// enum PHASE_MASK
92
92
const (
93
- BUBBLING = 0 // bubbling (emersion) phase
94
- SINKING = 0x8000 // capture (immersion) phase, this flag is or'ed with EVENTS codes below
95
- HANDLED = 0x10000 // a bubbling event consumed by some element
93
+ BUBBLING = 0 // bubbling (emersion) phase
94
+ SINKING = 0x8000 // capture (immersion) phase, this flag is or'ed with EVENTS codes below
95
+ HANDLED = 0x10000 // a bubbling event consumed by some element
96
96
SINKING_HANDLED = 0x18000 // a sinking event consumed by some child element
97
97
// see: http://www.w3.org/TR/xml-events/Overview.html#s_intro
98
98
)
@@ -461,7 +461,7 @@ const (
461
461
T_ANGLE // double, radians
462
462
T_COLOR // [unsigned] INT, ABGR
463
463
T_ENUM
464
- T_ASSET // sciter::om::iasset* add_ref'ed pointer
464
+ T_ASSET // sciter::om::iasset* add_ref'ed pointer
465
465
)
466
466
467
467
// enum VALUE_UNIT_TYPE
@@ -811,9 +811,10 @@ type GestureParams struct {
811
811
}
812
812
813
813
type SomEvents uint32
814
+
814
815
const (
815
816
SOM_GET_PASSPORT = 0
816
- SOM_GET_ASSET = 1
817
+ SOM_GET_ASSET = 1
817
818
)
818
819
819
820
type SomParams C.SOM_PARAMS
@@ -887,20 +888,19 @@ const (
887
888
SC_POSTED_NOTIFICATION = 0x06
888
889
889
890
/**This notification is sent when the engine encounters critical rendering error: e.g. DirectX gfx driver error.
890
- Most probably bad gfx drivers.
891
+ Most probably bad gfx drivers.
891
892
892
- * \param lParam #LPSCN_GRAPHICS_CRITICAL_FAILURE
893
- *
894
- **/
893
+ * \param lParam #LPSCN_GRAPHICS_CRITICAL_FAILURE
894
+ *
895
+ **/
895
896
SC_GRAPHICS_CRITICAL_FAILURE = 0x07
896
897
897
-
898
898
/**This notification is sent when the engine needs keyboard to be present on screen
899
- E.g. when <input|text> gets focus
899
+ E.g. when <input|text> gets focus
900
900
901
- * \param lParam #LPSCN_KEYBOARD_REQUEST
902
- *
903
- **/
901
+ * \param lParam #LPSCN_KEYBOARD_REQUEST
902
+ *
903
+ **/
904
904
SC_KEYBOARD_REQUEST = 0x08
905
905
906
906
/**This notification is sent when the engine needs some area to be redrawn
@@ -1022,21 +1022,6 @@ func (s *ScnLoadData) SetData(data []byte) {
1022
1022
s .outDataSize = C .UINT (len (data ))
1023
1023
}
1024
1024
1025
- /** Resource data type.
1026
- * Used by SciterDataReadyAsync() function.
1027
- **/
1028
- type SciterResourceType uint32
1029
-
1030
- // typedef enum SciterResourceType
1031
- const (
1032
- RT_DATA_HTML SciterResourceType = iota
1033
- RT_DATA_IMAGE
1034
- RT_DATA_STYLE
1035
- RT_DATA_CURSOR
1036
- RT_DATA_SCRIPT
1037
- RT_DATA_RAW
1038
- )
1039
-
1040
1025
/**This structure is used by #SCN_DATA_LOADED notification.
1041
1026
*\copydoc SCN_DATA_LOADED
1042
1027
**/
@@ -1281,19 +1266,19 @@ type CallbackHandler struct {
1281
1266
OnPostedNotification func (params * ScnPostedNotification ) int
1282
1267
1283
1268
/**This notification is sent when the engine encounters critical rendering error: e.g. DirectX gfx driver error.
1284
- Most probably bad gfx drivers.
1269
+ Most probably bad gfx drivers.
1285
1270
1286
- * \param lParam #LPSCN_GRAPHICS_CRITICAL_FAILURE
1287
- *
1288
- **/
1271
+ * \param lParam #LPSCN_GRAPHICS_CRITICAL_FAILURE
1272
+ *
1273
+ **/
1289
1274
OnGraphicsCriticalFailure func () int
1290
1275
1291
1276
/**This notification is sent when the engine needs keyboard to be present on screen
1292
- E.g. when <input|text> gets focus
1277
+ E.g. when <input|text> gets focus
1293
1278
1294
- * \param lParam #LPSCN_KEYBOARD_REQUEST
1295
- *
1296
- **/
1279
+ * \param lParam #LPSCN_KEYBOARD_REQUEST
1280
+ *
1281
+ **/
1297
1282
OnKeyboardRequest func (params * ScnKeyboardRequest ) int
1298
1283
1299
1284
/**This notification is sent when the engine needs some area to be redrawn
@@ -1352,10 +1337,10 @@ const (
1352
1337
1353
1338
SCITER_ALPHA_WINDOW = 12 // hWnd, value - TRUE/FALSE - window uses per pixel alpha (e.g. WS_EX_LAYERED/UpdateLayeredWindow() window)
1354
1339
1355
- SCITER_SET_INIT_SCRIPT = 13 // hWnd - N/A , value LPCSTR - UTF-8 encoded script source to be loaded into each view before any other script execution.
1356
- // The engine copies this string inside the call.
1340
+ SCITER_SET_INIT_SCRIPT = 13 // hWnd - N/A , value LPCSTR - UTF-8 encoded script source to be loaded into each view before any other script execution.
1341
+ // The engine copies this string inside the call.
1357
1342
1358
- SCITER_SET_MAIN_WINDOW = 14 // hWnd, value - TRUE/FALSE - window is main, will destroy all other dependent windows on close
1343
+ SCITER_SET_MAIN_WINDOW = 14 // hWnd, value - TRUE/FALSE - window is main, will destroy all other dependent windows on close
1359
1344
1360
1345
SCITER_SET_MAX_HTTP_DATA_LENGTH = 15 // hWnd - N/A , value - max request length in megabytes (1024*1024 bytes)
1361
1346
)
0 commit comments