mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 12:36:51 +03:00
Move stuct rect out of box.h and tree.c.
svn path=/trunk/netsurf/; revision=11647
This commit is contained in:
parent
c247d54fb5
commit
27b6096dcd
32
desktop/shape.h
Normal file
32
desktop/shape.h
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2011 Michael Drake <tlsa@netsurf-browser.org>
|
||||
*
|
||||
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
||||
*
|
||||
* NetSurf is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; version 2 of the License.
|
||||
*
|
||||
* NetSurf is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** \file
|
||||
* Core mouse state.
|
||||
*/
|
||||
|
||||
#ifndef _NETSURF_DESKTOP_SHAPE_H_
|
||||
#define _NETSURF_DESKTOP_SHAPE_H_
|
||||
|
||||
/* Rectangle coordinates */
|
||||
struct rect {
|
||||
int x0, y0;
|
||||
int x1, y1;
|
||||
};
|
||||
|
||||
#endif
|
@ -159,11 +159,6 @@ struct tree {
|
||||
callbacks */
|
||||
};
|
||||
|
||||
struct rect {
|
||||
int x0; int y0; /* Top left coordinate */
|
||||
int x1; int y1; /* Bottom right coordinate */
|
||||
};
|
||||
|
||||
void tree_set_icon_dir(char *icon_dir)
|
||||
{
|
||||
LOG(("Tree icon directory set to %s", icon_dir));
|
||||
|
@ -92,6 +92,7 @@
|
||||
#include <libxml/HTMLparser.h>
|
||||
|
||||
#include "desktop/browser.h"
|
||||
#include "desktop/shape.h"
|
||||
#include "css/css.h"
|
||||
|
||||
struct box;
|
||||
@ -110,11 +111,6 @@ typedef enum {
|
||||
BOX_INLINE_END, BOX_NONE
|
||||
} box_type;
|
||||
|
||||
struct rect {
|
||||
int x0, y0;
|
||||
int x1, y1;
|
||||
};
|
||||
|
||||
/* Sides of a box */
|
||||
enum box_side { TOP, RIGHT, BOTTOM, LEFT };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user