Built-in dresses

Built-in dresses — A list of predefined dresses implemented by the ADG canvas

Synopsis

#define             ADG_DRESS_COLOR
#define             ADG_DRESS_COLOR_ANNOTATION
#define             ADG_DRESS_COLOR_BACKGROUND
#define             ADG_DRESS_COLOR_DIMENSION
#define             ADG_DRESS_COLOR_FILL
#define             ADG_DRESS_COLOR_STROKE
#define             ADG_DRESS_DIMENSION
#define             ADG_DRESS_FILL
#define             ADG_DRESS_FILL_HATCH
#define             ADG_DRESS_FONT
#define             ADG_DRESS_FONT_ANNOTATION
#define             ADG_DRESS_FONT_QUOTE_ANNOTATION
#define             ADG_DRESS_FONT_QUOTE_TEXT
#define             ADG_DRESS_FONT_TEXT
#define             ADG_DRESS_LINE
#define             ADG_DRESS_LINE_DIMENSION
#define             ADG_DRESS_LINE_FILL
#define             ADG_DRESS_LINE_FRAME
#define             ADG_DRESS_LINE_GRID
#define             ADG_DRESS_LINE_STROKE
#define             ADG_DRESS_TABLE
#define             ADG_DRESS_UNDEFINED

Description

This is a collection of built-it dresses used internally by the ADG library to provide some useful defaults.

Details

ADG_DRESS_COLOR

#define ADG_DRESS_COLOR                 (_adg_dress_color())

The default builtin AdgDress color. This is a pass-through dress, that is it does not change the cairo context when it is applied.

This dress will be resolved to an AdgColorStyle instance.

Since 1.0


ADG_DRESS_COLOR_ANNOTATION

#define ADG_DRESS_COLOR_ANNOTATION      (_adg_dress_color_annotation())

The builtin AdgDress color used for rendering helper entities such as AdgToyText, AdgTable and AdgTitleBlock. The fallback style is a full opaque greenish variant.

This dress will be resolved to an AdgColorStyle instance.

Since 1.0


ADG_DRESS_COLOR_BACKGROUND

#define ADG_DRESS_COLOR_BACKGROUND      (_adg_dress_color_background())

The default builtin AdgDress color to be used as the AdgCanvas background. The fallback style is a full opaque white.

This dress will be resolved to an AdgColorStyle instance.

Since 1.0


ADG_DRESS_COLOR_DIMENSION

#define ADG_DRESS_COLOR_DIMENSION       (_adg_dress_color_dimension())

The builtin AdgDress color used by default in AdgDimStyle. The fallback style is a somewhat full opaque blue.

This dress will be resolved to an AdgColorStyle instance.

Since 1.0


ADG_DRESS_COLOR_FILL

#define ADG_DRESS_COLOR_FILL            (_adg_dress_color_fill())

The builtin AdgDress color used by default by AdgFillStyle based styles. The fallback style is a full opaque 0.25 gray.

This dress will be resolved to an AdgColorStyle instance.

Since 1.0


ADG_DRESS_COLOR_STROKE

#define ADG_DRESS_COLOR_STROKE          (_adg_dress_color_stroke())

The default builtin AdgDress color for AdgStroke entities. The fallback style is a full opaque black.

This dress will be resolved to an AdgColorStyle instance.

Since 1.0


ADG_DRESS_DIMENSION

#define ADG_DRESS_DIMENSION             (_adg_dress_dimension())

