yum-mirror/VkFFT
git clone https://git.yummers.dev/yum-mirror/VkFFT
ba7001c
v1.3.3b
1//------------------------------------------------------------------------------------------------------------------------------------------------------------- 2// 3// Foundation/NSNotification.hpp 4// 5// Copyright 2020-2021 Apple Inc. 6// 7// Licensed under the Apache License, Version 2.0 (the "License"); 8// you may not use this file except in compliance with the License. 9// You may obtain a copy of the License at 10// 11// http://www.apache.org/licenses/LICENSE-2.0 12// 13// Unless required by applicable law or agreed to in writing, software 14// distributed under the License is distributed on an "AS IS" BASIS, 15// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16// See the License for the specific language governing permissions and 17// limitations under the License. 18// 19//------------------------------------------------------------------------------------------------------------------------------------------------------------- 20 21#pragma once 22 23//------------------------------------------------------------------------------------------------------------------------------------------------------------- 24 25#include "NSDefines.hpp" 26#include "NSDictionary.hpp" 27#include "NSObject.hpp" 28#include "NSString.hpp" 29#include "NSTypes.hpp" 30 31//------------------------------------------------------------------------------------------------------------------------------------------------------------- 32 33namespace NS 34{ 35using NotificationName = class String * ; 36 37class Notification : public NS :: Referencing < Notification > 38{ 39public : 40NS :: String * name () const ; 41NS :: Object * object () const ; 42NS :: Dictionary * userInfo () const ; 43} ; 44} 45 46//------------------------------------------------------------------------------------------------------------------------------------------------------------- 47 48_NS_INLINE NS :: String * NS :: Notification :: name () const 49{ 50return Object :: sendMessage < NS :: String *> ( this , _NS_PRIVATE_SEL ( name )) ; 51} 52 53//------------------------------------------------------------------------------------------------------------------------------------------------------------- 54 55_NS_INLINE NS :: Object * NS :: Notification :: object () const 56{ 57return Object :: sendMessage < NS :: Object *> ( this , _NS_PRIVATE_SEL ( object )) ; 58} 59 60//------------------------------------------------------------------------------------------------------------------------------------------------------------- 61 62_NS_INLINE NS :: Dictionary * NS :: Notification :: userInfo () const 63{ 64return Object :: sendMessage < NS :: Dictionary *> ( this , _NS_PRIVATE_SEL ( userInfo )) ; 65} 66 67//-------------------------------------------------------------------------------------------------------------------------------------------------------------