Commit 9c774977 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

remove redundant fields from the LayoutInfo struct

parent 2786a4c9
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -73,21 +73,11 @@ struct LayoutSettings {

struct LayoutInfo {

  /**
   * The outer bounding box
   */
  Rectangle bounding_box;

  /**
   * The elements bounding box
   */
  Rectangle content_box;

  /**
   * The inner bounding box
   */
  Rectangle inner_box;

};

struct ElementPlacement {
+1 −6
Original line number Diff line number Diff line
@@ -116,12 +116,7 @@ int plotfx_render_to(plotfx_t* ctx, void* backend) {
  auto layer = static_cast<Layer*>(backend);

  LayoutInfo layout;
  layout.bounding_box = Rectangle(0, 0, layer->width, layer->height);
  layout.content_box = layout.bounding_box;
  layout.inner_box = layout.bounding_box;

  //plot::PlotConfig root;
  //root.margins = {from_px(20), from_px(20), from_px(20), from_px(20)};
  layout.content_box = Rectangle(0, 0, layer->width, layer->height);

  std::vector<ElementRef> roots;
  auto rc = try_chain({