Drawing Function to function pointer