1. 07 Dec, 2015 2 commits
  2. 20 Jan, 2015 1 commit
  3. 07 Nov, 2014 1 commit
  4. 09 Sep, 2014 1 commit
  5. 15 Aug, 2014 1 commit
  6. 19 Jan, 2014 1 commit
  7. 14 Jan, 2014 2 commits
  8. 10 Jan, 2014 1 commit
  9. 07 Jan, 2014 1 commit
  10. 06 Jan, 2014 1 commit
  11. 05 Jan, 2014 1 commit
  12. 22 Nov, 2013 2 commits
  13. 05 Nov, 2013 1 commit
  14. 26 Oct, 2013 5 commits
    • Abdo Roig-Maranges's avatar
      add functions to compute page positions · 030a8c65
      Abdo Roig-Maranges authored
      The plan is to put in adjustment.c every piece of code that has to do
      with document positioning, either computing it from data on the document
      side, or talking to GTK.
      
      We want to have at our disposal functions to compute sizes and positions
      without having to ask for it to a GTK widget. The new functions are:
      
       - move page_calc_height_width to adjustment.c
      
       - add page_calc_position that rotates a position relative to a page
         according to the rotation settings.
      
       - add position_to_page_number that computes the number of a page
         sitting at a given position (given in document-relative coordinates)
      
       - add page_number_to_position that computes the position (in document
         relative coordinates) that will be placed at the center of the viewport.
      
       - add page_is_visible that checks whether the given page intersects the
         viewport.
      030a8c65
    • Abdo Roig-Maranges's avatar
      let the document know about the current adjustments · bca5bcc5
      Abdo Roig-Maranges authored
      The document object now has functions to set and get the position and
      the viewport size.
      
      The position is a relative position with respect to the size of the
      entire document, i.e. position_y=0 means top of the document and
      position_y=1 bottom.
      
      The viewport size is stored in screen coordinates, in pixels.
      bca5bcc5
    • Abdo Roig-Maranges's avatar
      move zathura_get_document_size to document.c · a0a64832
      Abdo Roig-Maranges authored
      It makes more sense, plus now the document knows about the page layout
      and can do the computation.
      a0a64832
    • Abdo Roig-Maranges's avatar
      make the document object aware of page layout · 25998f83
      Abdo Roig-Maranges authored
      Now the document object knows about pages_per_row, first_page_column and
      page_padding, so we will be able to compute sizes and positions of the
      document view without querying the GTK widgets.
      25998f83
    • Abdo Roig-Maranges's avatar
      faster zathura_document_get_cell_size · f617ee61
      Abdo Roig-Maranges authored
      We precompute the maximum width and maximum height when opening the
      document. Then, when someone calls zathura_document_get_cell_size we use
      page_calc_width_height to apply the rotation and scale the precomputed
      values.
      f617ee61
  15. 27 Jul, 2013 1 commit
  16. 25 Jul, 2013 1 commit
  17. 28 May, 2013 2 commits
  18. 08 May, 2013 1 commit
  19. 26 Mar, 2013 1 commit
  20. 23 Mar, 2013 1 commit
  21. 19 Feb, 2013 2 commits
  22. 13 Feb, 2013 2 commits
  23. 08 Feb, 2013 1 commit
  24. 17 Jan, 2013 1 commit
  25. 13 Dec, 2012 1 commit
  26. 09 Oct, 2012 1 commit
  27. 13 Jun, 2012 1 commit
  28. 21 Apr, 2012 1 commit
  29. 03 Apr, 2012 1 commit
  30. 01 Apr, 2012 1 commit