freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2-demos] master 1eb2c1b 1/3: [ftinspect] Add structure comments


From: Werner LEMBERG
Subject: [freetype2-demos] master 1eb2c1b 1/3: [ftinspect] Add structure comments.
Date: Sun, 29 May 2016 09:02:52 +0000 (UTC)

branch: master
commit 1eb2c1b9c66488bb7efb68c9d3762cc859707a43
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>

    [ftinspect] Add structure comments.
---
 src/ftinspect.cpp |   73 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)

diff --git a/src/ftinspect.cpp b/src/ftinspect.cpp
index c8a4f7e..e56785b 100644
--- a/src/ftinspect.cpp
+++ b/src/ftinspect.cpp
@@ -8,6 +8,12 @@
 #define VERSION "X.Y.Z"
 
 
+/////////////////////////////////////////////////////////////////////////////
+//
+// FaceID
+//
+/////////////////////////////////////////////////////////////////////////////
+
 FaceID::FaceID()
 : fontIndex(-1),
   faceIndex(-1),
@@ -91,6 +97,12 @@ faceRequester(FTC_FaceID ftcFaceID,
 }
 
 
+/////////////////////////////////////////////////////////////////////////////
+//
+// Engine
+//
+/////////////////////////////////////////////////////////////////////////////
+
 Engine::Engine(MainGUI* g)
 {
   gui = g;
@@ -610,6 +622,12 @@ Engine::update()
 }
 
 
+/////////////////////////////////////////////////////////////////////////////
+//
+// Grid
+//
+/////////////////////////////////////////////////////////////////////////////
+
 Grid::Grid(const QPen& gridP,
            const QPen& axisP)
 : gridPen(gridP),
@@ -664,6 +682,12 @@ Grid::paint(QPainter* painter,
 }
 
 
+/////////////////////////////////////////////////////////////////////////////
+//
+// GlyphOutline
+//
+/////////////////////////////////////////////////////////////////////////////
+
 extern "C" {
 
 // vertical font coordinates are bottom-up,
@@ -782,6 +806,12 @@ GlyphOutline::paint(QPainter* painter,
 }
 
 
+/////////////////////////////////////////////////////////////////////////////
+//
+// GlyphPoints
+//
+/////////////////////////////////////////////////////////////////////////////
+
 GlyphPoints::GlyphPoints(const QPen& onP,
                          const QPen& offP,
                          FT_Outline* outln)
@@ -878,6 +908,12 @@ GlyphPoints::paint(QPainter* painter,
 }
 
 
+/////////////////////////////////////////////////////////////////////////////
+//
+// GlyphPointNumbers
+//
+/////////////////////////////////////////////////////////////////////////////
+
 GlyphPointNumbers::GlyphPointNumbers(const QPen& onP,
                                      const QPen& offP,
                                      FT_Outline* outln)
@@ -1065,6 +1101,12 @@ GlyphPointNumbers::paint(QPainter* painter,
 }
 
 
+/////////////////////////////////////////////////////////////////////////////
+//
+// GlyphBitmap
+//
+/////////////////////////////////////////////////////////////////////////////
+
 GlyphBitmap::GlyphBitmap(FT_Outline* outline,
                          FT_Library lib,
                          int pxlMode,
@@ -1156,6 +1198,12 @@ GlyphBitmap::paint(QPainter* painter,
 }
 
 
+/////////////////////////////////////////////////////////////////////////////
+//
+// MainGUI
+//
+/////////////////////////////////////////////////////////////////////////////
+
 MainGUI::MainGUI()
 {
   engine = NULL;
@@ -1180,6 +1228,7 @@ MainGUI::MainGUI()
 
 MainGUI::~MainGUI()
 {
+  // empty
 }
 
 
@@ -2417,6 +2466,12 @@ MainGUI::writeSettings()
 }
 
 
+/////////////////////////////////////////////////////////////////////////////
+//
+// QGraphicsViewx
+//
+/////////////////////////////////////////////////////////////////////////////
+
 QGraphicsViewx::QGraphicsViewx()
 : lastBottomLeftPointInitialized(false)
 {
@@ -2454,6 +2509,12 @@ QGraphicsViewx::resizeEvent(QResizeEvent* event)
 }
 
 
+/////////////////////////////////////////////////////////////////////////////
+//
+// QComboBoxx
+//
+/////////////////////////////////////////////////////////////////////////////
+
 void
 QComboBoxx::setItemEnabled(int index,
                            bool enable)
@@ -2480,6 +2541,12 @@ QComboBoxx::setItemEnabled(int index,
 }
 
 
+/////////////////////////////////////////////////////////////////////////////
+//
+// QPushButtonx
+//
+/////////////////////////////////////////////////////////////////////////////
+
 // code derived from Qt 4.8.7, function `QPushButton::sizeHint',
 // file `src/gui/widgets/qpushbutton.cpp'
 
@@ -2502,6 +2569,12 @@ QPushButtonx::QPushButtonx(const QString &text,
 }
 
 
+/////////////////////////////////////////////////////////////////////////////
+//
+// main
+//
+/////////////////////////////////////////////////////////////////////////////
+
 int
 main(int argc,
      char** argv)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]