MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / MethodGetPos

Method MethodGetPos

source/script_gui.cpp:1048–1064  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1046
1047
1048ResultType GuiType::MethodGetPos(ResultToken &aResultToken, ExprTokenType *aParam[], int aParamCount, RECT &aPos)
1049{
1050 aPos.right -= aPos.left; // Convert to width.
1051 aPos.bottom -= aPos.top; // Convert to height.
1052
1053 for (int i = 0; i < 4 && i < aParamCount; ++i)
1054 {
1055 if (aParam[i]->symbol == SYM_MISSING)
1056 continue;
1057 Var *var = ParamIndexToOutputVar(i);
1058 if (!var)
1059 _o_throw(ERR_PARAM_INVALID);
1060 var->Assign(Unscale(((int *)&aPos)[i]));
1061 }
1062
1063 _o_return_empty;
1064}
1065
1066
1067void GuiType::ControlSetEnabled(GuiControlType &aControl, bool aEnabled)

Callers 1

InvokeMethod · 0.80

Calls 1

AssignMethod · 0.45

Tested by

no test coverage detected