X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbechordal_draw.h;h=17258f38516e54daa7e8a22fe3a06bf90f9039a7;hb=a1e9069afa4fa1e16e2d176bcd7905d6a1ed4677;hp=63e491fc8f7c43e8fd11018ace819c3369323d46;hpb=863d31d7a5c8210432fef88b30fc3e8353131538;p=libfirm diff --git a/ir/be/bechordal_draw.h b/ir/be/bechordal_draw.h index 63e491fc8..17258f385 100644 --- a/ir/be/bechordal_draw.h +++ b/ir/be/bechordal_draw.h @@ -1,71 +1,82 @@ - -/** - * @file bechordal_draw.h - * @date 13.05.2005 - * @author Sebastian Hack +/* + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. * - * Drawing chordal graphs. + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. * - * Copyright (C) 2005 Universitaet Karlsruhe - * Released under the GPL + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. */ -#ifndef _BECHORDAL_DRAW_H -#define _BECHORDAL_DRAW_H +/** + * @file + * @brief Paint chordal graphs. + * @author Sebastian Hack + * @date 12.05.2005 + * @version $Id$ + */ +#ifndef FIRM_BE_BECHORDAL_DRAW_H +#define FIRM_BE_BECHORDAL_DRAW_H -#include "bearch.h" +#include "bechordal.h" -typedef struct _plotter_t plotter_t; -typedef struct _plotter_if_t plotter_if_t; -typedef struct _rect_t rect_t; -typedef struct _draw_chordal_opts_t draw_chordal_opts_t; -typedef struct _color_t color_t; +typedef struct plotter_t plotter_t; +typedef struct plotter_if_t plotter_if_t; +typedef struct rect_t rect_t; +typedef struct draw_chordal_opts_t draw_chordal_opts_t; +typedef struct color_t color_t; -struct _color_t { - double r, g, b; +struct color_t { + double r, g, b; }; -struct _rect_t { - int x, y, w, h; +struct rect_t { + int x, y, w, h; }; -struct _plotter_if_t { - void (*begin)(plotter_t *self, const rect_t *visible_area); +struct plotter_if_t { + void (*begin)(plotter_t *self, const rect_t *visible_area); - void (*set_color)(plotter_t *self, const color_t * color); - const color_t * (*get_color)(const plotter_t *self); - void (*set_width)(plotter_t *self, int width); - int (*get_width)(const plotter_t *self); - void (*line)(plotter_t *self, int x1, int y1, int x2, int y2); - void (*box)(plotter_t *self, const rect_t *rect); - void (*text)(plotter_t *self, int x, int y, const char *str); + void (*set_color)(plotter_t *self, const color_t * color); + const color_t *(*get_color)(const plotter_t *self); + void (*set_width)(plotter_t *self, int width); + int (*get_width)(const plotter_t *self); + void (*line)(plotter_t *self, int x1, int y1, int x2, int y2); + void (*box)(plotter_t *self, const rect_t *rect); + void (*text)(plotter_t *self, int x, int y, const char *str); - void (*finish)(plotter_t *self); - void (*free)(plotter_t *self); + void (*finish)(plotter_t *self); + void (*free)(plotter_t *self); }; extern void plotter_free(plotter_t *self); -struct _plotter_t { - const plotter_if_t *vtab; +struct plotter_t { + const plotter_if_t *vtab; }; -struct _draw_chordal_opts_t { - int h_gap; - int h_inter_gap; - int v_gap; - int v_inter_gap; - int x_margin; - int y_margin; +struct draw_chordal_opts_t { + int h_gap; + int h_inter_gap; + int v_gap; + int v_inter_gap; + int x_margin; + int y_margin; }; extern const draw_chordal_opts_t draw_chordal_def_opts; extern plotter_t *new_plotter_ps(const char *filename); -extern void draw_interval_tree( - const draw_chordal_opts_t *opts, - const be_chordal_env_t *chordal_env, - plotter_t *plotter); +extern void draw_interval_tree(const draw_chordal_opts_t *opts, const be_chordal_env_t *chordal_env, plotter_t *plotter); -#endif /* _BECHORDAL_DRAW_H */ +#endif /* FIRM_BE_BECHORDAL_DRAW_H */