Finally, a question about a topic I actually know something about!
I'm a patent attorney. As already noted by Zebraranger, there are utility patents and design patents (and also plant patents). Utility patents protect the utilitarian/functional characteristics of an invention, while design patents protect the aesthetic appearance of an article. The term of a utility patent is 20 years from the date the patent application is filed; design patents last 14 years from the date they are issued.
Generally speaking, once a patent expires, the public has a right to practice precisely what the patent covered. But as you can imagine, it's not quite as simple as that in some cases. For example, let's assume that Ruger had a patent that covered a gun with a particular type of safety system, and the patent expired. At that point anyone else would be free to make a gun having that same safety system. But that doesn't necessarily mean they could make the gun look exactly like a Ruger. For instance, if the appearance of Ruger's gun had acquired significance in the eyes of the public, as indicating the actual source of the gun (i.e., trade dress), then Ruger could prevent others from making a gun that appears confusingly similar to theirs.
DD