7#ifndef MYGUI_EVENT_PAIR_H_
8#define MYGUI_EVENT_PAIR_H_
18#ifndef MYGUI_DONT_USE_OBSOLETE
19 template<
typename EventObsolete,
typename Event>
22 using IObsoleteDelegate =
typename EventObsolete::IDelegate;
57 void operator+=(IObsoleteDelegate* _delegate)
70 void operator-=(IObsoleteDelegate* _delegate)
98 template<
typename EventObsolete,
typename Event>
99#ifdef MYGUI_DONT_USE_OBSOLETE
109 template<
typename TP1>
116 template<
typename TP1,
typename TP2>
123 template<
typename TP1,
typename TP2,
typename TP3>
130 template<
typename TP1,
typename TP2,
typename TP3,
typename TP4>
137 template<
typename TP1,
typename TP2,
typename TP3,
typename TP4,
typename TP5>
138 void operator()(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5)
const
144 template<
typename TP1,
typename TP2,
typename TP3,
typename TP4,
typename TP5,
typename TP6>
145 void operator()(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6)
const
148 m_event(p1, p2, p3, p4, p5, p6);
151 template<
typename TP1,
typename TP2,
typename TP3,
typename TP4,
typename TP5,
typename TP6,
typename TP7>
152 void operator()(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6, TP7 p7)
const
155 m_event(p1, p2, p3, p4, p5, p6, p7);
167 void operator()(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6, TP7 p7, TP8 p8)
const
170 m_event(p1, p2, p3, p4, p5, p6, p7, p8);
175 template<
typename EventObsolete,
typename Event>
176#ifdef MYGUI_DONT_USE_OBSOLETE
177 using EventPairAddParameter = Event;
187 template<
typename TP1,
typename TP2>
195 template<
typename TP1,
typename TP2,
typename TP3,
typename TP4>
203 template<
typename TP1,
typename TP2,
typename TP3,
typename TP4>
212 template<
typename EventObsolete,
typename Event>
213#ifdef MYGUI_DONT_USE_OBSOLETE
214 using EventPairConvertStringView = Event;
219 T&& convertStringView(T&& value)
const noexcept
221 return std::forward<T>(value);
225 std::basic_string<T> convertStringView(std::basic_string_view<T> value)
const noexcept
227 return std::string{value};
235 template<
typename... Args>
#define MYGUI_OBSOLETE(text)
void operator+=(IDelegate *_delegate)
void operator+=(T *)=delete
void operator-=(T *)=delete
CompositeEvent & operator=(const T &_delegate)
EventObsolete m_eventObsolete
void operator-=(IDelegate *_delegate)
typename Event::IDelegate IDelegate
CompositeEvent & operator=(T *_delegate)
void operator()(TP1 p1, TP2 p2, TP3 p3, TP4 p4)
void operator()(TP1 p1, TP2 p2, TP3 p3)
void operator()(TP1 p1, TP2 p2)
void operator()(Args &&... args) const
void operator()(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6, TP7 p7, TP8 p8) const
void operator()(TP1 p1, TP2 p2, TP3 p3) const
void operator()(TP1 p1, TP2 p2, TP3 p3, TP4 p4) const
void operator()(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6) const
void operator()(TP1 p1, TP2 p2) const
void operator()(TP1 p1) const
void operator()(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5) const
void operator()(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6, TP7 p7) const