13 #include "QtAwesomeAnim.h" 16 #include <QIconEngine> 19 #include <QVariantMap> 28 addressbooko = 0xf2ba,
30 addresscardo = 0xf2bc,
34 alignjustify = 0xf039,
39 americansignlanguageinterpreting = 0xf2a3,
43 angledoubledown = 0xf103,
44 angledoubleleft = 0xf100,
45 angledoubleright = 0xf101,
46 angledoubleup = 0xf102,
54 arrowcircledown = 0xf0ab,
55 arrowcircleleft = 0xf0a8,
56 arrowcircleodown = 0xf01a,
57 arrowcircleoleft = 0xf190,
58 arrowcircleoright = 0xf18e,
59 arrowcircleoup = 0xf01b,
60 arrowcircleright = 0xf0a9,
61 arrowcircleup = 0xf0aa,
70 aslinterpreting = 0xf2a3,
71 assistivelisteningsystems = 0xf2a2,
74 audiodescription = 0xf29e,
77 balancescale = 0xf24e,
93 batteryempty = 0xf244,
96 batteryquarter = 0xf243,
97 batterythreequarters = 0xf241,
101 behancesquare = 0xf1b5,
108 birthdaycake = 0xf1fd,
110 bitbucketsquare = 0xf172,
135 calendarchecko = 0xf274,
136 calendarminuso = 0xf272,
138 calendarpluso = 0xf271,
139 calendartimeso = 0xf273,
141 cameraretro = 0xf083,
146 caretsquareodown = 0xf150,
147 caretsquareoleft = 0xf191,
148 caretsquareoright = 0xf152,
149 caretsquareoup = 0xf151,
151 cartarrowdown = 0xf218,
155 ccdinersclub = 0xf24c,
158 ccmastercard = 0xf1f1,
162 certificate = 0xf0a3,
164 chainbroken = 0xf127,
166 checkcircle = 0xf058,
167 checkcircleo = 0xf05d,
168 checksquare = 0xf14a,
169 checksquareo = 0xf046,
170 chevroncircledown = 0xf13a,
171 chevroncircleleft = 0xf137,
172 chevroncircleright = 0xf138,
173 chevroncircleup = 0xf139,
174 chevrondown = 0xf078,
175 chevronleft = 0xf053,
176 chevronright = 0xf054,
182 circleonotch = 0xf1ce,
189 clouddownload = 0xf0ed,
190 cloudupload = 0xf0ee,
203 commentingo = 0xf27b,
208 connectdevelop = 0xf20e,
212 creativecommons = 0xf25e,
214 creditcardalt = 0xf283,
237 driverslicense = 0xf2c2,
238 driverslicenseo = 0xf2c3,
250 envelopeopen = 0xf2b6,
251 envelopeopeno = 0xf2b7,
252 envelopesquare = 0xf199,
259 exclamation = 0xf12a,
260 exclamationcircle = 0xf06a,
261 exclamationtriangle = 0xf071,
263 expeditedssl = 0xf23e,
264 externallink = 0xf08e,
265 externallinksquare = 0xf14c,
272 facebookofficial = 0xf230,
273 facebooksquare = 0xf082,
274 fastbackward = 0xf049,
275 fastforward = 0xf050,
281 filearchiveo = 0xf1c6,
290 filepictureo = 0xf1c5,
291 filepowerpointo = 0xf1c4,
302 fireextinguisher = 0xf134,
306 flagcheckered = 0xf11e,
315 folderopeno = 0xf115,
317 fontawesome = 0xf2b4,
319 fortawesome = 0xf286,
323 freecodecamp = 0xf2c5,
341 githubsquare = 0xf092,
350 googlepluscircle = 0xf2b3,
351 googleplusofficial = 0xf2b3,
352 googleplussquare = 0xf0d4,
353 googlewallet = 0xf1ee,
354 graduationcap = 0xf19d,
361 handlizardo = 0xf258,
368 handpointero = 0xf25a,
370 handscissorso = 0xf257,
374 hardofhearing = 0xf2a4,
390 hourglassend = 0xf253,
391 hourglasshalf = 0xf252,
393 hourglassstart = 0xf251,
410 institution = 0xf19c,
411 internetexplorer = 0xf26b,
424 lastfmsquare = 0xf203,
439 linkedinsquare = 0xf08c,
446 locationarrow = 0xf124,
448 longarrowdown = 0xf175,
449 longarrowleft = 0xf177,
450 longarrowright = 0xf178,
451 longarrowup = 0xf176,
455 mailforward = 0xf064,
457 mailreplyall = 0xf122,
467 marsstrokeh = 0xf22b,
468 marsstrokev = 0xf22a,
478 microphoneslash = 0xf131,
480 minuscircle = 0xf056,
481 minussquare = 0xf146,
482 minussquareo = 0xf147,
485 mobilephone = 0xf10b,
489 mortarboard = 0xf19d,
491 mousepointer = 0xf245,
496 objectgroup = 0xf247,
497 objectungroup = 0xf248,
498 odnoklassniki = 0xf263,
499 odnoklassnikisquare = 0xf264,
503 optinmonster = 0xf23c,
508 paperplaneo = 0xf1d9,
513 pausecircle = 0xf28b,
514 pausecircleo = 0xf28c,
518 pencilsquare = 0xf14b,
519 pencilsquareo = 0xf044,
522 phonesquare = 0xf098,
527 piedpiperalt = 0xf1a8,
528 piedpiperpp = 0xf1a7,
531 pinterestsquare = 0xf0d3,
535 playcircleo = 0xf01d,
540 plussquareo = 0xf196,
544 producthunt = 0xf288,
545 puzzlepiece = 0xf12e,
549 questioncircle = 0xf059,
550 questioncircleo = 0xf29c,
560 redditalien = 0xf281,
561 redditsquare = 0xf1a2,
576 rotateright = 0xf01e,
589 searchminus = 0xf010,
597 sharealtsquare = 0xf1e1,
598 sharesquare = 0xf14d,
599 sharesquareo = 0xf045,
604 shirtsinbulk = 0xf214,
605 shoppingbag = 0xf290,
606 shoppingbasket = 0xf291,
607 shoppingcart = 0xf07a,
610 signlanguage = 0xf2a7,
614 simplybuilt = 0xf215,
623 snapchatghost = 0xf2ac,
624 snapchatsquare = 0xf2ad,
626 soccerballo = 0xf1e3,
628 sortalphaasc = 0xf15d,
629 sortalphadesc = 0xf15e,
630 sortamountasc = 0xf160,
631 sortamountdesc = 0xf161,
635 sortnumericasc = 0xf162,
636 sortnumericdesc = 0xf163,
639 spaceshuttle = 0xf197,
645 stackexchange = 0xf18d,
646 stackoverflow = 0xf16c,
649 starhalfempty = 0xf123,
650 starhalffull = 0xf123,
654 steamsquare = 0xf1b7,
655 stepbackward = 0xf048,
656 stepforward = 0xf051,
657 stethoscope = 0xf0f1,
659 stickynoteo = 0xf24a,
662 stopcircleo = 0xf28e,
664 strikethrough = 0xf0cc,
665 stumbleupon = 0xf1a4,
666 stumbleuponcircle = 0xf1a3,
671 superpowers = 0xf2dd,
672 superscript = 0xf12b,
683 tencentweibo = 0xf1d5,
691 thermometer = 0xf2c7,
692 thermometer0 = 0xf2cb,
693 thermometer1 = 0xf2ca,
694 thermometer2 = 0xf2c9,
695 thermometer3 = 0xf2c8,
696 thermometer4 = 0xf2c7,
697 thermometerempty = 0xf2cb,
698 thermometerfull = 0xf2c7,
699 thermometerhalf = 0xf2c9,
700 thermometerquarter = 0xf2ca,
701 thermometerthreequarters = 0xf2c8,
704 thumbsodown = 0xf088,
709 timescircle = 0xf057,
710 timescircleo = 0xf05c,
711 timesrectangle = 0xf2d3,
712 timesrectangleo = 0xf2d4,
718 toggleright = 0xf152,
722 transgender = 0xf224,
723 transgenderalt = 0xf225,
728 tripadvisor = 0xf262,
734 tumblrsquare = 0xf174,
735 turkishlira = 0xf195,
739 twittersquare = 0xf081,
743 universalaccess = 0xf29a,
754 usercircleo = 0xf2be,
764 venusdouble = 0xf226,
768 viadeosquare = 0xf2aa,
769 videocamera = 0xf03d,
771 vimeosquare = 0xf194,
774 volumecontrolphone = 0xf2a0,
784 wheelchairalt = 0xf29b,
787 windowclose = 0xf2d3,
788 windowcloseo = 0xf2d4,
789 windowmaximize = 0xf2d0,
790 windowminimize = 0xf2d1,
791 windowrestore = 0xf2d2,
801 ycombinator = 0xf23b,
802 ycombinatorsquare = 0xf1d4,
810 youtubeplay = 0xf16a,
811 youtubesquare = 0xf166
832 void init(
const QString& fontname );
835 void addNamedCodepoint(
const QString& name,
int codePoint );
836 QHash<QString,int> namedCodePoints() {
return namedCodepoints_; }
841 QIcon
icon(
int character,
const QVariantMap& options = QVariantMap() );
842 QIcon
icon(
const QString& name,
const QVariantMap& options = QVariantMap() );
847 QFont
font(
int size );
854 QHash<QString,int> namedCodepoints_;
856 QHash<QString, QtAwesomeIconPainter*> painterMap_;
857 QVariantMap defaultOptions_;
871 virtual void paint(
QtAwesome* awesome, QPainter* painter,
const QRect& rect, QIcon::Mode mode, QIcon::State state,
const QVariantMap& options ) = 0;
878 #endif // QTAWESOME_H bool initFontAwesome()
Definition: QtAwesome.cpp:959
void init(const QString &fontname)
initializes the QtAwesome icon factory with the given fontname
Definition: QtAwesome.cpp:162
Definition: QtAwesome.h:823
QtAwesome(QObject *parent=0)
The default icon colors.
Definition: QtAwesome.cpp:143
Definition: QtAwesomeAnim.h:14
Definition: QtAwesome.h:867
void give(const QString &name, QtAwesomeIconPainter *painter)
Definition: QtAwesome.cpp:1069
Definition: QtAwesome.h:24
QVariant defaultOption(const QString &name)
Returns the default option for the given name.
Definition: QtAwesome.cpp:1001
QString fontName()
Returns the font-name that is used as icon-map.
Definition: QtAwesome.h:850
void setDefaultOption(const QString &name, const QVariant &value)
Sets a default option. These options are passed on to the icon painters.
Definition: QtAwesome.cpp:998
QIcon icon(int character, const QVariantMap &options=QVariantMap())
Definition: QtAwesome.cpp:1020
QFont font(int size)
Definition: QtAwesome.cpp:1079