LMMS
Loading...
Searching...
No Matches
drawingutils.cpp File Reference
#include "calf/drawingutils.h"
#include <cstring>
#include <algorithm>
#include <math.h>

Functions

void display_background (GtkWidget *widget, cairo_t *c, int x, int y, int sx, int sy, int ox, int oy, float radius, float bevel, float brightness, int shadow, float lights, float dull)
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 (cairo_t *cr, gint x, gint y, gint width, gint height, float rad, gint depth)
void draw_inset (GtkWidget *widget, 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 draw_glass (GtkWidget *widget, 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,
float bevel,
float brightness,
int shadow,
float lights,
float dull )

◆ 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 )