ardour/libs/clearlooks-older/support.h

111 lines
2.8 KiB
C

#include <gtk/gtk.h>
#include <math.h>
#include <string.h>
/* GTK 2.2 compatibility */
#ifndef GTK_IS_COMBO_BOX_ENTRY
#define GTK_IS_COMBO_BOX_ENTRY(x) 0
#endif
#ifndef GTK_IS_COMBO_BOX
#define GTK_IS_COMBO_BOX(x) 0
#endif
#define RADIO_SIZE 13
#define CHECK_SIZE 13
GtkTextDirection
get_direction (GtkWidget *widget);
GdkPixbuf *
generate_bit (unsigned char alpha[],
GdkColor *color,
double mult);
GdkPixbuf *
colorize_bit (unsigned char *bit,
unsigned char *alpha,
GdkColor *new_color);
GdkPixmap *
pixbuf_to_pixmap (GtkStyle *style,
GdkPixbuf *pixbuf,
GdkScreen *screen);
gboolean
sanitize_size (GdkWindow *window,
gint *width,
gint *height);
void
rgb_to_hls (gdouble *r,
gdouble *g,
gdouble *b);
void
hls_to_rgb (gdouble *h,
gdouble *l,
gdouble *s);
void
shade (GdkColor * a, GdkColor * b, float k);
void
draw_hgradient (GdkDrawable *drawable, GdkGC *gc, GtkStyle *style,
int x, int y, int width, int height,
GdkColor *top_color, GdkColor *bottom_color);
void
draw_vgradient (GdkDrawable *drawable, GdkGC *gc, GtkStyle *style,
int x, int y, int width, int height,
GdkColor *left_color, GdkColor *right_color);
void
arrow_draw_hline (GdkWindow *window,
GdkGC *gc,
int x1,
int x2,
int y,
gboolean last);
void
arrow_draw_vline (GdkWindow *window,
GdkGC *gc,
int y1,
int y2,
int x,
gboolean last);
void
draw_arrow (GdkWindow *window,
GdkGC *gc,
GdkRectangle *area,
GtkArrowType arrow_type,
gint x,
gint y,
gint width,
gint height);
void
calculate_arrow_geometry (GtkArrowType arrow_type,
gint *x,
gint *y,
gint *width,
gint *height);
GtkWidget *special_get_ancestor(GtkWidget * widget,
GType widget_type);
void blend (GdkColormap *colormap,
GdkColor *a, GdkColor *b, GdkColor *c, int alpha);
GtkWidget *get_parent_window (GtkWidget *widget);
GdkColor *get_parent_bgcolor (GtkWidget *widget);
gboolean is_combo_box (GtkWidget * widget);
GtkWidget *find_combo_box_widget (GtkWidget * widget);
void gtk_clist_get_header_index (GtkCList *clist, GtkWidget *button,
gint *column_index, gint *columns);