// Popdown Callbacks int WPopdown_StringCount( void * data ) { PanelControls_WPopdown *popdown = (PanelControls_WPopdown *)data; if( popdown->count != NULL ) return popdown->count( popdown, popdown->user_data ); return popdown->string_count; }
char * WPopdown_StringName( void * data, int index ) { PanelControls_WPopdown *popdown = (PanelControls_WPopdown *)data; if( popdown->name != NULL ) return popdown->name( popdown, popdown->user_data, index ); if( (index < 0) || (index >= popdown->string_count) ) return ""; return (char *)(popdown->GetStrings()[ index ]); }
// WPopdown_ControlEvent(): void WPopdown_ControlEvent( LWControlID con, void *data ) { PanelControls_WPopdown *popdown = (PanelControls_WPopdown *)data; popdown->OpenMenu( false ); }
// pc_wPopdownGetControl(): LWControlID pc_wPopdownGetControl( WPopdownID priv ) { PanelControls_WPopdown *popdown = (PanelControls_WPopdown *)priv; return popdown->GetControl(); }
// pc_wPopdownOpen(); void pc_wPopdownOpen( WPopdownID priv, int force ) { PanelControls_WPopdown *popdown = (PanelControls_WPopdown *)priv; popdown->OpenMenu( (force != 0) ); }
// pc_wPopdownSetEvent(): void pc_wPopdownSetEvent( WPopdownID priv, WPopdown_Event *event, void *user_data ) { PanelControls_WPopdown *popdown = (PanelControls_WPopdown *)priv; popdown->SetEvent( event, user_data ); }