コード例 #1
0
ファイル: view_tree.cpp プロジェクト: rombust/UICore
		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
ファイル: view_tree.cpp プロジェクト: doughdemon/ClanLib
		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);
			}
		}