ACAPI_​ELEMENT_​MASK_​SET

Set only one flag in the mask according to one element parameter.

    ACAPI_ELEMENT_MASK_SET (
        API_Element  rec
        void  typ
        void  varnam
    );

 

Parameters

rec
[in] The API_Element mask to set.
typ
[in] Name of structure mask is going to be used on.
varnam
[in] Name of the member of the structure you want to change using the mask.

 

Remarks

Activate the given member (varnam) of the given type (typ) in the mask (rec).

 

Example


API_Element    element, mask;
GSErrCode      err;

BNZeroMemory (&element, sizeof (API_Element));

element.header.typeID = API_WallID;
element.header.variationID = APIVarId_Generic;
err = ACAPI_Element_GetDefaults (&element, nullptr);

if (err == NoError) {
    ACAPI_ELEMENT_MASK_CLEAR (mask);
    ACAPI_ELEMENT_MASK_SET (mask, API_Elem_Head, layer);
    element.header.layer = 27;
    err = ACAPI_Element_ChangeDefaults (&element, nullptr, &mask);
}

 

Requirements

Version: API 21 or later
Header: APIdefs_Elements.h

 

See Also

API Functions,
ACAPI_ELEMENT_MASK_SETFULL,
ACAPI_ELEMENT_MASK_CHECK,
ACAPI_ELEMENT_MASK_CLEAR1,
ACAPI_ELEMENT_MASK_CLEAR,
ACAPI_Element_ChangeDefaultsExt