LMMS
Loading...
Searching...
No Matches
drawingutils.h
Go to the documentation of this file.
1/* Calf DSP Library
2 * A few useful drawing functions
3 *
4 * Copyright (C) 2008-2015 Krzysztof Foltman, Torben Hohn, Markus
5 * Schmidt and others
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General
18 * Public License along with this program; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02111-1307, USA.
21 */
22
23
24#ifndef CALF_DRAWINGUTILS_H
25#define CALF_DRAWINGUTILS_H
26
27#include <gtk/gtk.h>
28
29void display_background(GtkWidget *widget, cairo_t* c, int x, int y, int sx, int sy, int ox, int oy, float radius = 0, float bevel = 0.2, float brightness = 1, int shadow = 7, float lights = 0.9, float dull = 0.15) ;
30
31void draw_rect(GtkWidget * widget, const gchar * type, GtkStateType * state, gint x, gint y, gint width, gint height, float rad, float bevel);
32void draw_inset(GtkWidget *widget, gint x, gint y, gint width, gint height, float rad, gint depth);
33void draw_glass(GtkWidget *widget, gint x, gint y, gint width, gint height, float rad);
34void _draw_inset(cairo_t *cr, gint x, gint y, gint width, gint height, float rad, gint depth);
35void _draw_glass(cairo_t *cr, gint x, gint y, gint width, gint height, float rad);
36
37void get_bg_color(GtkWidget * widget, GtkStateType * state, float * r, float * g, float * b);
38void get_fg_color(GtkWidget * widget, GtkStateType * state, float * r, float * g, float * b);
39void get_base_color(GtkWidget * widget, GtkStateType * state, float * r, float * g, float * b);
40void get_text_color(GtkWidget * widget, GtkStateType * state, float * r, float * g, float * b);
41void get_color(GtkWidget * widget, const gchar * type, GtkStateType * state, float * r, float * g, float * b);
42
43void clip_context(GtkWidget * widget, cairo_t * cr, GdkRegion *region);
44void create_rectangle(cairo_t * cr, gint x, gint y, gint width, gint height, float rad);
45void draw_bevel(cairo_t * cr, gint x, gint y, gint width, gint height, float rad, float bevel);
46
47#endif /* CALF_DRAWINGUTILS_H */
CAdPlugDatabase::CRecord::RecordType type
Definition adplugdb.cpp:93
int y
Definition inflate.c:1588
int g
Definition inflate.c:1573
unsigned x[BMAX+1]
Definition inflate.c:1586
void get_color(GtkWidget *widget, const gchar *type, GtkStateType *state, float *r, float *g, float *b)
Definition drawingutils.cpp:176
void draw_inset(GtkWidget *widget, gint x, gint y, gint width, gint height, float rad, gint depth)
Definition drawingutils.cpp:145
void get_base_color(GtkWidget *widget, GtkStateType *state, float *r, float *g, float *b)
Definition drawingutils.cpp:170
void _draw_inset(cairo_t *cr, gint x, gint y, gint width, gint height, float rad, gint depth)
Definition drawingutils.cpp:137
void get_text_color(GtkWidget *widget, GtkStateType *state, float *r, float *g, float *b)
Definition drawingutils.cpp:173
void create_rectangle(cairo_t *cr, gint x, gint y, gint width, gint height, float rad)
Definition drawingutils.cpp:208
void get_fg_color(GtkWidget *widget, GtkStateType *state, float *r, float *g, float *b)
Definition drawingutils.cpp:167
void display_background(GtkWidget *widget, cairo_t *c, int x, int y, int sx, int sy, int ox, int oy, float radius=0, float bevel=0.2, float brightness=1, int shadow=7, float lights=0.9, float dull=0.15)
Definition drawingutils.cpp:28
void draw_rect(GtkWidget *widget, const gchar *type, GtkStateType *state, gint x, gint y, gint width, gint height, float rad, float bevel)
Definition drawingutils.cpp:124
void _draw_glass(cairo_t *cr, gint x, gint y, gint width, gint height, float rad)
Definition drawingutils.cpp:150
void draw_bevel(cairo_t *cr, gint x, gint y, gint width, gint height, float rad, float bevel)
Definition drawingutils.cpp:242
void get_bg_color(GtkWidget *widget, GtkStateType *state, float *r, float *g, float *b)
Definition drawingutils.cpp:164
void draw_glass(GtkWidget *widget, gint x, gint y, gint width, gint height, float rad)
Definition drawingutils.cpp:158
void clip_context(GtkWidget *widget, cairo_t *cr, GdkRegion *region)
Definition drawingutils.cpp:200
static int int height
Definition pugl.h:1594
static int width
Definition pugl.h:1593
return c
Definition crypt.c:175
int r
Definition crypt.c:458
b
Definition crypt.c:628