X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/371a5b4e62eb415107e045588f614fa49e866e78..419a3607032dc850b5045c622e3f10caa9e1cf91:/include/wx/access.h diff --git a/include/wx/access.h b/include/wx/access.h index 1480538eed..8e3f6d6ccc 100644 --- a/include/wx/access.h +++ b/include/wx/access.h @@ -12,14 +12,14 @@ #ifndef _WX_ACCESSBASE_H_ #define _WX_ACCESSBASE_H_ -#if defined(__GNUG__) && !defined(__APPLE__) - #pragma interface "accessbase.h" -#endif - // ---------------------------------------------------------------------------- // headers we have to include here // ---------------------------------------------------------------------------- +#include "wx/defs.h" + +#if wxUSE_ACCESSIBILITY + #include "wx/variant.h" typedef enum @@ -51,7 +51,7 @@ typedef enum // Role constants -typedef enum { +typedef enum { wxROLE_NONE, wxROLE_SYSTEM_ALERT, wxROLE_SYSTEM_ANIMATION, @@ -224,23 +224,28 @@ typedef enum // All functions return an indication of success, failure, or not implemented. // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxAccessible; -class WXDLLEXPORT wxAccessibleBase : public wxObject +class WXDLLIMPEXP_FWD_CORE wxAccessible; +class WXDLLIMPEXP_FWD_CORE wxWindow; +class WXDLLIMPEXP_FWD_CORE wxPoint; +class WXDLLIMPEXP_FWD_CORE wxRect; +class WXDLLIMPEXP_CORE wxAccessibleBase : public wxObject { DECLARE_NO_COPY_CLASS(wxAccessibleBase) public: - wxAccessibleBase(wxWindow* win): m_window(win) {}; - virtual ~wxAccessibleBase() {}; + wxAccessibleBase(wxWindow* win): m_window(win) {} + virtual ~wxAccessibleBase() {} // Overridables // Can return either a child object, or an integer // representing the child element, starting from 1. + // pt is in screen coordinates. virtual wxAccStatus HitTest(const wxPoint& WXUNUSED(pt), int* WXUNUSED(childId), wxAccessible** WXUNUSED(childObject)) { return wxACC_NOT_IMPLEMENTED; } // Returns the rectangle for this object (id = 0) or a child element (id > 0). + // rect is in screen coordinates. virtual wxAccStatus GetLocation(wxRect& WXUNUSED(rect), int WXUNUSED(elementId)) { return wxACC_NOT_IMPLEMENTED; } @@ -254,7 +259,7 @@ public: { return wxACC_NOT_IMPLEMENTED; } // Gets the number of children. - virtual wxAccStatus GetChildCount(int* WXUNUSED(childId)) + virtual wxAccStatus GetChildCount(int* WXUNUSED(childCount)) { return wxACC_NOT_IMPLEMENTED; } // Gets the specified child (starting from 1). @@ -321,6 +326,7 @@ public: virtual wxAccStatus GetFocus(int* WXUNUSED(childId), wxAccessible** WXUNUSED(child)) { return wxACC_NOT_IMPLEMENTED; } +#if wxUSE_VARIANT // Gets a variant representing the selected children // of this object. // Acceptable values: @@ -331,6 +337,7 @@ public: // - a "void*" pointer to a wxAccessible child object virtual wxAccStatus GetSelections(wxVariant* WXUNUSED(selections)) { return wxACC_NOT_IMPLEMENTED; } +#endif // wxUSE_VARIANT // Accessors @@ -344,7 +351,7 @@ public: // Operations - // Each wxAccessible implementation must define this + // Each platform's implementation must define this // static void NotifyEvent(int eventType, wxWindow* window, wxAccObject objectType, // int objectId); @@ -362,20 +369,9 @@ private: #if defined(__WXMSW__) #include "wx/msw/ole/access.h" -#elif defined(__WXMOTIF__) - #include "wx/generic/access.h" -#elif defined(__WXMGL__) - #include "wx/generic/access.h" -#elif defined(__WXGTK__) - #include "wx/generic/access.h" -#elif defined(__WXX11__) - #include "wx/generic/access.h" -#elif defined(__WXMAC__) - #include "wx/generic/access.h" -#elif defined(__WXPM__) - #include "wx/generic/access.h" #endif -#endif - // _WX_ACCESSBASE_H_ +#endif // wxUSE_ACCESSIBILITY + +#endif // _WX_ACCESSBASE_H_