Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  gdkmacossurface-private.h

  Sprache: C
 

/*
 * Copyright © 2020 Red Hat, Inc.
 *
 * 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.1 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/>.
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */


#pragma once

#include <AppKit/AppKit.h>
#include <cairo.h>

#include "gdksurfaceprivate.h"

#include "gdkmacosbuffer-private.h"
#include "gdkmacosdisplay.h"
#include "gdkmacossurface.h"

#import "GdkMacosWindow.h"

G_BEGIN_DECLS

#define GDK_MACOS_SURFACE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_MACOS_SURFACE, GdkMacosSurfaceClass))
#define GDK_IS_MACOS_SURFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_MACOS_SURFACE))
#define GDK_MACOS_SURFACE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_MACOS_SURFACE, GdkMacosSurfaceClass))

struct _GdkMacosSurface
{
  GdkSurface parent_instance;

  GList main;
  GList sorted;
  GList frame;

  GdkMacosWindow *window;
  GdkMacosBuffer *buffer;
  GdkMacosBuffer *front;
  GPtrArray *monitors;
  GdkMonitor *best_monitor;
  char *title;

  int root_x;
  int root_y;

  struct {
    int root_x;
    int root_y;
    int width;
    int height;
  } next_layout;

  cairo_rectangle_int_t next_frame;

  gint64 pending_frame_counter;

  guint did_initial_present : 1;
  guint geometry_dirty : 1;
  guint next_frame_set : 1;
  guint show_on_next_swap : 1;
  guint in_change_monitor : 1;
  guint awaiting_frame : 1;
  guint popup_grab : 1;
};

struct _GdkMacosSurfaceClass
{
  GdkSurfaceClass parent_class;
};

NSWindow          *_gdk_macos_surface_get_native              (GdkMacosSurface      *self);
void               _gdk_macos_surface_set_native              (GdkMacosSurface      *self,
                                                               GdkMacosWindow       *window);
CGDirectDisplayID  _gdk_macos_surface_get_screen_id           (GdkMacosSurface      *self);
const char        *_gdk_macos_surface_get_title               (GdkMacosSurface      *self);
void               _gdk_macos_surface_set_title               (GdkMacosSurface      *self,
                                                               const char           *title);
NSView            *_gdk_macos_surface_get_view                (GdkMacosSurface      *self);
void               _gdk_macos_surface_set_geometry_hints      (GdkMacosSurface      *self,
                                                               const GdkGeometry    *geometry,
                                                               GdkSurfaceHints       geom_mask);
void               _gdk_macos_surface_resize                  (GdkMacosSurface      *self,
                                                               int                   width,
                                                               int                   height);
void               _gdk_macos_surface_update_fullscreen_state (GdkMacosSurface      *self);
void               _gdk_macos_surface_request_frame           (GdkMacosSurface      *self);
void               _gdk_macos_surface_frame_presented         (GdkMacosSurface      *self,
                                                               gint64                predicted_presentation_time,
                                                               gint64                refresh_interval);
void               _gdk_macos_surface_show                    (GdkMacosSurface      *self);
void               _gdk_macos_surface_synthesize_null_key     (GdkMacosSurface      *self);
void               _gdk_macos_surface_move                    (GdkMacosSurface      *self,
                                                               int                   x,
                                                               int                   y);
void               _gdk_macos_surface_move_resize             (GdkMacosSurface      *self,
                                                               int                   x,
                                                               int                   y,
                                                               int                   width,
                                                               int                   height);
void               _gdk_macos_surface_configure               (GdkMacosSurface    *self);
void               _gdk_macos_surface_user_resize             (GdkMacosSurface    *self,
                                                               CGRect              new_frame);
gboolean           _gdk_macos_surface_is_tracking             (GdkMacosSurface      *self,
                                                               NSTrackingArea       *area);
void               _gdk_macos_surface_monitor_changed         (GdkMacosSurface      *self);
GdkMonitor        *_gdk_macos_surface_get_best_monitor        (GdkMacosSurface      *self);
void               _gdk_macos_surface_reposition_children     (GdkMacosSurface      *self);
void               _gdk_macos_surface_set_opacity             (GdkMacosSurface      *self,
                                                               double                opacity);
void               _gdk_macos_surface_get_root_coords         (GdkMacosSurface      *self,
                                                               int                  *x,
                                                               int                  *y);
GdkMacosBuffer    *_gdk_macos_surface_get_buffer              (GdkMacosSurface      *self);
void               _gdk_macos_surface_swap_buffers            (GdkMacosSurface      *self,
                                                               const cairo_region_t *damage);

G_END_DECLS


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

¤ Dauer der Verarbeitung: 0.11 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