Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Classes | Typedefs | Enumerations | Functions
art_render_misc.h File Reference
#include <libart_lgpl/art_filterlevel.h>
#include <libart_lgpl/art_render.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _ArtGradientLinear
struct  _ArtGradientRadial
struct  _ArtGradientConical
struct  _ArtGradientStop

Typedefs

typedef struct _ArtGradientLinear
typedef struct _ArtGradientRadial
typedef struct _ArtGradientConical
typedef struct _ArtGradientStop

Enumerations

enum  ArtGradientSpread { ART_GRADIENT_PAD, ART_GRADIENT_REFLECT, ART_GRADIENT_REPEAT }

Functions

void art_karbon_render_gradient_linear (ArtRender *render, const ArtGradientLinear *gradient, ArtFilterLevel level)
 art_karbon_render_gradient_linear: Add a linear gradient image source.
void art_karbon_render_gradient_radial (ArtRender *render, const ArtGradientRadial *gradient, ArtFilterLevel level)
 art_karbon_render_gradient_radial: Add a radial gradient image source.
void art_karbon_render_gradient_conical (ArtRender *render, const ArtGradientConical *gradient, ArtFilterLevel level)
 art_render_gradient_radial: Add a radial gradient image source.

Class Documentation

struct _ArtGradientLinear

Definition at line 64 of file art_render_misc.h.

Class Members
double a
double b
double c
int n_stops
ArtGradientSpread spread
ArtGradientStop * stops
struct _ArtGradientRadial

Definition at line 73 of file art_render_misc.h.

Class Members
double affine
double fx
double fy
int n_stops
ArtGradientSpread spread
ArtGradientStop * stops
struct _ArtGradientConical

Definition at line 81 of file art_render_misc.h.

Class Members
art_u8 * buf
double cx
double cy
int n_stops
double r
ArtGradientSpread spread
ArtGradientStop * stops
struct _ArtGradientStop

Definition at line 91 of file art_render_misc.h.

Class Members
ArtPixMaxDepth color
double offset

Typedef Documentation

typedef struct _ArtGradientConical

Definition at line 55 of file art_render_misc.h.

typedef struct _ArtGradientLinear

Definition at line 53 of file art_render_misc.h.

typedef struct _ArtGradientRadial

Definition at line 54 of file art_render_misc.h.

typedef struct _ArtGradientStop

Definition at line 56 of file art_render_misc.h.


Enumeration Type Documentation

Enumerator:
ART_GRADIENT_PAD 
ART_GRADIENT_REFLECT 
ART_GRADIENT_REPEAT 

Definition at line 58 of file art_render_misc.h.


Function Documentation

void art_karbon_render_gradient_conical ( ArtRender *  render,
const ArtGradientConical *  gradient,
ArtFilterLevel  level 
)

art_render_gradient_radial: Add a radial gradient image source.

: The render object. : The radial gradient.

Adds the radial gradient as the image source for rendering in the render object .

Definition at line 390 of file art_render_misc.c.

{
  ArtImageSourceGradCon *image_source = art_new (ArtImageSourceGradCon, 1);

  image_source->super.super.render = NULL;
  image_source->super.super.done = art_render_gradient_conical_done;
  image_source->super.negotiate = art_render_gradient_conical_negotiate;

  image_source->gradient = gradient;

  art_render_add_image_source (render, &image_source->super);
}

Here is the call graph for this function:

void art_karbon_render_gradient_linear ( ArtRender *  render,
const ArtGradientLinear *  gradient,
ArtFilterLevel  level 
)

art_karbon_render_gradient_linear: Add a linear gradient image source.

: The render object. : The linear gradient.

Adds the linear gradient as the image source for rendering in the render object .

Definition at line 190 of file art_render_misc.c.

{
  ArtImageSourceGradLin *image_source = art_new (ArtImageSourceGradLin, 1);

  image_source->super.super.render = NULL;
  image_source->super.super.done = art_karbon_render_gradient_linear_done;
  image_source->super.negotiate = art_karbon_render_gradient_linear_negotiate;

  image_source->gradient = gradient;

  art_render_add_image_source (render, &image_source->super);
}

Here is the call graph for this function:

void art_karbon_render_gradient_radial ( ArtRender *  render,
const ArtGradientRadial *  gradient,
ArtFilterLevel  level 
)

art_karbon_render_gradient_radial: Add a radial gradient image source.

: The render object. : The radial gradient.

Adds the radial gradient as the image source for rendering in the render object .

Definition at line 300 of file art_render_misc.c.

{
  ArtImageSourceGradRad *image_source = art_new (ArtImageSourceGradRad, 1);
  double fx = gradient->fx;
  double fy = gradient->fy;

  image_source->super.super.render = NULL;
  image_source->super.super.done = art_karbon_render_gradient_radial_done;
  image_source->super.negotiate = art_karbon_render_gradient_radial_negotiate;

  image_source->gradient = gradient;
  /* todo: sanitycheck fx, fy? */
  image_source->a = 1 - fx * fx - fy * fy;

  art_render_add_image_source (render, &image_source->super);
}

Here is the call graph for this function: