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

Method BoolOpt

source/input_object.cpp:159–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157
158
159ResultType InputObject::BoolOpt(ResultToken &aResultToken, int aID, int aFlags, ExprTokenType *aParam[], int aParamCount)
160{
161 bool *bool_option = nullptr;
162 switch (aID)
163 {
164 case P_BackspaceIsUndo: bool_option = &input.BackspaceIsUndo; break;
165 case P_CaseSensitive: bool_option = &input.CaseSensitive; break;
166 case P_FindAnywhere: bool_option = &input.FindAnywhere; break;
167 case P_VisibleText: bool_option = &input.VisibleText; break;
168 case P_VisibleNonText: bool_option = &input.VisibleNonText; break;
169 case P_NotifyNonText: bool_option = &input.NotifyNonText; break;
170 }
171 if (IS_INVOKE_SET)
172 *bool_option = ParamIndexToBOOL(0);
173 _o_return(*bool_option);
174}
175
176
177ResultType InputObject::OnX(ResultToken &aResultToken, int aID, int aFlags, ExprTokenType *aParam[], int aParamCount)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected