title: C++ SFML Drawing scrollable content within a defined rectangle
body: <p>I'm having trouble drawing scrollable content within a defined rectangle. What I would like to achieve is the ability to freely scroll the contents within a rectangle, with anything that is not within or partially in being cropped. At present I scroll by the number of items available to make sure nothings being drawn outside of the rectangle.</p>
  
  <p>Looking at what's available in SFML it seems I should be able to achieve this using sf::View but my attempts are not working.</p>
  
  <pre><code>sf::View panelView;
  
  panelView.reset(sf::FloatRect(220,85,815,575));
  panelView.setViewport(sf::FloatRect(0, 0, 1.0f, 1.0f));
  </code></pre>
  
  <p>I'm then setting the viewpoint to this, drawing my items, then going back to the default view. It always seems to draw to the entire screen though instead of the desired rectangle i've set in the Reset method?</p>
  
  <p>My understanding is that this should create the viewport at 220 on the x axis, 85 on the y axis and be 815 wide and 575 high, but it's drawing outside of this boundaries.</p>
  
  <p>Any ideas?</p>