From 7612d1f6fa5cdb0056378f18496af11470114bba Mon Sep 17 00:00:00 2001 From: Max Maisel Date: Mon, 26 Mar 2018 16:50:32 +0200 Subject: [PATCH] wxRibbon: Added @since tags to new function documentation --- interface/wx/ribbon/art.h | 2 ++ interface/wx/ribbon/buttonbar.h | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/interface/wx/ribbon/art.h b/interface/wx/ribbon/art.h index b233eb403b..055949e76a 100644 --- a/interface/wx/ribbon/art.h +++ b/interface/wx/ribbon/art.h @@ -983,6 +983,8 @@ public: @return Width of the given label text in pixel. @note This function only works with single-line strings. + + @since 3.1.2 */ virtual wxCoord GetButtonBarButtonTextWidth( wxDC& dc, const wxString& label, diff --git a/interface/wx/ribbon/buttonbar.h b/interface/wx/ribbon/buttonbar.h index f95455943b..9b18fba7ce 100644 --- a/interface/wx/ribbon/buttonbar.h +++ b/interface/wx/ribbon/buttonbar.h @@ -495,6 +495,8 @@ public: Small bitmap of the new button when it is disabled. If left as null, then a bitmap will be automatically generated from @a bitmap_small. + + @since 3.1.2 */ virtual void SetButtonIcon( int button_id, @@ -518,6 +520,8 @@ public: after every change. @see SetButtonTextMinWidth + + @since 3.1.2 */ virtual void SetButtonText(int button_id, const wxString& label); @@ -543,6 +547,8 @@ public: button labels on the fly without modifying the button bar layout. @see SetButtonText() + + @since 3.1.2 */ virtual void SetButtonTextMinWidth(int button_id, int min_width_medium, int min_width_large); @@ -565,6 +571,8 @@ public: button labels on the fly without modifying the button bar layout. @see SetButtonText() + + @since 3.1.2 */ virtual void SetButtonTextMinWidth(int button_id, const wxString& label); @@ -580,6 +588,8 @@ public: The minimum size-class of the button. Buttons on a button bar can have three distinct sizes: wxRIBBON_BUTTONBAR_BUTTON_SMALL, wxRIBBON_BUTTONBAR_BUTTON_MEDIUM, and wxRIBBON_BUTTONBAR_BUTTON_LARGE. + + @since 3.1.2 */ virtual void SetButtonMinSizeClass(int button_id, wxRibbonButtonBarButtonState min_size_class); @@ -596,6 +606,8 @@ public: The maximum size-class of the button. Buttons on a button bar can have three distinct sizes: wxRIBBON_BUTTONBAR_BUTTON_SMALL, wxRIBBON_BUTTONBAR_BUTTON_MEDIUM, and wxRIBBON_BUTTONBAR_BUTTON_LARGE. + + @since 3.1.2 */ virtual void SetButtonMaxSizeClass(int button_id, wxRibbonButtonBarButtonState max_size_class);