Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  gskgpuclipprivate.h

  Sprache: C
 

#pragma once

#include "gskgputypesprivate.h"

#include <gdk/gdk.h>
#include <graphene.h>
#include <gsk/gskroundedrect.h>

#include "gdk/gdkdihedralprivate.h"

G_BEGIN_DECLS

typedef enum {
  /* The whole area is clipped, no drawing is necessary.
   * This can't be handled by return values because for return
   * values we return if clips could even be computed.
   */

  GSK_GPU_CLIP_ALL_CLIPPED,
  /* No clipping is necessary, but the clip rect is set
   * to the actual bounds of the underlying framebuffer
   * or handled via the scissor.
   */

  GSK_GPU_CLIP_NONE,
  /* The clip exists outside the rect, so clipping must
   * happen if rendering can't be proven to stay in the rect */

  GSK_GPU_CLIP_CONTAINED,
  /* The clip is a rectangular area */
  GSK_GPU_CLIP_RECT,
  /* The clip is a rounded rectangle */
  GSK_GPU_CLIP_ROUNDED
} GskGpuClipComplexity;

struct _GskGpuClip
{
  GskGpuClipComplexity type;
  GskRoundedRect       rect;
};

void                    gsk_gpu_clip_init_all_clipped                   (GskGpuClip             *clip);
void                    gsk_gpu_clip_init_empty                         (GskGpuClip             *clip,
                                                                         const graphene_point_t *offset,
                                                                         const graphene_rect_t  *rect);
void                    gsk_gpu_clip_init_contained                     (GskGpuClip          *clip,
                                                                         const graphene_rect_t  *rect);
void                    gsk_gpu_clip_init_copy                          (GskGpuClip          *self,
                                                                         const GskGpuClip    *src);
void                    gsk_gpu_clip_init_rect                          (GskGpuClip          *clip,
                                                                         const graphene_rect_t  *rect);

gboolean                gsk_gpu_clip_is_all_clipped                     (GskGpuClip             *clip);

gboolean                gsk_gpu_clip_intersect_rect                     (GskGpuClip             *dest,
                                                                         const GskGpuClip       *src,
                                                                         const graphene_point_t *offset,
                                                                         const graphene_rect_t  *rect) G_GNUC_WARN_UNUSED_RESULT;
gboolean                gsk_gpu_clip_intersect_rounded_rect             (GskGpuClip             *dest,
                                                                         const GskGpuClip       *src,
                                                                         const graphene_point_t *offset,
                                                                         const GskRoundedRect   *rounded) G_GNUC_WARN_UNUSED_RESULT;
void                    gsk_gpu_clip_scale                              (GskGpuClip             *dest,
                                                                         const GskGpuClip       *src,
                                                                         GdkDihedral             dihedral,
                                                                         float                   scale_x,
                                                                         float                   scale_y);
gboolean                gsk_gpu_clip_transform                          (GskGpuClip             *dest,
                                                                         const GskGpuClip       *src,
                                                                         GskTransform           *transform,
                                                                         const graphene_rect_t  *viewport) G_GNUC_WARN_UNUSED_RESULT;

gboolean                gsk_gpu_clip_contains_rect                      (const GskGpuClip       *self,
                                                                         const graphene_point_t *offset,
                                                                         const graphene_rect_t  *rect) G_GNUC_WARN_UNUSED_RESULT;
gboolean                gsk_gpu_clip_may_intersect_rect                 (const GskGpuClip       *self,
                                                                         const graphene_point_t *offset,
                                                                         const graphene_rect_t  *rect) G_GNUC_WARN_UNUSED_RESULT;
GskGpuShaderClip        gsk_gpu_clip_get_shader_clip                    (const GskGpuClip       *self,
                                                                         const graphene_point_t *offset,
                                                                         const graphene_rect_t  *rect);
gboolean                gsk_gpu_clip_get_largest_cover                  (const GskGpuClip       *self,
                                                                         const graphene_point_t *offset,
                                                                         const graphene_rect_t  *rect,
                                                                         graphene_rect_t        *result);

G_END_DECLS


Messung V0.5 in Prozent
C=98 H=95 G=96

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-07-02) ¤

*© 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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik