1 //****************************************************************************** 2 // Copyright (c) 2005-2013 by Jan Van hijfte 3 // 4 // See the included file COPYING.TXT for details about the copyright. 5 // 6 // This program is distributed in the hope that it will be useful, 7 // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 //****************************************************************************** 10 11 12 #include "qfontinfo_c.h" 13 QFontInfo_Create(const QFontH AnonParam1)14QFontInfoH QFontInfo_Create(const QFontH AnonParam1) 15 { 16 return (QFontInfoH) new QFontInfo(*(const QFont*)AnonParam1); 17 } 18 QFontInfo_Destroy(QFontInfoH handle)19void QFontInfo_Destroy(QFontInfoH handle) 20 { 21 delete (QFontInfo *)handle; 22 } 23 QFontInfo_Create2(const QFontInfoH AnonParam1)24QFontInfoH QFontInfo_Create2(const QFontInfoH AnonParam1) 25 { 26 return (QFontInfoH) new QFontInfo(*(const QFontInfo*)AnonParam1); 27 } 28 QFontInfo_swap(QFontInfoH handle,QFontInfoH other)29void QFontInfo_swap(QFontInfoH handle, QFontInfoH other) 30 { 31 ((QFontInfo *)handle)->swap(*(QFontInfo*)other); 32 } 33 QFontInfo_family(QFontInfoH handle,PWideString retval)34void QFontInfo_family(QFontInfoH handle, PWideString retval) 35 { 36 QString t_retval; 37 t_retval = ((QFontInfo *)handle)->family(); 38 copyQStringToPWideString(t_retval, retval); 39 } 40 QFontInfo_styleName(QFontInfoH handle,PWideString retval)41void QFontInfo_styleName(QFontInfoH handle, PWideString retval) 42 { 43 QString t_retval; 44 t_retval = ((QFontInfo *)handle)->styleName(); 45 copyQStringToPWideString(t_retval, retval); 46 } 47 QFontInfo_pixelSize(QFontInfoH handle)48int QFontInfo_pixelSize(QFontInfoH handle) 49 { 50 return (int) ((QFontInfo *)handle)->pixelSize(); 51 } 52 QFontInfo_pointSize(QFontInfoH handle)53int QFontInfo_pointSize(QFontInfoH handle) 54 { 55 return (int) ((QFontInfo *)handle)->pointSize(); 56 } 57 QFontInfo_pointSizeF(QFontInfoH handle)58qreal QFontInfo_pointSizeF(QFontInfoH handle) 59 { 60 return (qreal) ((QFontInfo *)handle)->pointSizeF(); 61 } 62 QFontInfo_italic(QFontInfoH handle)63bool QFontInfo_italic(QFontInfoH handle) 64 { 65 return (bool) ((QFontInfo *)handle)->italic(); 66 } 67 QFontInfo_style(QFontInfoH handle)68QFont::Style QFontInfo_style(QFontInfoH handle) 69 { 70 return (QFont::Style) ((QFontInfo *)handle)->style(); 71 } 72 QFontInfo_weight(QFontInfoH handle)73int QFontInfo_weight(QFontInfoH handle) 74 { 75 return (int) ((QFontInfo *)handle)->weight(); 76 } 77 QFontInfo_bold(QFontInfoH handle)78bool QFontInfo_bold(QFontInfoH handle) 79 { 80 return (bool) ((QFontInfo *)handle)->bold(); 81 } 82 QFontInfo_underline(QFontInfoH handle)83bool QFontInfo_underline(QFontInfoH handle) 84 { 85 return (bool) ((QFontInfo *)handle)->underline(); 86 } 87 QFontInfo_overline(QFontInfoH handle)88bool QFontInfo_overline(QFontInfoH handle) 89 { 90 return (bool) ((QFontInfo *)handle)->overline(); 91 } 92 QFontInfo_strikeOut(QFontInfoH handle)93bool QFontInfo_strikeOut(QFontInfoH handle) 94 { 95 return (bool) ((QFontInfo *)handle)->strikeOut(); 96 } 97 QFontInfo_fixedPitch(QFontInfoH handle)98bool QFontInfo_fixedPitch(QFontInfoH handle) 99 { 100 return (bool) ((QFontInfo *)handle)->fixedPitch(); 101 } 102 QFontInfo_styleHint(QFontInfoH handle)103QFont::StyleHint QFontInfo_styleHint(QFontInfoH handle) 104 { 105 return (QFont::StyleHint) ((QFontInfo *)handle)->styleHint(); 106 } 107 QFontInfo_rawMode(QFontInfoH handle)108bool QFontInfo_rawMode(QFontInfoH handle) 109 { 110 return (bool) ((QFontInfo *)handle)->rawMode(); 111 } 112 QFontInfo_exactMatch(QFontInfoH handle)113bool QFontInfo_exactMatch(QFontInfoH handle) 114 { 115 return (bool) ((QFontInfo *)handle)->exactMatch(); 116 } 117 118