LMMS
Loading...
Searching...
No Matches
drawingutils.h File Reference
#include <gtk/gtk.h>

Go to the source code of this file.

Functions

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)
void draw_rect (GtkWidget *widget, const gchar *type, GtkStateType *state, gint x, gint y, gint width, gint height, float rad, float bevel)
void draw_inset (GtkWidget *widget, gint x, gint y, gint width, gint height, float rad, gint depth)
void draw_glass (GtkWidget *widget, gint x, gint y, gint width, gint height, float rad)
void _draw_inset (cairo_t *cr, gint x, gint y, gint width, gint height, float rad, gint depth)
void _draw_glass (cairo_t *cr, gint x, gint y, gint width, gint height, float rad)
void get_bg_color (GtkWidget *widget, GtkStateType *state, float *r, float *g, float *b)
void get_fg_color (GtkWidget *widget, GtkStateType *state, float *r, float *g, float *b)
void get_base_color (GtkWidget *widget, GtkStateType *state, float *r, float *g, float *b)
void get_text_color (GtkWidget *widget, GtkStateType *state, float *r, float *g, float *b)
void get_color (GtkWidget *widget, const gchar *type, GtkStateType *state, float *r, float *g, float *b)
void clip_context (GtkWidget *widget, cairo_t *cr, GdkRegion *region)
void create_rectangle (cairo_t *cr, gint x, gint y, gint width, gint height, float rad)
void draw_bevel (cairo_t *cr, gint x, gint y, gint width, gint height, float rad, float bevel)

Function Documentation

◆ _draw_glass()

void _draw_glass ( cairo_t * cr,
gint x,
gint y,
gint width,
gint height,
float rad )

◆ _draw_inset()

void _draw_inset ( cairo_t * cr,
gint x,
gint y,
gint width,
gint height,
float rad,
gint depth )

◆ clip_context()

void clip_context ( GtkWidget * widget,
cairo_t * cr,
GdkRegion * region )

◆ create_rectangle()

void create_rectangle ( cairo_t * cr,
gint x,
gint y,
gint width,
gint height,
float rad )

◆ display_background()

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 )

◆ draw_bevel()

void draw_bevel ( cairo_t * cr,
gint x,
gint y,
gint width,
gint height,
float rad,
float bevel )

◆ draw_glass()

void draw_glass ( GtkWidget * widget,
gint x,
gint y,
gint width,
gint height,
float rad )

◆ draw_inset()

void draw_inset ( GtkWidget * widget,
gint x,
gint y,
gint width,
gint height,
float rad,
gint depth )

◆ draw_rect()

void draw_rect ( GtkWidget * widget,
const gchar * type,
GtkStateType * state,
gint x,
gint y,
gint width,
gint height,
float rad,
float bevel )

◆ get_base_color()

void get_base_color ( GtkWidget * widget,
GtkStateType * state,
float * r,
float * g,
float * b )

◆ get_bg_color()

void get_bg_color ( GtkWidget * widget,
GtkStateType * state,
float * r,
float * g,
float * b )

◆ get_color()

void get_color ( GtkWidget * widget,
const gchar * type,
GtkStateType * state,
float * r,
float * g,
float * b )

◆ get_fg_color()

void get_fg_color ( GtkWidget * widget,
GtkStateType * state,
float * r,
float * g,
float * b )

◆ get_text_color()

void get_text_color ( GtkWidget * widget,
GtkStateType * state,
float * r,
float * g,
float * b )