Eneboo - Documentación para desarrolladores
Clases | 'defines' | 'typedefs' | Enumeraciones | Funciones | Variables
Referencia del Archivo src/plugins/styles/qtcurve/common.h
#include "config.h"
#include <glib.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include "colorutils.h"

Ir al código fuente de este archivo.

Clases

struct  QtCPixmap
struct  QtCImage
struct  GradientStop
struct  WindowBorders
struct  Gradient
struct  Options

'defines'

#define MAKE_VERSION(a, b)   (((a) << 16) | ((b) << 8))
#define MAKE_VERSION3(a, b, c)   (((a) << 16) | ((b) << 8) | (c))
#define INCREASE_SB_SLIDER
#define IS_BLACK(A)   (0==(A).red && 0==(A).green && 0==(A).blue)
#define true   TRUE
#define false   FALSE
#define SETTINGS_GROUP   "Settings"
#define KWIN_GROUP   "KWin"
#define KDE_PREFIX(V)   ((4==(V)) ? KDE4PREFIX : KDE3PREFIX)
#define THEME_DIR   "/share/apps/kstyle/themes/"
#define THEME_DIR4   "/share/kde4/apps/kstyle/themes/"
#define THEME_PREFIX   "qtc_"
#define THEME_SUFFIX   ".themerc"
#define BORDER_SIZE_FILE   "windowBorderSizes"
#define LV_SIZE   7
#define LARGE_ARR_WIDTH   7
#define LARGE_ARR_HEIGHT   4
#define SMALL_ARR_WIDTH   5
#define SMALL_ARR_HEIGHT   3
#define NUM_STD_SHADES   6
#define NUM_EXTRA_SHADES   3
#define TOTAL_SHADES   NUM_STD_SHADES+NUM_EXTRA_SHADES
#define ORIGINAL_SHADE   TOTAL_SHADES
#define SHADE_ORIG_HIGHLIGHT   NUM_STD_SHADES
#define SHADE_4_HIGHLIGHT   NUM_STD_SHADES+1
#define SHADE_2_HIGHLIGHT   NUM_STD_SHADES+2
#define SHADES
#define SIMPLE_SHADING   (!shading)
#define DEFAULT_CONTRAST   7
#define THIN_SBAR_MOD   ((opts.sliderWidth<DEFAULT_SLIDER_WIDTH ? 3 : opts.sliderWidth>DEFAULT_SLIDER_WIDTH ? (opts.sliderWidth-9)/2 : 4)+(EFFECT_NONE==opts.buttonEffect ? 1 : 0))
#define SLIDER_SIZE   (opts.sliderWidth<DEFAULT_SLIDER_WIDTH ? DEFAULT_SLIDER_WIDTH-2 : opts.sliderWidth)
#define CIRCULAR_SLIDER_SIZE   15
#define GLOW_MO   1
#define GLOW_DEFBTN   1
#define GLOW_ALPHA(DEF)   ((DEF) ? 0.5 : 0.65)
#define DEF_BNT_TINT   0.4
#define ENTRY_INNER_ALPHA   0.4
#define INACTIVE_SEL_ALPHA   0.5
#define SUNKEN_BEVEL_DARK_ALPHA(X)   (X.value()/800.0)
#define SUNKEN_BEVEL_LIGHT_ALPHA(X)   (X.value()/500.0)
#define MENU_SIZE_ATOM   "_QTCURVE_MENUBAR_SIZE_"
#define STATUSBAR_ATOM   "_QTCURVE_STATUSBAR_"
#define TITLEBAR_SIZE_ATOM   "_QTCURVE_TITLEBAR_SIZE_"
#define ACTIVE_WINDOW_ATOM   "_QTCURVE_ACTIVE_WINDOW_"
#define TOGGLE_MENUBAR_ATOM   "_QTCURVE_TOGGLE_MENUBAR_"
#define TOGGLE_STATUSBAR_ATOM   "_QTCURVE_TOGGLE_STATUSBAR_"
#define OPACITY_ATOM   "_QTCURVE_OPACITY_"
#define BGND_ATOM   "_QTCURVE_BGND_"
#define BLEND_TITLEBAR
#define STD_BORDER   5
#define STD_BORDER_BR   2
#define PBAR_BORDER   4
#define ARROW_MO_SHADE   4
#define LOWER_BORDER_ALPHA   0.35
#define DISABLED_BORDER   STD_BORDER
#define BORDER_VAL(E)   (/*(E) ?*/ STD_BORDER/* : DISABLED_BORDER*/)
#define SLIDER_MO_BORDER_VAL   3
#define FRAME_DARK_SHADOW   2
#define FOCUS_SHADE(SEL)   (FOCUS_GLOW==opts.focus ? GLOW_MO : ((SEL) ? 3 : ORIGINAL_SHADE))
#define MENU_STRIPE_SHADE   (USE_LIGHTER_POPUP_MENU ? ORIGINAL_SHADE : 2)
#define MENU_SEP_SHADE   (USE_LIGHTER_POPUP_MENU ? 4 : 3)
#define BGND_STRIPE_SHADE   0.95
#define SHADE(c, s)
#define TAB_APPEARANCE(A)   (A)
#define INVERT_SHADE(A)   (1.0+(1.0-(A)))
#define ROUNDED   (ROUND_NONE!=opts.round)
#define TOOLBAR_SEP_GAP   (opts.fadeLines ? 5 : 6)
#define FADE_SIZE   0.4
#define ETCHED_DARK   0.95
#define IS_GLASS(A)   (APPEARANCE_DULL_GLASS==(A) || APPEARANCE_SHINY_GLASS==(A))
#define IS_CUSTOM(A)   ((A)>=APPEARANCE_CUSTOM1 && (A)<(APPEARANCE_CUSTOM1+NUM_CUSTOM_GRAD))
#define IS_FLAT(A)   (APPEARANCE_FLAT==(A) || APPEARANCE_RAISED==(A) || APPEARANCE_FADE==(A))
#define IS_FLAT_BGND(A)   (APPEARANCE_FLAT==(A) || APPEARANCE_RAISED==(A))
#define MENUBAR_DARK_LIMIT   (160<<8)
#define TOO_DARK(A)   ((A).red<MENUBAR_DARK_LIMIT || (A).green<MENUBAR_DARK_LIMIT || (A).blue<MENUBAR_DARK_LIMIT)
#define TO_FACTOR(A)   ((100.0+((double)(A)))/100.0)
#define DEFAULT_HIGHLIGHT_FACTOR   3
#define DEFAULT_SPLITTER_HIGHLIGHT_FACTOR   3
#define DEFAULT_CR_HIGHLIGHT_FACTOR   0
#define DEFAULT_EXPANDER_HIGHLIGHT_FACTOR   3
#define MAX_HIGHLIGHT_FACTOR   50
#define MIN_HIGHLIGHT_FACTOR   -50
#define MENUBAR_DARK_FACTOR   TO_FACTOR(-3)
#define INACTIVE_HIGHLIGHT_FACTOR   TO_FACTOR(20)
#define LV_HEADER_DARK_FACTOR   TO_FACTOR(-10)
#define DEF_POPUPMENU_LIGHT_FACTOR   2
#define MIN_LIGHTER_POPUP_MENU   -100
#define MAX_LIGHTER_POPUP_MENU   100
#define MIN_GB_FACTOR   -50
#define MAX_GB_FACTOR   50
#define DEF_GB_FACTOR   -3
#define TO_ALPHA(A)   (((double)((A)<0 ? -(A) : (A)))/100.0)
#define DEF_COLOR_SEL_TAB_FACTOR   25
#define MIN_COLOR_SEL_TAB_FACTOR   0
#define MAX_COLOR_SEL_TAB_FACTOR   100
#define DEF_TAB_BGND   0
#define MIN_TAB_BGND   -5
#define MAX_TAB_BGND   5
#define DEFAULT_MENU_DELAY   225
#define MIN_MENU_DELAY   0
#define MAX_MENU_DELAY   500
#define DEFAULT_SLIDER_WIDTH   15
#define MIN_SLIDER_WIDTH   11
#define MAX_SLIDER_WIDTH   31
#define SIZE_GRIP_SIZE   12
#define USE_LIGHTER_POPUP_MENU   (opts.lighterPopupMenuBgnd)
#define USE_BORDER(B)   (GB_SHINE!=(B) && GB_NONE!=(B))
#define DRAW_MENU_BORDER
#define USE_GLOW_FOCUS(mouseOver)   (FOCUS_GLOW==opts.focus && (MO_GLOW!=opts.coloredMouseOver || !(mouseOver)))
#define USE_SHADED_MENU_BAR_COLORS   (SHADE_CUSTOM==opts.shadeMenubars || SHADE_BLEND_SELECTED==opts.shadeMenubars)
#define MENUBAR_GLASS_SELECTED_DARK_FACTOR   0.9
#define MENUITEM_FADE_SIZE   48
#define NUM_SPLITTER_DASHES   21
#define WIDGET_BUTTON(w)
#define ETCH_WIDGET(w)
#define AGUA_WIDGET(w)
#define SLIDER(w)   (WIDGET_SB_SLIDER==(w) || WIDGET_SLIDER==(w))
#define CIRCULAR_SLIDER(w)   (WIDGET_SLIDER==(w) && SLIDER_CIRCULAR==opts.sliderStyle)
#define MODIFY_AGUA_X(A, X)   (APPEARANCE_AGUA==(A) ? (X) : (A))
#define MODIFY_AGUA(A)   MODIFY_AGUA_X((A), APPEARANCE_AGUA_MOD)
#define AGUA_MAX   32.0
#define AGUA_MID_SHADE   0.85
#define COLORED_BORDER_SIZE   3
#define PROGRESS_CHUNK_WIDTH   10
#define STRIPE_WIDTH   10
#define DRAW_LIGHT_BORDER(SUKEN, WIDGET, APP)
#define DRAW_3D_FULL_BORDER(SUNKEN, APP)   (!(SUNKEN) && GB_3D_FULL==qtcGetGradient((APP), &opts)->border)
#define DRAW_3D_BORDER(SUNKEN, APP)   (!(SUNKEN) && GB_3D==qtcGetGradient((APP), &opts)->border)
#define DRAW_SHINE(SUNKEN, APP)   (!(SUNKEN) && GB_SHINE==qtcGetGradient((APP), &opts)->border)
#define LIGHT_BORDER(APP)   (APPEARANCE_DULL_GLASS==(APP) ? 1 : 0)
#define PROGRESS_ANIMATION   100
#define MIN_SLIDER_SIZE(A)   (LINE_DOTS==(A) ? 24 : 20)
#define CR_SMALL_SIZE   13
#define CR_LARGE_SIZE   15
#define TAB_APP(A)   (APPEARANCE_BEVELLED==(A) || APPEARANCE_SPLIT_GRADIENT==(A) ? APPEARANCE_GRADIENT : (A))
#define NORM_TAB_APP   TAB_APP(opts.tabAppearance)
#define SEL_TAB_APP   TAB_APP(opts.activeTabAppearance)
#define SLIDER_MO_SHADE   (SHADE_SELECTED==opts.shadeSliders ? 1 : (SHADE_BLEND_SELECTED==opts.shadeSliders ? 0 : ORIGINAL_SHADE))
#define SLIDER_MO_PLASTIK_BORDER   (SHADE_SELECTED==opts.shadeSliders || SHADE_BLEND_SELECTED==opts.shadeSliders ? 2 : 1)
#define SLIDER_MO_LEN   (SLIDER_TRIANGULAR==opts.sliderStyle ? 2 : (SHADE_SELECTED==opts.shadeSliders || SHADE_BLEND_SELECTED==opts.shadeSliders ? 4 : 3))
#define SB_SLIDER_MO_LEN(A)
#define CR_MO_FILL   1
#define MO_DEF_BTN   2
#define MO_PLASTIK_DARK(W)   (WIDGET_DEF_BUTTON==(W) && IND_COLORED==opts.defBtnIndicator ? 3 : 2)
#define MO_PLASTIK_LIGHT(W)   (WIDGET_DEF_BUTTON==(W) && IND_COLORED==opts.defBtnIndicator ? 4 : 1)
#define MO_STD_DARK(W)
#define MO_STD_LIGHT(W, S)
#define FULLLY_ROUNDED   (opts.round>=ROUND_FULL)
#define DO_EFFECT   (EFFECT_NONE!=opts.buttonEffect)
#define SLIDER_GLOW   (DO_EFFECT && MO_GLOW==opts.coloredMouseOver /*&& SLIDER_TRIANGULAR!=opts.sliderStyle*/ ? 2 : 0)
#define ENTRY_MO   (opts.unifyCombo && opts.unifySpin)
#define FOCUS_ALPHA   0.08
#define FOCUS_GLOW_LINE_ALPHA   0.5
#define BORDER_BLEND_ALPHA(W)   (WIDGET_ENTRY==(W) || WIDGET_SCROLLVIEW==(W) || WIDGET_SPIN==(W) || WIDGET_COMBO_BUTTON==(W) ? 0.4 : 0.7)
#define ETCH_TOP_ALPHA   0.055
#define ETCH_BOTTOM_ALPHA   0.1
#define ETCH_RADIO_TOP_ALPHA   0.09
#define ETCH_RADIO_BOTTOM_ALPHA   1.0
#define RINGS_INNER_ALPHA(T)   qtcRingAlpha[IMG_PLAIN_RINGS==(T) ? 1 : 0]
#define RINGS_OUTER_ALPHA   qtcRingAlpha[2]
#define RINGS_WIDTH(T)   (IMG_SQUARE_RINGS==T ? 260 : 450)
#define RINGS_HEIGHT(T)   (IMG_SQUARE_RINGS==T ? 220 : 360)
#define RINGS_SQUARE_LARGE_ALPHA   (RINGS_OUTER_ALPHA*0.675)
#define RINGS_SQUARE_SMALL_ALPHA   (RINGS_OUTER_ALPHA*0.50)
#define RINGS_SQUARE_LINE_WIDTH   20.0
#define RINGS_SQUARE_RADIUS   18.0
#define RINGS_SQUARE_LARGE_SIZE   120.0
#define RINGS_SQUARE_SMALL_SIZE   100.0
#define MENU_AND_TOOLTIP_RADIUS   (opts.round>=ROUND_FULL ? 5.0 : 3.5)
#define CUSTOM_BGND   (!(IS_FLAT_BGND(opts.bgndAppearance)) || IMG_NONE!=opts.bgndImage.type || 100!=opts.bgndOpacity || 100!=opts.dlgOpacity)
#define GLOW_PROG_ALPHA   0.55
#define BGND_IMG_ON_BORDER   (IMG_FILE==opts.bgndImage.type && opts.bgndImage.onBorder)
#define IS_SLIDER(W)   (WIDGET_SLIDER==(W) || WIDGET_SB_SLIDER==(W))
#define IS_TROUGH(W)   (WIDGET_SLIDER_TROUGH==(W) || WIDGET_PBAR_TROUGH==(W) || WIDGET_TROUGH==(W) || WIDGET_FILLED_SLIDER_TROUGH==(W))
#define IS_TOGGLE_BUTTON(W)   (WIDGET_TOGGLE_BUTTON==(W) || WIDGET_CHECKBOX==(W))
#define ROUNDED_NONE   0x0
#define ROUNDED_TOP   (CORNER_TL|CORNER_TR)
#define ROUNDED_BOTTOM   (CORNER_BL|CORNER_BR)
#define ROUNDED_LEFT   (CORNER_TL|CORNER_BL)
#define ROUNDED_RIGHT   (CORNER_TR|CORNER_BR)
#define ROUNDED_TOPRIGHT   CORNER_TR
#define ROUNDED_BOTTOMRIGHT   CORNER_BR
#define ROUNDED_TOPLEFT   CORNER_TL
#define ROUNDED_BOTTOMLEFT   CORNER_BL
#define ROUNDED_ALL   (CORNER_TL|CORNER_TR|CORNER_BR|CORNER_BL)
#define NO_FRAME(A)   (FRAME_NONE==(A) || FRAME_LINE==(A))
#define ROTATED_SLIDER   (SLIDER_PLAIN_ROTATED==opts.sliderStyle || SLIDER_ROUND_ROTATED==opts.sliderStyle)
#define FULL_FOCUS   (FOCUS_FULL==opts.focus || FOCUS_FILLED==opts.focus)
#define qtcEqual(A, B)   (fabs(A - B) < 0.0001)
#define USE_CUSTOM_SHADES(A)   ((A).customShades[0]>0.00001)
#define USE_CUSTOM_ALPHAS(A)   ((A).customAlphas[0]>0.00001)
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
#define MAX(a, b)   ((b) < (a) ? (a) : (b))
#define tint(COLA, COLB, FACTOR)   ColorUtils_tint((COLA), (COLB), (FACTOR))
#define midColor(COLA, COLB)   ColorUtils_mix((COLA), (COLB), 0.5)
#define MIN_ROUND_MAX_HEIGHT   12
#define MIN_ROUND_MAX_WIDTH   24
#define BGND_SHINE_SIZE   300
#define BGND_SHINE_STEPS   8
#define MIN_ROUND_FULL_SIZE   8
#define MIN_ROUND_EXTRA_SIZE(W)   (WIDGET_SPIN_UP==(W) || WIDGET_SPIN_DOWN==(W) || WIDGET_SPIN==(W) ? 7 : 14)
#define IS_MAX_ROUND_WIDGET(A)   (WIDGET_STD_BUTTON==A || WIDGET_DEF_BUTTON==A || WIDGET_TOGGLE_BUTTON==A /*|| WIDGET_MENU_BUTTON==A*/)
#define IS_EXTRA_ROUND_WIDGET(A)   (A!=WIDGET_MENU_ITEM && A!=WIDGET_TAB_FRAME && A!=WIDGET_PBAR_TROUGH && A!=WIDGET_PROGRESSBAR)
#define EXTRA_INNER_RADIUS   4
#define EXTRA_OUTER_RADIUS   5
#define EXTRA_ETCH_RADIUS   6
#define FULL_INNER_RADIUS   2
#define FULL_OUTER_RADIUS   3
#define FULL_ETCH_RADIUS   4
#define SLIGHT_INNER_RADIUS   1
#define SLIGHT_OUTER_RADIUS   2
#define SLIGHT_ETCH_RADIUS   3
#define MAX_RADIUS_INTERNAL   9.0
#define MAX_RADIUS_EXTERNAL   (MAX_RADIUS_INTERNAL+2.0)

