8000 What's the general consensus on API changes? · Issue #276 · libharu/libharu · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
What's the general consensus on API changes? #276
Open
@woollybah

Description

@woollybah

What to do when a particular function isn't fit for purpose - do we change it, or add a new one and leave the original in place?

For example, HPDF_Shading_New() is basically HPDF_FreeFormTriangleMeshShading_New, given the min/max arguments for the "decodeArray".

A "generic" version would simply need HPDF_Shading_New (HPDF_Doc, HPDF_ShadingType, HPDF_ColorSpace), with other "Shading" functions providing the necessary data for different types.

I'm currently implementing Axial and Radial types, neither of which require a decode array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No 3021 projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0