convert enum Hidden into global enum class

after having seen how it is done in e1b1246