'typedefs'

typedef gboolean bool
typedef GdkColor color
typedef gchar ** Strings

Enumeraciones

enum  EShading { SHADING_SIMPLE = 0, SHADING_HSL = 1, SHADING_HSV = 2, SHADING_HCY = 3 }
enum  { ALPHA_ETCH_LIGHT = 0, ALPHA_ETCH_DARK, NUM_STD_ALPHAS }
enum  EWindowBorder {
  WINDOW_BORDER_COLOR_TITLEBAR_ONLY = 0x01, WINDOW_BORDER_USE_MENUBAR_COLOR_FOR_TITLEBAR = 0x02, WINDOW_BORDER_ADD_LIGHT_BORDER = 0x04, WINDOW_BORDER_BLEND_TITLEBAR = 0x08,
  WINDOW_BORDER_SEPARATOR = 0x10, WINDOW_BORDER_FILL_TITLEBAR = 0x20
}
enum  EImageType {
  IMG_NONE, IMG_BORDERED_RINGS, IMG_PLAIN_RINGS, IMG_SQUARE_RINGS,
  IMG_FILE
}
enum  EPixPos {
  PP_TL, PP_TM, PP_TR, PP_BL,
  PP_BM, PP_BR, PP_LM, PP_RM,
  PP_CENTRED
}
enum  EThinFlags { THIN_BUTTONS = 0x0001, THIN_MENU_ITEMS = 0x0002, THIN_FRAMES = 0x0004 }
enum  ESquare {
  SQUARE_NONE = 0x0000, SQUARE_ENTRY = 0x0001, SQUARE_PROGRESS = 0x0002, SQUARE_SCROLLVIEW = 0x0004,
  SQUARE_LISTVIEW_SELECTION = 0x0008, SQUARE_FRAME = 0x0010, SQUARE_TAB_FRAME = 0x0020, SQUARE_SLIDER = 0x0040,
  SQUARE_SB_SLIDER = 0x0080, SQUARE_WINDOWS = 0x0100, SQUARE_TOOLTIPS = 0x0200, SQUARE_POPUP_MENUS = 0x0400,
  SQUARE_ALL = 0xFFFF
}
enum  EWmDrag { WM_DRAG_NONE = 0, WM_DRAG_MENUBAR = 1, WM_DRAG_MENU_AND_TOOLBAR = 2, WM_DRAG_ALL = 3 }
enum  EEffect { EFFECT_NONE, EFFECT_ETCH, EFFECT_SHADOW }
enum  EPixmap { PIX_CHECK, PIX_BLANK }
enum  EWidget {
  WIDGET_TAB_TOP, WIDGET_TAB_BOT, WIDGET_STD_BUTTON, WIDGET_DEF_BUTTON,
  WIDGET_TOOLBAR_BUTTON, WIDGET_LISTVIEW_HEADER, WIDGET_SLIDER, WIDGET_SLIDER_TROUGH,
  WIDGET_FILLED_SLIDER_TROUGH, WIDGET_SB_SLIDER, WIDGET_SB_BUTTON, WIDGET_SB_BGND,
  WIDGET_TROUGH, WIDGET_CHECKBOX, WIDGET_RADIO_BUTTON, WIDGET_COMBO,
  WIDGET_COMBO_BUTTON, WIDGET_MENU_ITEM, WIDGET_PROGRESSBAR, WIDGET_PBAR_TROUGH,
  WIDGET_ENTRY_PROGRESSBAR, WIDGET_TOGGLE_BUTTON, WIDGET_SPIN_UP, WIDGET_SPIN_DOWN,
  WIDGET_UNCOLOURED_MO_BUTTON, WIDGET_SPIN, WIDGET_ENTRY, WIDGET_SCROLLVIEW,
  WIDGET_SELECTION, WIDGET_FRAME, WIDGET_NO_ETCH_BTN, WIDGET_MENU_BUTTON,
  WIDGET_FOCUS, WIDGET_TAB_FRAME, WIDGET_OTHER
}
enum  EAppAllow { APP_ALLOW_BASIC, APP_ALLOW_FADE, APP_ALLOW_STRIPED, APP_ALLOW_NONE }
enum  EAppearance {
  APPEARANCE_CUSTOM1, APPEARANCE_CUSTOM2, APPEARANCE_CUSTOM3, APPEARANCE_CUSTOM4,
  APPEARANCE_CUSTOM5, APPEARANCE_CUSTOM6, APPEARANCE_CUSTOM7, APPEARANCE_CUSTOM8,
  APPEARANCE_CUSTOM9, APPEARANCE_CUSTOM10, APPEARANCE_CUSTOM11, APPEARANCE_CUSTOM12,
  APPEARANCE_CUSTOM13, APPEARANCE_CUSTOM14, APPEARANCE_CUSTOM15, APPEARANCE_CUSTOM16,
  APPEARANCE_CUSTOM17, APPEARANCE_CUSTOM18, APPEARANCE_CUSTOM19, APPEARANCE_CUSTOM20,
  APPEARANCE_CUSTOM21, APPEARANCE_CUSTOM22, APPEARANCE_CUSTOM23, NUM_CUSTOM_GRAD,
  APPEARANCE_FLAT = NUM_CUSTOM_GRAD, APPEARANCE_RAISED, APPEARANCE_DULL_GLASS, APPEARANCE_SHINY_GLASS,
  APPEARANCE_AGUA, APPEARANCE_SOFT_GRADIENT, APPEARANCE_GRADIENT, APPEARANCE_HARSH_GRADIENT,
  APPEARANCE_INVERTED, APPEARANCE_DARK_INVERTED, APPEARANCE_SPLIT_GRADIENT, APPEARANCE_BEVELLED,
  APPEARANCE_FADE, APPEARANCE_STRIPED = APPEARANCE_FADE, APPEARANCE_NONE = APPEARANCE_FADE, APPEARANCE_FILE,
  APPEARANCE_LV_BEVELLED, APPEARANCE_AGUA_MOD, APPEARANCE_LV_AGUA, NUM_STD_APP = (APPEARANCE_LV_AGUA-NUM_CUSTOM_GRAD)+1
}
enum  ECornerBits { CORNER_TL = 0x1, CORNER_TR = 0x2, CORNER_BR = 0x4, CORNER_BL = 0x8 }
enum  EDefBtnIndicator {
  IND_CORNER, IND_FONT_COLOR, IND_COLORED, IND_TINT,
  IND_GLOW, IND_DARKEN, IND_SELECTED, IND_NONE
}
enum  ELine {
  LINE_NONE, LINE_SUNKEN, LINE_FLAT, LINE_DOTS,
  LINE_1DOT, LINE_DASHES
}
enum  ETBarBorder {
  TB_NONE, TB_LIGHT, TB_DARK, TB_LIGHT_ALL,
  TB_DARK_ALL
}
enum  ETBarBtn { TBTN_STANDARD, TBTN_RAISED, TBTN_JOINED }
enum  EBorder { BORDER_FLAT, BORDER_RAISED, BORDER_SUNKEN, BORDER_LIGHT }
enum  EShade {
  SHADE_NONE, SHADE_CUSTOM, SHADE_SELECTED, SHADE_BLEND_SELECTED,
  SHADE_DARKEN, SHADE_WINDOW_BORDER
}
enum  EColor { ECOLOR_BASE, ECOLOR_BACKGROUND, ECOLOR_DARK }
enum  ERound {
  ROUND_NONE, ROUND_SLIGHT, ROUND_FULL, ROUND_EXTRA,
  ROUND_MAX
}
enum  EScrollbar {
  SCROLLBAR_KDE, SCROLLBAR_WINDOWS, SCROLLBAR_PLATINUM, SCROLLBAR_NEXT,
  SCROLLBAR_NONE
}
enum  EFrame {
  FRAME_NONE, FRAME_PLAIN, FRAME_LINE, FRAME_SHADED,
  FRAME_FADED
}
enum  EGBLabel { GB_LBL_BOLD = 0x01, GB_LBL_CENTRED = 0x02, GB_LBL_INSIDE = 0x04, GB_LBL_OUTSIDE = 0x08 }
enum  EMouseOver {
  MO_NONE, MO_COLORED, MO_COLORED_THICK, MO_PLASTIK,
  MO_GLOW
}
enum  EStripe { STRIPE_NONE, STRIPE_PLAIN, STRIPE_DIAGONAL, STRIPE_FADE }
enum  ESliderStyle {
  SLIDER_PLAIN, SLIDER_ROUND, SLIDER_PLAIN_ROTATED, SLIDER_ROUND_ROTATED,
  SLIDER_TRIANGULAR, SLIDER_CIRCULAR
}
enum  EFocus {
  FOCUS_STANDARD, FOCUS_RECTANGLE, FOCUS_FULL, FOCUS_FILLED,
  FOCUS_LINE, FOCUS_GLOW
}
enum  ETabMo { TAB_MO_TOP, TAB_MO_BOTTOM, TAB_MO_GLOW }
enum  EGradType { GT_HORIZ, GT_VERT }
enum  EGlow { GLOW_NONE, GLOW_START, GLOW_MIDDLE, GLOW_END }
enum  { HIDE_NONE = 0x00, HIDE_KEYBOARD = 0x01, HIDE_KWIN = 0x02 }
enum  EGradientBorder {
  GB_NONE, GB_LIGHT, GB_3D, GB_3D_FULL,
  GB_SHINE
}
enum  ERadius { RADIUS_SELECTION, RADIUS_INTERNAL, RADIUS_EXTERNAL, RADIUS_ETCH }

