示例#1
0
		static void dispatch_activation_change(View *view, ActivationChangeType type)
		{
			ActivationChangeEvent change(type);
			view->dispatch_event(&change, true);
			for (const auto &child : view->children())
			{
				dispatch_activation_change(child.get(), type);
			}
		}
示例#2
0
		static void dispatch_activation_change(View *view, ActivationChangeType type)
		{
			ActivationChangeEvent change(type);
			View::dispatch_event(view, &change, true);
			for (const auto &subview : view->subviews())
			{
				dispatch_activation_change(subview.get(), type);
			}
		}