style.h revision d61d2d7858ded67cc041d49e7c81a10a84c9e164
32N/A#ifndef SEEN_SP_STYLE_H
32N/A#define SEEN_SP_STYLE_H
919N/A#include "sp-marker-loc.h"
919N/A#include "sp-filter.h"
919N/A#include "sp-filter-reference.h"
919N/A#include "uri-references.h"
32N/A#include "sp-paint-server-reference.h"
struct SPIScale24 {
struct SPIInt {
int value;
struct SPIShort {
struct SPIEnum {
struct SPIString {
enum SPCSSUnit {
struct SPILength {
float value;
float computed;
struct SPIPaint {
} value;
SPIPaint();
bool isSameType( SPIPaint const & other ) const {return (isPaintserver() == other.isPaintserver()) && (colorSet == other.colorSet) && (currentcolor == other.currentcolor);}
void clear();
#ifndef WIN32
struct SPIFilter {
/// Fontsize type internal to SPStyle (also used by libnrtype/Layout-TNG-Input.cpp).
struct SPIFontSize {
float value;
float computed;
struct SPIBaselineShift {
float computed;
struct SPITextDecoration {
struct SPILengthOrNormal {
float value;
float computed;
struct SPTextStyle;
double offset;
int n_dash;
double *dash;
struct SPStyle {
int refcount;
bool cloned;
gchar const *getFilterURI() const { return (filter.href) ? filter.href->getURI()->toString() : NULL; }
SPPaintServer *getFillPaintServer() { return (fill.value.href) ? fill.value.href->getObject() : NULL; }
SPPaintServer const *getFillPaintServer() const { return (fill.value.href) ? fill.value.href->getObject() : NULL; }
gchar const *getFillURI() const { return (fill.value.href) ? fill.value.href->getURI()->toString() : NULL; }
SPPaintServer *getStrokePaintServer() { return (stroke.value.href) ? stroke.value.href->getObject() : NULL; }
SPPaintServer const *getStrokePaintServer() const { return (stroke.value.href) ? stroke.value.href->getObject() : NULL; }
gchar const *getStrokeURI() const { return (stroke.value.href) ? stroke.value.href->getURI()->toString() : NULL; }
enum SPCSSFontSize {
enum SPCSSFontStyle {
enum SPCSSFontVariant {
enum SPCSSFontWeight {
enum SPCSSFontStretch {
enum SPCSSTextAlign {
enum SPCSSTextTransform {
enum SPCSSDirection {
enum SPCSSBlockProgression {
enum SPCSSWritingMode {
enum SPTextAnchor {
enum SPCSSBaselineShift {
enum SPVisibility {
enum SPOverflow {
enum SPCSSDisplay {
enum SPEnableBackground {
enum SPColorInterpolation {
struct SPTextStyle {
int refcount;
void sp_style_set_property_url (SPObject *item, gchar const *property, SPObject *linked, bool recursive);