Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!
Werbeanzeige
C-/C++-Quelltext |
|
1 2 3 |
const std::list<Frame*>::const_iterator it_caption(std::find_if(m_windows.begin(), m_windows.end(), std::bind2nd(std::mem_fun(&Frame::hit_test_caption), point_mouse))); const std::list<Frame*>::const_iterator it_content(std::find_if(m_windows.begin(), m_windows.end(), std::bind2nd(std::mem_fun(&Frame::hit_test_content), point_mouse))); const std::list<Frame*>::const_iterator it(std::distance<std::list<Frame*>::const_iterator>(m_windows.begin(), it_caption) < std::distance<std::list<Frame*>::const_iterator>(m_windows.begin(), it_content) ? it_caption : it_content); |
C-/C++-Quelltext |
|
1 |
const std::list<Frame*>::const_iterator it(std::find_if(m_windows.begin(), m_windows.end(), std::compose2(std::logical_or<bool>(), std::bind2nd(std::mem_fun(&Frame::hit_test_caption), point_mouse), std::bind2nd(std::mem_fun(&Frame::hit_test_content), point_mouse))); |
C-/C++-Quelltext |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
template <typename argument_type> struct logical_or : public std::unary_function<typename argument_type::argument_type, bool> { argument_type first; argument_type second; logical_or(argument_type first, argument_type second) : first(first), second(second) {} const bool operator()(typename argument_type::argument_type const& arg) { return first(arg) || second(arg); } }; |
Werbeanzeige