Commit fa374a3a authored by Paul Asmuth's avatar Paul Asmuth
Browse files

wire up DRAW [SUB]TITLE

parent 431aaf33
Loading
Loading
Loading
Loading

drawable.cc

0 → 100644
+25 −0
Original line number Diff line number Diff line
/**
 * This file is part of the "FnordMetric" project
 *   Copyright (c) 2011-2014 Paul Asmuth, Google Inc.
 *
 * FnordMetric is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License v3.0. You should have received a
 * copy of the GNU General Public License along with this program. If not, see
 * <http://www.gnu.org/licenses/>.
 */
#include <string>
#include <fnordmetric/ui/drawable.h>

namespace fnordmetric {
namespace ui {

void Drawable::setTitle(const std::string& title) {
  printf("TITLE: %s\n", title.c_str());
}

void Drawable::setSubtitle(const std::string& subtitle) {
  printf("SUBTITLE: %s\n", subtitle.c_str());
}

}
}
+10 −0
Original line number Diff line number Diff line
@@ -28,6 +28,16 @@ public:
  Drawable(Canvas* canvas) : canvas_(canvas) {}
  virtual ~Drawable() {}

  /**
   * Set the title for this chart
   */
  void setTitle(const std::string& title);

  /**
   * Set the subtitle for this chart
   */
  void setSubtitle(const std::string& subtitle);

  /**
   * Add an axis to the chart.
   *