You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: engine/src/engine.mlc
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -40,21 +40,21 @@ use com.livecode.foreign
40
40
public foreign type ScriptObject binds to "kMCEngineScriptObjectTypeInfo"
41
41
42
42
public foreign handler MCEngineExecResolveScriptObject(in pObjectId) as ScriptObject binds to "<builtin>"
43
-
public foreign handler MCEngineEvalScriptObjectExists(in pObject as ScriptObject, out rExists as bool) as undefined binds to "<builtin>"
44
-
public foreign handler MCEngineEvalScriptObjectDoesNotExists(in pObject as ScriptObject, out rExists as bool) as undefined binds to "<builtin>"
45
-
public foreign handler MCEngineExecGetPropertyOfScriptObject(in pProperty as string, in pObject as ScriptObject) as any binds to "<builtin>"
46
-
public foreign handler MCEngineExecSetPropertyOfScriptObject(in pProperty as string, in pObject as ScriptObject, in pValue as any) as undefined binds to "<builtin>"
43
+
public foreign handler MCEngineEvalScriptObjectExists(in pObject as ScriptObject, out rExists as CBool) as undefined binds to "<builtin>"
44
+
public foreign handler MCEngineEvalScriptObjectDoesNotExists(in pObject as ScriptObject, out rExists as CBool) as undefined binds to "<builtin>"
45
+
public foreign handler MCEngineExecGetPropertyOfScriptObject(in pProperty as String, in pObject as ScriptObject) as any binds to "<builtin>"
46
+
public foreign handler MCEngineExecSetPropertyOfScriptObject(in pProperty as String, in pObject as ScriptObject, in pValue as any) as undefined binds to "<builtin>"
47
47
public foreign handler MCEngineEvalOwnerOfScriptObject(in pObject as ScriptObject, out rParent as ScriptObject) as undefined binds to "<builtin>"
48
-
public foreign handler MCEngineEvalChildrenOfScriptObject(in pObject as ScriptObject, out rChildren as list) as undefined binds to "<builtin>"
49
-
public foreign handler MCEngineExecSendToScriptObject(in pIsFunction as bool, in pMessage as string, in pTarget as ScriptObject) as any binds to "<builtin>"
50
-
public foreign handler MCEngineExecSendToScriptObjectWithArguments(in pIsFunction as bool, in pMessage as string, in pTarget as ScriptObject, in pArguments as optional list) as any binds to "<builtin>"
51
-
public foreign handler MCEngineExecPostToScriptObject(in pMessage as string, in pTarget as ScriptObject) as undefined binds to "<builtin>"
52
-
public foreign handler MCEngineExecPostToScriptObjectWithArguments(in pMessage as string, in pTarget as ScriptObject, in pArguments as optional list) as undefined binds to "<builtin>"
53
-
public foreign handler MCEngineEvalMessageWasHandled(out pHandled as bool) as undefined binds to "<builtin>"
54
-
public foreign handler MCEngineEvalMessageWasNotHandled(out pHandled as bool) as undefined binds to "<builtin>"
55
-
public foreign handler MCEngineExecExecuteScript(in pScript as string) as any binds to "<builtin>"
56
-
public foreign handler MCEngineExecLog(in pFormat as string) as undefined binds to "<builtin>"
57
-
public foreign handler MCEngineExecLogWithValues(in pFormat as string, in pValues as list) as undefined binds to "<builtin>"
48
+
public foreign handler MCEngineEvalChildrenOfScriptObject(in pObject as ScriptObject, out rChildren as List) as undefined binds to "<builtin>"
49
+
public foreign handler MCEngineExecSendToScriptObject(in pIsFunction as CBool, in pMessage as String, in pTarget as ScriptObject) as any binds to "<builtin>"
50
+
public foreign handler MCEngineExecSendToScriptObjectWithArguments(in pIsFunction as CBool, in pMessage as String, in pTarget as ScriptObject, in pArguments as optional List) as any binds to "<builtin>"
51
+
public foreign handler MCEngineExecPostToScriptObject(in pMessage as String, in pTarget as ScriptObject) as undefined binds to "<builtin>"
52
+
public foreign handler MCEngineExecPostToScriptObjectWithArguments(in pMessage as String, in pTarget as ScriptObject, in pArguments as optional List) as undefined binds to "<builtin>"
53
+
public foreign handler MCEngineEvalMessageWasHandled(out pHandled as CBool) as undefined binds to "<builtin>"
54
+
public foreign handler MCEngineEvalMessageWasNotHandled(out pHandled as CBool) as undefined binds to "<builtin>"
55
+
public foreign handler MCEngineExecExecuteScript(in pScript as String) as any binds to "<builtin>"
56
+
public foreign handler MCEngineExecLog(in pFormat as String) as undefined binds to "<builtin>"
57
+
public foreign handler MCEngineExecLogWithValues(in pFormat as String, in pValues as List) as undefined binds to "<builtin>"
58
58
59
59
/*
60
60
Summary: Resolves a string to a script object.
@@ -148,7 +148,7 @@ Object: An expression that evaluates to a <ScriptObject>.
148
148
The result: The value of the property.
149
149
150
150
Example:
151
-
public handler myScript() as string
151
+
public handler myScript() as String
152
152
get property "script" of my script object
153
153
return the result
154
154
end handler
@@ -204,7 +204,7 @@ Object: An expression that evaluates to a <ScriptObject>.
204
204
The result: The <ScriptObject> that is the owner of <Object>.
205
205
206
206
Example:
207
-
public handler MyName() as string
207
+
public handler MyName() as String
208
208
get property "short name" of my script object
209
209
return the result
210
210
end handler
@@ -232,7 +232,7 @@ Object: An expression that evaluates to a <ScriptObject>
232
232
The result: A list of <ScriptObject>s that are contained within <Object>.
233
233
234
234
Example:
235
-
public handler GetSiblings(in pObject as ScriptObject) as list
235
+
public handler GetSiblings(in pObject as ScriptObject) as List
236
236
// Return the sibling objects of an object
237
237
return the children of the owner of pObject
238
238
end handler
@@ -371,7 +371,7 @@ Script: The script to execute.
Copy file name to clipboardExpand all lines: engine/src/widget.mlc
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ Syntax: OnGeometryChanged
80
80
Summary: Sent when the widget geometry changed.
81
81
Example:
82
82
83
-
private variable mLabel as string
83
+
private variable mLabel as String
84
84
85
85
public handler OnGeometryChanged()
86
86
if my width is not my height then
@@ -101,9 +101,9 @@ Summary: Sent when the widget visibility changed.
101
101
Parameters:
102
102
isVisible(bool): Whether the widget is now visible or not.
103
103
Example:
104
-
private variable mAnimate as bool
104
+
private variable mAnimate as Boolean
105
105
106
-
public handler OnVisibilityChanged(in pVisible as bool)
106
+
public handler OnVisibilityChanged(in pVisible as Boolean)
107
107
put pVisible into mAnimate
108
108
end handler
109
109
@@ -366,13 +366,13 @@ use com.livecode.engine
366
366
// ---------- Widget commands ---------- //
367
367
368
368
public foreign handler MCWidgetExecRedrawAll() as undefined binds to "<builtin>"
369
-
public foreign handler MCWidgetExecScheduleTimerIn(in pTime as double) as undefined binds to "<builtin>"
369
+
public foreign handler MCWidgetExecScheduleTimerIn(in pTime as CDouble) as undefined binds to "<builtin>"
370
370
public foreign handler MCWidgetExecCancelTimer() as undefined binds to "<builtin>"
371
-
public foreign handler MCWidgetEvalInEditMode(out rInEditMode as bool) as undefined binds to "<builtin>"
372
-
public foreign handler MCWidgetExecSend(in pIsFunction as bool, in pMessage as string) as any binds to "<builtin>"
373
-
public foreign handler MCWidgetExecSendWithArguments(in pIsFunction as bool, in pMessage as string, in pArguments as optional list) as any binds to "<builtin>"
374
-
public foreign handler MCWidgetExecPost(in pMessage as string) as undefined binds to "<builtin>"
375
-
public foreign handler MCWidgetExecPostWithArguments(in pMessage as string, in pArguments as optional list) as undefined binds to "<builtin>"
371
+
public foreign handler MCWidgetEvalInEditMode(out rInEditMode as CBool) as undefined binds to "<builtin>"
372
+
public foreign handler MCWidgetExecSend(in pIsFunction as CBool, in pMessage as String) as any binds to "<builtin>"
373
+
public foreign handler MCWidgetExecSendWithArguments(in pIsFunction as CBool, in pMessage as String, in pArguments as optional List) as any binds to "<builtin>"
374
+
public foreign handler MCWidgetExecPost(in pMessage as String) as undefined binds to "<builtin>"
375
+
public foreign handler MCWidgetExecPostWithArguments(in pMessage as String, in pArguments as optional List) as undefined binds to "<builtin>"
376
376
377
377
/*
378
378
Summary: Redraws the widget.
@@ -486,10 +486,10 @@ public foreign handler MCWidgetGetScriptObject(out rObject as ScriptObject) as u
486
486
public foreign handler MCWidgetGetRectangle(out rRect as Rectangle) as undefined binds to "<builtin>"
487
487
public foreign handler MCWidgetGetFrame(out rRect as Rectangle) as undefined binds to "<builtin>"
488
488
public foreign handler MCWidgetGetBounds(out rRect as Rectangle) as undefined binds to "<builtin>"
489
-
public foreign handler MCWidgetGetWidth(out rWidth as real) as undefined binds to "<builtin>"
490
-
public foreign handler MCWidgetSetWidth(in pWidth as real) as undefined binds to "<builtin>"
491
-
public foreign handler MCWidgetGetHeight(out rHeight as real) as undefined binds to "<builtin>"
492
-
public foreign handler MCWidgetSetHeight(in pHeight as real) as undefined binds to "<builtin>"
489
+
public foreign handler MCWidgetGetWidth(out rWidth as Real) as undefined binds to "<builtin>"
490
+
public foreign handler MCWidgetSetWidth(in pWidth as Real) as undefined binds to "<builtin>"
491
+
public foreign handler MCWidgetGetHeight(out rHeight as Real) as undefined binds to "<builtin>"
492
+
public foreign handler MCWidgetSetHeight(in pHeight as Real) as undefined binds to "<builtin>"
493
493
494
494
/*
495
495
Summary: Returns the widget script object.
@@ -570,10 +570,10 @@ end syntax
570
570
571
571
//foreign type PressedState binds to "kMCPressedState"
572
572
573
-
public foreign handler MCWidgetGetMousePosition(in pCurrent as bool, out rLocation as Point) as undefined binds to "<builtin>"
574
-
public foreign handler MCWidgetGetClickPosition(in pCurrent as bool, out rLocation as Point) as undefined binds to "<builtin>"
575
-
public foreign handler MCWidgetGetMouseButtonState(in pIndex as uint, out rPressed /*as PressedState*/) as undefined binds to "<builtin>"
576
-
public foreign handler MCWidgetGetModifierKeys(in pCurrent as bool, out rKeys as list) as undefined binds to "<builtin>"
573
+
public foreign handler MCWidgetGetMousePosition(in pCurrent as CBool, out rLocation as Point) as undefined binds to "<builtin>"
574
+
public foreign handler MCWidgetGetClickPosition(in pCurrent as CBool, out rLocation as Point) as undefined binds to "<builtin>"
575
+
public foreign handler MCWidgetGetMouseButtonState(in pIndex as LCUInt, out rPressed /*as PressedState*/) as undefined binds to "<builtin>"
576
+
public foreign handler MCWidgetGetModifierKeys(in pCurrent as CBool, out rKeys as List) as undefined binds to "<builtin>"
577
577
578
578
/*
579
579
Summary: Determines the location of the mouse pointer.
public foreign handler MCWidgetEvalStateIsPressed(in pState /*as PressedState*/, in pCurrently as bool, out rPressed as bool) as undefined binds to "<builtin>"
651
-
public foreign handler MCWidgetEvalStateIsNotPressed(in pState /*as PressedState*/, in pCurrently as bool, out rNotPressed as bool) as undefined binds to "<builtin>"
650
+
public foreign handler MCWidgetEvalStateIsPressed(in pState /*as PressedState*/, in pCurrently as CBool, out rPressed as CBool) as undefined binds to "<builtin>"
651
+
public foreign handler MCWidgetEvalStateIsNotPressed(in pState /*as PressedState*/, in pCurrently as CBool, out rNotPressed as CBool) as undefined binds to "<builtin>"
652
652
653
653
syntax IsPressed is postfix operator with precedence 5
// ---------- Syntactic sugar for points and rects ---------- //
667
667
668
-
public foreign handler MCWidgetEvalIsPointWithinRect(in pPoint as Point, in pRect as Rectangle, out rWithin as bool) as undefined binds to "<builtin>"
669
-
public foreign handler MCWidgetEvalIsPointNotWithinRect(in pPoint as Point, in pRect as Rectangle, out rNotWithin as bool) as undefined binds to "<builtin>"
668
+
public foreign handler MCWidgetEvalIsPointWithinRect(in pPoint as Point, in pRect as Rectangle, out rWithin as CBool) as undefined binds to "<builtin>"
669
+
public foreign handler MCWidgetEvalIsPointNotWithinRect(in pPoint as Point, in pRect as Rectangle, out rNotWithin as CBool) as undefined binds to "<builtin>"
670
670
671
671
/*
672
672
Summary: Determines whether a point is within a rectangle.
0 commit comments