Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/gfx/skia/skia/src/utils/mac/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 959 B image not shown  

Quelle  SkCGBase.h   Sprache: C

 

/*
 * Copyright 2020 Google LLC
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#ifndef SkCGBase_DEFINED
#define SkCGBase_DEFINED

#include "include/private/base/SkFeatures.h"

#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)

#include "include/core/SkScalar.h"

#ifdef SK_BUILD_FOR_MAC
#import <ApplicationServices/ApplicationServices.h>
#endif

#ifdef SK_BUILD_FOR_IOS
#include <CoreGraphics/CoreGraphics.h>
#endif

// Skia extensions for types in CGBase.h

static inline CGFloat SkScalarToCGFloat(SkScalar scalar) {
    return CGFLOAT_IS_DOUBLE ? SkScalarToDouble(scalar) : scalar;
}

static inline SkScalar SkScalarFromCGFloat(CGFloat cgFloat) {
    return CGFLOAT_IS_DOUBLE ? SkDoubleToScalar(cgFloat) : cgFloat;
}

static inline float SkFloatFromCGFloat(CGFloat cgFloat) {
    return CGFLOAT_IS_DOUBLE ? static_cast<float>(cgFloat) : cgFloat;
}

#endif
#endif //SkCGBase_DEFINED

Messung V0.5 in Prozent
C=99 H=98 G=98

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.