2008-04-24 14:49:12 +02:00
|
|
|
/***************************************************************************
|
|
|
|
|
|
|
|
CDraw.h
|
|
|
|
|
2022-09-12 15:13:13 +02:00
|
|
|
(c) 2000-2017 Benoît Minisini <benoit.minisini@gambas-basic.org>
|
2008-04-24 14:49:12 +02:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2009-08-17 12:41:51 +02:00
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
2008-04-24 14:49:12 +02:00
|
|
|
any later version.
|
|
|
|
|
|
|
|
This program 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, write to the Free Software
|
2011-06-03 02:51:09 +02:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
2011-12-31 03:39:20 +01:00
|
|
|
MA 02110-1301, USA.
|
2008-04-24 14:49:12 +02:00
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __CDRAW_H
|
|
|
|
#define __CDRAW_H
|
|
|
|
|
|
|
|
#include "gambas.h"
|
|
|
|
#include "gb.draw.h"
|
2019-07-10 04:19:02 +02:00
|
|
|
#include "gb.paint.h"
|
2008-04-24 14:49:12 +02:00
|
|
|
|
2008-05-01 01:08:02 +02:00
|
|
|
#include <QPainter>
|
|
|
|
#include <QString>
|
2019-07-10 04:19:02 +02:00
|
|
|
#include <QTextDocument>
|
2008-04-24 14:49:12 +02:00
|
|
|
|
|
|
|
#ifndef __CDRAW_C
|
|
|
|
|
2009-12-28 02:19:27 +01:00
|
|
|
extern DRAW_INTERFACE DRAW;
|
2008-04-24 14:49:12 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2009-12-29 22:42:40 +01:00
|
|
|
typedef
|
|
|
|
void (*DRAW_TEXT_CB)(float, float, QString &);
|
|
|
|
|
2008-04-24 14:49:12 +02:00
|
|
|
void DRAW_init();
|
2019-07-10 04:19:02 +02:00
|
|
|
void DRAW_text(QPainter *p, const QString &text, float x, float y, float w, float h, int align);
|
|
|
|
void DRAW_init_rich_text(QTextDocument *doc, const QFont &font);
|
|
|
|
void DRAW_rich_text(QPainter *p, const QString &text, float x, float y, float w, float h, int align);
|
2009-01-03 23:24:02 +01:00
|
|
|
void DRAW_aligned_pixmap(QPainter *p, const QPixmap &pix, int x, int y, int w, int h, int align);
|
2008-04-24 14:49:12 +02:00
|
|
|
|
|
|
|
#endif
|