text: /*
      Copyright (c) 2016-2019 Xavier Leclercq
  
      Permission is hereby granted, free of charge, to any person obtaining a
      copy of this software and associated documentation files (the "Software"),
      to deal in the Software without restriction, including without limitation
      the rights to use, copy, modify, merge, publish, distribute, sublicense,
      and/or sell copies of the Software, and to permit persons to whom the
      Software is furnished to do so, subject to the following conditions:
  
      The above copyright notice and this permission notice shall be included in
      all copies or substantial portions of the Software.
  
      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
      IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
      FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
      THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
      LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
      FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
      IN THE SOFTWARE.
  */
  
  /*
      Part of this file were copied from the Chart.js project (http://chartjs.org/)
      and translated into C++.
  
      The files of the Chart.js project have the following copyright and license.
  
      Copyright (c) 2013-2016 Nick Downie
      Released under the MIT license
      https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
  */
  
  /// @file
  
  #ifndef _WX_CHARTS_WXBARCHARTCTRL_H_
  #define _WX_CHARTS_WXBARCHARTCTRL_H_
  
  #include "wxchartctrl.h"
  #include "wxbarchart.h"
  
  /// A control that displays a bar chart.
  /**
      \ingroup chartclasses
  */
  class WXCHARTS_DLLIMPEXP wxBarChartCtrl : public wxChartCtrl
  {
  public:
      /// Constructor.
      /**
          The chart options will be defined by the default theme.
  
          @param parent Pointer to a parent window.
          @param id Control identifier. If wxID_ANY, will automatically
          create an identifier.
          @param data The data that will be used to initialize the chart.
          @param pos Control position. wxDefaultPosition indicates that 
          wxWidgets should generate a default position for the control.
          @param size Control size. wxDefaultSize indicates that wxWidgets
          should generate a default size for the window. If no suitable 
          size can  be found, the window will be sized to 20x20 pixels 
          so that the window is visible but obviously not correctly sized.
          @param style Control style. For generic window styles, please 
          see wxWindow.
      */
      wxBarChartCtrl(wxWindow *parent, wxWindowID id, wxChartsCategoricalData::ptr &data,
          const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
          long style = 0);
  
      /// Constructor.
      /**
          @param parent Pointer to a parent window.
          @param id Control identifier. If wxID_ANY, will automatically
          create an identifier.
          @param data The data that will be used to initialize the chart.
          @param options The options to use for the chart.
          @param pos Control position. wxDefaultPosition indicates that
          wxWidgets should generate a default position for the control.
          @param size Control size. wxDefaultSize indicates that wxWidgets
          should generate a default size for the window. If no suitable
          size can  be found, the window will be sized to 20x20 pixels
          so that the window is visible but obviously not correctly sized.
          @param style Control style. For generic window styles, please
          see wxWindow.
      */
      wxBarChartCtrl(wxWindow *parent, wxWindowID id, wxChartsCategoricalData::ptr &data,
          wxBarChartOptions::ptr options, const wxPoint &pos = wxDefaultPosition,
          const wxSize &size = wxDefaultSize, long style = 0);
  
  private:
      virtual wxBarChart& GetChart();
  
  private:
      wxBarChart m_barChart;
  };
  
  #endif
  