Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Gnome/gsk/   (Gnome Linux Desktop Version 4.23.2©)  Datei vom 30.5.2026 mit Größe 1 kB image not shown  

Quelle  gskrectsnap.c

  Sprache: C
 

/* GSK - The GTK Scene Kit
 * Copyright © 2025  Benjamin Otte
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 */


#include "config.h"

#include "gskrectsnapprivate.h"

/**
 * GskRectSnap:
 *
 * The ways a rectangle can be snapped to a grid.
 *
 * Since: 4.24
 */

typedef unsigned GskRectSnap;

/**
 * gsk_rect_snap_new:
 * @top: How to snap the top edge
 * @right: How to snap the right edge
 * @bottom: How to snap the bottom edge
 * @left: How to snap the left edge
 *
 * Creates a new way to snap rectangles for the 4 given sides.
 *
 * Returns: a description for how to snap rectangles
 *
 * Since: 4.24
 **/

GskRectSnap
(gsk_rect_snap_new) (GskSnapDirection top,
                     GskSnapDirection right,
                     GskSnapDirection bottom,
                     GskSnapDirection left)
{
  return gsk_rect_snap_new (top, right, bottom, left);
}

/**
 * gsk_rect_snap_get_direction:
 * @snap: a rectangle snap
 * @side: the border to query
 *
 * Queries the way a given border is snapped.
 *
 * Returns: the direction the given border is snapped
 *
 * Since: 4.24
 **/

GskSnapDirection
(gsk_rect_snap_get_direction) (GskRectSnap snap,
                               GskSide     side)

  return gsk_rect_snap_get_direction (snap, side);
}


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

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-07-03) ¤

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