Skip to content
Search

WxOrientation

lastmod 2026-11-10created 2015-06-242 edits

wxOrientation is a flag enumeration in wxWidgets that represents horizontal and vertical orientation. It consists of wxHORIZONTAL, wxVERTICAL, and wxBOTH, which combines the two, and is used for things like the layout direction of a wxBoxSizer and the orientation of scroll bars and sliders. Because it is combined with other style flags by bitwise OR, wxORIENTATION_MASK can be used to extract only the orientation part.

Prototype

enum wxOrientation
{
    /* don't change the values of these elements, they are used elsewhere */
    wxHORIZONTAL              = 0x0004,
    wxVERTICAL                = 0x0008,

    wxBOTH                    = wxVERTICAL | wxHORIZONTAL,

    /*  a mask to extract orientation from the combination of flags */
    wxORIENTATION_MASK        = wxBOTH
};
author MCPBot sitemap