X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d474bbc2ae9172bd4233aeeeba1d4d3cf834e38..13a7abf97312d2e9427898f3432eb9214f09427f:/include/wx/univ/menu.h diff --git a/include/wx/univ/menu.h b/include/wx/univ/menu.h index 1f507c6303..4f1c1c888e 100644 --- a/include/wx/univ/menu.h +++ b/include/wx/univ/menu.h @@ -26,24 +26,10 @@ class WXDLLEXPORT wxMenuInfo; WX_DECLARE_OBJARRAY(wxMenuInfo, wxMenuInfoArray); -class wxPopupMenuWindow; - +class WXDLLEXPORT wxMenuGeometryInfo; +class WXDLLEXPORT wxPopupMenuWindow; class WXDLLEXPORT wxRenderer; -// ---------------------------------------------------------------------------- -// wxMenu helper classes, used in implementation only -// ---------------------------------------------------------------------------- - -// used by wxRenderer -class WXDLLEXPORT wxMenuGeometryInfo -{ -public: - // get the total size of the menu - virtual wxSize GetSize() const = 0; - - virtual ~wxMenuGeometryInfo(); -}; - // ---------------------------------------------------------------------------- // wxMenu // ---------------------------------------------------------------------------- @@ -129,6 +115,9 @@ private: // common part of all ctors void Init(); + // terminate the current radio group, if any + void EndRadioGroup(); + // the exact menu geometry is defined by a struct derived from this one // which is opaque and defined by the renderer wxMenuGeometryInfo *m_geometry; @@ -141,6 +130,9 @@ private: wxAcceleratorTable m_accelTable; #endif // wxUSE_ACCEL + // the position of the first item in the current radio group or -1 + int m_startRadioGroup; + // it calls out OnDismiss() friend class wxPopupMenuWindow; DECLARE_DYNAMIC_CLASS(wxMenu)