Пример #1
0
        internal void ForeachAttribute(Action <PlaceAttributeHandle> action)
        {
            // PlaceAttributeHandle is valid only in this callback and users should not keep its reference
            AttributesCallback callback = (index, total, handle, userData) =>
            {
                action(new PlaceAttributeHandle(handle, true));
                return(true);
            };

            ForeachAttribute(handle, callback, IntPtr.Zero).WarnIfFailed("Failed to get attributes list from native handle");
        }
Пример #2
0
 internal static extern ErrorCode ForeachAttribute(IntPtr /* maps_place_h */ place, AttributesCallback callback, IntPtr /* void */ userData);
Пример #3
0
 internal static extern int Foreach(IntPtr attributes, AttributesCallback cb, IntPtr userData);