Funciones

void qtcRgbToHsv (double r, double g, double b, double *h, double *s, double *v)
void qtcShade (const Options *opts, const color *ca, color *cb, double k)
void qtcAdjustPix (unsigned char *data, int numChannels, int w, int h, int stride, int ro, int go, int bo, double shade)
void qtcSetupGradient (Gradient *grad, EGradientBorder border, int numStops,...)
const GradientqtcGetGradient (EAppearance app, const Options *opts)
EAppearance qtcWidgetApp (EWidget w, const Options *opts)
ERound qtcGetWidgetRound (const Options *opts, int w, int h, EWidget widget)
double qtcGetRadius (const Options *opts, int w, int h, EWidget widget, ERadius rad)
double qtcShineAlpha (const color *bgnd)
void qtcCalcRingAlphas (const color *bgnd)

Variables

double qtcRingAlpha [3]

Documentación de los 'defines'

#define ACTIVE_WINDOW_ATOM   "_QTCURVE_ACTIVE_WINDOW_"
#define AGUA_MAX   32.0
#define AGUA_MID_SHADE   0.85
#define AGUA_WIDGET (   w)
#define ARROW_MO_SHADE   4
#define BGND_ATOM   "_QTCURVE_BGND_"
#define BGND_IMG_ON_BORDER   (IMG_FILE==opts.bgndImage.type && opts.bgndImage.onBorder)
#define BGND_SHINE_SIZE   300
#define BGND_SHINE_STEPS   8
#define BGND_STRIPE_SHADE   0.95
#define BLEND_TITLEBAR
Valor:
(opts.menubarAppearance==opts.titlebarAppearance && opts.menubarAppearance==opts.inactiveTitlebarAppearance && \
                           !(opts.windowBorder&WINDOW_BORDER_BLEND_TITLEBAR) && SHADE_WINDOW_BORDER==opts.shadeMenubars && opts.windowDrag)
