This converts the public uiItemsEnumO and uiItemsFullEnumO functions to an object-oriented API (as uiLayout::op_enum overloads), matching recent changes in the API. Part of: #117604 Pull Request: https://projects.blender.org/blender/blender/pulls/141748