foobar2000 SDK  2015-08-03
Functions
menu_item.cpp File Reference

Go to the source code of this file.

Functions

static contextmenu_item_nodeg_find_node (const GUID &p_guid, contextmenu_item_node *p_parent)
 

Function Documentation

static contextmenu_item_node* g_find_node ( const GUID p_guid,
contextmenu_item_node p_parent 
)
static

Definition at line 14 of file menu_item.cpp.

15 {
16  if (p_parent->get_guid() == p_guid) return p_parent;
17  else if (p_parent->get_type() == contextmenu_item_node::TYPE_POPUP)
18  {
19  t_size n, m = p_parent->get_children_count();
20  for(n=0;n<m;n++)
21  {
22  contextmenu_item_node * temp = g_find_node(p_guid,p_parent->get_child(n));
23  if (temp) return temp;
24  }
25  return 0;
26  }
27  else return 0;
28 }
virtual GUID get_guid()=0
size_t t_size
Definition: int_types.h:48
virtual t_type get_type()=0
virtual contextmenu_item_node * get_child(t_size p_index)=0
virtual t_size get_children_count()=0