• # Vulgarisation

    Posté par (site web personnel) . En réponse au message Fonction Call Back : comment ca marche ?. Évalué à 2.

    comment ça marche les fonctions call back

    En gtk les callback servent, par exemple, a rattacher une fonction a un bouton lorsque celui ci est pressé.

    ainsi (vulgarisation):

    on_bouton_click_go_to(btn_click());

    {...}

    btn_click()
    {
    //add your code here
    }


    se définirait par une fonction genre (approximatif) :

    void on_bouton_click_go_to(void *f())
    {
    f();
    }