goffice-utils

goffice-utils

Synopsis

typedef             GOColor;
                    GOEditor;
                    GOFont;
                    GOFontMetrics;
                    GOPattern;
                    GOMarker;
                    GOFormat;
                    GODateConventions;
                    GOImage;
                    GOPath;
                    GOString;
                    GOStyle;
                    GOStyledObject;
                    GOMemChunk;
const char *        (*GOTranslateFunc)                  (char const *path,
                                                         gpointer func_data);
enum                GOLineDashType;
enum                GOLineInterpolation;
enum                GOAnchorType;

Object Hierarchy

  GObject
   +----GOMarker
  GObject
   +----GOImage
  GObject
   +----GOStyle
         +----GogStyle
  GInterface
   +----GOStyledObject

Implemented Interfaces

GOStyle implements GOPersist.

Known Implementations

GOStyledObject is implemented by GocArc, GocCircle, GocEllipse, GocLine, GocPath, GocPolygon, GocPolyline, GocRectangle, GocStyledItem, GocText, GogAxis, GogAxisBase, GogAxisLine, GogChart, GogGraph, GogGrid, GogGridLine, GogLabel, GogLegend, GogOutlinedObject, GogRegCurve, GogRegEqn, GogSeries, GogSeriesElement, GogSeriesLabels, GogSeriesLines, GogSmoothedCurve, GogStyledObject, GogText and GogTrendLine.

Properties

  "height"                   guint                 : Read / Write
  "width"                    guint                 : Read / Write

Description

Details

GOColor

typedef guint32					GOColor;


GOEditor

typedef struct {
	unsigned *store_page;		/* pointer to a place for storing last edited page */
	GSList		*pages;			/* GOEditorPage */
	GData		*registered_widgets;
	unsigned     ref_count;
} GOEditor;

unsigned *store_page;

pointer to a place for storing last edited page.

GSList *pages;

list of GOEditorPage.

GData *registered_widgets;

registered wigets.

GOFont

typedef struct {
	int ref_count;
	int font_index; /* each renderer keeps an array for lookup */

	PangoFontDescription *desc;

	/* Attributes.  Currently unused.  */
	int underline;
	gboolean strikethrough;
	GOColor color;
} GOFont;


GOFontMetrics

typedef struct {
	int digit_widths[10];
	int min_digit_width;
	int max_digit_width;
	int avg_digit_width;
	int hyphen_width, minus_width, plus_width;
	int E_width;
	int hash_width;
	int space_width;

	/*
	 * A space that is narrower than a regular space, or 0 if no such
	 * character was found.
	 */
	gunichar thin_space;
	int thin_space_width;
} GOFontMetrics;


GOPattern

typedef struct {
	GOColor	 fore, back;
	unsigned pattern;
} GOPattern;

GOPattern::pattern is the used GOPatternType.

GOColor fore;

foreground color.

GOColor back;

background color.

GOMarker

typedef struct _GOMarker GOMarker;


GOFormat

typedef struct _GOFormat GOFormat;


GODateConventions

typedef struct {
	gboolean use_1904; /* Use MacOffice 1904 based date convention,
				 * Rather than the Win32 style 1900 */
} GODateConventions;

gboolean use_1904;

use MacOffice 1904 based date convention, rather than the Win32 style 1900.

GOImage

typedef struct _GOImage GOImage;


GOPath

typedef struct _GOPath GOPath;


GOString

typedef struct {
	char const *str; /* utf-8 */
	/* <private data> */
} GOString;

GOString is a structure containing a string.

char const  *str;

the embeded UTF-8 string

GOStyle

typedef struct _GOStyle GOStyle;


GOStyledObject

typedef struct _GOStyledObject GOStyledObject;


GOMemChunk

typedef struct _GOMemChunk GOMemChunk;


GOTranslateFunc ()

const char *        (*GOTranslateFunc)                  (char const *path,
                                                         gpointer func_data);

path :

func_data :

Returns :


enum GOLineDashType

typedef enum {
	GO_LINE_NONE,
	GO_LINE_SOLID,
	GO_LINE_S_DOT,
	GO_LINE_S_DASH_DOT,
	GO_LINE_S_DASH_DOT_DOT,
	GO_LINE_DASH_DOT_DOT_DOT,
	GO_LINE_DOT,
	GO_LINE_S_DASH,
	GO_LINE_DASH,
	GO_LINE_LONG_DASH,
	GO_LINE_DASH_DOT,
	GO_LINE_DASH_DOT_DOT,
	GO_LINE_MAX
} GOLineDashType;

GO_LINE_NONE

No line displayed.

GO_LINE_SOLID

Solid line.

GO_LINE_S_DOT

GO_LINE_S_DASH_DOT

GO_LINE_S_DASH_DOT_DOT

GO_LINE_DASH_DOT_DOT_DOT

GO_LINE_DOT

GO_LINE_S_DASH

GO_LINE_DASH

