Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  ScreenHelperGTK.h   Sprache: C

 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef mozilla_widget_gtk_ScreenHelperGTK_h
#define mozilla_widget_gtk_ScreenHelperGTK_h

#include "mozilla/widget/ScreenManager.h"
#include "gdk/gdk.h"
#ifdef MOZ_WAYLAND
#  include "nsWaylandDisplay.h"
#endif

class nsWindow;

namespace mozilla::widget {
class ScreenGetterGtk;

class ScreenHelperGTK final : public ScreenManager::Helper {
 public:
  ScreenHelperGTK();
  ~ScreenHelperGTK();

  static int GetMonitorCount();
  static gint GetGTKMonitorScaleFactor(gint aMonitorNum = 0);
  static float GetGTKMonitorFractionalScaleFactor(gint aMonitorNum = 0);
  static RefPtr<widget::Screen> GetScreenForWindow(nsWindow* aWindow);

  static void RequestRefreshScreens(bool aInitialRefresh = false);
  static int GetLastSerial() { return gLastSerial; }
#ifdef MOZ_WAYLAND
  static void ScreensPrefChanged(const char* aPrefIgnored, void* aDataIgnored);
#endif
 private:
  static GdkWindow* sRootWindow;
  static StaticRefPtr<ScreenGetterGtk> gLastScreenGetter;
  static int gLastSerial;
};

}  // namespace mozilla::widget

#endif  // mozilla_widget_gtk_ScreenHelperGTK_h

Messung V0.5 in Prozent
C=94 H=100 G=96

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-09-29) ¤

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

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126864
#Domains=1897691