#define BORDER_BLEND_ALPHA (   W)    (WIDGET_ENTRY==(W) || WIDGET_SCROLLVIEW==(W) || WIDGET_SPIN==(W) || WIDGET_COMBO_BUTTON==(W) ? 0.4 : 0.7)
#define BORDER_SIZE_FILE   "windowBorderSizes"
#define BORDER_VAL (   E)    (/*(E) ?*/ STD_BORDER/* : DISABLED_BORDER*/)
#define CIRCULAR_SLIDER (   w)    (WIDGET_SLIDER==(w) && SLIDER_CIRCULAR==opts.sliderStyle)
#define CIRCULAR_SLIDER_SIZE   15
#define COLORED_BORDER_SIZE   3
#define CR_LARGE_SIZE   15
#define CR_MO_FILL   1
#define CR_SMALL_SIZE   13
#define CUSTOM_BGND   (!(IS_FLAT_BGND(opts.bgndAppearance)) || IMG_NONE!=opts.bgndImage.type || 100!=opts.bgndOpacity || 100!=opts.dlgOpacity)
#define DEF_BNT_TINT   0.4
#define DEF_COLOR_SEL_TAB_FACTOR   25
#define DEF_GB_FACTOR   -3
#define DEF_POPUPMENU_LIGHT_FACTOR   2
#define DEF_TAB_BGND   0
#define DEFAULT_CONTRAST   7
#define DEFAULT_CR_HIGHLIGHT_FACTOR   0
#define DEFAULT_EXPANDER_HIGHLIGHT_FACTOR   3
#define DEFAULT_HIGHLIGHT_FACTOR   3
#define DEFAULT_MENU_DELAY   225
#define DEFAULT_SLIDER_WIDTH   15
#define DEFAULT_SPLITTER_HIGHLIGHT_FACTOR   3
#define DISABLED_BORDER   STD_BORDER
#define DO_EFFECT   (EFFECT_NONE!=opts.buttonEffect)
#define DRAW_3D_BORDER (   SUNKEN,
  APP 
)    (!(SUNKEN) && GB_3D==qtcGetGradient((APP), &opts)->border)
#define DRAW_3D_FULL_BORDER (   SUNKEN,
  APP 
)    (!(SUNKEN) && GB_3D_FULL==qtcGetGradient((APP), &opts)->border)
#define DRAW_LIGHT_BORDER (   SUKEN,
  WIDGET,
  APP 
)
Valor:
(!(SUKEN) && (GB_LIGHT==qtcGetGradient(APP, &opts)->border) && WIDGET_MENU_ITEM!=(WIDGET) && !IS_TROUGH(WIDGET) && \
                          (WIDGET_DEF_BUTTON!=(WIDGET) || IND_COLORED!=opts.defBtnIndicator))
