element.flags |= VISIBLE;
element.flags &= ~VISIBLE;

It's always like this. Nothing more and nothing less.