This is what Apple “invented” the idea of sliding a latch to open something. But because they were doing it on a computer they got to patent it. Probably it cost some effort to work out the code to create the image and so forth – although if it cost them millions their programmers are incompetent – even tens of thousands seems high for that particular coding job. But here is the point: Nobody gets to copy their code with or without patents. The thing they actually paid for is protected.