foobar2000 SDK
2015-08-03
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
foobar2000
SDK
Functions
menu_item.cpp File Reference
Go to the source code of this file.
Functions
static
contextmenu_item_node
*
g_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
}
contextmenu_item_node::get_guid
virtual GUID get_guid()=0
contextmenu_item_node::TYPE_POPUP
Definition:
contextmenu.h:21
contextmenu_item_node
Definition:
contextmenu.h:5
g_find_node
static contextmenu_item_node * g_find_node(const GUID &p_guid, contextmenu_item_node *p_parent)
Definition:
menu_item.cpp:14
t_size
size_t t_size
Definition:
int_types.h:48
contextmenu_item_node::get_type
virtual t_type get_type()=0
contextmenu_item_node::get_child
virtual contextmenu_item_node * get_child(t_size p_index)=0
contextmenu_item_node::get_children_count
virtual t_size get_children_count()=0
Generated by
1.8.11