#define DRAW_MENU_BORDER
Valor:
(APPEARANCE_FLAT!=opts.menuBgndAppearance && opts.version>=MAKE_VERSION(1,7) && \
                                USE_BORDER(qtcGetGradient(opts.menuBgndAppearance, &opts)->border))
#define DRAW_SHINE (   SUNKEN,
  APP 
)    (!(SUNKEN) && GB_SHINE==qtcGetGradient((APP), &opts)->border)
#define ENTRY_INNER_ALPHA   0.4
#define ENTRY_MO   (opts.unifyCombo && opts.unifySpin)
#define ETCH_BOTTOM_ALPHA   0.1
#define ETCH_RADIO_BOTTOM_ALPHA   1.0
#define ETCH_RADIO_TOP_ALPHA   0.09
#define ETCH_TOP_ALPHA   0.055
#define ETCH_WIDGET (   w)
#define ETCHED_DARK   0.95
#define EXTRA_ETCH_RADIUS   6
#define EXTRA_INNER_RADIUS   4
#define EXTRA_OUTER_RADIUS   5
#define FADE_SIZE   0.4
#define false   FALSE
#define FOCUS_ALPHA   0.08
#define FOCUS_GLOW_LINE_ALPHA   0.5
#define FOCUS_SHADE (   SEL)    (FOCUS_GLOW==opts.focus ? GLOW_MO : ((SEL) ? 3 : ORIGINAL_SHADE))
#define FRAME_DARK_SHADOW   2
#define FULL_ETCH_RADIUS   4
#define FULL_FOCUS   (FOCUS_FULL==opts.focus || FOCUS_FILLED==opts.focus)
#define FULL_INNER_RADIUS   2
#define FULL_OUTER_RADIUS   3
#define FULLLY_ROUNDED   (opts.round>=ROUND_FULL)
#define GLOW_ALPHA (   DEF)    ((DEF) ? 0.5 : 0.65)
#define GLOW_DEFBTN   1
#define GLOW_MO   1
#define GLOW_PROG_ALPHA   0.55
#define INACTIVE_HIGHLIGHT_FACTOR   TO_FACTOR(20)
#define INACTIVE_SEL_ALPHA   0.5
#define INCREASE_SB_SLIDER
#define INVERT_SHADE (   A)    (1.0+(1.0-(A)))
#define IS_BLACK (   A)    (0==(A).red && 0==(A).green && 0==(A).blue)
#define IS_CUSTOM (   A)    ((A)>=APPEARANCE_CUSTOM1 && (A)<(APPEARANCE_CUSTOM1+NUM_CUSTOM_GRAD))
#define IS_EXTRA_ROUND_WIDGET (   A)    (A!=WIDGET_MENU_ITEM && A!=WIDGET_TAB_FRAME && A!=WIDGET_PBAR_TROUGH && A!=WIDGET_PROGRESSBAR)
#define IS_FLAT (   A)    (APPEARANCE_FLAT==(A) || APPEARANCE_RAISED==(A) || APPEARANCE_FADE==(A))
#define IS_FLAT_BGND (   A)    (APPEARANCE_FLAT==(A) || APPEARANCE_RAISED==(A))
#define IS_GLASS (   A)    (APPEARANCE_DULL_GLASS==(A) || APPEARANCE_SHINY_GLASS==(A))
#define IS_MAX_ROUND_WIDGET (   A)    (WIDGET_STD_BUTTON==A || WIDGET_DEF_BUTTON==A || WIDGET_TOGGLE_BUTTON==A /*|| WIDGET_MENU_BUTTON==A*/)
#define IS_SLIDER (   W)    (WIDGET_SLIDER==(W) || WIDGET_SB_SLIDER==(W))
#define IS_TOGGLE_BUTTON (   W)    (WIDGET_TOGGLE_BUTTON==(W) || WIDGET_CHECKBOX==(W))
#define IS_TROUGH (   W)    (WIDGET_SLIDER_TROUGH==(W) || WIDGET_PBAR_TROUGH==(W) || WIDGET_TROUGH==(W) || WIDGET_FILLED_SLIDER_TROUGH==(W))
#define KDE_PREFIX (   V)    ((4==(V)) ? KDE4PREFIX : KDE3PREFIX)
#define KWIN_GROUP   "KWin"
#define LARGE_ARR_HEIGHT   4
#define LARGE_ARR_WIDTH   7
#define LIGHT_BORDER (   APP)    (APPEARANCE_DULL_GLASS==(APP) ? 1 : 0)
#define LOWER_BORDER_ALPHA   0.35
#define LV_HEADER_DARK_FACTOR   TO_FACTOR(-10)
#define LV_SIZE   7
#define MAKE_VERSION (   a,
  b 
)    (((a) << 16) | ((b) << 8))
#define MAKE_VERSION3 (   a,
  b,
  c 
)    (((a) << 16) | ((b) << 8) | (c))
#define MAX (   a,
  b 
)    ((b) < (a) ? (a) : (b))
#define MAX_COLOR_SEL_TAB_FACTOR   100
#define MAX_GB_FACTOR   50
#define MAX_HIGHLIGHT_FACTOR   50
#define MAX_LIGHTER_POPUP_MENU   100
#define MAX_MENU_DELAY   500
#define MAX_RADIUS_EXTERNAL   (MAX_RADIUS_INTERNAL+2.0)
#define MAX_RADIUS_INTERNAL   9.0
#define MAX_SLIDER_WIDTH   31
#define MAX_TAB_BGND   5
#define MENU_AND_TOOLTIP_RADIUS   (opts.round>=ROUND_FULL ? 5.0 : 3.5)
#define MENU_SEP_SHADE   (USE_LIGHTER_POPUP_MENU ? 4 : 3)
#define MENU_SIZE_ATOM   "_QTCURVE_MENUBAR_SIZE_"
#define MENU_STRIPE_SHADE   (USE_LIGHTER_POPUP_MENU ? ORIGINAL_SHADE : 2)
#define MENUBAR_DARK_FACTOR   TO_FACTOR(-3)
#define MENUBAR_DARK_LIMIT   (160<<8)
#define MENUBAR_GLASS_SELECTED_DARK_FACTOR   0.9
#define MENUITEM_FADE_SIZE   48
#define midColor (   COLA,
  COLB 
)    ColorUtils_mix((COLA), (COLB), 0.5)
#define MIN (   a,
  b 
)    ((a) < (b) ? (a) : (b))
#define MIN_COLOR_SEL_TAB_FACTOR   0
#define MIN_GB_FACTOR   -50
#define MIN_HIGHLIGHT_FACTOR   -50
#define MIN_LIGHTER_POPUP_MENU   -100
#define MIN_MENU_DELAY   0
#define MIN_ROUND_EXTRA_SIZE (   W)    (WIDGET_SPIN_UP==(W) || WIDGET_SPIN_DOWN==(W) || WIDGET_SPIN==(W) ? 7 : 14)
#define MIN_ROUND_FULL_SIZE   8
#define MIN_ROUND_MAX_HEIGHT   12
#define MIN_ROUND_MAX_WIDTH   24
#define MIN_SLIDER_SIZE (   A)    (LINE_DOTS==(A) ? 24 : 20)
#define MIN_SLIDER_WIDTH   11
#define MIN_TAB_BGND   -5
#define MO_DEF_BTN   2
#define MO_PLASTIK_DARK (   W)    (WIDGET_DEF_BUTTON==(W) && IND_COLORED==opts.defBtnIndicator ? 3 : 2)
#define MO_PLASTIK_LIGHT (   W)    (WIDGET_DEF_BUTTON==(W) && IND_COLORED==opts.defBtnIndicator ? 4 : 1)
#define MO_STD_DARK (   W)
Valor:
(MO_GLOW==opts.coloredMouseOver \
                                    ? 1 \
                                    : MO_PLASTIK_DARK(W))
