Пример #1
0
// 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;
}
Пример #2
0
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 ]);
}
Пример #3
0
// WPopdown_ControlEvent():
void WPopdown_ControlEvent( LWControlID con, void *data ) {
  PanelControls_WPopdown *popdown = (PanelControls_WPopdown *)data;
  popdown->OpenMenu( false );
}
Пример #4
0
// pc_wPopdownGetControl():
LWControlID pc_wPopdownGetControl( WPopdownID priv ) {
    PanelControls_WPopdown *popdown = (PanelControls_WPopdown *)priv;
    return popdown->GetControl();
}
Пример #5
0
// pc_wPopdownOpen();
void pc_wPopdownOpen( WPopdownID priv, int force ) {
    PanelControls_WPopdown *popdown = (PanelControls_WPopdown *)priv;
    popdown->OpenMenu( (force != 0) );
}
Пример #6
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 );
}