|
marco 1.29.1
Window manager
|
Making Marco look pretty. More...
#include <config.h>#include <glib/gi18n-lib.h>#include "prefs.h"#include "theme.h"#include "theme-parser.h"#include "util.h"#include "gradient.h"#include <gtk/gtk.h>#include <string.h>#include <stdlib.h>#include <math.h>Data Structures | |
| struct | PosExpr |
| Type and value of an expression in a parsed sequence. More... | |
Macros | |
| #define | __USE_XOPEN |
| #define | GDK_COLOR_RGBA(color) |
| #define | GDK_COLOR_RGB(color) |
| #define | DEBUG_FILL_STRUCT(s) memset ((s), 0xef, sizeof (*(s))) |
| #define | CLAMP_UCHAR(v) ((guchar) (CLAMP (((int)v), (int)0, (int)255))) |
| #define | INTENSITY(r, g, b) ((r) * 0.30 + (g) * 0.59 + (b) * 0.11) |
| #define | CHECK_GEOMETRY_VALUE(vname) if (!validate_geometry_value (layout->vname, #vname, error)) return FALSE |
| #define | CHECK_GEOMETRY_BORDER(bname) if (!validate_geometry_border (&layout->bname, #bname, error)) return FALSE |
| #define | LIGHTNESS_MULT 1.3 |
| #define | DARKNESS_MULT 0.7 |
| #define | IS_VARIABLE_CHAR(c) (g_ascii_isalpha ((c)) || (c) == '_') |
| Whether a variable can validly appear as part of the name of a variable. | |
| #define | MAX_EXPRS 32 |
Enumerations | |
| enum | PosExprType { POS_EXPR_INT , POS_EXPR_DOUBLE , POS_EXPR_OPERATOR } |
| The type of a PosExpr: either integer, double, or an operation. More... | |
Functions | |
| static void | gtk_style_shade (GdkRGBA *a, GdkRGBA *b, gdouble k) |
| Takes a colour "a", scales the lightness and saturation by a certain amount, and sets "b" to the resulting colour. | |
| static void | rgb_to_hls (gdouble *r, gdouble *g, gdouble *b) |
| Converts a red/green/blue triplet to a hue/lightness/saturation triplet. | |
| static void | hls_to_rgb (gdouble *h, gdouble *l, gdouble *s) |
| Converts a hue/lightness/saturation triplet to a red/green/blue triplet. | |
| static cairo_surface_t * | scale_surface (cairo_surface_t *surface, gdouble old_width, gdouble old_height, gdouble new_width, gdouble new_height, gboolean vertical_stripes, gboolean horizontal_stripes) |
| static cairo_surface_t * | get_surface_from_pixbuf (GdkPixbuf *pixbuf, MetaImageFillType fill_type, gdouble width, gdouble height, gboolean vertical_stripes, gboolean horizontal_stripes) |
| static GdkPixbuf * | colorize_pixbuf (GdkPixbuf *orig, GdkRGBA *new_color) |
| static void | color_composite (const GdkRGBA *bg, const GdkRGBA *fg, double alpha, GdkRGBA *color) |
| static void | init_border (GtkBorder *border) |
| Sets all the fields of a border to dummy values. | |
| MetaFrameLayout * | meta_frame_layout_new (void) |
| Creates a new, empty MetaFrameLayout. | |
| static gboolean | validate_border (const GtkBorder *border, const char **bad) |
| static gboolean | validate_geometry_value (int val, const char *name, GError **error) |
| Ensures that the theme supplied a particular dimension. | |
| static gboolean | validate_geometry_border (const GtkBorder *border, const char *name, GError **error) |
| gboolean | meta_frame_layout_validate (const MetaFrameLayout *layout, GError **error) |
| MetaFrameLayout * | meta_frame_layout_copy (const MetaFrameLayout *src) |
| void | meta_frame_layout_ref (MetaFrameLayout *layout) |
| void | meta_frame_layout_unref (MetaFrameLayout *layout) |
| void | meta_frame_layout_get_borders (const MetaFrameLayout *layout, int text_height, MetaFrameFlags flags, MetaFrameType type, MetaFrameBorders *borders) |
| static MetaButtonType | map_button_function_to_type (MetaButtonFunction function) |
| static MetaButtonSpace * | rect_for_function (MetaFrameGeometry *fgeom, MetaFrameFlags flags, MetaButtonFunction function, MetaTheme *theme) |
| static gboolean | strip_button (MetaButtonSpace *func_rects[MAX_BUTTONS_PER_CORNER], GdkRectangle *bg_rects[MAX_BUTTONS_PER_CORNER], int *n_rects, MetaButtonSpace *to_strip) |
| void | meta_frame_layout_calc_geometry (const MetaFrameLayout *layout, int text_height, MetaFrameFlags flags, int client_width, int client_height, const MetaButtonLayout *button_layout, MetaFrameGeometry *fgeom, MetaTheme *theme) |
| MetaGradientSpec * | meta_gradient_spec_new (MetaGradientType type) |
| static cairo_pattern_t * | create_cairo_pattern_from_gradient_spec (const MetaGradientSpec *spec, const MetaAlphaGradientSpec *alpha_spec, GtkStyleContext *context) |
| static void | free_color_spec (gpointer spec, gpointer user_data) |
| void | meta_gradient_spec_free (MetaGradientSpec *spec) |
| void | meta_gradient_spec_render (const MetaGradientSpec *spec, const MetaAlphaGradientSpec *alpha_spec, cairo_t *cr, GtkStyleContext *context, gint x, gint y, gint width, gint height) |
| gboolean | meta_gradient_spec_validate (MetaGradientSpec *spec, GError **error) |
| MetaAlphaGradientSpec * | meta_alpha_gradient_spec_new (MetaGradientType type, int n_alphas) |
| void | meta_alpha_gradient_spec_free (MetaAlphaGradientSpec *spec) |
| cairo_pattern_t * | meta_alpha_gradient_spec_get_mask (const MetaAlphaGradientSpec *spec) |
| MetaColorSpec * | meta_color_spec_new (MetaColorSpecType type) |
| void | meta_color_spec_free (MetaColorSpec *spec) |
| MetaColorSpec * | meta_color_spec_new_from_string (const char *str, GError **err) |
| MetaColorSpec * | meta_color_spec_new_gtk (MetaGtkColorComponent component, GtkStateFlags state) |
| static void | get_background_color_real (GtkStyleContext *context, GtkStateFlags state, GdkRGBA *color) |
| static void | get_background_color (GtkStyleContext *context, GtkStateFlags state, GdkRGBA *color) |
| void | meta_gtk_style_get_light_color (GtkStyleContext *style, GtkStateFlags state, GdkRGBA *color) |
| void | meta_gtk_style_get_dark_color (GtkStyleContext *style, GtkStateFlags state, GdkRGBA *color) |
| static void | meta_set_color_from_style (GdkRGBA *color, GtkStyleContext *context, GtkStateFlags state, MetaGtkColorComponent component) |
| static void | meta_set_custom_color_from_style (GdkRGBA *color, GtkStyleContext *context, char *color_name, MetaColorSpec *fallback) |
| void | meta_color_spec_render (MetaColorSpec *spec, GtkStyleContext *style, GdkRGBA *color) |
| static const char * | op_name (PosOperatorType type) |
| Represents an operation as a string. | |
| static PosOperatorType | op_from_string (const char *p, int *len) |
| Parses a string and returns an operation. | |
| static void | free_tokens (PosToken *tokens, int n_tokens) |
| Frees an array of tokens. | |
| static gboolean | parse_number (const char *p, const char **end_return, PosToken *next, GError **err) |
| Tokenises a number in an expression. | |
| static gboolean | pos_tokenize (const char *expr, PosToken **tokens_p, int *n_tokens_p, GError **err) |
| Tokenises an expression. | |
| static gboolean | do_operation (PosExpr *a, PosExpr *b, PosOperatorType op, GError **err) |
| static gboolean | do_operations (PosExpr *exprs, int *n_exprs, int precedence, GError **err) |
| static gboolean | pos_eval_get_variable (PosToken *t, int *result, const MetaPositionExprEnv *env, GError **err) |
| There is a predefined set of variables which can appear in an expression. | |
| static gboolean | pos_eval_helper (PosToken *tokens, int n_tokens, const MetaPositionExprEnv *env, PosExpr *result, GError **err) |
| Evaluates a sequence of tokens within a particular environment context, and returns the current value. | |
| static gboolean | pos_eval (MetaDrawSpec *spec, const MetaPositionExprEnv *env, int *val_p, GError **err) |
| Evaluates an expression. | |
| gboolean | meta_parse_position_expression (MetaDrawSpec *spec, const MetaPositionExprEnv *env, int *x_return, int *y_return, GError **err) |
| gboolean | meta_parse_size_expression (MetaDrawSpec *spec, const MetaPositionExprEnv *env, int *val_return, GError **err) |
| gboolean | meta_theme_replace_constants (MetaTheme *theme, PosToken *tokens, int n_tokens, GError **err) |
| static int | parse_x_position_unchecked (MetaDrawSpec *spec, const MetaPositionExprEnv *env) |
| static int | parse_y_position_unchecked (MetaDrawSpec *spec, const MetaPositionExprEnv *env) |
| static int | parse_size_unchecked (MetaDrawSpec *spec, MetaPositionExprEnv *env) |
| void | meta_draw_spec_free (MetaDrawSpec *spec) |
| MetaDrawSpec * | meta_draw_spec_new (MetaTheme *theme, const char *expr, GError **error) |
| MetaDrawOp * | meta_draw_op_new (MetaDrawType type) |
| void | meta_draw_op_free (MetaDrawOp *op) |
| static GdkPixbuf * | apply_alpha (GdkPixbuf *pixbuf, MetaAlphaGradientSpec *spec, gboolean force_copy) |
| static GdkPixbuf * | pixbuf_tile (GdkPixbuf *tile, int width, int height) |
| static GdkPixbuf * | replicate_rows (GdkPixbuf *src, int src_x, int src_y, int width, int height) |
| static GdkPixbuf * | replicate_cols (GdkPixbuf *src, int src_x, int src_y, int width, int height) |
| static GdkPixbuf * | scale_and_alpha_pixbuf (GdkPixbuf *src, MetaAlphaGradientSpec *alpha_spec, MetaImageFillType fill_type, int width, int height, gboolean vertical_stripes, gboolean horizontal_stripes) |
| static GdkPixbuf * | draw_op_as_pixbuf (const MetaDrawOp *op, GtkStyleContext *style, const MetaDrawInfo *info, int width, int height) |
| static cairo_surface_t * | draw_op_as_surface (const MetaDrawOp *op, GtkStyleContext *style, const MetaDrawInfo *info, gdouble width, gdouble height) |
| static void | fill_env (MetaPositionExprEnv *env, const MetaDrawInfo *info, MetaRectangle logical_region) |
| static void | meta_draw_op_draw_with_env (const MetaDrawOp *op, GtkStyleContext *style_gtk, cairo_t *cr, const MetaDrawInfo *info, MetaRectangle rect, MetaPositionExprEnv *env) |
| void | meta_draw_op_draw_with_style (const MetaDrawOp *op, GtkStyleContext *style_gtk, cairo_t *cr, const MetaDrawInfo *info, MetaRectangle logical_region) |
| void | meta_draw_op_draw (const MetaDrawOp *op, GtkWidget *widget, cairo_t *cr, const MetaDrawInfo *info, MetaRectangle logical_region) |
| MetaDrawOpList * | meta_draw_op_list_new (int n_preallocs) |
| void | meta_draw_op_list_ref (MetaDrawOpList *op_list) |
| void | meta_draw_op_list_unref (MetaDrawOpList *op_list) |
| void | meta_draw_op_list_draw_with_style (const MetaDrawOpList *op_list, GtkStyleContext *style_gtk, cairo_t *cr, const MetaDrawInfo *info, MetaRectangle rect) |
| void | meta_draw_op_list_draw (const MetaDrawOpList *op_list, GtkWidget *widget, cairo_t *cr, const MetaDrawInfo *info, MetaRectangle rect) |
| void | meta_draw_op_list_append (MetaDrawOpList *op_list, MetaDrawOp *op) |
| gboolean | meta_draw_op_list_validate (MetaDrawOpList *op_list, GError **error) |
| gboolean | meta_draw_op_list_contains (MetaDrawOpList *op_list, MetaDrawOpList *child) |
| MetaFrameStyle * | meta_frame_style_new (MetaFrameStyle *parent) |
| Constructor for a MetaFrameStyle. | |
| void | meta_frame_style_ref (MetaFrameStyle *style) |
| Increases the reference count of a frame style. | |
| static void | free_button_ops (MetaDrawOpList *op_lists[META_BUTTON_TYPE_LAST][META_BUTTON_STATE_LAST]) |
| void | meta_frame_style_unref (MetaFrameStyle *style) |
| static MetaButtonState | map_button_state (MetaButtonType button_type, const MetaFrameGeometry *fgeom, int middle_bg_offset, MetaButtonState button_states[META_BUTTON_TYPE_LAST]) |
| static MetaDrawOpList * | get_button (MetaFrameStyle *style, MetaButtonType type, MetaButtonState state) |
| gboolean | meta_frame_style_validate (MetaFrameStyle *style, guint current_theme_version, GError **error) |
| static void | get_button_rect (MetaButtonType type, const MetaFrameGeometry *fgeom, int middle_background_offset, GdkRectangle *rect) |
| void | meta_frame_style_draw_with_style (MetaFrameStyle *style, GtkStyleContext *style_gtk, cairo_t *cr, const MetaFrameGeometry *fgeom, int client_width, int client_height, PangoLayout *title_layout, int text_height, MetaButtonState button_states[META_BUTTON_TYPE_LAST], GdkPixbuf *mini_icon, GdkPixbuf *icon) |
| void | meta_frame_style_draw (MetaFrameStyle *style, GtkWidget *widget, cairo_t *cr, const MetaFrameGeometry *fgeom, int client_width, int client_height, PangoLayout *title_layout, int text_height, MetaButtonState button_states[META_BUTTON_TYPE_LAST], GdkPixbuf *mini_icon, GdkPixbuf *icon) |
| MetaFrameStyleSet * | meta_frame_style_set_new (MetaFrameStyleSet *parent) |
| static void | free_focus_styles (MetaFrameStyle *focus_styles[META_FRAME_FOCUS_LAST]) |
| void | meta_frame_style_set_ref (MetaFrameStyleSet *style_set) |
| void | meta_frame_style_set_unref (MetaFrameStyleSet *style_set) |
| static MetaFrameStyle * | get_style (MetaFrameStyleSet *style_set, MetaFrameState state, MetaFrameResize resize, MetaFrameFocus focus) |
| static gboolean | check_state (MetaFrameStyleSet *style_set, MetaFrameState state, GError **error) |
| gboolean | meta_frame_style_set_validate (MetaFrameStyleSet *style_set, GError **error) |
| MetaTheme * | meta_theme_get_current (void) |
| void | meta_theme_set_current (const char *name, gboolean force_reload) |
| MetaTheme * | meta_theme_new (void) |
| void | meta_theme_free (MetaTheme *theme) |
| gboolean | meta_theme_validate (MetaTheme *theme, GError **error) |
| GdkPixbuf * | meta_theme_load_image (MetaTheme *theme, const char *filename, guint size_of_theme_icons, GError **error) |
| static MetaFrameStyle * | theme_get_style (MetaTheme *theme, MetaFrameType type, MetaFrameFlags flags) |
| MetaFrameStyle * | meta_theme_get_frame_style (MetaTheme *theme, MetaFrameType type, MetaFrameFlags flags) |
| double | meta_theme_get_title_scale (MetaTheme *theme, MetaFrameType type, MetaFrameFlags flags) |
| void | meta_theme_draw_frame (MetaTheme *theme, GtkStyleContext *style_gtk, cairo_t *cr, MetaFrameType type, MetaFrameFlags flags, int client_width, int client_height, PangoLayout *title_layout, int text_height, const MetaButtonLayout *button_layout, MetaButtonState button_states[META_BUTTON_TYPE_LAST], GdkPixbuf *mini_icon, GdkPixbuf *icon) |
| void | meta_theme_draw_frame_by_name (MetaTheme *theme, GtkWidget *widget, cairo_t *cr, const gchar *style_name, MetaFrameFlags flags, int client_width, int client_height, PangoLayout *title_layout, int text_height, const MetaButtonLayout *button_layout, MetaButtonState button_states[META_BUTTON_TYPE_LAST], GdkPixbuf *mini_icon, GdkPixbuf *icon) |
| void | meta_theme_get_frame_borders (MetaTheme *theme, MetaFrameType type, int text_height, MetaFrameFlags flags, MetaFrameBorders *borders) |
| void | meta_theme_calc_geometry (MetaTheme *theme, MetaFrameType type, int text_height, MetaFrameFlags flags, int client_width, int client_height, const MetaButtonLayout *button_layout, MetaFrameGeometry *fgeom) |
| MetaFrameLayout * | meta_theme_lookup_layout (MetaTheme *theme, const char *name) |
| void | meta_theme_insert_layout (MetaTheme *theme, const char *name, MetaFrameLayout *layout) |
| MetaDrawOpList * | meta_theme_lookup_draw_op_list (MetaTheme *theme, const char *name) |
| void | meta_theme_insert_draw_op_list (MetaTheme *theme, const char *name, MetaDrawOpList *op_list) |
| MetaFrameStyle * | meta_theme_lookup_style (MetaTheme *theme, const char *name) |
| void | meta_theme_insert_style (MetaTheme *theme, const char *name, MetaFrameStyle *style) |
| MetaFrameStyleSet * | meta_theme_lookup_style_set (MetaTheme *theme, const char *name) |
| void | meta_theme_insert_style_set (MetaTheme *theme, const char *name, MetaFrameStyleSet *style_set) |
| static gboolean | first_uppercase (const char *str) |
| gboolean | meta_theme_define_int_constant (MetaTheme *theme, const char *name, int value, GError **error) |
| gboolean | meta_theme_lookup_int_constant (MetaTheme *theme, const char *name, int *value) |
| gboolean | meta_theme_define_float_constant (MetaTheme *theme, const char *name, double value, GError **error) |
| gboolean | meta_theme_lookup_float_constant (MetaTheme *theme, const char *name, double *value) |
| gboolean | meta_theme_define_color_constant (MetaTheme *theme, const char *name, const char *value, GError **error) |
| gboolean | meta_theme_lookup_color_constant (MetaTheme *theme, const char *name, char **value) |
| Looks up a colour constant. | |
| PangoFontDescription * | meta_gtk_widget_get_font_desc (GtkWidget *widget, double scale, const PangoFontDescription *override) |
| int | meta_pango_font_desc_get_text_height (const PangoFontDescription *font_desc, PangoContext *context) |
| Returns the height of the letters in a particular font. | |
| MetaGtkColorComponent | meta_color_component_from_string (const char *str) |
| const char * | meta_color_component_to_string (MetaGtkColorComponent component) |
| MetaButtonState | meta_button_state_from_string (const char *str) |
| const char * | meta_button_state_to_string (MetaButtonState state) |
| MetaButtonType | meta_button_type_from_string (const char *str, MetaTheme *theme) |
| const char * | meta_button_type_to_string (MetaButtonType type) |
| MetaFramePiece | meta_frame_piece_from_string (const char *str) |
| const char * | meta_frame_piece_to_string (MetaFramePiece piece) |
| MetaFrameState | meta_frame_state_from_string (const char *str) |
| const char * | meta_frame_state_to_string (MetaFrameState state) |
| MetaFrameResize | meta_frame_resize_from_string (const char *str) |
| const char * | meta_frame_resize_to_string (MetaFrameResize resize) |
| MetaFrameFocus | meta_frame_focus_from_string (const char *str) |
| const char * | meta_frame_focus_to_string (MetaFrameFocus focus) |
| MetaFrameType | meta_frame_type_from_string (const char *str) |
| const char * | meta_frame_type_to_string (MetaFrameType type) |
| MetaGradientType | meta_gradient_type_from_string (const char *str) |
| const char * | meta_gradient_type_to_string (MetaGradientType type) |
| GtkStateFlags | meta_gtk_state_from_string (const char *str) |
| GtkShadowType | meta_gtk_shadow_from_string (const char *str) |
| const char * | meta_gtk_shadow_to_string (GtkShadowType shadow) |
| GtkArrowType | meta_gtk_arrow_from_string (const char *str) |
| const char * | meta_gtk_arrow_to_string (GtkArrowType arrow) |
| MetaImageFillType | meta_image_fill_type_from_string (const char *str) |
| Returns a fill_type from a string. | |
| const char * | meta_image_fill_type_to_string (MetaImageFillType fill_type) |
| Returns a string representation of a fill_type. | |
| guint | meta_theme_earliest_version_with_button (MetaButtonType type) |
| Returns the earliest version of the theme format which required support for a particular button. | |
Variables | |
| static MetaTheme * | meta_current_theme = NULL |
| The current theme. | |
Making Marco look pretty.
The window decorations drawn by Marco are described by files on disk known internally as "themes" (externally as "window border themes" on http://art.gnome.org/themes/marco/ or "Marco themes"). This file contains most of the code necessary to support themes; it does not contain the XML parser, which is in theme-parser.c.
| #define __USE_XOPEN |
| #define CHECK_GEOMETRY_BORDER | ( | bname | ) | if (!validate_geometry_border (&layout->bname, #bname, error)) return FALSE |
| #define CHECK_GEOMETRY_VALUE | ( | vname | ) | if (!validate_geometry_value (layout->vname, #vname, error)) return FALSE |
| #define CLAMP_UCHAR | ( | v | ) | ((guchar) (CLAMP (((int)v), (int)0, (int)255))) |
| #define DARKNESS_MULT 0.7 |
| #define DEBUG_FILL_STRUCT | ( | s | ) | memset ((s), 0xef, sizeof (*(s))) |
| #define GDK_COLOR_RGB | ( | color | ) |
| #define GDK_COLOR_RGBA | ( | color | ) |
| #define INTENSITY | ( | r, | |
| g, | |||
| b | |||
| ) | ((r) * 0.30 + (g) * 0.59 + (b) * 0.11) |
| #define IS_VARIABLE_CHAR | ( | c | ) | (g_ascii_isalpha ((c)) || (c) == '_') |
Whether a variable can validly appear as part of the name of a variable.
| #define LIGHTNESS_MULT 1.3 |
| #define MAX_EXPRS 32 |
|
static |
References _MetaAlphaGradientSpec::alphas, FALSE, meta_gradient_add_alpha(), _MetaAlphaGradientSpec::n_alphas, NULL, and _MetaAlphaGradientSpec::type.
Referenced by scale_and_alpha_pixbuf().
|
static |
References _, FALSE, get_style(), META_FRAME_FOCUS_LAST, meta_frame_focus_to_string(), META_FRAME_RESIZE_NONE, meta_frame_resize_to_string(), meta_frame_state_to_string(), META_THEME_ERROR, META_THEME_ERROR_FAILED, NULL, and TRUE.
Referenced by meta_frame_style_set_validate().
|
static |
Referenced by meta_color_spec_render().
|
static |
References CLAMP_UCHAR, INTENSITY, and NULL.
Referenced by draw_op_as_pixbuf(), and draw_op_as_surface().
|
static |
References _MetaAlphaGradientSpec::alphas, _MetaGradientSpec::color_specs, meta_color_spec_render(), META_GRADIENT_DIAGONAL, META_GRADIENT_HORIZONTAL, META_GRADIENT_VERTICAL, _MetaAlphaGradientSpec::n_alphas, NULL, and _MetaGradientSpec::type.
Referenced by meta_gradient_spec_render().
|
static |
References _, PosExpr::d, PosExpr::double_val, FALSE, PosExpr::int_val, META_THEME_ERROR, META_THEME_ERROR_DIVIDE_BY_ZERO, META_THEME_ERROR_MOD_ON_FLOAT, POS_EXPR_DOUBLE, POS_EXPR_INT, POS_OP_ADD, POS_OP_DIVIDE, POS_OP_MAX, POS_OP_MIN, POS_OP_MOD, POS_OP_MULTIPLY, POS_OP_NONE, POS_OP_SUBTRACT, TRUE, and PosExpr::type.
Referenced by do_operations().
|
static |
References _, PosExpr::d, do_operation(), FALSE, META_THEME_ERROR, META_THEME_ERROR_FAILED, op_name(), PosExpr::operator, POS_EXPR_OPERATOR, POS_OP_ADD, POS_OP_DIVIDE, POS_OP_MAX, POS_OP_MIN, POS_OP_MOD, POS_OP_MULTIPLY, POS_OP_SUBTRACT, and TRUE.
Referenced by pos_eval_helper().
|
static |
References _MetaDrawOp::alpha_spec, _MetaAlphaGradientSpec::alphas, _MetaDrawOp::color_spec, _MetaDrawOp::colorize_cache_pixbuf, _MetaDrawOp::colorize_cache_pixel, colorize_pixbuf(), _MetaDrawOp::colorize_spec, _MetaDrawOp::data, FALSE, _MetaDrawOp::fill_type, _MetaDrawOp::filled, GDK_COLOR_RGB, GDK_COLOR_RGBA, _MetaDrawOp::horizontal_stripes, _MetaDrawInfo::icon, _MetaDrawOp::icon, _MetaDrawOp::image, meta_color_spec_render(), META_DRAW_ARC, META_DRAW_CLIP, META_DRAW_GRADIENT, META_DRAW_GTK_ARROW, META_DRAW_GTK_BOX, META_DRAW_GTK_VLINE, META_DRAW_ICON, META_DRAW_IMAGE, META_DRAW_LINE, META_DRAW_OP_LIST, META_DRAW_RECTANGLE, META_DRAW_TILE, META_DRAW_TINT, META_DRAW_TITLE, meta_gradient_add_alpha(), _MetaDrawInfo::mini_icon, _MetaAlphaGradientSpec::n_alphas, NULL, _MetaDrawOp::pixbuf, _MetaDrawOp::rectangle, scale_and_alpha_pixbuf(), _MetaDrawOp::tint, _MetaAlphaGradientSpec::type, _MetaDrawOp::type, and _MetaDrawOp::vertical_stripes.
Referenced by meta_draw_op_draw_with_env().
|
static |
References _MetaDrawOp::colorize_cache_pixbuf, _MetaDrawOp::colorize_cache_pixel, colorize_pixbuf(), _MetaDrawOp::colorize_spec, _MetaDrawOp::data, FALSE, _MetaDrawOp::fill_type, GDK_COLOR_RGB, get_surface_from_pixbuf(), _MetaDrawOp::horizontal_stripes, _MetaDrawInfo::icon, _MetaDrawOp::icon, _MetaDrawOp::image, meta_color_spec_render(), META_DRAW_ARC, META_DRAW_CLIP, META_DRAW_GRADIENT, META_DRAW_GTK_ARROW, META_DRAW_GTK_BOX, META_DRAW_GTK_VLINE, META_DRAW_ICON, META_DRAW_IMAGE, META_DRAW_LINE, META_DRAW_OP_LIST, META_DRAW_RECTANGLE, META_DRAW_TILE, META_DRAW_TINT, META_DRAW_TITLE, _MetaDrawInfo::mini_icon, NULL, _MetaDrawOp::pixbuf, _MetaDrawOp::type, and _MetaDrawOp::vertical_stripes.
Referenced by meta_draw_op_draw_with_env().
|
static |
References _MetaFrameGeometry::borders, _MetaPositionExprEnv::bottom_height, _MetaDrawInfo::fgeom, _MetaPositionExprEnv::frame_x_center, _MetaPositionExprEnv::frame_y_center, _MetaFrameGeometry::height, _MetaDrawInfo::icon, _MetaPositionExprEnv::icon_height, _MetaPositionExprEnv::icon_width, _MetaPositionExprEnv::left_width, meta_current_theme, _MetaDrawInfo::mini_icon, _MetaPositionExprEnv::mini_icon_height, _MetaPositionExprEnv::mini_icon_width, _MetaPositionExprEnv::object_height, _MetaPositionExprEnv::object_width, _MetaPositionExprEnv::rect, _MetaPositionExprEnv::right_width, _MetaPositionExprEnv::theme, _MetaPositionExprEnv::title_height, _MetaDrawInfo::title_layout_height, _MetaDrawInfo::title_layout_width, _MetaPositionExprEnv::title_width, _MetaPositionExprEnv::top_height, _MetaFrameBorders::visible, _MetaFrameGeometry::width, _MetaRectangle::x, and _MetaRectangle::y.
Referenced by meta_draw_op_draw_with_style(), and meta_draw_op_list_draw_with_style().
|
static |
|
static |
References META_BUTTON_STATE_LAST, META_BUTTON_TYPE_LAST, and meta_draw_op_list_unref().
Referenced by meta_frame_style_unref().
|
static |
References meta_color_spec_free().
Referenced by meta_gradient_spec_free().
|
static |
References META_FRAME_FOCUS_LAST, and meta_frame_style_unref().
Referenced by meta_frame_style_set_unref().
|
static |
Frees an array of tokens.
All the tokens and their associated memory will be freed.
| tokens | an array of tokens to be freed |
| n_tokens | how many tokens are in the array. |
References PosToken::name, POS_TOKEN_VARIABLE, and PosToken::v.
Referenced by meta_draw_spec_free(), and pos_tokenize().
|
static |
References get_background_color_real().
Referenced by meta_gtk_style_get_dark_color(), meta_gtk_style_get_light_color(), and meta_set_color_from_style().
|
static |
References NULL.
Referenced by get_background_color().
|
static |
References _MetaFrameStyle::buttons, get_button(), META_BUTTON_STATE_NORMAL, META_BUTTON_STATE_PRELIGHT, META_BUTTON_TYPE_LEFT_LEFT_BACKGROUND, META_BUTTON_TYPE_LEFT_MIDDLE_BACKGROUND, META_BUTTON_TYPE_LEFT_RIGHT_BACKGROUND, META_BUTTON_TYPE_LEFT_SINGLE_BACKGROUND, META_BUTTON_TYPE_RIGHT_LEFT_BACKGROUND, META_BUTTON_TYPE_RIGHT_MIDDLE_BACKGROUND, META_BUTTON_TYPE_RIGHT_RIGHT_BACKGROUND, META_BUTTON_TYPE_RIGHT_SINGLE_BACKGROUND, NULL, and _MetaFrameStyle::parent.
Referenced by get_button(), meta_frame_style_draw_with_style(), and meta_frame_style_validate().
|
static |
References _MetaFrameGeometry::above_rect, _MetaFrameGeometry::appmenu_rect, _MetaFrameGeometry::close_rect, _MetaFrameGeometry::left_left_background, _MetaFrameGeometry::left_middle_backgrounds, _MetaFrameGeometry::left_right_background, _MetaFrameGeometry::left_single_background, _MetaFrameGeometry::max_rect, _MetaFrameGeometry::menu_rect, META_BUTTON_TYPE_ABOVE, META_BUTTON_TYPE_APPMENU, META_BUTTON_TYPE_CLOSE, META_BUTTON_TYPE_LAST, META_BUTTON_TYPE_LEFT_LEFT_BACKGROUND, META_BUTTON_TYPE_LEFT_MIDDLE_BACKGROUND, META_BUTTON_TYPE_LEFT_RIGHT_BACKGROUND, META_BUTTON_TYPE_LEFT_SINGLE_BACKGROUND, META_BUTTON_TYPE_MAXIMIZE, META_BUTTON_TYPE_MENU, META_BUTTON_TYPE_MINIMIZE, META_BUTTON_TYPE_RIGHT_LEFT_BACKGROUND, META_BUTTON_TYPE_RIGHT_MIDDLE_BACKGROUND, META_BUTTON_TYPE_RIGHT_RIGHT_BACKGROUND, META_BUTTON_TYPE_RIGHT_SINGLE_BACKGROUND, META_BUTTON_TYPE_SHADE, META_BUTTON_TYPE_STICK, META_BUTTON_TYPE_UNABOVE, META_BUTTON_TYPE_UNSHADE, META_BUTTON_TYPE_UNSTICK, _MetaFrameGeometry::min_rect, _MetaFrameGeometry::right_left_background, _MetaFrameGeometry::right_middle_backgrounds, _MetaFrameGeometry::right_right_background, _MetaFrameGeometry::right_single_background, _MetaFrameGeometry::shade_rect, _MetaFrameGeometry::stick_rect, _MetaFrameGeometry::unabove_rect, _MetaFrameGeometry::unshade_rect, _MetaFrameGeometry::unstick_rect, and _MetaButtonSpace::visible.
Referenced by meta_frame_style_draw_with_style().
|
static |
References get_style(), _MetaFrameStyleSet::maximized_and_shaded_styles, _MetaFrameStyleSet::maximized_styles, META_FRAME_RESIZE_BOTH, META_FRAME_STATE_LAST, META_FRAME_STATE_MAXIMIZED, META_FRAME_STATE_MAXIMIZED_AND_SHADED, META_FRAME_STATE_NORMAL, META_FRAME_STATE_SHADED, META_FRAME_STATE_TILED_LEFT, META_FRAME_STATE_TILED_LEFT_AND_SHADED, META_FRAME_STATE_TILED_RIGHT, META_FRAME_STATE_TILED_RIGHT_AND_SHADED, _MetaFrameStyleSet::normal_styles, NULL, _MetaFrameStyleSet::parent, _MetaFrameStyleSet::shaded_styles, _MetaFrameStyleSet::tiled_left_and_shaded_styles, _MetaFrameStyleSet::tiled_left_styles, _MetaFrameStyleSet::tiled_right_and_shaded_styles, and _MetaFrameStyleSet::tiled_right_styles.
Referenced by check_state(), get_style(), meta_frame_style_set_validate(), and theme_get_style().
|
static |
References META_IMAGE_FILL_TILE, NULL, and scale_surface().
Referenced by draw_op_as_surface().
|
static |
Takes a colour "a", scales the lightness and saturation by a certain amount, and sets "b" to the resulting colour.
gtkstyle.c cut-and-pastage.
| a | the starting colour |
| b | [out] the resulting colour |
| k | amount to scale lightness and saturation by |
References hls_to_rgb(), and rgb_to_hls().
Referenced by meta_color_spec_render(), meta_gtk_style_get_dark_color(), and meta_gtk_style_get_light_color().
|
static |
Converts a hue/lightness/saturation triplet to a red/green/blue triplet.
| h | on input, hue; on output, red |
| l | on input, lightness; on output, green |
| s | on input, saturation; on output, blue |
Referenced by gtk_style_shade().
|
static |
Sets all the fields of a border to dummy values.
| border | The border whose fields should be reset. |
Referenced by meta_frame_layout_new().
|
static |
References META_BUTTON_FUNCTION_ABOVE, META_BUTTON_FUNCTION_APPMENU, META_BUTTON_FUNCTION_CLOSE, META_BUTTON_FUNCTION_LAST, META_BUTTON_FUNCTION_MAXIMIZE, META_BUTTON_FUNCTION_MENU, META_BUTTON_FUNCTION_MINIMIZE, META_BUTTON_FUNCTION_SHADE, META_BUTTON_FUNCTION_STICK, META_BUTTON_FUNCTION_UNABOVE, META_BUTTON_FUNCTION_UNSHADE, META_BUTTON_FUNCTION_UNSTICK, META_BUTTON_TYPE_ABOVE, META_BUTTON_TYPE_APPMENU, META_BUTTON_TYPE_CLOSE, META_BUTTON_TYPE_LAST, META_BUTTON_TYPE_MAXIMIZE, META_BUTTON_TYPE_MENU, META_BUTTON_TYPE_MINIMIZE, META_BUTTON_TYPE_SHADE, META_BUTTON_TYPE_STICK, META_BUTTON_TYPE_UNABOVE, META_BUTTON_TYPE_UNSHADE, and META_BUTTON_TYPE_UNSTICK.
Referenced by map_button_state().
|
static |
References _MetaFrameGeometry::button_layout, _MetaButtonLayout::left_buttons, map_button_function_to_type(), META_BUTTON_FUNCTION_LAST, META_BUTTON_STATE_LAST, META_BUTTON_TYPE_ABOVE, META_BUTTON_TYPE_APPMENU, META_BUTTON_TYPE_CLOSE, META_BUTTON_TYPE_LAST, META_BUTTON_TYPE_LEFT_LEFT_BACKGROUND, META_BUTTON_TYPE_LEFT_MIDDLE_BACKGROUND, META_BUTTON_TYPE_LEFT_RIGHT_BACKGROUND, META_BUTTON_TYPE_LEFT_SINGLE_BACKGROUND, META_BUTTON_TYPE_MAXIMIZE, META_BUTTON_TYPE_MENU, META_BUTTON_TYPE_MINIMIZE, META_BUTTON_TYPE_RIGHT_LEFT_BACKGROUND, META_BUTTON_TYPE_RIGHT_MIDDLE_BACKGROUND, META_BUTTON_TYPE_RIGHT_RIGHT_BACKGROUND, META_BUTTON_TYPE_RIGHT_SINGLE_BACKGROUND, META_BUTTON_TYPE_SHADE, META_BUTTON_TYPE_STICK, META_BUTTON_TYPE_UNABOVE, META_BUTTON_TYPE_UNSHADE, META_BUTTON_TYPE_UNSTICK, _MetaFrameGeometry::n_left_buttons, _MetaFrameGeometry::n_right_buttons, and _MetaButtonLayout::right_buttons.
Referenced by meta_frame_style_draw_with_style().
| void meta_alpha_gradient_spec_free | ( | MetaAlphaGradientSpec * | spec | ) |
References _MetaAlphaGradientSpec::alphas, and NULL.
Referenced by meta_draw_op_free(), parse_alpha(), parse_draw_op_element(), and parse_toplevel_element().
| cairo_pattern_t * meta_alpha_gradient_spec_get_mask | ( | const MetaAlphaGradientSpec * | spec | ) |
References _MetaAlphaGradientSpec::alphas, META_GRADIENT_HORIZONTAL, _MetaAlphaGradientSpec::n_alphas, NULL, and _MetaAlphaGradientSpec::type.
Referenced by meta_draw_op_draw_with_env().
| MetaAlphaGradientSpec * meta_alpha_gradient_spec_new | ( | MetaGradientType | type, |
| int | n_alphas | ||
| ) |
References _MetaAlphaGradientSpec::alphas, _MetaAlphaGradientSpec::n_alphas, NULL, and _MetaAlphaGradientSpec::type.
Referenced by parse_alpha().
| MetaButtonState meta_button_state_from_string | ( | const char * | str | ) |
References META_BUTTON_STATE_LAST, META_BUTTON_STATE_NORMAL, META_BUTTON_STATE_PRELIGHT, and META_BUTTON_STATE_PRESSED.
Referenced by parse_style_element().
| const char * meta_button_state_to_string | ( | MetaButtonState | state | ) |
References META_BUTTON_STATE_LAST, META_BUTTON_STATE_NORMAL, META_BUTTON_STATE_PRELIGHT, and META_BUTTON_STATE_PRESSED.
Referenced by meta_frame_style_validate().
| MetaButtonType meta_button_type_from_string | ( | const char * | str, |
| MetaTheme * | theme | ||
| ) |
References META_BUTTON_TYPE_ABOVE, META_BUTTON_TYPE_APPMENU, META_BUTTON_TYPE_CLOSE, META_BUTTON_TYPE_LAST, META_BUTTON_TYPE_LEFT_LEFT_BACKGROUND, META_BUTTON_TYPE_LEFT_MIDDLE_BACKGROUND, META_BUTTON_TYPE_LEFT_RIGHT_BACKGROUND, META_BUTTON_TYPE_LEFT_SINGLE_BACKGROUND, META_BUTTON_TYPE_MAXIMIZE, META_BUTTON_TYPE_MENU, META_BUTTON_TYPE_MINIMIZE, META_BUTTON_TYPE_RIGHT_LEFT_BACKGROUND, META_BUTTON_TYPE_RIGHT_MIDDLE_BACKGROUND, META_BUTTON_TYPE_RIGHT_RIGHT_BACKGROUND, META_BUTTON_TYPE_RIGHT_SINGLE_BACKGROUND, META_BUTTON_TYPE_SHADE, META_BUTTON_TYPE_STICK, META_BUTTON_TYPE_UNABOVE, META_BUTTON_TYPE_UNSHADE, META_BUTTON_TYPE_UNSTICK, META_THEME_ALLOWS, and META_THEME_SHADE_STICK_ABOVE_BUTTONS.
Referenced by parse_style_element().
| const char * meta_button_type_to_string | ( | MetaButtonType | type | ) |
References META_BUTTON_TYPE_ABOVE, META_BUTTON_TYPE_APPMENU, META_BUTTON_TYPE_CLOSE, META_BUTTON_TYPE_LAST, META_BUTTON_TYPE_LEFT_LEFT_BACKGROUND, META_BUTTON_TYPE_LEFT_MIDDLE_BACKGROUND, META_BUTTON_TYPE_LEFT_RIGHT_BACKGROUND, META_BUTTON_TYPE_LEFT_SINGLE_BACKGROUND, META_BUTTON_TYPE_MAXIMIZE, META_BUTTON_TYPE_MENU, META_BUTTON_TYPE_MINIMIZE, META_BUTTON_TYPE_RIGHT_LEFT_BACKGROUND, META_BUTTON_TYPE_RIGHT_MIDDLE_BACKGROUND, META_BUTTON_TYPE_RIGHT_RIGHT_BACKGROUND, META_BUTTON_TYPE_RIGHT_SINGLE_BACKGROUND, META_BUTTON_TYPE_SHADE, META_BUTTON_TYPE_STICK, META_BUTTON_TYPE_UNABOVE, META_BUTTON_TYPE_UNSHADE, and META_BUTTON_TYPE_UNSTICK.
Referenced by meta_frame_style_validate().
| MetaGtkColorComponent meta_color_component_from_string | ( | const char * | str | ) |
| const char * meta_color_component_to_string | ( | MetaGtkColorComponent | component | ) |
| void meta_color_spec_free | ( | MetaColorSpec * | spec | ) |
References _MetaColorSpec::background, _MetaColorSpec::base, _MetaColorSpec::basic, _MetaColorSpec::blend, _MetaColorSpec::color_name, _MetaColorSpec::data, DEBUG_FILL_STRUCT, _MetaColorSpec::fallback, _MetaColorSpec::foreground, _MetaColorSpec::gtk, _MetaColorSpec::gtkcustom, META_COLOR_SPEC_BASIC, META_COLOR_SPEC_BLEND, meta_color_spec_free(), META_COLOR_SPEC_GTK, META_COLOR_SPEC_GTK_CUSTOM, META_COLOR_SPEC_SHADE, NULL, _MetaColorSpec::shade, and _MetaColorSpec::type.
Referenced by free_color_spec(), meta_color_spec_free(), meta_color_spec_new_from_string(), meta_draw_op_free(), and meta_frame_style_unref().
| MetaColorSpec * meta_color_spec_new | ( | MetaColorSpecType | type | ) |
References _MetaColorSpec::basic, _MetaColorSpec::blend, _MetaColorSpec::data, _MetaColorSpec::gtk, _MetaColorSpec::gtkcustom, META_COLOR_SPEC_BASIC, META_COLOR_SPEC_BLEND, META_COLOR_SPEC_GTK, META_COLOR_SPEC_GTK_CUSTOM, META_COLOR_SPEC_SHADE, _MetaColorSpec::shade, and _MetaColorSpec::type.
Referenced by meta_color_spec_new_from_string(), and meta_color_spec_new_gtk().
| MetaColorSpec * meta_color_spec_new_from_string | ( | const char * | str, |
| GError ** | err | ||
| ) |
References _, _MetaColorSpec::alpha, _MetaColorSpec::background, _MetaColorSpec::base, _MetaColorSpec::basic, _MetaColorSpec::blend, _MetaColorSpec::color, _MetaColorSpec::color_name, _MetaColorSpec::component, _MetaColorSpec::data, _MetaColorSpec::factor, _MetaColorSpec::fallback, FALSE, _MetaColorSpec::foreground, _MetaColorSpec::gtk, _MetaColorSpec::gtkcustom, meta_color_component_from_string(), META_COLOR_SPEC_BASIC, META_COLOR_SPEC_BLEND, meta_color_spec_free(), META_COLOR_SPEC_GTK, META_COLOR_SPEC_GTK_CUSTOM, meta_color_spec_new(), meta_color_spec_new_from_string(), META_COLOR_SPEC_SHADE, META_GTK_COLOR_LAST, meta_gtk_state_from_string(), META_THEME_ERROR, META_THEME_ERROR_FAILED, NULL, _MetaColorSpec::shade, _MetaColorSpec::state, and TRUE.
Referenced by meta_color_spec_new_from_string(), parse_color(), and parse_toplevel_element().
| MetaColorSpec * meta_color_spec_new_gtk | ( | MetaGtkColorComponent | component, |
| GtkStateFlags | state | ||
| ) |
References _MetaColorSpec::component, _MetaColorSpec::data, _MetaColorSpec::gtk, META_COLOR_SPEC_GTK, meta_color_spec_new(), and _MetaColorSpec::state.
| void meta_color_spec_render | ( | MetaColorSpec * | spec, |
| GtkStyleContext * | style, | ||
| GdkRGBA * | color | ||
| ) |
References _MetaColorSpec::alpha, _MetaColorSpec::background, _MetaColorSpec::base, _MetaColorSpec::basic, _MetaColorSpec::blend, _MetaColorSpec::color, color_composite(), _MetaColorSpec::color_name, _MetaColorSpec::component, _MetaColorSpec::data, _MetaColorSpec::factor, _MetaColorSpec::fallback, _MetaColorSpec::foreground, _MetaColorSpec::gtk, gtk_style_shade(), _MetaColorSpec::gtkcustom, META_COLOR_SPEC_BASIC, META_COLOR_SPEC_BLEND, META_COLOR_SPEC_GTK, META_COLOR_SPEC_GTK_CUSTOM, meta_color_spec_render(), META_COLOR_SPEC_SHADE, meta_set_color_from_style(), meta_set_custom_color_from_style(), NULL, _MetaColorSpec::shade, _MetaColorSpec::state, and _MetaColorSpec::type.
Referenced by create_cairo_pattern_from_gradient_spec(), draw_op_as_pixbuf(), draw_op_as_surface(), meta_color_spec_render(), meta_draw_op_draw_with_env(), and meta_set_custom_color_from_style().
| void meta_draw_op_draw | ( | const MetaDrawOp * | op, |
| GtkWidget * | widget, | ||
| cairo_t * | cr, | ||
| const MetaDrawInfo * | info, | ||
| MetaRectangle | logical_region | ||
| ) |
|
static |
References _MetaDrawOp::alpha_spec, _MetaAlphaGradientSpec::alphas, _MetaDrawOp::arc, _MetaDrawOp::arrow, _MetaDrawOp::color_spec, _MetaDrawOp::dash_off_length, _MetaDrawOp::dash_on_length, _MetaDrawOp::data, draw_op_as_pixbuf(), draw_op_as_surface(), _MetaDrawOp::ellipsize_width, _MetaDrawOp::extent_angle, _MetaDrawOp::filled, _MetaDrawOp::gradient, _MetaDrawOp::gradient_spec, _MetaDrawOp::gtk_arrow, _MetaDrawOp::gtk_box, _MetaDrawOp::gtk_vline, _MetaRectangle::height, _MetaDrawOp::height, _MetaDrawOp::icon, _MetaDrawOp::image, _MetaDrawOp::line, meta_alpha_gradient_spec_get_mask(), meta_color_spec_render(), META_DRAW_ARC, META_DRAW_CLIP, META_DRAW_GRADIENT, META_DRAW_GTK_ARROW, META_DRAW_GTK_BOX, META_DRAW_GTK_VLINE, META_DRAW_ICON, META_DRAW_IMAGE, META_DRAW_LINE, META_DRAW_OP_LIST, meta_draw_op_list_draw_with_style(), META_DRAW_RECTANGLE, META_DRAW_TILE, META_DRAW_TINT, META_DRAW_TITLE, meta_gradient_spec_render(), _MetaAlphaGradientSpec::n_alphas, _MetaPositionExprEnv::object_height, _MetaPositionExprEnv::object_width, _MetaDrawOp::op_list, parse_size_unchecked(), parse_x_position_unchecked(), parse_y_position_unchecked(), _MetaDrawOp::pixbuf, _MetaPositionExprEnv::rect, _MetaDrawOp::rectangle, _MetaPositionExprEnv::right_width, _MetaDrawOp::start_angle, _MetaDrawOp::state, _MetaDrawOp::tile, _MetaDrawOp::tile_height, _MetaDrawOp::tile_width, _MetaDrawOp::tile_xoffset, _MetaDrawOp::tile_yoffset, _MetaDrawOp::tint, _MetaDrawOp::title, _MetaPositionExprEnv::title_height, _MetaDrawInfo::title_layout, _MetaPositionExprEnv::title_width, _MetaDrawOp::type, _MetaRectangle::width, _MetaDrawOp::width, _MetaRectangle::x, _MetaDrawOp::x, _MetaDrawOp::x1, _MetaDrawOp::x2, _MetaRectangle::y, _MetaDrawOp::y, _MetaDrawOp::y1, and _MetaDrawOp::y2.
Referenced by meta_draw_op_draw_with_style(), and meta_draw_op_list_draw_with_style().
| void meta_draw_op_draw_with_style | ( | const MetaDrawOp * | op, |
| GtkStyleContext * | style_gtk, | ||
| cairo_t * | cr, | ||
| const MetaDrawInfo * | info, | ||
| MetaRectangle | logical_region | ||
| ) |
References fill_env(), and meta_draw_op_draw_with_env().
Referenced by meta_draw_op_draw().
| void meta_draw_op_free | ( | MetaDrawOp * | op | ) |
References _MetaDrawOp::alpha_spec, _MetaDrawOp::arc, _MetaDrawOp::clip, _MetaDrawOp::color_spec, _MetaDrawOp::colorize_cache_pixbuf, _MetaDrawOp::colorize_spec, _MetaDrawOp::data, _MetaDrawOp::ellipsize_width, _MetaDrawOp::gradient, _MetaDrawOp::gradient_spec, _MetaDrawOp::gtk_arrow, _MetaDrawOp::gtk_box, _MetaDrawOp::gtk_vline, _MetaDrawOp::height, _MetaDrawOp::icon, _MetaDrawOp::image, _MetaDrawOp::line, meta_alpha_gradient_spec_free(), meta_color_spec_free(), META_DRAW_ARC, META_DRAW_CLIP, META_DRAW_GRADIENT, META_DRAW_GTK_ARROW, META_DRAW_GTK_BOX, META_DRAW_GTK_VLINE, META_DRAW_ICON, META_DRAW_IMAGE, META_DRAW_LINE, META_DRAW_OP_LIST, meta_draw_op_list_unref(), META_DRAW_RECTANGLE, meta_draw_spec_free(), META_DRAW_TILE, META_DRAW_TINT, META_DRAW_TITLE, meta_gradient_spec_free(), NULL, _MetaDrawOp::op_list, _MetaDrawOp::pixbuf, _MetaDrawOp::rectangle, _MetaDrawOp::tile, _MetaDrawOp::tile_height, _MetaDrawOp::tile_width, _MetaDrawOp::tile_xoffset, _MetaDrawOp::tile_yoffset, _MetaDrawOp::tint, _MetaDrawOp::title, _MetaDrawOp::type, _MetaDrawOp::width, _MetaDrawOp::x, _MetaDrawOp::x1, _MetaDrawOp::x2, _MetaDrawOp::y, _MetaDrawOp::y1, and _MetaDrawOp::y2.
Referenced by end_element_handler(), meta_draw_op_list_unref(), and parse_info_free().
| void meta_draw_op_list_append | ( | MetaDrawOpList * | op_list, |
| MetaDrawOp * | op | ||
| ) |
References _MetaDrawOpList::n_allocated, _MetaDrawOpList::n_ops, and _MetaDrawOpList::ops.
Referenced by end_element_handler(), and parse_draw_op_element().
| gboolean meta_draw_op_list_contains | ( | MetaDrawOpList * | op_list, |
| MetaDrawOpList * | child | ||
| ) |
References _MetaDrawOp::data, FALSE, META_DRAW_OP_LIST, meta_draw_op_list_contains(), META_DRAW_TILE, _MetaDrawOpList::n_ops, _MetaDrawOp::op_list, _MetaDrawOpList::ops, _MetaDrawOp::tile, TRUE, and _MetaDrawOp::type.
Referenced by meta_draw_op_list_contains(), and parse_draw_op_element().
| void meta_draw_op_list_draw | ( | const MetaDrawOpList * | op_list, |
| GtkWidget * | widget, | ||
| cairo_t * | cr, | ||
| const MetaDrawInfo * | info, | ||
| MetaRectangle | rect | ||
| ) |
| void meta_draw_op_list_draw_with_style | ( | const MetaDrawOpList * | op_list, |
| GtkStyleContext * | style_gtk, | ||
| cairo_t * | cr, | ||
| const MetaDrawInfo * | info, | ||
| MetaRectangle | rect | ||
| ) |
References _MetaDrawOp::clip, _MetaDrawOp::data, fill_env(), _MetaDrawOp::height, META_DRAW_CLIP, meta_draw_op_draw_with_env(), _MetaDrawOpList::n_ops, NULL, _MetaDrawOpList::ops, parse_size_unchecked(), parse_x_position_unchecked(), parse_y_position_unchecked(), _MetaDrawOp::type, _MetaDrawOp::width, _MetaDrawOp::x, and _MetaDrawOp::y.
Referenced by meta_draw_op_draw_with_env(), meta_draw_op_list_draw(), and meta_frame_style_draw_with_style().
| MetaDrawOpList * meta_draw_op_list_new | ( | int | n_preallocs | ) |
References _MetaDrawOpList::n_allocated, _MetaDrawOpList::n_ops, NULL, _MetaDrawOpList::ops, and _MetaDrawOpList::refcount.
Referenced by parse_button_element(), parse_menu_icon_element(), parse_piece_element(), and parse_toplevel_element().
| void meta_draw_op_list_ref | ( | MetaDrawOpList * | op_list | ) |
References NULL, and _MetaDrawOpList::refcount.
Referenced by meta_theme_insert_draw_op_list(), parse_draw_op_element(), and parse_style_element().
| void meta_draw_op_list_unref | ( | MetaDrawOpList * | op_list | ) |
References DEBUG_FILL_STRUCT, meta_draw_op_free(), _MetaDrawOpList::n_ops, NULL, _MetaDrawOpList::ops, and _MetaDrawOpList::refcount.
Referenced by end_element_handler(), free_button_ops(), meta_draw_op_free(), meta_frame_style_unref(), meta_theme_new(), and parse_info_free().
| gboolean meta_draw_op_list_validate | ( | MetaDrawOpList * | op_list, |
| GError ** | error | ||
| ) |
References FALSE, NULL, and TRUE.
Referenced by end_element_handler().
| MetaDrawOp * meta_draw_op_new | ( | MetaDrawType | type | ) |
References _MetaDrawOp::arc, _MetaDrawOp::clip, _MetaDrawOp::data, _MetaDrawOp::gradient, _MetaDrawOp::gtk_arrow, _MetaDrawOp::gtk_box, _MetaDrawOp::gtk_vline, _MetaDrawOp::icon, _MetaDrawOp::image, _MetaDrawOp::line, META_DRAW_ARC, META_DRAW_CLIP, META_DRAW_GRADIENT, META_DRAW_GTK_ARROW, META_DRAW_GTK_BOX, META_DRAW_GTK_VLINE, META_DRAW_ICON, META_DRAW_IMAGE, META_DRAW_LINE, META_DRAW_OP_LIST, META_DRAW_RECTANGLE, META_DRAW_TILE, META_DRAW_TINT, META_DRAW_TITLE, _MetaDrawOp::op_list, _MetaDrawOp::rectangle, _MetaDrawOp::tile, _MetaDrawOp::tint, _MetaDrawOp::title, and _MetaDrawOp::type.
Referenced by parse_draw_op_element().
| void meta_draw_spec_free | ( | MetaDrawSpec * | spec | ) |
References free_tokens(), _MetaDrawSpec::n_tokens, and _MetaDrawSpec::tokens.
Referenced by meta_draw_op_free(), and meta_draw_spec_new().
| MetaDrawSpec * meta_draw_spec_new | ( | MetaTheme * | theme, |
| const char * | expr, | ||
| GError ** | error | ||
| ) |
References _MetaDrawSpec::constant, meta_draw_spec_free(), meta_theme_replace_constants(), _MetaDrawSpec::n_tokens, NULL, pos_eval(), pos_tokenize(), _MetaDrawSpec::tokens, and _MetaDrawSpec::value.
Referenced by parse_draw_op_element().
| MetaFrameFocus meta_frame_focus_from_string | ( | const char * | str | ) |
References META_FRAME_FOCUS_LAST, META_FRAME_FOCUS_NO, and META_FRAME_FOCUS_YES.
Referenced by parse_style_set_element().
| const char * meta_frame_focus_to_string | ( | MetaFrameFocus | focus | ) |
References META_FRAME_FOCUS_LAST, META_FRAME_FOCUS_NO, and META_FRAME_FOCUS_YES.
Referenced by check_state(), and meta_frame_style_set_validate().
| void meta_frame_layout_calc_geometry | ( | const MetaFrameLayout * | layout, |
| int | text_height, | ||
| MetaFrameFlags | flags, | ||
| int | client_width, | ||
| int | client_height, | ||
| const MetaButtonLayout * | button_layout, | ||
| MetaFrameGeometry * | fgeom, | ||
| MetaTheme * | theme | ||
| ) |
References _MetaFrameGeometry::above_rect, ADDRESS_OF_BUTTON_RECTS, _MetaFrameGeometry::appmenu_rect, _MetaFrameGeometry::borders, _MetaFrameLayout::bottom_left_corner_rounded_radius, _MetaFrameGeometry::bottom_left_corner_rounded_radius, _MetaFrameLayout::bottom_right_corner_rounded_radius, _MetaFrameGeometry::bottom_right_corner_rounded_radius, _MetaFrameGeometry::bottom_titlebar_edge, _MetaFrameLayout::button_aspect, _MetaFrameLayout::button_border, _MetaFrameLayout::button_height, button_layout, _MetaFrameGeometry::button_layout, _MetaFrameLayout::button_sizing, _MetaFrameLayout::button_width, _MetaButtonSpace::clickable, _MetaFrameGeometry::close_rect, FALSE, _MetaFrameGeometry::height, _MetaFrameLayout::hide_buttons, _MetaFrameBorders::invisible, _MetaButtonLayout::left_buttons, _MetaButtonLayout::left_buttons_has_spacer, _MetaFrameGeometry::left_left_background, _MetaFrameGeometry::left_middle_backgrounds, _MetaFrameGeometry::left_right_background, _MetaFrameGeometry::left_single_background, _MetaFrameLayout::left_titlebar_edge, _MetaFrameGeometry::left_titlebar_edge, _MetaFrameLayout::left_width, LENGTH_OF_BUTTON_RECTS, MAX_BUTTONS_PER_CORNER, _MetaFrameGeometry::max_rect, _MetaFrameGeometry::menu_rect, meta_bug(), META_BUTTON_FUNCTION_LAST, META_BUTTON_SIZING_ASPECT, META_BUTTON_SIZING_FIXED, META_BUTTON_SIZING_LAST, meta_frame_layout_get_borders(), META_FRAME_MAXIMIZED, META_FRAME_SHADED, META_FRAME_TILED_LEFT, META_FRAME_TILED_RIGHT, META_FRAME_TYPE_NORMAL, _MetaFrameGeometry::min_rect, _MetaFrameGeometry::n_left_buttons, _MetaFrameGeometry::n_right_buttons, NULL, rect_for_function(), _MetaButtonLayout::right_buttons, _MetaButtonLayout::right_buttons_has_spacer, _MetaFrameGeometry::right_left_background, _MetaFrameGeometry::right_middle_backgrounds, _MetaFrameGeometry::right_right_background, _MetaFrameGeometry::right_single_background, _MetaFrameLayout::right_titlebar_edge, _MetaFrameGeometry::right_titlebar_edge, _MetaFrameLayout::right_width, _MetaFrameGeometry::shade_rect, _MetaFrameGeometry::stick_rect, strip_button(), _MetaFrameLayout::title_border, _MetaFrameGeometry::title_rect, _MetaFrameLayout::top_left_corner_rounded_radius, _MetaFrameGeometry::top_left_corner_rounded_radius, _MetaFrameLayout::top_right_corner_rounded_radius, _MetaFrameGeometry::top_right_corner_rounded_radius, _MetaFrameGeometry::top_titlebar_edge, _MetaFrameBorders::total, _MetaFrameBorders::visible, _MetaButtonSpace::visible, and _MetaFrameGeometry::width.
Referenced by meta_theme_calc_geometry(), meta_theme_draw_frame(), and meta_theme_draw_frame_by_name().
| MetaFrameLayout * meta_frame_layout_copy | ( | const MetaFrameLayout * | src | ) |
References _MetaFrameLayout::refcount.
Referenced by parse_toplevel_element().
| void meta_frame_layout_get_borders | ( | const MetaFrameLayout * | layout, |
| int | text_height, | ||
| MetaFrameFlags | flags, | ||
| MetaFrameType | type, | ||
| MetaFrameBorders * | borders | ||
| ) |
References _MetaFrameLayout::bottom_height, _MetaFrameLayout::button_border, _MetaFrameLayout::button_height, _MetaFrameLayout::has_title, _MetaFrameBorders::invisible, _MetaFrameLayout::invisible_resize_border, _MetaFrameLayout::left_width, META_FRAME_ALLOWS_HORIZONTAL_RESIZE, META_FRAME_ALLOWS_VERTICAL_RESIZE, meta_frame_borders_clear(), META_FRAME_FULLSCREEN, META_FRAME_MAXIMIZED, META_FRAME_SHADED, META_FRAME_TILED_LEFT, META_FRAME_TILED_RIGHT, META_FRAME_TYPE_ATTACHED, NULL, _MetaFrameBorders::resize, _MetaFrameLayout::right_width, _MetaFrameBorders::shadow, _MetaFrameLayout::title_border, _MetaFrameLayout::title_vertical_pad, _MetaFrameBorders::total, and _MetaFrameBorders::visible.
Referenced by meta_frame_layout_calc_geometry(), and meta_theme_get_frame_borders().
| MetaFrameLayout * meta_frame_layout_new | ( | void | ) |
Creates a new, empty MetaFrameLayout.
The fields will be set to dummy values.
References _MetaFrameLayout::bottom_height, _MetaFrameLayout::button_aspect, _MetaFrameLayout::button_border, _MetaFrameLayout::button_height, _MetaFrameLayout::button_sizing, _MetaFrameLayout::button_width, _MetaFrameLayout::has_title, init_border(), _MetaFrameLayout::invisible_resize_border, _MetaFrameLayout::left_titlebar_edge, _MetaFrameLayout::left_width, META_BUTTON_SIZING_LAST, _MetaFrameLayout::refcount, _MetaFrameLayout::right_titlebar_edge, _MetaFrameLayout::right_width, _MetaFrameLayout::title_border, _MetaFrameLayout::title_scale, _MetaFrameLayout::title_vertical_pad, and TRUE.
Referenced by parse_toplevel_element().
| void meta_frame_layout_ref | ( | MetaFrameLayout * | layout | ) |
References NULL, and _MetaFrameLayout::refcount.
Referenced by meta_theme_insert_layout(), and parse_toplevel_element().
| void meta_frame_layout_unref | ( | MetaFrameLayout * | layout | ) |
References DEBUG_FILL_STRUCT, NULL, and _MetaFrameLayout::refcount.
Referenced by end_element_handler(), meta_frame_style_unref(), meta_theme_new(), and parse_info_free().
| gboolean meta_frame_layout_validate | ( | const MetaFrameLayout * | layout, |
| GError ** | error | ||
| ) |
References _, _MetaFrameLayout::button_aspect, _MetaFrameLayout::button_sizing, CHECK_GEOMETRY_BORDER, CHECK_GEOMETRY_VALUE, FALSE, META_BUTTON_SIZING_ASPECT, META_BUTTON_SIZING_FIXED, META_BUTTON_SIZING_LAST, META_THEME_ERROR, META_THEME_ERROR_FRAME_GEOMETRY, NULL, and TRUE.
Referenced by end_element_handler().
| MetaFramePiece meta_frame_piece_from_string | ( | const char * | str | ) |
References META_FRAME_PIECE_BOTTOM_EDGE, META_FRAME_PIECE_BOTTOM_TITLEBAR_EDGE, META_FRAME_PIECE_ENTIRE_BACKGROUND, META_FRAME_PIECE_LAST, META_FRAME_PIECE_LEFT_EDGE, META_FRAME_PIECE_LEFT_TITLEBAR_EDGE, META_FRAME_PIECE_OVERLAY, META_FRAME_PIECE_RIGHT_EDGE, META_FRAME_PIECE_RIGHT_TITLEBAR_EDGE, META_FRAME_PIECE_TITLE, META_FRAME_PIECE_TITLEBAR, META_FRAME_PIECE_TITLEBAR_MIDDLE, and META_FRAME_PIECE_TOP_TITLEBAR_EDGE.
Referenced by parse_style_element().
| const char * meta_frame_piece_to_string | ( | MetaFramePiece | piece | ) |
References META_FRAME_PIECE_BOTTOM_EDGE, META_FRAME_PIECE_BOTTOM_TITLEBAR_EDGE, META_FRAME_PIECE_ENTIRE_BACKGROUND, META_FRAME_PIECE_LAST, META_FRAME_PIECE_LEFT_EDGE, META_FRAME_PIECE_LEFT_TITLEBAR_EDGE, META_FRAME_PIECE_OVERLAY, META_FRAME_PIECE_RIGHT_EDGE, META_FRAME_PIECE_RIGHT_TITLEBAR_EDGE, META_FRAME_PIECE_TITLE, META_FRAME_PIECE_TITLEBAR, META_FRAME_PIECE_TITLEBAR_MIDDLE, and META_FRAME_PIECE_TOP_TITLEBAR_EDGE.
| MetaFrameResize meta_frame_resize_from_string | ( | const char * | str | ) |
References META_FRAME_RESIZE_BOTH, META_FRAME_RESIZE_HORIZONTAL, META_FRAME_RESIZE_LAST, META_FRAME_RESIZE_NONE, and META_FRAME_RESIZE_VERTICAL.
Referenced by parse_style_set_element().
| const char * meta_frame_resize_to_string | ( | MetaFrameResize | resize | ) |
References META_FRAME_RESIZE_BOTH, META_FRAME_RESIZE_HORIZONTAL, META_FRAME_RESIZE_LAST, META_FRAME_RESIZE_NONE, and META_FRAME_RESIZE_VERTICAL.
Referenced by check_state(), and meta_frame_style_set_validate().
| MetaFrameState meta_frame_state_from_string | ( | const char * | str | ) |
References META_FRAME_STATE_LAST, META_FRAME_STATE_MAXIMIZED, META_FRAME_STATE_MAXIMIZED_AND_SHADED, META_FRAME_STATE_NORMAL, META_FRAME_STATE_SHADED, META_FRAME_STATE_TILED_LEFT, META_FRAME_STATE_TILED_LEFT_AND_SHADED, META_FRAME_STATE_TILED_RIGHT, and META_FRAME_STATE_TILED_RIGHT_AND_SHADED.
Referenced by parse_style_set_element().
| const char * meta_frame_state_to_string | ( | MetaFrameState | state | ) |
References META_FRAME_STATE_LAST, META_FRAME_STATE_MAXIMIZED, META_FRAME_STATE_MAXIMIZED_AND_SHADED, META_FRAME_STATE_NORMAL, META_FRAME_STATE_SHADED, META_FRAME_STATE_TILED_LEFT, META_FRAME_STATE_TILED_LEFT_AND_SHADED, META_FRAME_STATE_TILED_RIGHT, and META_FRAME_STATE_TILED_RIGHT_AND_SHADED.
Referenced by check_state(), and meta_frame_style_set_validate().
| void meta_frame_style_draw | ( | MetaFrameStyle * | style, |
| GtkWidget * | widget, | ||
| cairo_t * | cr, | ||
| const MetaFrameGeometry * | fgeom, | ||
| int | client_width, | ||
| int | client_height, | ||
| PangoLayout * | title_layout, | ||
| int | text_height, | ||
| MetaButtonState | button_states[META_BUTTON_TYPE_LAST], | ||
| GdkPixbuf * | mini_icon, | ||
| GdkPixbuf * | icon | ||
| ) |
References meta_frame_style_draw_with_style().
Referenced by meta_theme_draw_frame_by_name().
| void meta_frame_style_draw_with_style | ( | MetaFrameStyle * | style, |
| GtkStyleContext * | style_gtk, | ||
| cairo_t * | cr, | ||
| const MetaFrameGeometry * | fgeom, | ||
| int | client_width, | ||
| int | client_height, | ||
| PangoLayout * | title_layout, | ||
| int | text_height, | ||
| MetaButtonState | button_states[META_BUTTON_TYPE_LAST], | ||
| GdkPixbuf * | mini_icon, | ||
| GdkPixbuf * | icon | ||
| ) |
References _MetaFrameGeometry::borders, _MetaFrameGeometry::bottom_titlebar_edge, _MetaDrawInfo::fgeom, get_button(), get_button_rect(), _MetaFrameGeometry::height, _MetaDrawInfo::icon, _MetaFrameBorders::invisible, _MetaFrameGeometry::left_titlebar_edge, map_button_state(), MAX_MIDDLE_BACKGROUNDS, META_BUTTON_TYPE_LAST, META_BUTTON_TYPE_LEFT_MIDDLE_BACKGROUND, META_BUTTON_TYPE_RIGHT_MIDDLE_BACKGROUND, meta_draw_op_list_draw_with_style(), META_FRAME_PIECE_BOTTOM_EDGE, META_FRAME_PIECE_BOTTOM_TITLEBAR_EDGE, META_FRAME_PIECE_ENTIRE_BACKGROUND, META_FRAME_PIECE_LAST, META_FRAME_PIECE_LEFT_EDGE, META_FRAME_PIECE_LEFT_TITLEBAR_EDGE, META_FRAME_PIECE_OVERLAY, META_FRAME_PIECE_RIGHT_EDGE, META_FRAME_PIECE_RIGHT_TITLEBAR_EDGE, META_FRAME_PIECE_TITLE, META_FRAME_PIECE_TITLEBAR, META_FRAME_PIECE_TITLEBAR_MIDDLE, META_FRAME_PIECE_TOP_TITLEBAR_EDGE, meta_rect(), _MetaDrawInfo::mini_icon, NULL, _MetaFrameStyle::parent, _MetaFrameStyle::pieces, _MetaFrameGeometry::right_titlebar_edge, _MetaDrawInfo::title_layout, _MetaDrawInfo::title_layout_height, _MetaDrawInfo::title_layout_width, _MetaFrameGeometry::title_rect, _MetaFrameGeometry::top_titlebar_edge, _MetaFrameBorders::visible, and _MetaFrameGeometry::width.
Referenced by meta_frame_style_draw(), and meta_theme_draw_frame().
| MetaFrameStyle * meta_frame_style_new | ( | MetaFrameStyle * | parent | ) |
Constructor for a MetaFrameStyle.
| parent | The parent style. Data not filled in here will be looked for in the parent style, and in its parent style, and so on. |
References meta_frame_style_ref(), _MetaFrameStyle::parent, _MetaFrameStyle::refcount, and _MetaFrameStyle::window_background_alpha.
Referenced by parse_toplevel_element().
| void meta_frame_style_ref | ( | MetaFrameStyle * | style | ) |
Increases the reference count of a frame style.
If the style is NULL, this is a no-op.
| style | The style. |
References NULL, and _MetaFrameStyle::refcount.
Referenced by meta_frame_style_new(), meta_theme_insert_style(), and parse_style_set_element().
| MetaFrameStyleSet * meta_frame_style_set_new | ( | MetaFrameStyleSet * | parent | ) |
References meta_frame_style_set_ref(), _MetaFrameStyleSet::parent, and _MetaFrameStyleSet::refcount.
Referenced by parse_toplevel_element().
| void meta_frame_style_set_ref | ( | MetaFrameStyleSet * | style_set | ) |
References NULL, and _MetaFrameStyleSet::refcount.
Referenced by meta_frame_style_set_new(), meta_theme_insert_style_set(), and parse_toplevel_element().
| void meta_frame_style_set_unref | ( | MetaFrameStyleSet * | style_set | ) |
References DEBUG_FILL_STRUCT, free_focus_styles(), _MetaFrameStyleSet::maximized_and_shaded_styles, _MetaFrameStyleSet::maximized_styles, META_FRAME_RESIZE_LAST, meta_frame_style_set_unref(), _MetaFrameStyleSet::normal_styles, NULL, _MetaFrameStyleSet::parent, _MetaFrameStyleSet::refcount, _MetaFrameStyleSet::shaded_styles, _MetaFrameStyleSet::tiled_left_and_shaded_styles, _MetaFrameStyleSet::tiled_left_styles, _MetaFrameStyleSet::tiled_right_and_shaded_styles, and _MetaFrameStyleSet::tiled_right_styles.
Referenced by end_element_handler(), meta_frame_style_set_unref(), meta_theme_free(), meta_theme_new(), and parse_info_free().
| gboolean meta_frame_style_set_validate | ( | MetaFrameStyleSet * | style_set, |
| GError ** | error | ||
| ) |
References _, check_state(), FALSE, get_style(), META_FRAME_FOCUS_LAST, meta_frame_focus_to_string(), META_FRAME_RESIZE_LAST, meta_frame_resize_to_string(), META_FRAME_STATE_MAXIMIZED, META_FRAME_STATE_MAXIMIZED_AND_SHADED, META_FRAME_STATE_NORMAL, META_FRAME_STATE_SHADED, meta_frame_state_to_string(), META_THEME_ERROR, META_THEME_ERROR_FAILED, NULL, and TRUE.
Referenced by end_element_handler().
| void meta_frame_style_unref | ( | MetaFrameStyle * | style | ) |
References _MetaFrameStyle::buttons, DEBUG_FILL_STRUCT, free_button_ops(), _MetaFrameStyle::layout, meta_color_spec_free(), meta_draw_op_list_unref(), meta_frame_layout_unref(), META_FRAME_PIECE_LAST, meta_frame_style_unref(), NULL, _MetaFrameStyle::parent, _MetaFrameStyle::pieces, _MetaFrameStyle::refcount, and _MetaFrameStyle::window_background_color.
Referenced by end_element_handler(), free_focus_styles(), meta_frame_style_unref(), meta_theme_new(), and parse_info_free().
| gboolean meta_frame_style_validate | ( | MetaFrameStyle * | style, |
| guint | current_theme_version, | ||
| GError ** | error | ||
| ) |
References _, FALSE, get_button(), _MetaFrameStyle::layout, META_BUTTON_STATE_LAST, meta_button_state_to_string(), META_BUTTON_TYPE_CLOSE, META_BUTTON_TYPE_LAST, meta_button_type_to_string(), meta_theme_earliest_version_with_button(), META_THEME_ERROR, META_THEME_ERROR_FAILED, NULL, and TRUE.
Referenced by end_element_handler().
| MetaFrameType meta_frame_type_from_string | ( | const char * | str | ) |
| const char * meta_frame_type_to_string | ( | MetaFrameType | type | ) |
| void meta_gradient_spec_free | ( | MetaGradientSpec * | spec | ) |
References _MetaGradientSpec::color_specs, DEBUG_FILL_STRUCT, free_color_spec(), and NULL.
Referenced by meta_draw_op_free().
| MetaGradientSpec * meta_gradient_spec_new | ( | MetaGradientType | type | ) |
References _MetaGradientSpec::color_specs, NULL, and _MetaGradientSpec::type.
Referenced by parse_draw_op_element().
| void meta_gradient_spec_render | ( | const MetaGradientSpec * | spec, |
| const MetaAlphaGradientSpec * | alpha_spec, | ||
| cairo_t * | cr, | ||
| GtkStyleContext * | context, | ||
| gint | x, | ||
| gint | y, | ||
| gint | width, | ||
| gint | height | ||
| ) |
References create_cairo_pattern_from_gradient_spec(), and NULL.
Referenced by meta_draw_op_draw_with_env().
| gboolean meta_gradient_spec_validate | ( | MetaGradientSpec * | spec, |
| GError ** | error | ||
| ) |
References _, _MetaGradientSpec::color_specs, FALSE, META_THEME_ERROR, META_THEME_ERROR_FAILED, NULL, and TRUE.
Referenced by end_element_handler().
| MetaGradientType meta_gradient_type_from_string | ( | const char * | str | ) |
References META_GRADIENT_DIAGONAL, META_GRADIENT_HORIZONTAL, META_GRADIENT_LAST, and META_GRADIENT_VERTICAL.
Referenced by parse_draw_op_element().
| const char * meta_gradient_type_to_string | ( | MetaGradientType | type | ) |
References META_GRADIENT_DIAGONAL, META_GRADIENT_HORIZONTAL, META_GRADIENT_LAST, and META_GRADIENT_VERTICAL.
| GtkArrowType meta_gtk_arrow_from_string | ( | const char * | str | ) |
Referenced by parse_draw_op_element().
| const char * meta_gtk_arrow_to_string | ( | GtkArrowType | arrow | ) |
| GtkShadowType meta_gtk_shadow_from_string | ( | const char * | str | ) |
Referenced by parse_draw_op_element().
| const char * meta_gtk_shadow_to_string | ( | GtkShadowType | shadow | ) |
| GtkStateFlags meta_gtk_state_from_string | ( | const char * | str | ) |
Referenced by meta_color_spec_new_from_string(), and parse_draw_op_element().
| void meta_gtk_style_get_dark_color | ( | GtkStyleContext * | style, |
| GtkStateFlags | state, | ||
| GdkRGBA * | color | ||
| ) |
References DARKNESS_MULT, get_background_color(), and gtk_style_shade().
Referenced by meta_select_image_draw(), meta_select_workspace_draw(), meta_set_color_from_style(), and wnck_draw_workspace().
| void meta_gtk_style_get_light_color | ( | GtkStyleContext * | style, |
| GtkStateFlags | state, | ||
| GdkRGBA * | color | ||
| ) |
References get_background_color(), gtk_style_shade(), and LIGHTNESS_MULT.
Referenced by draw_window(), meta_select_image_draw(), meta_select_workspace_draw(), and meta_set_color_from_style().
| PangoFontDescription * meta_gtk_widget_get_font_desc | ( | GtkWidget * | widget, |
| double | scale, | ||
| const PangoFontDescription * | override | ||
| ) |
Referenced by ensure_info(), and meta_frames_ensure_layout().
| MetaImageFillType meta_image_fill_type_from_string | ( | const char * | str | ) |
Returns a fill_type from a string.
The inverse of meta_image_fill_type_to_string().
| str | a string representing a fill_type |
References META_IMAGE_FILL_SCALE, and META_IMAGE_FILL_TILE.
Referenced by parse_draw_op_element().
| const char * meta_image_fill_type_to_string | ( | MetaImageFillType | fill_type | ) |
Returns a string representation of a fill_type.
The inverse of meta_image_fill_type_from_string().
| fill_type | the fill type |
References META_IMAGE_FILL_SCALE, and META_IMAGE_FILL_TILE.
| int meta_pango_font_desc_get_text_height | ( | const PangoFontDescription * | font_desc, |
| PangoContext * | context | ||
| ) |
Returns the height of the letters in a particular font.
| font_desc | the font |
| context | the context of the font |
Referenced by ensure_info(), get_text_height(), meta_frames_ensure_layout(), and meta_ui_theme_get_frame_borders().
| gboolean meta_parse_position_expression | ( | MetaDrawSpec * | spec, |
| const MetaPositionExprEnv * | env, | ||
| int * | x_return, | ||
| int * | y_return, | ||
| GError ** | err | ||
| ) |
References _MetaDrawSpec::constant, FALSE, NULL, pos_eval(), _MetaPositionExprEnv::rect, TRUE, _MetaDrawSpec::value, _MetaRectangle::x, and _MetaRectangle::y.
Referenced by parse_x_position_unchecked(), and parse_y_position_unchecked().
| gboolean meta_parse_size_expression | ( | MetaDrawSpec * | spec, |
| const MetaPositionExprEnv * | env, | ||
| int * | val_return, | ||
| GError ** | err | ||
| ) |
References _MetaDrawSpec::constant, FALSE, NULL, pos_eval(), TRUE, and _MetaDrawSpec::value.
Referenced by parse_size_unchecked().
|
static |
References get_background_color(), META_GTK_COLOR_BASE, META_GTK_COLOR_BG, META_GTK_COLOR_DARK, META_GTK_COLOR_FG, META_GTK_COLOR_LAST, META_GTK_COLOR_LIGHT, META_GTK_COLOR_MID, META_GTK_COLOR_TEXT, META_GTK_COLOR_TEXT_AA, meta_gtk_style_get_dark_color(), meta_gtk_style_get_light_color(), and meta_set_color_from_style().
Referenced by meta_color_spec_render(), and meta_set_color_from_style().
|
static |
References meta_color_spec_render().
Referenced by meta_color_spec_render().
| void meta_theme_calc_geometry | ( | MetaTheme * | theme, |
| MetaFrameType | type, | ||
| int | text_height, | ||
| MetaFrameFlags | flags, | ||
| int | client_width, | ||
| int | client_height, | ||
| const MetaButtonLayout * | button_layout, | ||
| MetaFrameGeometry * | fgeom | ||
| ) |
References button_layout, _MetaFrameStyle::layout, meta_frame_layout_calc_geometry(), META_FRAME_TYPE_LAST, NULL, and theme_get_style().
Referenced by meta_frames_calc_geometry().
| gboolean meta_theme_define_color_constant | ( | MetaTheme * | theme, |
| const char * | name, | ||
| const char * | value, | ||
| GError ** | error | ||
| ) |
References _, _MetaTheme::color_constants, FALSE, first_uppercase(), META_THEME_ERROR, META_THEME_ERROR_FAILED, NULL, and TRUE.
Referenced by parse_toplevel_element().
| gboolean meta_theme_define_float_constant | ( | MetaTheme * | theme, |
| const char * | name, | ||
| double | value, | ||
| GError ** | error | ||
| ) |
References _, FALSE, first_uppercase(), _MetaTheme::float_constants, META_THEME_ERROR, META_THEME_ERROR_FAILED, NULL, and TRUE.
Referenced by parse_toplevel_element().
| gboolean meta_theme_define_int_constant | ( | MetaTheme * | theme, |
| const char * | name, | ||
| int | value, | ||
| GError ** | error | ||
| ) |
References _, FALSE, first_uppercase(), _MetaTheme::integer_constants, META_THEME_ERROR, META_THEME_ERROR_FAILED, NULL, and TRUE.
Referenced by parse_toplevel_element().
| void meta_theme_draw_frame | ( | MetaTheme * | theme, |
| GtkStyleContext * | style_gtk, | ||
| cairo_t * | cr, | ||
| MetaFrameType | type, | ||
| MetaFrameFlags | flags, | ||
| int | client_width, | ||
| int | client_height, | ||
| PangoLayout * | title_layout, | ||
| int | text_height, | ||
| const MetaButtonLayout * | button_layout, | ||
| MetaButtonState | button_states[META_BUTTON_TYPE_LAST], | ||
| GdkPixbuf * | mini_icon, | ||
| GdkPixbuf * | icon | ||
| ) |
References button_layout, _MetaFrameStyle::layout, meta_frame_layout_calc_geometry(), meta_frame_style_draw_with_style(), META_FRAME_TYPE_LAST, NULL, and theme_get_style().
Referenced by meta_frames_paint_to_drawable(), meta_preview_draw(), and run_theme_benchmark().
| void meta_theme_draw_frame_by_name | ( | MetaTheme * | theme, |
| GtkWidget * | widget, | ||
| cairo_t * | cr, | ||
| const gchar * | style_name, | ||
| MetaFrameFlags | flags, | ||
| int | client_width, | ||
| int | client_height, | ||
| PangoLayout * | title_layout, | ||
| int | text_height, | ||
| const MetaButtonLayout * | button_layout, | ||
| MetaButtonState | button_states[META_BUTTON_TYPE_LAST], | ||
| GdkPixbuf * | mini_icon, | ||
| GdkPixbuf * | icon | ||
| ) |
References button_layout, _MetaFrameStyle::layout, meta_frame_layout_calc_geometry(), meta_frame_style_draw(), meta_theme_lookup_style(), and NULL.
| guint meta_theme_earliest_version_with_button | ( | MetaButtonType | type | ) |
Returns the earliest version of the theme format which required support for a particular button.
(For example, "shade" first appeared in v2, and "close" in v1.)
| type | the button type |
References META_BUTTON_TYPE_ABOVE, META_BUTTON_TYPE_APPMENU, META_BUTTON_TYPE_CLOSE, META_BUTTON_TYPE_LEFT_LEFT_BACKGROUND, META_BUTTON_TYPE_LEFT_MIDDLE_BACKGROUND, META_BUTTON_TYPE_LEFT_RIGHT_BACKGROUND, META_BUTTON_TYPE_LEFT_SINGLE_BACKGROUND, META_BUTTON_TYPE_MAXIMIZE, META_BUTTON_TYPE_MENU, META_BUTTON_TYPE_MINIMIZE, META_BUTTON_TYPE_RIGHT_LEFT_BACKGROUND, META_BUTTON_TYPE_RIGHT_MIDDLE_BACKGROUND, META_BUTTON_TYPE_RIGHT_RIGHT_BACKGROUND, META_BUTTON_TYPE_RIGHT_SINGLE_BACKGROUND, META_BUTTON_TYPE_SHADE, META_BUTTON_TYPE_STICK, META_BUTTON_TYPE_UNABOVE, META_BUTTON_TYPE_UNSHADE, META_BUTTON_TYPE_UNSTICK, and meta_warning().
Referenced by meta_frame_style_validate(), and parse_style_element().
| void meta_theme_free | ( | MetaTheme * | theme | ) |
References _MetaTheme::author, _MetaTheme::copyright, _MetaTheme::date, DEBUG_FILL_STRUCT, _MetaTheme::description, _MetaTheme::dirname, _MetaTheme::draw_op_lists_by_name, _MetaTheme::filename, _MetaTheme::images_by_filename, _MetaTheme::integer_constants, _MetaTheme::layouts_by_name, meta_frame_style_set_unref(), META_FRAME_TYPE_LAST, _MetaTheme::name, NULL, _MetaTheme::readable_name, _MetaTheme::style_sets_by_name, _MetaTheme::style_sets_by_type, and _MetaTheme::styles_by_name.
Referenced by end_element_handler(), meta_theme_set_current(), and parse_info_free().
| MetaTheme * meta_theme_get_current | ( | void | ) |
| void meta_theme_get_frame_borders | ( | MetaTheme * | theme, |
| MetaFrameType | type, | ||
| int | text_height, | ||
| MetaFrameFlags | flags, | ||
| MetaFrameBorders * | borders | ||
| ) |
References _MetaFrameStyle::layout, meta_frame_borders_clear(), meta_frame_layout_get_borders(), META_FRAME_TYPE_LAST, NULL, and theme_get_style().
Referenced by ensure_info(), meta_ui_frame_get_borders(), meta_ui_theme_get_frame_borders(), populate_cache(), run_theme_benchmark(), and subtract_client_area().
| MetaFrameStyle * meta_theme_get_frame_style | ( | MetaTheme * | theme, |
| MetaFrameType | type, | ||
| MetaFrameFlags | flags | ||
| ) |
References META_FRAME_TYPE_LAST, NULL, and theme_get_style().
Referenced by meta_frames_ensure_layout(), and meta_preview_get_clip_region().
| double meta_theme_get_title_scale | ( | MetaTheme * | theme, |
| MetaFrameType | type, | ||
| MetaFrameFlags | flags | ||
| ) |
References _MetaFrameStyle::layout, META_FRAME_TYPE_LAST, NULL, theme_get_style(), and _MetaFrameLayout::title_scale.
Referenced by ensure_info(), and meta_frames_ensure_layout().
| void meta_theme_insert_draw_op_list | ( | MetaTheme * | theme, |
| const char * | name, | ||
| MetaDrawOpList * | op_list | ||
| ) |
References _MetaTheme::draw_op_lists_by_name, and meta_draw_op_list_ref().
Referenced by parse_toplevel_element().
| void meta_theme_insert_layout | ( | MetaTheme * | theme, |
| const char * | name, | ||
| MetaFrameLayout * | layout | ||
| ) |
References _MetaTheme::layouts_by_name, and meta_frame_layout_ref().
Referenced by parse_toplevel_element().
| void meta_theme_insert_style | ( | MetaTheme * | theme, |
| const char * | name, | ||
| MetaFrameStyle * | style | ||
| ) |
References meta_frame_style_ref(), and _MetaTheme::styles_by_name.
Referenced by parse_toplevel_element().
| void meta_theme_insert_style_set | ( | MetaTheme * | theme, |
| const char * | name, | ||
| MetaFrameStyleSet * | style_set | ||
| ) |
References meta_frame_style_set_ref(), and _MetaTheme::style_sets_by_name.
Referenced by parse_toplevel_element().
| GdkPixbuf * meta_theme_load_image | ( | MetaTheme * | theme, |
| const char * | filename, | ||
| guint | size_of_theme_icons, | ||
| GError ** | error | ||
| ) |
References _MetaTheme::dirname, _MetaTheme::images_by_filename, META_THEME_ALLOWS, META_THEME_IMAGES_FROM_ICON_THEMES, and NULL.
Referenced by parse_draw_op_element().
| gboolean meta_theme_lookup_color_constant | ( | MetaTheme * | theme, |
| const char * | name, | ||
| char ** | value | ||
| ) |
Looks up a colour constant.
| theme | the theme containing the constant |
| name | the name of the constant |
| value | [out] the string representation of the colour, or NULL if it doesn't exist |
References _MetaTheme::color_constants, FALSE, NULL, and TRUE.
Referenced by parse_color().
| MetaDrawOpList * meta_theme_lookup_draw_op_list | ( | MetaTheme * | theme, |
| const char * | name | ||
| ) |
References _MetaTheme::draw_op_lists_by_name.
Referenced by parse_draw_op_element(), parse_style_element(), and parse_toplevel_element().
| gboolean meta_theme_lookup_float_constant | ( | MetaTheme * | theme, |
| const char * | name, | ||
| double * | value | ||
| ) |
References FALSE, _MetaTheme::float_constants, NULL, and TRUE.
Referenced by meta_theme_replace_constants().
| gboolean meta_theme_lookup_int_constant | ( | MetaTheme * | theme, |
| const char * | name, | ||
| int * | value | ||
| ) |
References FALSE, _MetaTheme::integer_constants, NULL, and TRUE.
Referenced by meta_theme_replace_constants(), and parse_positive_integer().
| MetaFrameLayout * meta_theme_lookup_layout | ( | MetaTheme * | theme, |
| const char * | name | ||
| ) |
References _MetaTheme::layouts_by_name.
Referenced by parse_toplevel_element().
| MetaFrameStyle * meta_theme_lookup_style | ( | MetaTheme * | theme, |
| const char * | name | ||
| ) |
References _MetaTheme::styles_by_name.
Referenced by meta_theme_draw_frame_by_name(), parse_style_set_element(), and parse_toplevel_element().
| MetaFrameStyleSet * meta_theme_lookup_style_set | ( | MetaTheme * | theme, |
| const char * | name | ||
| ) |
References _MetaTheme::style_sets_by_name.
Referenced by parse_toplevel_element().
| MetaTheme * meta_theme_new | ( | void | ) |
References _MetaTheme::draw_op_lists_by_name, _MetaTheme::images_by_filename, _MetaTheme::layouts_by_name, meta_draw_op_list_unref(), meta_frame_layout_unref(), meta_frame_style_set_unref(), meta_frame_style_unref(), _MetaTheme::quark_bottom_height, _MetaTheme::quark_frame_x_center, _MetaTheme::quark_frame_y_center, _MetaTheme::quark_height, _MetaTheme::quark_icon_height, _MetaTheme::quark_icon_width, _MetaTheme::quark_left_width, _MetaTheme::quark_mini_icon_height, _MetaTheme::quark_mini_icon_width, _MetaTheme::quark_object_height, _MetaTheme::quark_object_width, _MetaTheme::quark_right_width, _MetaTheme::quark_title_height, _MetaTheme::quark_title_width, _MetaTheme::quark_top_height, _MetaTheme::quark_width, _MetaTheme::style_sets_by_name, and _MetaTheme::styles_by_name.
Referenced by start_element_handler().
| gboolean meta_theme_replace_constants | ( | MetaTheme * | theme, |
| PosToken * | tokens, | ||
| int | n_tokens, | ||
| GError ** | err | ||
| ) |
References PosToken::d, FALSE, PosToken::i, meta_theme_lookup_float_constant(), meta_theme_lookup_int_constant(), PosToken::name, PosToken::name_quark, POS_TOKEN_DOUBLE, POS_TOKEN_INT, POS_TOKEN_VARIABLE, TRUE, PosToken::type, PosToken::v, and PosToken::val.
Referenced by meta_draw_spec_new().
| void meta_theme_set_current | ( | const char * | name, |
| gboolean | force_reload | ||
| ) |
References _, meta_current_theme, META_DEBUG_THEMES, meta_theme_free(), meta_theme_load(), meta_warning(), _MetaTheme::name, and NULL.
Referenced by meta_ui_set_current_theme().
| gboolean meta_theme_validate | ( | MetaTheme * | theme, |
| GError ** | error | ||
| ) |
References _, _MetaTheme::author, _MetaTheme::copyright, _MetaTheme::date, _MetaTheme::description, FALSE, META_FRAME_TYPE_ATTACHED, META_FRAME_TYPE_LAST, meta_frame_type_to_string(), META_THEME_ERROR, META_THEME_ERROR_FAILED, _MetaTheme::name, NULL, _MetaTheme::readable_name, _MetaTheme::style_sets_by_type, and TRUE.
Referenced by end_element_handler().
|
static |
Parses a string and returns an operation.
| p | a pointer into a string representing an operation; part of an expression somewhere, so not null-terminated |
| len | set to the length of the string found. Set to 0 if none is. |
References POS_OP_ADD, POS_OP_DIVIDE, POS_OP_MAX, POS_OP_MIN, POS_OP_MOD, POS_OP_MULTIPLY, POS_OP_NONE, and POS_OP_SUBTRACT.
Referenced by pos_tokenize().
|
static |
Represents an operation as a string.
| type | an operation, such as addition |
References POS_OP_ADD, POS_OP_DIVIDE, POS_OP_MAX, POS_OP_MIN, POS_OP_MOD, POS_OP_MULTIPLY, POS_OP_NONE, and POS_OP_SUBTRACT.
Referenced by do_operations().
|
static |
References _, meta_parse_size_expression(), meta_warning(), and NULL.
Referenced by meta_draw_op_draw_with_env(), and meta_draw_op_list_draw_with_style().
|
static |
References _, meta_parse_position_expression(), meta_warning(), and NULL.
Referenced by meta_draw_op_draw_with_env(), and meta_draw_op_list_draw_with_style().
|
static |
References _, meta_parse_position_expression(), meta_warning(), and NULL.
Referenced by meta_draw_op_draw_with_env(), and meta_draw_op_list_draw_with_style().
|
static |
Referenced by scale_and_alpha_pixbuf().
|
static |
References _MetaFrameGeometry::above_rect, _MetaFrameGeometry::appmenu_rect, _MetaFrameGeometry::close_rect, _MetaFrameGeometry::max_rect, _MetaFrameGeometry::menu_rect, META_BUTTON_FUNCTION_ABOVE, META_BUTTON_FUNCTION_APPMENU, META_BUTTON_FUNCTION_CLOSE, META_BUTTON_FUNCTION_LAST, META_BUTTON_FUNCTION_MAXIMIZE, META_BUTTON_FUNCTION_MENU, META_BUTTON_FUNCTION_MINIMIZE, META_BUTTON_FUNCTION_SHADE, META_BUTTON_FUNCTION_STICK, META_BUTTON_FUNCTION_UNABOVE, META_BUTTON_FUNCTION_UNSHADE, META_BUTTON_FUNCTION_UNSTICK, META_FRAME_ABOVE, META_FRAME_ALLOWS_APPMENU, META_FRAME_ALLOWS_DELETE, META_FRAME_ALLOWS_MAXIMIZE, META_FRAME_ALLOWS_MENU, META_FRAME_ALLOWS_MINIMIZE, META_FRAME_ALLOWS_SHADE, META_FRAME_SHADED, META_FRAME_STUCK, META_THEME_ALLOWS, META_THEME_SHADE_STICK_ABOVE_BUTTONS, _MetaFrameGeometry::min_rect, NULL, _MetaFrameGeometry::shade_rect, _MetaFrameGeometry::stick_rect, _MetaFrameGeometry::unabove_rect, _MetaFrameGeometry::unshade_rect, and _MetaFrameGeometry::unstick_rect.
Referenced by meta_frame_layout_calc_geometry().
|
static |
Referenced by scale_and_alpha_pixbuf().
|
static |
Referenced by scale_and_alpha_pixbuf().
|
static |
Converts a red/green/blue triplet to a hue/lightness/saturation triplet.
| r | on input, red; on output, hue |
| g | on input, green; on output, lightness |
| b | on input, blue; on output, saturation |
Referenced by gtk_style_shade().
|
static |
References apply_alpha(), META_IMAGE_FILL_TILE, NULL, pixbuf_tile(), replicate_cols(), and replicate_rows().
Referenced by draw_op_as_pixbuf().
|
static |
Referenced by get_surface_from_pixbuf().
|
static |
References FALSE, NULL, and TRUE.
Referenced by meta_frame_layout_calc_geometry().
|
static |
References get_style(), META_FRAME_ALLOWS_HORIZONTAL_RESIZE, META_FRAME_ALLOWS_VERTICAL_RESIZE, META_FRAME_FOCUS_NO, META_FRAME_FOCUS_YES, META_FRAME_HAS_FOCUS, META_FRAME_IS_FLASHING, META_FRAME_MAXIMIZED, META_FRAME_RESIZE_BOTH, META_FRAME_RESIZE_HORIZONTAL, META_FRAME_RESIZE_LAST, META_FRAME_RESIZE_NONE, META_FRAME_RESIZE_VERTICAL, META_FRAME_SHADED, META_FRAME_STATE_LAST, META_FRAME_STATE_MAXIMIZED, META_FRAME_STATE_MAXIMIZED_AND_SHADED, META_FRAME_STATE_NORMAL, META_FRAME_STATE_SHADED, META_FRAME_STATE_TILED_LEFT, META_FRAME_STATE_TILED_LEFT_AND_SHADED, META_FRAME_STATE_TILED_RIGHT, META_FRAME_STATE_TILED_RIGHT_AND_SHADED, META_FRAME_TILED_LEFT, META_FRAME_TILED_RIGHT, META_FRAME_TYPE_ATTACHED, META_FRAME_TYPE_BORDER, META_FRAME_TYPE_NORMAL, NULL, and _MetaTheme::style_sets_by_type.
Referenced by meta_theme_calc_geometry(), meta_theme_draw_frame(), meta_theme_get_frame_borders(), meta_theme_get_frame_style(), and meta_theme_get_title_scale().
|
static |
Referenced by validate_geometry_border().
|
static |
References _, FALSE, META_THEME_ERROR, META_THEME_ERROR_FRAME_GEOMETRY, TRUE, and validate_border().
|
static |
Ensures that the theme supplied a particular dimension.
When a MetaFrameLayout is created, all its integer fields are set to -1 by meta_frame_layout_new(). After an instance of this type should have been initialised, this function checks that a given field is not still at -1. It is never called directly, but rather via the CHECK_GEOMETRY_VALUE and CHECK_GEOMETRY_BORDER macros.
| val | The value to check | |
| name | The name to use in the error message | |
| [out] | error | Set to an error if val was not initialised |
References _, FALSE, META_THEME_ERROR, META_THEME_ERROR_FRAME_GEOMETRY, and TRUE.
The current theme.
(Themes are singleton.)
Referenced by fill_env(), meta_theme_get_current(), and meta_theme_set_current().