7#ifndef MYGUI_EVENT_PAIR_H_
8#define MYGUI_EVENT_PAIR_H_
14#ifndef MYGUI_DONT_USE_OBSOLETE
15 template<
typename EventObsolete,
typename Event>
18 using IObsoleteDelegate =
typename EventObsolete::IDelegate;
53 void operator+=(IObsoleteDelegate* _delegate)
66 void operator-=(IObsoleteDelegate* _delegate)
94 template<
typename EventObsolete,
typename Event>
95#ifdef MYGUI_DONT_USE_OBSOLETE
105 template<
typename TP1>
112 template<
typename TP1,
typename TP2>
119 template<
typename TP1,
typename TP2,
typename TP3>
126 template<
typename TP1,
typename TP2,
typename TP3,
typename TP4>
133 template<
typename TP1,
typename TP2,
typename TP3,
typename TP4,
typename TP5>
134 void operator()(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5)
const
140 template<
typename TP1,
typename TP2,
typename TP3,
typename TP4,
typename TP5,
typename TP6>
141 void operator()(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6)
const
144 m_event(p1, p2, p3, p4, p5, p6);
147 template<
typename TP1,
typename TP2,
typename TP3,
typename TP4,
typename TP5,
typename TP6,
typename TP7>
148 void operator()(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6, TP7 p7)
const
151 m_event(p1, p2, p3, p4, p5, p6, p7);
163 void operator()(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6, TP7 p7, TP8 p8)
const
166 m_event(p1, p2, p3, p4, p5, p6, p7, p8);
171 template<
typename EventObsolete,
typename Event>
172#ifdef MYGUI_DONT_USE_OBSOLETE
173 using EventPairAddParameter = Event;
183 template<
typename TP1,
typename TP2>
191 template<
typename TP1,
typename TP2,
typename TP3,
typename TP4>
199 template<
typename TP1,
typename TP2,
typename TP3,
typename TP4>
208 template<
typename EventObsolete,
typename Event>
209#ifdef MYGUI_DONT_USE_OBSOLETE
210 using EventPairConvertStringView = Event;
215 T&& convertStringView(T&& value)
const noexcept
217 return std::forward<T>(value);
221 std::basic_string<T> convertStringView(std::basic_string_view<T> value)
const noexcept
223 return std::string{value};
231 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