Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * Copyright 2008 Vincent Sanders <vince@simtec.co.uk>
  3.  *
  4.  * This file is part of NetSurf, http://www.netsurf-browser.org/
  5.  *
  6.  * NetSurf is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; version 2 of the License.
  9.  *
  10.  * NetSurf is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17.  */
  18.  
  19. #ifndef NETSURF_FB_GUI_H
  20. #define NETSURF_FB_GUI_H
  21.  
  22. typedef struct fb_cursor_s fb_cursor_t;
  23.  
  24. /* bounding box */
  25. typedef struct nsfb_bbox_s bbox_t;
  26.  
  27. struct gui_localhistory {
  28.         struct browser_window *bw;
  29.  
  30.         struct fbtk_widget_s *window;
  31.         struct fbtk_widget_s *hscroll;
  32.         struct fbtk_widget_s *vscroll;
  33.         struct fbtk_widget_s *history;
  34.  
  35.         int scrollx, scrolly; /**< scroll offsets. */
  36. };
  37.  
  38. struct gui_window {
  39.         struct browser_window *bw;
  40.  
  41.         struct fbtk_widget_s *window;
  42.         struct fbtk_widget_s *back;
  43.         struct fbtk_widget_s *forward;
  44.         struct fbtk_widget_s *url;
  45.         struct fbtk_widget_s *status;
  46.         struct fbtk_widget_s *throbber;
  47.         struct fbtk_widget_s *hscroll;
  48.         struct fbtk_widget_s *vscroll;
  49.         struct fbtk_widget_s *browser;
  50.  
  51.         int throbber_index;
  52.  
  53.         struct gui_localhistory *localhistory;
  54. };
  55.  
  56.  
  57. extern struct gui_window *window_list;
  58.  
  59. struct gui_localhistory *fb_create_localhistory(struct browser_window *bw, struct fbtk_widget_s *parent, int furniture_width);
  60. void fb_localhistory_map(struct gui_localhistory * glh);
  61.  
  62.  
  63. #endif /* NETSURF_FB_GUI_H */
  64.  
  65. /*
  66.  * Local Variables:
  67.  * c-basic-offset:8
  68.  * End:
  69.  */
  70.