Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  ButtonControlFrame.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 LAYOUT_FORMS_BUTTONCONTROLFRAME_H_
#define LAYOUT_FORMS_BUTTONCONTROLFRAME_H_

#include "nsBlockFrame.h"

class nsTextNode;

namespace mozilla {

// Abstract base class for:
//  * Combobox <select>.
//  * <input> with type={button,reset,submit}
//  * <input> with type=color
// Each of which are basically buttons but with different native-anonymous
// content / shadow tree. Note that this isn't used to implement <button> itself
// (that uses regular frames like nsBlockFrame or nsGridContainerFrame or so,
// depending on the display type).
class ButtonControlFrame : public nsBlockFrame {
 public:
  ButtonControlFrame(ComputedStyle* aStyle, nsPresContext* aPc,
                     ClassID aClassID)
      : nsBlockFrame(aStyle, aPc, aClassID) {
    MOZ_ASSERT(IsReplaced(), "Our subclasses should be replaced elements");
  }
  NS_DECL_ABSTRACT_FRAME(ButtonControlFrame)
  nsContainerFrame* GetContentInsertionFrame() override { return this; }
  nsresult HandleEvent(nsPresContext* aPresContext,
                       mozilla::WidgetGUIEvent* aEvent,
                       nsEventStatus* aEventStatus) override;

  void Reflow(nsPresContext*, ReflowOutput&, const ReflowInput&,
              nsReflowStatus&) override;

  // Given a string of text (for the button label), ensure it's not empty so
  // that line height computations work (inserting a zero-width character if
  // necessary).
  static void EnsureNonEmptyLabel(nsAString&);
};

}  // namespace mozilla

#endif  // LAYOUT_FORMS_BUTTONCONTROLFRAME_H_

Messung V0.5 in Prozent
C=71 H=100 G=86

¤ Dauer der Verarbeitung: 0.14 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=1126438
#Domains=1867298