#define MO_STD_LIGHT (   W,
  S 
)
Valor:
(MO_GLOW==opts.coloredMouseOver \
                                    ? 1 \
                                    : MO_PLASTIK_LIGHT(W))
#define MODIFY_AGUA (   A)    MODIFY_AGUA_X((A), APPEARANCE_AGUA_MOD)
#define MODIFY_AGUA_X (   A,
 
)    (APPEARANCE_AGUA==(A) ? (X) : (A))
#define NO_FRAME (   A)    (FRAME_NONE==(A) || FRAME_LINE==(A))
#define NORM_TAB_APP   TAB_APP(opts.tabAppearance)
#define NUM_EXTRA_SHADES   3
#define NUM_SPLITTER_DASHES   21
#define NUM_STD_SHADES   6
#define OPACITY_ATOM   "_QTCURVE_OPACITY_"
#define ORIGINAL_SHADE   TOTAL_SHADES
#define PBAR_BORDER   4
#define PROGRESS_ANIMATION   100
#define PROGRESS_CHUNK_WIDTH   10
#define qtcEqual (   A,
 
)    (fabs(A - B) < 0.0001)
#define RINGS_HEIGHT (   T)    (IMG_SQUARE_RINGS==T ? 220 : 360)
#define RINGS_INNER_ALPHA (   T)    qtcRingAlpha[IMG_PLAIN_RINGS==(T) ? 1 : 0]
#define RINGS_OUTER_ALPHA   qtcRingAlpha[2]
#define RINGS_SQUARE_LARGE_ALPHA   (RINGS_OUTER_ALPHA*0.675)
#define RINGS_SQUARE_LARGE_SIZE   120.0
#define RINGS_SQUARE_LINE_WIDTH   20.0
#define RINGS_SQUARE_RADIUS   18.0
#define RINGS_SQUARE_SMALL_ALPHA   (RINGS_OUTER_ALPHA*0.50)
#define RINGS_SQUARE_SMALL_SIZE   100.0
#define RINGS_WIDTH (   T)    (IMG_SQUARE_RINGS==T ? 260 : 450)
#define ROTATED_SLIDER   (SLIDER_PLAIN_ROTATED==opts.sliderStyle || SLIDER_ROUND_ROTATED==opts.sliderStyle)
#define ROUNDED   (ROUND_NONE!=opts.round)
#define ROUNDED_ALL   (CORNER_TL|CORNER_TR|CORNER_BR|CORNER_BL)
#define ROUNDED_BOTTOM   (CORNER_BL|CORNER_BR)
#define ROUNDED_BOTTOMLEFT   CORNER_BL
#define ROUNDED_BOTTOMRIGHT   CORNER_BR
#define ROUNDED_LEFT   (CORNER_TL|CORNER_BL)
#define ROUNDED_NONE   0x0
#define ROUNDED_RIGHT   (CORNER_TR|CORNER_BR)
#define ROUNDED_TOP   (CORNER_TL|CORNER_TR)
#define ROUNDED_TOPLEFT   CORNER_TL
#define ROUNDED_TOPRIGHT   CORNER_TR
#define SB_SLIDER_MO_LEN (   A)
Valor:
((A)<22 && !FULLLY_ROUNDED \
                                    ? 2 \
                                    : ((A)<32 || (SHADE_SELECTED!=opts.shadeSliders && SHADE_BLEND_SELECTED!=opts.shadeSliders) \
                                        ? 4 \
                                        : 6))
#define SEL_TAB_APP   TAB_APP(opts.activeTabAppearance)
#define SETTINGS_GROUP   "Settings"
#define SHADE (   c,
  s 
)
Valor:
(c>10 || c<0 || s>=NUM_STD_SHADES || s<0 \
        ? 1.0 \
        : opts.darkerBorders && (STD_BORDER==i || DISABLED_BORDER==i) \
            ? shades[SHADING_SIMPLE==opts.shading ? 1 : 0][c][s] - 0.1 \
            : shades[SHADING_SIMPLE==opts.shading ? 1 : 0][c][s] )
