Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/intl/icu/source/data/zone/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 196 B image not shown  

Bilddatei

SkDWriteGeometrySink.h


products/Sources/formale Sprachen/C/Firefox/gfx/skia/skia/src/utils/win/SkDWriteGeometrySink.h

/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkDWriteToPath_DEFINED #define SkDWriteToPath_DEFINED #include "include/core/SkPathBuilder.h" #include "src/utils/win/SkObjBase.h" #include #include class SkDWriteGeometrySink : public IDWriteGeometrySink { private: LONG fRefCount; SkPathBuilder* fBuilder; bool fStarted; D2D1_POINT_2F fCurrent; void goingTo(const D2D1_POINT_2F pt) { if (!fStarted) { fStarted = true; fBuilder->moveTo(fCurrent.x, fCurrent.y); } fCurrent = pt; } bool currentIsNot(const D2D1_POINT_2F pt) { return fCurrent.x != pt.x || fCurrent.y != pt.y; } protected: explicit SkDWriteGeometrySink(SkPathBuilder*); virtual ~SkDWriteGeometrySink(); public: SK_STDMETHODIMP QueryInterface(REFIID iid, void **object) override; SK_STDMETHODIMP_(ULONG) AddRef() override; SK_STDMETHODIMP_(ULONG) Release() override; SK_STDMETHODIMP_(void) SetFillMode(D2D1_FILL_MODE fillMode) override; SK_STDMETHODIMP_(void) SetSegmentFlags(D2D1_PATH_SEGMENT vertexFlags) override; SK_STDMETHODIMP_(void) BeginFigure(D2D1_POINT_2F startPoint, D2D1_FIGURE_BEGIN figureBegin) override; SK_STDMETHODIMP_(void) AddLines(const D2D1_POINT_2F *points, UINT pointsCount) override; SK_STDMETHODIMP_(void) AddBeziers(const D2D1_BEZIER_SEGMENT *beziers, UINT beziersCount) override; SK_STDMETHODIMP_(void) EndFigure(D2D1_FIGURE_END figureEnd) override; SK_STDMETHODIMP Close() override; static HRESULT Create(SkPathBuilder*, IDWriteGeometrySink** geometryToPath); }; #endif