GO_LINE_LONG_DASH

GO_LINE_DASH_DOT

GO_LINE_DASH_DOT_DOT

GO_LINE_MAX


enum GOLineInterpolation

typedef enum {
	GO_LINE_INTERPOLATION_LINEAR,
	GO_LINE_INTERPOLATION_SPLINE,
	GO_LINE_INTERPOLATION_CLOSED_SPLINE,
	GO_LINE_INTERPOLATION_CUBIC_SPLINE,
	GO_LINE_INTERPOLATION_PARABOLIC_CUBIC_SPLINE,
	GO_LINE_INTERPOLATION_CUBIC_CUBIC_SPLINE,
	GO_LINE_INTERPOLATION_CLAMPED_CUBIC_SPLINE,
	GO_LINE_INTERPOLATION_STEP_START,
	GO_LINE_INTERPOLATION_STEP_END,
	GO_LINE_INTERPOLATION_STEP_CENTER_X,
	GO_LINE_INTERPOLATION_STEP_CENTER_Y,
	GO_LINE_INTERPOLATION_ODF_SPLINE,
	GO_LINE_INTERPOLATION_MAX
} GOLineInterpolation;

GO_LINE_INTERPOLATION_LINEAR

Linear interpolation.

GO_LINE_INTERPOLATION_SPLINE

Bezier cubic spline interpolation.

GO_LINE_INTERPOLATION_CLOSED_SPLINE

Closed Bezier cubic spline interpolation.

GO_LINE_INTERPOLATION_CUBIC_SPLINE

Cubic spline interpolation with natural limits.

GO_LINE_INTERPOLATION_PARABOLIC_CUBIC_SPLINE

Cubic spline interpolation with parabolic limits.

GO_LINE_INTERPOLATION_CUBIC_CUBIC_SPLINE

Cubic spline interpolation with cubic limits.

GO_LINE_INTERPOLATION_CLAMPED_CUBIC_SPLINE

Cubic spline interpolation with fixed derivatives at both ends.

GO_LINE_INTERPOLATION_STEP_START

Steps using first y value.

GO_LINE_INTERPOLATION_STEP_END

Steps using last y value.

GO_LINE_INTERPOLATION_STEP_CENTER_X

Steps centered around each point.

GO_LINE_INTERPOLATION_STEP_CENTER_Y

Steps using mean y value.

GO_LINE_INTERPOLATION_ODF_SPLINE

ODF compatible Bezier cubic spline interpolation, cyclic if first and last points are identical.

GO_LINE_INTERPOLATION_MAX

First invalid value.

enum GOAnchorType

typedef enum
{
  GO_ANCHOR_CENTER,
  GO_ANCHOR_NORTH,
  GO_ANCHOR_NORTH_WEST,
  GO_ANCHOR_NORTH_EAST,
  GO_ANCHOR_SOUTH,
  GO_ANCHOR_SOUTH_WEST,
  GO_ANCHOR_SOUTH_EAST,
  GO_ANCHOR_WEST,
  GO_ANCHOR_EAST,
  GO_ANCHOR_N		= GO_ANCHOR_NORTH,
  GO_ANCHOR_NW		= GO_ANCHOR_NORTH_WEST,
  GO_ANCHOR_NE		= GO_ANCHOR_NORTH_EAST,
  GO_ANCHOR_S		= GO_ANCHOR_SOUTH,
  GO_ANCHOR_SW		= GO_ANCHOR_SOUTH_WEST,
  GO_ANCHOR_SE		= GO_ANCHOR_SOUTH_EAST,
  GO_ANCHOR_W		= GO_ANCHOR_WEST,
  GO_ANCHOR_E		= GO_ANCHOR_EAST
} GOAnchorType;

GO_ANCHOR_CENTER

anchor center.

GO_ANCHOR_NORTH

anchor top.

GO_ANCHOR_NORTH_WEST

anchor top left.

GO_ANCHOR_NORTH_EAST

anchor top left.

GO_ANCHOR_SOUTH

anchor bottom.

GO_ANCHOR_SOUTH_WEST

anchor bottom left.

GO_ANCHOR_SOUTH_EAST

anchor bottom left.

GO_ANCHOR_WEST

anchor left.

GO_ANCHOR_EAST

anchor right.

GO_ANCHOR_N

anchor top.

GO_ANCHOR_NW

anchor top left.

GO_ANCHOR_NE

anchor top left.

GO_ANCHOR_S

anchor bottom.

GO_ANCHOR_SW

anchor bottom left.

GO_ANCHOR_SE

anchor bottom left.

GO_ANCHOR_W

anchor left.

GO_ANCHOR_E

anchor right.

Property Details

The "height" property

  "height"                   guint                 : Read / Write

Image height in pixels.

Allowed values: <= 65535

Default value: 0


The "width" property

  "width"                    guint                 : Read / Write

Image width in pixels.

Allowed values: <= 65535

Default value: 0