The default builtin AdgDress for dimensions. The fallback style is the default AdgDimStyle implementation with AdgArrow markers (as returned by adg_arrow_new() on both sides.

This dress will be resolved to an AdgDimStyle instance.

Since 1.0


ADG_DRESS_FILL

#define ADG_DRESS_FILL                  (_adg_dress_fill())

The default builtin AdgDress for filling. This is a pass-through dress, that is it does not change the cairo context when it is applied.

This dress will be resolved to an AdgFillStyle derived instance.

Since 1.0


ADG_DRESS_FILL_HATCH

#define ADG_DRESS_FILL_HATCH            (_adg_dress_fill_hatch())

The builtin dress used by default by AdgHatch instances. The fallback style is the default implementation of the AdgRuledFill instance.

This dress will be resolved to an AdgFillStyle derived instance.

Since 1.0


ADG_DRESS_FONT

#define ADG_DRESS_FONT                  (_adg_dress_font())

The default builtin AdgDress font. The fallback style is a Sans 14 font with a pass-through color dress.

This dress will be resolved to an AdgFontStyle instance.

Since 1.0


ADG_DRESS_FONT_ANNOTATION

#define ADG_DRESS_FONT_ANNOTATION       (_adg_dress_font_annotation())

The builtin AdgDress font used for rendering auxiliary text, such as the titles on AdgTable entities. The fallback style is a Sans 8 with an ADG_DRESS_COLOR_ANNOTATION color dress.

This dress will be resolved to an AdgFontStyle instance.

Since 1.0


ADG_DRESS_FONT_QUOTE_ANNOTATION

#define ADG_DRESS_FONT_QUOTE_ANNOTATION (_adg_dress_font_quote_annotation())

The builtin AdgDress font used for rendering auxiliary text on dimension entities, such as the min and max limits of a quote. The fallback style is a Sans 8 with a pass-through color dress.

This dress will be resolved to an AdgFontStyle instance.

Since 1.0


ADG_DRESS_FONT_QUOTE_TEXT

#define ADG_DRESS_FONT_QUOTE_TEXT       (_adg_dress_font_quote_text())

The builtin AdgDress font used for rendering regular text on dimension entities, such as the nominal value and the notes of a quote. The fallback style is Sans 12 bold with a pass-through color dress.

This dress will be resolved to an AdgFontStyle instance.

Since 1.0


ADG_DRESS_FONT_TEXT

#define ADG_DRESS_FONT_TEXT             (_adg_dress_font_text())

The builtin AdgDress font used by default for rendering common text such as AdgToyText or the value of AdgTable entities. The fallback style is Sans 12 bold with an ADG_DRESS_COLOR_ANNOTATION color dress.

This dress will be resolved to an AdgFontStyle instance.

Since 1.0


ADG_DRESS_LINE

#define ADG_DRESS_LINE                  (_adg_dress_line())

The default builtin AdgDress line. This is a pass-through dress, that is it does not change the cairo context when it is applied.

This dress will be resolved to an AdgLineStyle instance.

Since 1.0


ADG_DRESS_LINE_DIMENSION

#define ADG_DRESS_LINE_DIMENSION        (_adg_dress_line_dimension())

The builtin AdgDress line type used by default for rendering base and extension lines of dimensions. The fallback style is a line with a thickness of 0.5 and a pass-through color dress.

This dress will be resolved to an AdgLineStyle instance.

Since 1.0


ADG_DRESS_LINE_FILL

#define ADG_DRESS_LINE_FILL             (_adg_dress_line_fill())

The builtin AdgDress line type used by AdgFillStyle based styles. The fallback style is a line with ADG_DRESS_COLOR_FILL color and a thickness of 0.5.

This dress will be resolved to an AdgLineStyle instance.

Since 1.0


ADG_DRESS_LINE_FRAME

#define ADG_DRESS_LINE_FRAME            (_adg_dress_line_frame())

The builtin AdgDress line type used for rendering the frame of AdgTable entities, that is the frame around the whole table. The fallback style is a line with a thickness of 2 and a ADG_DRESS_COLOR_ANNOTATION color dress, rendered without antialiasing.

This dress will be resolved to an AdgLineStyle instance.

Since 1.0


ADG_DRESS_LINE_GRID

#define ADG_DRESS_LINE_GRID             (_adg_dress_line_grid())

The builtin AdgDress line type used for rendering the grid of AdgTable entities, that is the frame of the cells. The fallback style is a line with a thickness of 1 and a pass-through color dress, rendered without antialiasing.

This dress will be resolved to an AdgLineStyle instance.

Since 1.0


ADG_DRESS_LINE_STROKE

#define ADG_DRESS_LINE_STROKE           (_adg_dress_line_stroke())

The builtin AdgDress line type to be used by default for rendering AdgStroke entities. The fallback style is a line with ADG_DRESS_COLOR_STROKE color and a thickness of 1.5.

This dress will be resolved to an AdgLineStyle instance.

Since 1.0


ADG_DRESS_TABLE

#define ADG_DRESS_TABLE                 (_adg_dress_table())

The default builtin AdgDress for tables. The fallback style is the default implementation of the AdgTableStyle instance.

This dress will be resolved to an AdgTableStyle derived instance.

Since 1.0


ADG_DRESS_UNDEFINED

#define ADG_DRESS_UNDEFINED             0

A value reperesenting an undefined AdgDress.

Since 1.0