/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* 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/. */
class nsXPLookAndFeel : public mozilla::LookAndFeel { public: using FullLookAndFeel = mozilla::widget::FullLookAndFeel; using LookAndFeelFont = mozilla::widget::LookAndFeelFont;
// Gets the pref name for a given color, just for debugging purposes. staticconstchar* GetColorPrefName(ColorID);
// These functions will return a value specified by an override pref, if it // exists, and otherwise will call into the NativeGetXxx function to get the // platform-specific value. // // NS_ERROR_NOT_AVAILABLE is returned if there is neither an override pref or // a platform-specific value.
nsresult GetColorValue(ColorID, ColorScheme, UseStandins, nscolor& aResult);
nsresult GetIntValue(IntID aID, int32_t& aResult);
nsresult GetFloatValue(FloatID aID, float& aResult); // Same, but returns false if there is no platform-specific value. // (There are no override prefs for font values.) bool GetFontValue(FontID aID, nsString& aName, gfxFontStyle& aStyle);
// A platform-agnostic dark-color scheme, for platforms where we don't have // "native" dark colors, like Windows and Android. static mozilla::Maybe<nscolor> GenericDarkColor(ColorID);
mozilla::Maybe<nscolor> GetUncachedColor(ColorID, ColorScheme, UseStandins);
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 ist noch experimentell.