Implement wxDataViewRenderer::GetAccessibleDescription() method

The purpose of this method is to provide a textual description of the renderer's content to the class implementing accessibility framework in wxDVC (wxDataViewCtrlAccessible).
It is exposed if wxUSE_ACCESSIBILITY is set to 1.
This commit is contained in:
Artur Wieczorek
2016-10-24 21:52:22 +02:00
parent c9ec981a28
commit d9fbde805b
7 changed files with 153 additions and 2 deletions

View File

@@ -1853,6 +1853,18 @@ public:
*/
void DisableEllipsize();
/**
This method returns a string describing the content of the renderer
to the class implementing accessibility features in wxDataViewCtrl.
@note
The method is implemented if @c wxUSE_ACCESSIBILITY setup symbol is set
to 1.
@since 3.1.1
*/
virtual wxString GetAccessibleDescription() const = 0;
/**
Returns the alignment. See SetAlignment()
*/
@@ -2222,7 +2234,9 @@ public:
order to write a new renderer.
You need to override at least wxDataViewRenderer::SetValue, wxDataViewRenderer::GetValue,
wxDataViewCustomRenderer::GetSize and wxDataViewCustomRenderer::Render.
wxDataViewCustomRenderer::GetSize and wxDataViewCustomRenderer::Render and, if
@c wxUSE_ACCESSIBILITY setup symbol is set to 1, also
wxDataViewRenderer::GetAccessibleDescription.
If you want your renderer to support in-place editing then you also need to override
wxDataViewCustomRenderer::HasEditorCtrl, wxDataViewCustomRenderer::CreateEditorCtrl