#define SHADE_2_HIGHLIGHT   NUM_STD_SHADES+2
#define SHADE_4_HIGHLIGHT   NUM_STD_SHADES+1
#define SHADE_ORIG_HIGHLIGHT   NUM_STD_SHADES
#define SHADES
#define SIMPLE_SHADING   (!shading)
#define SIZE_GRIP_SIZE   12
#define SLIDER (   w)    (WIDGET_SB_SLIDER==(w) || WIDGET_SLIDER==(w))
#define SLIDER_GLOW   (DO_EFFECT && MO_GLOW==opts.coloredMouseOver /*&& SLIDER_TRIANGULAR!=opts.sliderStyle*/ ? 2 : 0)
#define SLIDER_MO_BORDER_VAL   3
#define SLIDER_MO_LEN   (SLIDER_TRIANGULAR==opts.sliderStyle ? 2 : (SHADE_SELECTED==opts.shadeSliders || SHADE_BLEND_SELECTED==opts.shadeSliders ? 4 : 3))
#define SLIDER_MO_PLASTIK_BORDER   (SHADE_SELECTED==opts.shadeSliders || SHADE_BLEND_SELECTED==opts.shadeSliders ? 2 : 1)
#define SLIDER_MO_SHADE   (SHADE_SELECTED==opts.shadeSliders ? 1 : (SHADE_BLEND_SELECTED==opts.shadeSliders ? 0 : ORIGINAL_SHADE))
#define SLIDER_SIZE   (opts.sliderWidth<DEFAULT_SLIDER_WIDTH ? DEFAULT_SLIDER_WIDTH-2 : opts.sliderWidth)
#define SLIGHT_ETCH_RADIUS   3
#define SLIGHT_INNER_RADIUS   1
#define SLIGHT_OUTER_RADIUS   2
#define SMALL_ARR_HEIGHT   3
#define SMALL_ARR_WIDTH   5
#define STATUSBAR_ATOM   "_QTCURVE_STATUSBAR_"
#define STD_BORDER   5
#define STD_BORDER_BR   2
#define STRIPE_WIDTH   10
#define SUNKEN_BEVEL_DARK_ALPHA (   X)    (X.value()/800.0)
#define SUNKEN_BEVEL_LIGHT_ALPHA (   X)    (X.value()/500.0)
#define TAB_APP (   A)    (APPEARANCE_BEVELLED==(A) || APPEARANCE_SPLIT_GRADIENT==(A) ? APPEARANCE_GRADIENT : (A))
#define TAB_APPEARANCE (   A)    (A)
#define THEME_DIR   "/share/apps/kstyle/themes/"
#define THEME_DIR4   "/share/kde4/apps/kstyle/themes/"
#define THEME_PREFIX   "qtc_"
#define THEME_SUFFIX   ".themerc"
#define THIN_SBAR_MOD   ((opts.sliderWidth<DEFAULT_SLIDER_WIDTH ? 3 : opts.sliderWidth>DEFAULT_SLIDER_WIDTH ? (opts.sliderWidth-9)/2 : 4)+(EFFECT_NONE==opts.buttonEffect ? 1 : 0))
#define tint (   COLA,
  COLB,
  FACTOR 
)    ColorUtils_tint((COLA), (COLB), (FACTOR))
#define TITLEBAR_SIZE_ATOM   "_QTCURVE_TITLEBAR_SIZE_"
#define TO_ALPHA (   A)    (((double)((A)<0 ? -(A) : (A)))/100.0)
#define TO_FACTOR (   A)    ((100.0+((double)(A)))/100.0)
#define TOGGLE_MENUBAR_ATOM   "_QTCURVE_TOGGLE_MENUBAR_"
#define TOGGLE_STATUSBAR_ATOM   "_QTCURVE_TOGGLE_STATUSBAR_"
#define TOO_DARK (   A)    ((A).red<MENUBAR_DARK_LIMIT || (A).green<MENUBAR_DARK_LIMIT || (A).blue<MENUBAR_DARK_LIMIT)
#define TOOLBAR_SEP_GAP   (opts.fadeLines ? 5 : 6)
#define TOTAL_SHADES   NUM_STD_SHADES+NUM_EXTRA_SHADES
#define true   TRUE
#define USE_BORDER (   B)    (GB_SHINE!=(B) && GB_NONE!=(B))
#define USE_CUSTOM_ALPHAS (   A)    ((A).customAlphas[0]>0.00001)
#define USE_CUSTOM_SHADES (   A)    ((A).customShades[0]>0.00001)
#define USE_GLOW_FOCUS (   mouseOver)    (FOCUS_GLOW==opts.focus && (MO_GLOW!=opts.coloredMouseOver || !(mouseOver)))
#define USE_LIGHTER_POPUP_MENU   (opts.lighterPopupMenuBgnd)
#define USE_SHADED_MENU_BAR_COLORS   (SHADE_CUSTOM==opts.shadeMenubars || SHADE_BLEND_SELECTED==opts.shadeMenubars)
#define WIDGET_BUTTON (   w)

Documentación de los 'typedefs'

typedef gboolean bool
typedef GdkColor color
typedef gchar** Strings

Documentación de las enumeraciones

anonymous enum
Valores de enumeraciones:
ALPHA_ETCH_LIGHT 
ALPHA_ETCH_DARK 
NUM_STD_ALPHAS 
anonymous enum
Valores de enumeraciones:
HIDE_NONE 
HIDE_KEYBOARD 
HIDE_KWIN 
enum EAppAllow
Valores de enumeraciones:
APP_ALLOW_BASIC 
APP_ALLOW_FADE 
APP_ALLOW_STRIPED 
APP_ALLOW_NONE 
Valores de enumeraciones:
APPEARANCE_CUSTOM1 
APPEARANCE_CUSTOM2 
APPEARANCE_CUSTOM3 
APPEARANCE_CUSTOM4 
APPEARANCE_CUSTOM5 
APPEARANCE_CUSTOM6 
APPEARANCE_CUSTOM7 
APPEARANCE_CUSTOM8 
APPEARANCE_CUSTOM9 
APPEARANCE_CUSTOM10 
APPEARANCE_CUSTOM11 
APPEARANCE_CUSTOM12 
APPEARANCE_CUSTOM13 
APPEARANCE_CUSTOM14 
APPEARANCE_CUSTOM15 
APPEARANCE_CUSTOM16 
APPEARANCE_CUSTOM17 
APPEARANCE_CUSTOM18 
APPEARANCE_CUSTOM19 
APPEARANCE_CUSTOM20 
APPEARANCE_CUSTOM21 
APPEARANCE_CUSTOM22 
APPEARANCE_CUSTOM23 
NUM_CUSTOM_GRAD 
APPEARANCE_FLAT 
APPEARANCE_RAISED 
APPEARANCE_DULL_GLASS 
APPEARANCE_SHINY_GLASS 
APPEARANCE_AGUA 
APPEARANCE_SOFT_GRADIENT 
APPEARANCE_GRADIENT 
APPEARANCE_HARSH_GRADIENT 
APPEARANCE_INVERTED 
APPEARANCE_DARK_INVERTED 
APPEARANCE_SPLIT_GRADIENT 
APPEARANCE_BEVELLED 
APPEARANCE_FADE 
APPEARANCE_STRIPED 
APPEARANCE_NONE 
APPEARANCE_FILE 
APPEARANCE_LV_BEVELLED 
APPEARANCE_AGUA_MOD 
APPEARANCE_LV_AGUA 
NUM_STD_APP 
enum EBorder
Valores de enumeraciones:
BORDER_FLAT 
BORDER_RAISED 
BORDER_SUNKEN 
BORDER_LIGHT 
enum EColor
Valores de enumeraciones:
ECOLOR_BASE 
ECOLOR_BACKGROUND 
ECOLOR_DARK 
Valores de enumeraciones:
CORNER_TL 
CORNER_TR 
CORNER_BR 
CORNER_BL 
Valores de enumeraciones:
IND_CORNER 
IND_FONT_COLOR 
IND_COLORED 
IND_TINT 
IND_GLOW 
IND_DARKEN 
IND_SELECTED 
IND_NONE 
enum EEffect
Valores de enumeraciones:
EFFECT_NONE 
EFFECT_ETCH 
EFFECT_SHADOW 
enum EFocus
Valores de enumeraciones:
FOCUS_STANDARD 
FOCUS_RECTANGLE 
FOCUS_FULL 
FOCUS_FILLED 
FOCUS_LINE 
FOCUS_GLOW 
enum EFrame
Valores de enumeraciones:
FRAME_NONE 
FRAME_PLAIN 
FRAME_LINE 
FRAME_SHADED 
FRAME_FADED 
enum EGBLabel
Valores de enumeraciones:
GB_LBL_BOLD 
GB_LBL_CENTRED 
GB_LBL_INSIDE 
GB_LBL_OUTSIDE 
enum EGlow
Valores de enumeraciones:
GLOW_NONE 
GLOW_START 
GLOW_MIDDLE 
GLOW_END 
Valores de enumeraciones:
GB_NONE 
GB_LIGHT 
GB_3D 
GB_3D_FULL 
GB_SHINE 
enum EGradType
Valores de enumeraciones:
GT_HORIZ 
GT_VERT 
enum EImageType
Valores de enumeraciones:
IMG_NONE 
IMG_BORDERED_RINGS 
IMG_PLAIN_RINGS 
IMG_SQUARE_RINGS 
IMG_FILE 
enum ELine
Valores de enumeraciones:
LINE_NONE 
LINE_SUNKEN 
LINE_FLAT 
LINE_DOTS 
LINE_1DOT 
LINE_DASHES 
enum EMouseOver
Valores de enumeraciones:
MO_NONE 
MO_COLORED 
MO_COLORED_THICK 
MO_PLASTIK 
MO_GLOW 
enum EPixmap
Valores de enumeraciones:
PIX_CHECK 
PIX_BLANK 
enum EPixPos
Valores de enumeraciones:
PP_TL 
PP_TM 
PP_TR 
PP_BL 
PP_BM 
PP_BR 
PP_LM 
PP_RM 
PP_CENTRED 
enum ERadius
Valores de enumeraciones:
RADIUS_SELECTION 
RADIUS_INTERNAL 
RADIUS_EXTERNAL 
RADIUS_ETCH 
enum ERound
Valores de enumeraciones:
ROUND_NONE 
ROUND_SLIGHT 
ROUND_FULL 
ROUND_EXTRA 
ROUND_MAX 
enum EScrollbar
Valores de enumeraciones:
SCROLLBAR_KDE 
SCROLLBAR_WINDOWS 
SCROLLBAR_PLATINUM 
SCROLLBAR_NEXT 
SCROLLBAR_NONE 
enum EShade
Valores de enumeraciones:
SHADE_NONE 
SHADE_CUSTOM 
SHADE_SELECTED 
SHADE_BLEND_SELECTED 
SHADE_DARKEN 
SHADE_WINDOW_BORDER 
enum EShading
Valores de enumeraciones:
SHADING_SIMPLE 
SHADING_HSL 
SHADING_HSV 
SHADING_HCY 
Valores de enumeraciones:
SLIDER_PLAIN 
SLIDER_ROUND 
SLIDER_PLAIN_ROTATED 
SLIDER_ROUND_ROTATED 
SLIDER_TRIANGULAR 
SLIDER_CIRCULAR 
enum ESquare
Valores de enumeraciones:
SQUARE_NONE 
SQUARE_ENTRY 
SQUARE_PROGRESS 
SQUARE_SCROLLVIEW 
SQUARE_LISTVIEW_SELECTION 
SQUARE_FRAME 
SQUARE_TAB_FRAME 
SQUARE_SLIDER 
SQUARE_SB_SLIDER 
SQUARE_WINDOWS 
SQUARE_TOOLTIPS 
SQUARE_POPUP_MENUS 
SQUARE_ALL 
enum EStripe
Valores de enumeraciones:
STRIPE_NONE 
STRIPE_PLAIN 
STRIPE_DIAGONAL 
STRIPE_FADE 
enum ETabMo
Valores de enumeraciones:
TAB_MO_TOP 
TAB_MO_BOTTOM 
TAB_MO_GLOW 
Valores de enumeraciones:
TB_NONE 
TB_LIGHT 
TB_DARK 
TB_LIGHT_ALL 
TB_DARK_ALL 
enum ETBarBtn
Valores de enumeraciones:
TBTN_STANDARD 
TBTN_RAISED 
TBTN_JOINED 
enum EThinFlags
Valores de enumeraciones:
THIN_BUTTONS 
THIN_MENU_ITEMS 
THIN_FRAMES 
enum EWidget
Valores de enumeraciones:
WIDGET_TAB_TOP 
WIDGET_TAB_BOT 
WIDGET_STD_BUTTON 
WIDGET_DEF_BUTTON 
WIDGET_TOOLBAR_BUTTON 
WIDGET_LISTVIEW_HEADER 
WIDGET_SLIDER 
WIDGET_SLIDER_TROUGH 
WIDGET_FILLED_SLIDER_TROUGH 
WIDGET_SB_SLIDER 
WIDGET_SB_BUTTON 
WIDGET_SB_BGND 
WIDGET_TROUGH 
WIDGET_CHECKBOX 
WIDGET_RADIO_BUTTON 
WIDGET_COMBO 
WIDGET_COMBO_BUTTON 
WIDGET_MENU_ITEM 
WIDGET_PROGRESSBAR 
WIDGET_PBAR_TROUGH 
WIDGET_ENTRY_PROGRESSBAR 
WIDGET_TOGGLE_BUTTON 
WIDGET_SPIN_UP 
WIDGET_SPIN_DOWN 
WIDGET_UNCOLOURED_MO_BUTTON 
WIDGET_SPIN 
WIDGET_ENTRY 
WIDGET_SCROLLVIEW 
WIDGET_SELECTION 
WIDGET_FRAME 
WIDGET_NO_ETCH_BTN 
WIDGET_MENU_BUTTON 
WIDGET_FOCUS 
WIDGET_TAB_FRAME 
WIDGET_OTHER 
Valores de enumeraciones:
WINDOW_BORDER_COLOR_TITLEBAR_ONLY 
WINDOW_BORDER_USE_MENUBAR_COLOR_FOR_TITLEBAR 
WINDOW_BORDER_ADD_LIGHT_BORDER 
WINDOW_BORDER_BLEND_TITLEBAR 
WINDOW_BORDER_SEPARATOR 
WINDOW_BORDER_FILL_TITLEBAR 
enum EWmDrag
Valores de enumeraciones:
WM_DRAG_NONE 
WM_DRAG_MENUBAR 
WM_DRAG_MENU_AND_TOOLBAR 
WM_DRAG_ALL 

Documentación de las funciones

void qtcAdjustPix ( unsigned char *  data,
int  numChannels,
int  w,
int  h,
int  stride,
int  ro,
int  go,
int  bo,
double  shade 
)
void qtcCalcRingAlphas ( const color bgnd)
const Gradient* qtcGetGradient ( EAppearance  app,
const Options opts 
)
double qtcGetRadius ( const Options opts,
int  w,
int  h,
EWidget  widget,
ERadius  rad 
)
ERound qtcGetWidgetRound ( const Options opts,
int  w,
int  h,
EWidget  widget 
)
void qtcRgbToHsv ( double  r,
double  g,
double  b,
double *  h,
double *  s,
double *  v 
)
void qtcSetupGradient ( Gradient grad,
EGradientBorder  border,
int  numStops,
  ... 
)
void qtcShade ( const Options opts,
const color ca,
color cb,
double  k 
)
double qtcShineAlpha ( const color bgnd)
EAppearance qtcWidgetApp ( EWidget  w,
const Options opts 
)

Documentación de las variables

double qtcRingAlpha[3]
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'