Pango-1.0.gir 632 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913
  1. <?xml version="1.0"?>
  2. <!-- This file was automatically generated from C sources - DO NOT EDIT!
  3. To affect the contents of this file, edit the original C definitions,
  4. and/or use gtk-doc annotations. -->
  5. <repository version="1.2"
  6. xmlns="http://www.gtk.org/introspection/core/1.0"
  7. xmlns:c="http://www.gtk.org/introspection/c/1.0"
  8. xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
  9. <include name="GObject" version="2.0"/>
  10. <include name="cairo" version="1.0"/>
  11. <package name="pango"/>
  12. <c:include name="pango/pango.h"/>
  13. <namespace name="Pango"
  14. version="1.0"
  15. shared-library="libpango-1.0.so.0"
  16. c:identifier-prefixes="Pango"
  17. c:symbol-prefixes="pango">
  18. <alias name="Glyph" c:type="PangoGlyph">
  19. <doc xml:space="preserve">A #PangoGlyph represents a single glyph in the output form of a string.</doc>
  20. <type name="guint32" c:type="guint32"/>
  21. </alias>
  22. <alias name="GlyphUnit" c:type="PangoGlyphUnit">
  23. <doc xml:space="preserve">The #PangoGlyphUnit type is used to store dimensions within
  24. Pango. Dimensions are stored in 1/%PANGO_SCALE of a device unit.
  25. (A device unit might be a pixel for screen display, or
  26. a point on a printer.) %PANGO_SCALE is currently 1024, and
  27. may change in the future (unlikely though), but you should not
  28. depend on its exact value. The PANGO_PIXELS() macro can be used
  29. to convert from glyph units into device units with correct rounding.</doc>
  30. <type name="gint32" c:type="gint32"/>
  31. </alias>
  32. <alias name="LayoutRun" c:type="PangoLayoutRun">
  33. <doc xml:space="preserve">The #PangoLayoutRun structure represents a single run within
  34. a #PangoLayoutLine; it is simply an alternate name for
  35. #PangoGlyphItem.
  36. See the #PangoGlyphItem docs for details on the fields.</doc>
  37. <type name="GlyphItem" c:type="PangoGlyphItem"/>
  38. </alias>
  39. <constant name="ANALYSIS_FLAG_CENTERED_BASELINE"
  40. value="1"
  41. c:type="PANGO_ANALYSIS_FLAG_CENTERED_BASELINE"
  42. version="1.16">
  43. <doc xml:space="preserve">Whether the segment should be shifted to center around the baseline.
  44. Used in vertical writing directions mostly.</doc>
  45. <type name="gint" c:type="gint"/>
  46. </constant>
  47. <constant name="ANALYSIS_FLAG_IS_ELLIPSIS"
  48. value="2"
  49. c:type="PANGO_ANALYSIS_FLAG_IS_ELLIPSIS"
  50. version="1.36.7">
  51. <doc xml:space="preserve">This flag is used to mark runs that hold ellipsized text,
  52. in an ellipsized layout.</doc>
  53. <type name="gint" c:type="gint"/>
  54. </constant>
  55. <constant name="ATTR_INDEX_FROM_TEXT_BEGINNING"
  56. value="0"
  57. c:type="PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING"
  58. version="1.24">
  59. <doc xml:space="preserve">This value can be used to set the start_index member of a #PangoAttribute
  60. such that the attribute covers from the beginning of the text.</doc>
  61. <type name="gint" c:type="gint"/>
  62. </constant>
  63. <enumeration name="Alignment"
  64. glib:type-name="PangoAlignment"
  65. glib:get-type="pango_alignment_get_type"
  66. c:type="PangoAlignment">
  67. <doc xml:space="preserve">A #PangoAlignment describes how to align the lines of a #PangoLayout within the
  68. available space. If the #PangoLayout is set to justify
  69. using pango_layout_set_justify(), this only has effect for partial lines.</doc>
  70. <member name="left"
  71. value="0"
  72. c:identifier="PANGO_ALIGN_LEFT"
  73. glib:nick="left">
  74. <doc xml:space="preserve">Put all available space on the right</doc>
  75. </member>
  76. <member name="center"
  77. value="1"
  78. c:identifier="PANGO_ALIGN_CENTER"
  79. glib:nick="center">
  80. <doc xml:space="preserve">Center the line within the available space</doc>
  81. </member>
  82. <member name="right"
  83. value="2"
  84. c:identifier="PANGO_ALIGN_RIGHT"
  85. glib:nick="right">
  86. <doc xml:space="preserve">Put all available space on the left</doc>
  87. </member>
  88. </enumeration>
  89. <record name="Analysis" c:type="PangoAnalysis">
  90. <doc xml:space="preserve">The #PangoAnalysis structure stores information about
  91. the properties of a segment of text.</doc>
  92. <field name="shape_engine" writable="1">
  93. <doc xml:space="preserve">the engine for doing rendering-system-dependent processing.</doc>
  94. <type name="EngineShape" c:type="PangoEngineShape*"/>
  95. </field>
  96. <field name="lang_engine" writable="1">
  97. <doc xml:space="preserve">the engine for doing rendering-system-independent processing.</doc>
  98. <type name="EngineLang" c:type="PangoEngineLang*"/>
  99. </field>
  100. <field name="font" writable="1">
  101. <doc xml:space="preserve">the font for this segment.</doc>
  102. <type name="Font" c:type="PangoFont*"/>
  103. </field>
  104. <field name="level" writable="1">
  105. <doc xml:space="preserve">the bidirectional level for this segment.</doc>
  106. <type name="guint8" c:type="guint8"/>
  107. </field>
  108. <field name="gravity" writable="1">
  109. <doc xml:space="preserve">the glyph orientation for this segment (A #PangoGravity).</doc>
  110. <type name="guint8" c:type="guint8"/>
  111. </field>
  112. <field name="flags" writable="1">
  113. <doc xml:space="preserve">boolean flags for this segment (currently only one) (Since: 1.16).</doc>
  114. <type name="guint8" c:type="guint8"/>
  115. </field>
  116. <field name="script" writable="1">
  117. <doc xml:space="preserve">the detected script for this segment (A #PangoScript) (Since: 1.18).</doc>
  118. <type name="guint8" c:type="guint8"/>
  119. </field>
  120. <field name="language" writable="1">
  121. <doc xml:space="preserve">the detected language for this segment.</doc>
  122. <type name="Language" c:type="PangoLanguage*"/>
  123. </field>
  124. <field name="extra_attrs" writable="1">
  125. <doc xml:space="preserve">extra attributes for this segment.</doc>
  126. <type name="GLib.SList" c:type="GSList*">
  127. <type name="gpointer" c:type="gpointer"/>
  128. </type>
  129. </field>
  130. </record>
  131. <record name="AttrClass" c:type="PangoAttrClass">
  132. <doc xml:space="preserve">The #PangoAttrClass structure stores the type and operations for
  133. a particular type of attribute. The functions in this structure should
  134. not be called directly. Instead, one should use the wrapper functions
  135. provided for #PangoAttribute.</doc>
  136. <field name="type" writable="1">
  137. <doc xml:space="preserve">the type ID for this attribute</doc>
  138. <type name="AttrType" c:type="PangoAttrType"/>
  139. </field>
  140. <field name="copy" introspectable="0">
  141. <callback name="copy" introspectable="0">
  142. <return-value>
  143. <type name="Attribute" c:type="PangoAttribute*"/>
  144. </return-value>
  145. <parameters>
  146. <parameter name="attr" transfer-ownership="none">
  147. <type name="Attribute" c:type="const PangoAttribute*"/>
  148. </parameter>
  149. </parameters>
  150. </callback>
  151. </field>
  152. <field name="destroy">
  153. <callback name="destroy">
  154. <return-value transfer-ownership="none">
  155. <type name="none" c:type="void"/>
  156. </return-value>
  157. <parameters>
  158. <parameter name="attr" transfer-ownership="none">
  159. <type name="Attribute" c:type="PangoAttribute*"/>
  160. </parameter>
  161. </parameters>
  162. </callback>
  163. </field>
  164. <field name="equal">
  165. <callback name="equal">
  166. <return-value transfer-ownership="none">
  167. <type name="gboolean" c:type="gboolean"/>
  168. </return-value>
  169. <parameters>
  170. <parameter name="attr1" transfer-ownership="none">
  171. <type name="Attribute" c:type="const PangoAttribute*"/>
  172. </parameter>
  173. <parameter name="attr2" transfer-ownership="none">
  174. <type name="Attribute" c:type="const PangoAttribute*"/>
  175. </parameter>
  176. </parameters>
  177. </callback>
  178. </field>
  179. </record>
  180. <record name="AttrColor" c:type="PangoAttrColor">
  181. <doc xml:space="preserve">The #PangoAttrColor structure is used to represent attributes that
  182. are colors.</doc>
  183. <field name="attr" writable="1">
  184. <doc xml:space="preserve">the common portion of the attribute</doc>
  185. <type name="Attribute" c:type="PangoAttribute"/>
  186. </field>
  187. <field name="color" writable="1">
  188. <doc xml:space="preserve">the #PangoColor which is the value of the attribute</doc>
  189. <type name="Color" c:type="PangoColor"/>
  190. </field>
  191. </record>
  192. <callback name="AttrDataCopyFunc" c:type="PangoAttrDataCopyFunc">
  193. <doc xml:space="preserve">Type of a function that can duplicate user data for an attribute.</doc>
  194. <return-value transfer-ownership="none" nullable="1">
  195. <doc xml:space="preserve">new copy of @user_data.</doc>
  196. <type name="gpointer" c:type="gpointer"/>
  197. </return-value>
  198. <parameters>
  199. <parameter name="user_data"
  200. transfer-ownership="none"
  201. nullable="1"
  202. allow-none="1"
  203. closure="0">
  204. <doc xml:space="preserve">user data to copy</doc>
  205. <type name="gpointer" c:type="gconstpointer"/>
  206. </parameter>
  207. </parameters>
  208. </callback>
  209. <callback name="AttrFilterFunc" c:type="PangoAttrFilterFunc">
  210. <doc xml:space="preserve">Type of a function filtering a list of attributes.</doc>
  211. <return-value transfer-ownership="none">
  212. <doc xml:space="preserve">%TRUE if the attribute should be selected for
  213. filtering, %FALSE otherwise.</doc>
  214. <type name="gboolean" c:type="gboolean"/>
  215. </return-value>
  216. <parameters>
  217. <parameter name="attribute" transfer-ownership="none">
  218. <doc xml:space="preserve">a Pango attribute</doc>
  219. <type name="Attribute" c:type="PangoAttribute*"/>
  220. </parameter>
  221. <parameter name="user_data"
  222. transfer-ownership="none"
  223. nullable="1"
  224. allow-none="1"
  225. closure="1">
  226. <doc xml:space="preserve">user data passed to the function</doc>
  227. <type name="gpointer" c:type="gpointer"/>
  228. </parameter>
  229. </parameters>
  230. </callback>
  231. <record name="AttrFloat" c:type="PangoAttrFloat">
  232. <doc xml:space="preserve">The #PangoAttrFloat structure is used to represent attributes with
  233. a float or double value.</doc>
  234. <field name="attr" writable="1">
  235. <doc xml:space="preserve">the common portion of the attribute</doc>
  236. <type name="Attribute" c:type="PangoAttribute"/>
  237. </field>
  238. <field name="value" writable="1">
  239. <doc xml:space="preserve">the value of the attribute</doc>
  240. <type name="gdouble" c:type="double"/>
  241. </field>
  242. </record>
  243. <record name="AttrFontDesc" c:type="PangoAttrFontDesc">
  244. <doc xml:space="preserve">The #PangoAttrFontDesc structure is used to store an attribute that
  245. sets all aspects of the font description at once.</doc>
  246. <field name="attr" writable="1">
  247. <doc xml:space="preserve">the common portion of the attribute</doc>
  248. <type name="Attribute" c:type="PangoAttribute"/>
  249. </field>
  250. <field name="desc" writable="1">
  251. <doc xml:space="preserve">the font description which is the value of this attribute</doc>
  252. <type name="FontDescription" c:type="PangoFontDescription*"/>
  253. </field>
  254. <function name="new"
  255. c:identifier="pango_attr_font_desc_new"
  256. introspectable="0">
  257. <doc xml:space="preserve">Create a new font description attribute. This attribute
  258. allows setting family, style, weight, variant, stretch,
  259. and size simultaneously.</doc>
  260. <return-value transfer-ownership="full">
  261. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  262. which should be freed with pango_attribute_destroy().</doc>
  263. <type name="Attribute" c:type="PangoAttribute*"/>
  264. </return-value>
  265. <parameters>
  266. <parameter name="desc" transfer-ownership="none">
  267. <doc xml:space="preserve">the font description</doc>
  268. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  269. </parameter>
  270. </parameters>
  271. </function>
  272. </record>
  273. <record name="AttrFontFeatures"
  274. c:type="PangoAttrFontFeatures"
  275. version="1.38">
  276. <doc xml:space="preserve">The #PangoAttrFontFeatures structure is used to represent OpenType
  277. font features as an attribute.</doc>
  278. <field name="attr" writable="1">
  279. <doc xml:space="preserve">the common portion of the attribute</doc>
  280. <type name="Attribute" c:type="PangoAttribute"/>
  281. </field>
  282. <field name="features" writable="1">
  283. <doc xml:space="preserve">the featues, as a string in CSS syntax</doc>
  284. <type name="utf8" c:type="gchar*"/>
  285. </field>
  286. <function name="new"
  287. c:identifier="pango_attr_font_features_new"
  288. version="1.38"
  289. introspectable="0">
  290. <doc xml:space="preserve">Create a new font features tag attribute.</doc>
  291. <return-value transfer-ownership="full">
  292. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  293. which should be freed with pango_attribute_destroy().</doc>
  294. <type name="Attribute" c:type="PangoAttribute*"/>
  295. </return-value>
  296. <parameters>
  297. <parameter name="features" transfer-ownership="none">
  298. <doc xml:space="preserve">a string with OpenType font features, in CSS syntax</doc>
  299. <type name="utf8" c:type="const gchar*"/>
  300. </parameter>
  301. </parameters>
  302. </function>
  303. </record>
  304. <record name="AttrInt" c:type="PangoAttrInt">
  305. <doc xml:space="preserve">The #PangoAttrInt structure is used to represent attributes with
  306. an integer or enumeration value.</doc>
  307. <field name="attr" writable="1">
  308. <doc xml:space="preserve">the common portion of the attribute</doc>
  309. <type name="Attribute" c:type="PangoAttribute"/>
  310. </field>
  311. <field name="value" writable="1">
  312. <doc xml:space="preserve">the value of the attribute</doc>
  313. <type name="gint" c:type="int"/>
  314. </field>
  315. </record>
  316. <record name="AttrIterator" c:type="PangoAttrIterator" disguised="1">
  317. <doc xml:space="preserve">The #PangoAttrIterator structure is used to represent an
  318. iterator through a #PangoAttrList. A new iterator is created
  319. with pango_attr_list_get_iterator(). Once the iterator
  320. is created, it can be advanced through the style changes
  321. in the text using pango_attr_iterator_next(). At each
  322. style change, the range of the current style segment and the
  323. attributes currently in effect can be queried.</doc>
  324. <method name="copy"
  325. c:identifier="pango_attr_iterator_copy"
  326. introspectable="0">
  327. <doc xml:space="preserve">Copy a #PangoAttrIterator</doc>
  328. <return-value transfer-ownership="full">
  329. <doc xml:space="preserve">the newly allocated
  330. #PangoAttrIterator, which should be freed with
  331. pango_attr_iterator_destroy().</doc>
  332. <type name="AttrIterator" c:type="PangoAttrIterator*"/>
  333. </return-value>
  334. <parameters>
  335. <instance-parameter name="iterator" transfer-ownership="none">
  336. <doc xml:space="preserve">a #PangoAttrIterator.</doc>
  337. <type name="AttrIterator" c:type="PangoAttrIterator*"/>
  338. </instance-parameter>
  339. </parameters>
  340. </method>
  341. <method name="destroy" c:identifier="pango_attr_iterator_destroy">
  342. <doc xml:space="preserve">Destroy a #PangoAttrIterator and free all associated memory.</doc>
  343. <return-value transfer-ownership="none">
  344. <type name="none" c:type="void"/>
  345. </return-value>
  346. <parameters>
  347. <instance-parameter name="iterator" transfer-ownership="none">
  348. <doc xml:space="preserve">a #PangoAttrIterator.</doc>
  349. <type name="AttrIterator" c:type="PangoAttrIterator*"/>
  350. </instance-parameter>
  351. </parameters>
  352. </method>
  353. <method name="get"
  354. c:identifier="pango_attr_iterator_get"
  355. introspectable="0">
  356. <doc xml:space="preserve">Find the current attribute of a particular type at the iterator
  357. location. When multiple attributes of the same type overlap,
  358. the attribute whose range starts closest to the current location
  359. is used.</doc>
  360. <return-value nullable="1">
  361. <doc xml:space="preserve">the current attribute of the given type,
  362. or %NULL if no attribute of that type applies to the
  363. current location.</doc>
  364. <type name="Attribute" c:type="PangoAttribute*"/>
  365. </return-value>
  366. <parameters>
  367. <instance-parameter name="iterator" transfer-ownership="none">
  368. <doc xml:space="preserve">a #PangoAttrIterator</doc>
  369. <type name="AttrIterator" c:type="PangoAttrIterator*"/>
  370. </instance-parameter>
  371. <parameter name="type" transfer-ownership="none">
  372. <doc xml:space="preserve">the type of attribute to find.</doc>
  373. <type name="AttrType" c:type="PangoAttrType"/>
  374. </parameter>
  375. </parameters>
  376. </method>
  377. <method name="get_attrs"
  378. c:identifier="pango_attr_iterator_get_attrs"
  379. version="1.2">
  380. <doc xml:space="preserve">Gets a list of all attributes at the current position of the
  381. iterator.</doc>
  382. <return-value transfer-ownership="full">
  383. <doc xml:space="preserve">a list of
  384. all attributes for the current range.
  385. To free this value, call pango_attribute_destroy() on
  386. each value and g_slist_free() on the list.</doc>
  387. <type name="GLib.SList" c:type="GSList*">
  388. <type name="Attribute"/>
  389. </type>
  390. </return-value>
  391. <parameters>
  392. <instance-parameter name="iterator" transfer-ownership="none">
  393. <doc xml:space="preserve">a #PangoAttrIterator</doc>
  394. <type name="AttrIterator" c:type="PangoAttrIterator*"/>
  395. </instance-parameter>
  396. </parameters>
  397. </method>
  398. <method name="get_font" c:identifier="pango_attr_iterator_get_font">
  399. <doc xml:space="preserve">Get the font and other attributes at the current iterator position.</doc>
  400. <return-value transfer-ownership="none">
  401. <type name="none" c:type="void"/>
  402. </return-value>
  403. <parameters>
  404. <instance-parameter name="iterator" transfer-ownership="none">
  405. <doc xml:space="preserve">a #PangoAttrIterator</doc>
  406. <type name="AttrIterator" c:type="PangoAttrIterator*"/>
  407. </instance-parameter>
  408. <parameter name="desc" transfer-ownership="none">
  409. <doc xml:space="preserve">a #PangoFontDescription to fill in with the current values.
  410. The family name in this structure will be set using
  411. pango_font_description_set_family_static() using values from
  412. an attribute in the #PangoAttrList associated with the iterator,
  413. so if you plan to keep it around, you must call:
  414. &lt;literal&gt;pango_font_description_set_family (desc, pango_font_description_get_family (desc))&lt;/literal&gt;.</doc>
  415. <type name="FontDescription" c:type="PangoFontDescription*"/>
  416. </parameter>
  417. <parameter name="language"
  418. transfer-ownership="none"
  419. nullable="1"
  420. allow-none="1">
  421. <doc xml:space="preserve">if non-%NULL, location to store language tag for item, or %NULL
  422. if none is found.</doc>
  423. <type name="Language" c:type="PangoLanguage**"/>
  424. </parameter>
  425. <parameter name="extra_attrs"
  426. transfer-ownership="full"
  427. nullable="1"
  428. allow-none="1">
  429. <doc xml:space="preserve">if non-%NULL,
  430. location in which to store a list of non-font
  431. attributes at the the current position; only the highest priority
  432. value of each attribute will be added to this list. In order
  433. to free this value, you must call pango_attribute_destroy() on
  434. each member.</doc>
  435. <type name="GLib.SList" c:type="GSList**">
  436. <type name="Attribute"/>
  437. </type>
  438. </parameter>
  439. </parameters>
  440. </method>
  441. <method name="next" c:identifier="pango_attr_iterator_next">
  442. <doc xml:space="preserve">Advance the iterator until the next change of style.</doc>
  443. <return-value transfer-ownership="none">
  444. <doc xml:space="preserve">%FALSE if the iterator is at the end of the list, otherwise %TRUE</doc>
  445. <type name="gboolean" c:type="gboolean"/>
  446. </return-value>
  447. <parameters>
  448. <instance-parameter name="iterator" transfer-ownership="none">
  449. <doc xml:space="preserve">a #PangoAttrIterator</doc>
  450. <type name="AttrIterator" c:type="PangoAttrIterator*"/>
  451. </instance-parameter>
  452. </parameters>
  453. </method>
  454. <method name="range" c:identifier="pango_attr_iterator_range">
  455. <doc xml:space="preserve">Get the range of the current segment. Note that the
  456. stored return values are signed, not unsigned like
  457. the values in #PangoAttribute. To deal with this API
  458. oversight, stored return values that wouldn't fit into
  459. a signed integer are clamped to %G_MAXINT.</doc>
  460. <return-value transfer-ownership="none">
  461. <type name="none" c:type="void"/>
  462. </return-value>
  463. <parameters>
  464. <instance-parameter name="iterator" transfer-ownership="none">
  465. <doc xml:space="preserve">a #PangoAttrIterator</doc>
  466. <type name="AttrIterator" c:type="PangoAttrIterator*"/>
  467. </instance-parameter>
  468. <parameter name="start"
  469. direction="out"
  470. caller-allocates="0"
  471. transfer-ownership="full">
  472. <doc xml:space="preserve">location to store the start of the range</doc>
  473. <type name="gint" c:type="gint*"/>
  474. </parameter>
  475. <parameter name="end"
  476. direction="out"
  477. caller-allocates="0"
  478. transfer-ownership="full">
  479. <doc xml:space="preserve">location to store the end of the range</doc>
  480. <type name="gint" c:type="gint*"/>
  481. </parameter>
  482. </parameters>
  483. </method>
  484. </record>
  485. <record name="AttrLanguage" c:type="PangoAttrLanguage">
  486. <doc xml:space="preserve">The #PangoAttrLanguage structure is used to represent attributes that
  487. are languages.</doc>
  488. <field name="attr" writable="1">
  489. <doc xml:space="preserve">the common portion of the attribute</doc>
  490. <type name="Attribute" c:type="PangoAttribute"/>
  491. </field>
  492. <field name="value" writable="1">
  493. <doc xml:space="preserve">the #PangoLanguage which is the value of the attribute</doc>
  494. <type name="Language" c:type="PangoLanguage*"/>
  495. </field>
  496. <function name="new"
  497. c:identifier="pango_attr_language_new"
  498. introspectable="0">
  499. <doc xml:space="preserve">Create a new language tag attribute.</doc>
  500. <return-value transfer-ownership="full">
  501. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  502. which should be freed with pango_attribute_destroy().</doc>
  503. <type name="Attribute" c:type="PangoAttribute*"/>
  504. </return-value>
  505. <parameters>
  506. <parameter name="language" transfer-ownership="none">
  507. <doc xml:space="preserve">language tag</doc>
  508. <type name="Language" c:type="PangoLanguage*"/>
  509. </parameter>
  510. </parameters>
  511. </function>
  512. </record>
  513. <record name="AttrList"
  514. c:type="PangoAttrList"
  515. glib:type-name="PangoAttrList"
  516. glib:get-type="pango_attr_list_get_type"
  517. c:symbol-prefix="attr_list">
  518. <doc xml:space="preserve">The #PangoAttrList structure represents a list of attributes
  519. that apply to a section of text. The attributes are, in general,
  520. allowed to overlap in an arbitrary fashion, however, if the
  521. attributes are manipulated only through pango_attr_list_change(),
  522. the overlap between properties will meet stricter criteria.
  523. Since the #PangoAttrList structure is stored as a linear list,
  524. it is not suitable for storing attributes for large amounts
  525. of text. In general, you should not use a single #PangoAttrList
  526. for more than one paragraph of text.</doc>
  527. <constructor name="new" c:identifier="pango_attr_list_new">
  528. <doc xml:space="preserve">Create a new empty attribute list with a reference count of one.</doc>
  529. <return-value transfer-ownership="full">
  530. <doc xml:space="preserve">the newly allocated #PangoAttrList,
  531. which should be freed with pango_attr_list_unref().</doc>
  532. <type name="AttrList" c:type="PangoAttrList*"/>
  533. </return-value>
  534. </constructor>
  535. <method name="change" c:identifier="pango_attr_list_change">
  536. <doc xml:space="preserve">Insert the given attribute into the #PangoAttrList. It will
  537. replace any attributes of the same type on that segment
  538. and be merged with any adjoining attributes that are identical.
  539. This function is slower than pango_attr_list_insert() for
  540. creating a attribute list in order (potentially much slower
  541. for large lists). However, pango_attr_list_insert() is not
  542. suitable for continually changing a set of attributes
  543. since it never removes or combines existing attributes.</doc>
  544. <return-value transfer-ownership="none">
  545. <type name="none" c:type="void"/>
  546. </return-value>
  547. <parameters>
  548. <instance-parameter name="list" transfer-ownership="none">
  549. <doc xml:space="preserve">a #PangoAttrList</doc>
  550. <type name="AttrList" c:type="PangoAttrList*"/>
  551. </instance-parameter>
  552. <parameter name="attr" transfer-ownership="full">
  553. <doc xml:space="preserve">the attribute to insert. Ownership of this
  554. value is assumed by the list.</doc>
  555. <type name="Attribute" c:type="PangoAttribute*"/>
  556. </parameter>
  557. </parameters>
  558. </method>
  559. <method name="copy" c:identifier="pango_attr_list_copy">
  560. <doc xml:space="preserve">Copy @list and return an identical new list.</doc>
  561. <return-value transfer-ownership="full" nullable="1">
  562. <doc xml:space="preserve">the newly allocated #PangoAttrList, with a
  563. reference count of one, which should
  564. be freed with pango_attr_list_unref().
  565. Returns %NULL if @list was %NULL.</doc>
  566. <type name="AttrList" c:type="PangoAttrList*"/>
  567. </return-value>
  568. <parameters>
  569. <instance-parameter name="list"
  570. transfer-ownership="none"
  571. nullable="1"
  572. allow-none="1">
  573. <doc xml:space="preserve">a #PangoAttrList, may be %NULL</doc>
  574. <type name="AttrList" c:type="PangoAttrList*"/>
  575. </instance-parameter>
  576. </parameters>
  577. </method>
  578. <method name="filter"
  579. c:identifier="pango_attr_list_filter"
  580. version="1.2">
  581. <doc xml:space="preserve">Given a #PangoAttrList and callback function, removes any elements
  582. of @list for which @func returns %TRUE and inserts them into
  583. a new list.</doc>
  584. <return-value transfer-ownership="full" nullable="1">
  585. <doc xml:space="preserve">the new #PangoAttrList or
  586. %NULL if no attributes of the given types were found.</doc>
  587. <type name="AttrList" c:type="PangoAttrList*"/>
  588. </return-value>
  589. <parameters>
  590. <instance-parameter name="list" transfer-ownership="none">
  591. <doc xml:space="preserve">a #PangoAttrList</doc>
  592. <type name="AttrList" c:type="PangoAttrList*"/>
  593. </instance-parameter>
  594. <parameter name="func"
  595. transfer-ownership="none"
  596. scope="call"
  597. closure="1">
  598. <doc xml:space="preserve">callback function; returns %TRUE
  599. if an attribute should be filtered out.</doc>
  600. <type name="AttrFilterFunc" c:type="PangoAttrFilterFunc"/>
  601. </parameter>
  602. <parameter name="data"
  603. transfer-ownership="none"
  604. nullable="1"
  605. allow-none="1">
  606. <doc xml:space="preserve">Data to be passed to @func</doc>
  607. <type name="gpointer" c:type="gpointer"/>
  608. </parameter>
  609. </parameters>
  610. </method>
  611. <method name="get_iterator"
  612. c:identifier="pango_attr_list_get_iterator"
  613. introspectable="0">
  614. <doc xml:space="preserve">Create a iterator initialized to the beginning of the list.
  615. @list must not be modified until this iterator is freed.</doc>
  616. <return-value transfer-ownership="full">
  617. <doc xml:space="preserve">the newly allocated #PangoAttrIterator, which should
  618. be freed with pango_attr_iterator_destroy().</doc>
  619. <type name="AttrIterator" c:type="PangoAttrIterator*"/>
  620. </return-value>
  621. <parameters>
  622. <instance-parameter name="list" transfer-ownership="none">
  623. <doc xml:space="preserve">a #PangoAttrList</doc>
  624. <type name="AttrList" c:type="PangoAttrList*"/>
  625. </instance-parameter>
  626. </parameters>
  627. </method>
  628. <method name="insert" c:identifier="pango_attr_list_insert">
  629. <doc xml:space="preserve">Insert the given attribute into the #PangoAttrList. It will
  630. be inserted after all other attributes with a matching
  631. @start_index.</doc>
  632. <return-value transfer-ownership="none">
  633. <type name="none" c:type="void"/>
  634. </return-value>
  635. <parameters>
  636. <instance-parameter name="list" transfer-ownership="none">
  637. <doc xml:space="preserve">a #PangoAttrList</doc>
  638. <type name="AttrList" c:type="PangoAttrList*"/>
  639. </instance-parameter>
  640. <parameter name="attr" transfer-ownership="full">
  641. <doc xml:space="preserve">the attribute to insert. Ownership of this
  642. value is assumed by the list.</doc>
  643. <type name="Attribute" c:type="PangoAttribute*"/>
  644. </parameter>
  645. </parameters>
  646. </method>
  647. <method name="insert_before"
  648. c:identifier="pango_attr_list_insert_before">
  649. <doc xml:space="preserve">Insert the given attribute into the #PangoAttrList. It will
  650. be inserted before all other attributes with a matching
  651. @start_index.</doc>
  652. <return-value transfer-ownership="none">
  653. <type name="none" c:type="void"/>
  654. </return-value>
  655. <parameters>
  656. <instance-parameter name="list" transfer-ownership="none">
  657. <doc xml:space="preserve">a #PangoAttrList</doc>
  658. <type name="AttrList" c:type="PangoAttrList*"/>
  659. </instance-parameter>
  660. <parameter name="attr" transfer-ownership="full">
  661. <doc xml:space="preserve">the attribute to insert. Ownership of this
  662. value is assumed by the list.</doc>
  663. <type name="Attribute" c:type="PangoAttribute*"/>
  664. </parameter>
  665. </parameters>
  666. </method>
  667. <method name="ref" c:identifier="pango_attr_list_ref" version="1.10">
  668. <doc xml:space="preserve">Increase the reference count of the given attribute list by one.</doc>
  669. <return-value transfer-ownership="full">
  670. <doc xml:space="preserve">The attribute list passed in</doc>
  671. <type name="AttrList" c:type="PangoAttrList*"/>
  672. </return-value>
  673. <parameters>
  674. <instance-parameter name="list"
  675. transfer-ownership="none"
  676. nullable="1"
  677. allow-none="1">
  678. <doc xml:space="preserve">a #PangoAttrList, may be %NULL</doc>
  679. <type name="AttrList" c:type="PangoAttrList*"/>
  680. </instance-parameter>
  681. </parameters>
  682. </method>
  683. <method name="splice" c:identifier="pango_attr_list_splice">
  684. <doc xml:space="preserve">This function opens up a hole in @list, fills it in with attributes from
  685. the left, and then merges @other on top of the hole.
  686. This operation is equivalent to stretching every attribute
  687. that applies at position @pos in @list by an amount @len,
  688. and then calling pango_attr_list_change() with a copy
  689. of each attribute in @other in sequence (offset in position by @pos).
  690. This operation proves useful for, for instance, inserting
  691. a pre-edit string in the middle of an edit buffer.</doc>
  692. <return-value transfer-ownership="none">
  693. <type name="none" c:type="void"/>
  694. </return-value>
  695. <parameters>
  696. <instance-parameter name="list" transfer-ownership="none">
  697. <doc xml:space="preserve">a #PangoAttrList</doc>
  698. <type name="AttrList" c:type="PangoAttrList*"/>
  699. </instance-parameter>
  700. <parameter name="other" transfer-ownership="none">
  701. <doc xml:space="preserve">another #PangoAttrList</doc>
  702. <type name="AttrList" c:type="PangoAttrList*"/>
  703. </parameter>
  704. <parameter name="pos" transfer-ownership="none">
  705. <doc xml:space="preserve">the position in @list at which to insert @other</doc>
  706. <type name="gint" c:type="gint"/>
  707. </parameter>
  708. <parameter name="len" transfer-ownership="none">
  709. <doc xml:space="preserve">the length of the spliced segment. (Note that this
  710. must be specified since the attributes in @other
  711. may only be present at some subsection of this range)</doc>
  712. <type name="gint" c:type="gint"/>
  713. </parameter>
  714. </parameters>
  715. </method>
  716. <method name="unref" c:identifier="pango_attr_list_unref">
  717. <doc xml:space="preserve">Decrease the reference count of the given attribute list by one.
  718. If the result is zero, free the attribute list and the attributes
  719. it contains.</doc>
  720. <return-value transfer-ownership="none">
  721. <type name="none" c:type="void"/>
  722. </return-value>
  723. <parameters>
  724. <instance-parameter name="list"
  725. transfer-ownership="none"
  726. nullable="1"
  727. allow-none="1">
  728. <doc xml:space="preserve">a #PangoAttrList, may be %NULL</doc>
  729. <type name="AttrList" c:type="PangoAttrList*"/>
  730. </instance-parameter>
  731. </parameters>
  732. </method>
  733. </record>
  734. <record name="AttrShape" c:type="PangoAttrShape">
  735. <doc xml:space="preserve">The #PangoAttrShape structure is used to represent attributes which
  736. impose shape restrictions.</doc>
  737. <field name="attr" writable="1">
  738. <doc xml:space="preserve">the common portion of the attribute</doc>
  739. <type name="Attribute" c:type="PangoAttribute"/>
  740. </field>
  741. <field name="ink_rect" writable="1">
  742. <doc xml:space="preserve">the ink rectangle to restrict to</doc>
  743. <type name="Rectangle" c:type="PangoRectangle"/>
  744. </field>
  745. <field name="logical_rect" writable="1">
  746. <doc xml:space="preserve">the logical rectangle to restrict to</doc>
  747. <type name="Rectangle" c:type="PangoRectangle"/>
  748. </field>
  749. <field name="data" writable="1">
  750. <doc xml:space="preserve">user data set (see pango_attr_shape_new_with_data())</doc>
  751. <type name="gpointer" c:type="gpointer"/>
  752. </field>
  753. <field name="copy_func" writable="1">
  754. <doc xml:space="preserve">copy function for the user data</doc>
  755. <type name="AttrDataCopyFunc" c:type="PangoAttrDataCopyFunc"/>
  756. </field>
  757. <field name="destroy_func" writable="1">
  758. <doc xml:space="preserve">destroy function for the user data</doc>
  759. <type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
  760. </field>
  761. <function name="new"
  762. c:identifier="pango_attr_shape_new"
  763. introspectable="0">
  764. <doc xml:space="preserve">Create a new shape attribute. A shape is used to impose a
  765. particular ink and logical rectangle on the result of shaping a
  766. particular glyph. This might be used, for instance, for
  767. embedding a picture or a widget inside a #PangoLayout.</doc>
  768. <return-value transfer-ownership="full">
  769. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  770. which should be freed with pango_attribute_destroy().</doc>
  771. <type name="Attribute" c:type="PangoAttribute*"/>
  772. </return-value>
  773. <parameters>
  774. <parameter name="ink_rect" transfer-ownership="none">
  775. <doc xml:space="preserve">ink rectangle to assign to each character</doc>
  776. <type name="Rectangle" c:type="const PangoRectangle*"/>
  777. </parameter>
  778. <parameter name="logical_rect" transfer-ownership="none">
  779. <doc xml:space="preserve">logical rectangle to assign to each character</doc>
  780. <type name="Rectangle" c:type="const PangoRectangle*"/>
  781. </parameter>
  782. </parameters>
  783. </function>
  784. <function name="new_with_data"
  785. c:identifier="pango_attr_shape_new_with_data"
  786. version="1.8"
  787. introspectable="0">
  788. <doc xml:space="preserve">Like pango_attr_shape_new(), but a user data pointer is also
  789. provided; this pointer can be accessed when later
  790. rendering the glyph.</doc>
  791. <return-value>
  792. <doc xml:space="preserve">the newly allocated #PangoAttribute, which should be
  793. freed with pango_attribute_destroy().</doc>
  794. <type name="Attribute" c:type="PangoAttribute*"/>
  795. </return-value>
  796. <parameters>
  797. <parameter name="ink_rect" transfer-ownership="none">
  798. <doc xml:space="preserve">ink rectangle to assign to each character</doc>
  799. <type name="Rectangle" c:type="const PangoRectangle*"/>
  800. </parameter>
  801. <parameter name="logical_rect" transfer-ownership="none">
  802. <doc xml:space="preserve">logical rectangle to assign to each character</doc>
  803. <type name="Rectangle" c:type="const PangoRectangle*"/>
  804. </parameter>
  805. <parameter name="data"
  806. transfer-ownership="none"
  807. nullable="1"
  808. allow-none="1">
  809. <doc xml:space="preserve">user data pointer</doc>
  810. <type name="gpointer" c:type="gpointer"/>
  811. </parameter>
  812. <parameter name="copy_func"
  813. transfer-ownership="none"
  814. nullable="1"
  815. allow-none="1"
  816. scope="notified"
  817. destroy="4">
  818. <doc xml:space="preserve">function to copy @data when the
  819. attribute is copied. If %NULL, @data is simply
  820. copied as a pointer.</doc>
  821. <type name="AttrDataCopyFunc" c:type="PangoAttrDataCopyFunc"/>
  822. </parameter>
  823. <parameter name="destroy_func"
  824. transfer-ownership="none"
  825. nullable="1"
  826. allow-none="1"
  827. scope="async">
  828. <doc xml:space="preserve">function to free @data when the
  829. attribute is freed, or %NULL</doc>
  830. <type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
  831. </parameter>
  832. </parameters>
  833. </function>
  834. </record>
  835. <record name="AttrSize" c:type="PangoAttrSize">
  836. <doc xml:space="preserve">The #PangoAttrSize structure is used to represent attributes which
  837. set font size.</doc>
  838. <field name="attr" writable="1">
  839. <doc xml:space="preserve">the common portion of the attribute</doc>
  840. <type name="Attribute" c:type="PangoAttribute"/>
  841. </field>
  842. <field name="size" writable="1">
  843. <doc xml:space="preserve">size of font, in units of 1/%PANGO_SCALE of a point (for
  844. %PANGO_ATTR_SIZE) or of a device uni (for %PANGO_ATTR_ABSOLUTE_SIZE)</doc>
  845. <type name="gint" c:type="int"/>
  846. </field>
  847. <field name="absolute" writable="1" bits="1">
  848. <doc xml:space="preserve">whether the font size is in device units or points.
  849. This field is only present for compatibility with Pango-1.8.0
  850. (%PANGO_ATTR_ABSOLUTE_SIZE was added in 1.8.1); and always will
  851. be %FALSE for %PANGO_ATTR_SIZE and %TRUE for %PANGO_ATTR_ABSOLUTE_SIZE.</doc>
  852. <type name="guint" c:type="guint"/>
  853. </field>
  854. <function name="new"
  855. c:identifier="pango_attr_size_new"
  856. introspectable="0">
  857. <doc xml:space="preserve">Create a new font-size attribute in fractional points.</doc>
  858. <return-value transfer-ownership="full">
  859. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  860. which should be freed with pango_attribute_destroy().</doc>
  861. <type name="Attribute" c:type="PangoAttribute*"/>
  862. </return-value>
  863. <parameters>
  864. <parameter name="size" transfer-ownership="none">
  865. <doc xml:space="preserve">the font size, in %PANGO_SCALE&lt;!-- --&gt;ths of a point.</doc>
  866. <type name="gint" c:type="int"/>
  867. </parameter>
  868. </parameters>
  869. </function>
  870. <function name="new_absolute"
  871. c:identifier="pango_attr_size_new_absolute"
  872. version="1.8"
  873. introspectable="0">
  874. <doc xml:space="preserve">Create a new font-size attribute in device units.</doc>
  875. <return-value>
  876. <doc xml:space="preserve">the newly allocated #PangoAttribute, which should be
  877. freed with pango_attribute_destroy().</doc>
  878. <type name="Attribute" c:type="PangoAttribute*"/>
  879. </return-value>
  880. <parameters>
  881. <parameter name="size" transfer-ownership="none">
  882. <doc xml:space="preserve">the font size, in %PANGO_SCALE&lt;!-- --&gt;ths of a device unit.</doc>
  883. <type name="gint" c:type="int"/>
  884. </parameter>
  885. </parameters>
  886. </function>
  887. </record>
  888. <record name="AttrString" c:type="PangoAttrString">
  889. <doc xml:space="preserve">The #PangoAttrString structure is used to represent attributes with
  890. a string value.</doc>
  891. <field name="attr" writable="1">
  892. <doc xml:space="preserve">the common portion of the attribute</doc>
  893. <type name="Attribute" c:type="PangoAttribute"/>
  894. </field>
  895. <field name="value" writable="1">
  896. <doc xml:space="preserve">the string which is the value of the attribute</doc>
  897. <type name="utf8" c:type="char*"/>
  898. </field>
  899. </record>
  900. <enumeration name="AttrType"
  901. glib:type-name="PangoAttrType"
  902. glib:get-type="pango_attr_type_get_type"
  903. c:type="PangoAttrType">
  904. <doc xml:space="preserve">The #PangoAttrType
  905. distinguishes between different types of attributes. Along with the
  906. predefined values, it is possible to allocate additional values
  907. for custom attributes using pango_attr_type_register(). The predefined
  908. values are given below. The type of structure used to store the
  909. attribute is listed in parentheses after the description.</doc>
  910. <member name="invalid"
  911. value="0"
  912. c:identifier="PANGO_ATTR_INVALID"
  913. glib:nick="invalid">
  914. <doc xml:space="preserve">does not happen</doc>
  915. </member>
  916. <member name="language"
  917. value="1"
  918. c:identifier="PANGO_ATTR_LANGUAGE"
  919. glib:nick="language">
  920. <doc xml:space="preserve">language (#PangoAttrLanguage)</doc>
  921. </member>
  922. <member name="family"
  923. value="2"
  924. c:identifier="PANGO_ATTR_FAMILY"
  925. glib:nick="family">
  926. <doc xml:space="preserve">font family name list (#PangoAttrString)</doc>
  927. </member>
  928. <member name="style"
  929. value="3"
  930. c:identifier="PANGO_ATTR_STYLE"
  931. glib:nick="style">
  932. <doc xml:space="preserve">font slant style (#PangoAttrInt)</doc>
  933. </member>
  934. <member name="weight"
  935. value="4"
  936. c:identifier="PANGO_ATTR_WEIGHT"
  937. glib:nick="weight">
  938. <doc xml:space="preserve">font weight (#PangoAttrInt)</doc>
  939. </member>
  940. <member name="variant"
  941. value="5"
  942. c:identifier="PANGO_ATTR_VARIANT"
  943. glib:nick="variant">
  944. <doc xml:space="preserve">font variant (normal or small caps) (#PangoAttrInt)</doc>
  945. </member>
  946. <member name="stretch"
  947. value="6"
  948. c:identifier="PANGO_ATTR_STRETCH"
  949. glib:nick="stretch">
  950. <doc xml:space="preserve">font stretch (#PangoAttrInt)</doc>
  951. </member>
  952. <member name="size"
  953. value="7"
  954. c:identifier="PANGO_ATTR_SIZE"
  955. glib:nick="size">
  956. <doc xml:space="preserve">font size in points scaled by %PANGO_SCALE (#PangoAttrInt)</doc>
  957. </member>
  958. <member name="font_desc"
  959. value="8"
  960. c:identifier="PANGO_ATTR_FONT_DESC"
  961. glib:nick="font-desc">
  962. <doc xml:space="preserve">font description (#PangoAttrFontDesc)</doc>
  963. </member>
  964. <member name="foreground"
  965. value="9"
  966. c:identifier="PANGO_ATTR_FOREGROUND"
  967. glib:nick="foreground">
  968. <doc xml:space="preserve">foreground color (#PangoAttrColor)</doc>
  969. </member>
  970. <member name="background"
  971. value="10"
  972. c:identifier="PANGO_ATTR_BACKGROUND"
  973. glib:nick="background">
  974. <doc xml:space="preserve">background color (#PangoAttrColor)</doc>
  975. </member>
  976. <member name="underline"
  977. value="11"
  978. c:identifier="PANGO_ATTR_UNDERLINE"
  979. glib:nick="underline">
  980. <doc xml:space="preserve">whether the text has an underline (#PangoAttrInt)</doc>
  981. </member>
  982. <member name="strikethrough"
  983. value="12"
  984. c:identifier="PANGO_ATTR_STRIKETHROUGH"
  985. glib:nick="strikethrough">
  986. <doc xml:space="preserve">whether the text is struck-through (#PangoAttrInt)</doc>
  987. </member>
  988. <member name="rise"
  989. value="13"
  990. c:identifier="PANGO_ATTR_RISE"
  991. glib:nick="rise">
  992. <doc xml:space="preserve">baseline displacement (#PangoAttrInt)</doc>
  993. </member>
  994. <member name="shape"
  995. value="14"
  996. c:identifier="PANGO_ATTR_SHAPE"
  997. glib:nick="shape">
  998. <doc xml:space="preserve">shape (#PangoAttrShape)</doc>
  999. </member>
  1000. <member name="scale"
  1001. value="15"
  1002. c:identifier="PANGO_ATTR_SCALE"
  1003. glib:nick="scale">
  1004. <doc xml:space="preserve">font size scale factor (#PangoAttrFloat)</doc>
  1005. </member>
  1006. <member name="fallback"
  1007. value="16"
  1008. c:identifier="PANGO_ATTR_FALLBACK"
  1009. glib:nick="fallback">
  1010. <doc xml:space="preserve">whether fallback is enabled (#PangoAttrInt)</doc>
  1011. </member>
  1012. <member name="letter_spacing"
  1013. value="17"
  1014. c:identifier="PANGO_ATTR_LETTER_SPACING"
  1015. glib:nick="letter-spacing">
  1016. <doc xml:space="preserve">letter spacing (#PangoAttrInt)</doc>
  1017. </member>
  1018. <member name="underline_color"
  1019. value="18"
  1020. c:identifier="PANGO_ATTR_UNDERLINE_COLOR"
  1021. glib:nick="underline-color">
  1022. <doc xml:space="preserve">underline color (#PangoAttrColor)</doc>
  1023. </member>
  1024. <member name="strikethrough_color"
  1025. value="19"
  1026. c:identifier="PANGO_ATTR_STRIKETHROUGH_COLOR"
  1027. glib:nick="strikethrough-color">
  1028. <doc xml:space="preserve">strikethrough color (#PangoAttrColor)</doc>
  1029. </member>
  1030. <member name="absolute_size"
  1031. value="20"
  1032. c:identifier="PANGO_ATTR_ABSOLUTE_SIZE"
  1033. glib:nick="absolute-size">
  1034. <doc xml:space="preserve">font size in pixels scaled by %PANGO_SCALE (#PangoAttrInt)</doc>
  1035. </member>
  1036. <member name="gravity"
  1037. value="21"
  1038. c:identifier="PANGO_ATTR_GRAVITY"
  1039. glib:nick="gravity">
  1040. <doc xml:space="preserve">base text gravity (#PangoAttrInt)</doc>
  1041. </member>
  1042. <member name="gravity_hint"
  1043. value="22"
  1044. c:identifier="PANGO_ATTR_GRAVITY_HINT"
  1045. glib:nick="gravity-hint">
  1046. <doc xml:space="preserve">gravity hint (#PangoAttrInt)</doc>
  1047. </member>
  1048. <member name="font_features"
  1049. value="23"
  1050. c:identifier="PANGO_ATTR_FONT_FEATURES"
  1051. glib:nick="font-features">
  1052. <doc xml:space="preserve">OpenType font features (#PangoAttrString). Since 1.38</doc>
  1053. </member>
  1054. <member name="foreground_alpha"
  1055. value="24"
  1056. c:identifier="PANGO_ATTR_FOREGROUND_ALPHA"
  1057. glib:nick="foreground-alpha">
  1058. <doc xml:space="preserve">foreground alpha (#PangoAttrInt). Since 1.38</doc>
  1059. </member>
  1060. <member name="background_alpha"
  1061. value="25"
  1062. c:identifier="PANGO_ATTR_BACKGROUND_ALPHA"
  1063. glib:nick="background-alpha">
  1064. <doc xml:space="preserve">background alpha (#PangoAttrInt). Since 1.38</doc>
  1065. </member>
  1066. <function name="get_name"
  1067. c:identifier="pango_attr_type_get_name"
  1068. version="1.22">
  1069. <doc xml:space="preserve">Fetches the attribute type name passed in when registering the type using
  1070. pango_attr_type_register().
  1071. The returned value is an interned string (see g_intern_string() for what
  1072. that means) that should not be modified or freed.</doc>
  1073. <return-value transfer-ownership="none" nullable="1">
  1074. <doc xml:space="preserve">the type ID name (which may be %NULL), or
  1075. %NULL if @type is a built-in Pango attribute type or invalid.</doc>
  1076. <type name="utf8" c:type="const char*"/>
  1077. </return-value>
  1078. <parameters>
  1079. <parameter name="type" transfer-ownership="none">
  1080. <doc xml:space="preserve">an attribute type ID to fetch the name for</doc>
  1081. <type name="AttrType" c:type="PangoAttrType"/>
  1082. </parameter>
  1083. </parameters>
  1084. </function>
  1085. <function name="register" c:identifier="pango_attr_type_register">
  1086. <doc xml:space="preserve">Allocate a new attribute type ID. The attribute type name can be accessed
  1087. later by using pango_attr_type_get_name().</doc>
  1088. <return-value transfer-ownership="none">
  1089. <doc xml:space="preserve">the new type ID.</doc>
  1090. <type name="AttrType" c:type="PangoAttrType"/>
  1091. </return-value>
  1092. <parameters>
  1093. <parameter name="name" transfer-ownership="none">
  1094. <doc xml:space="preserve">an identifier for the type</doc>
  1095. <type name="utf8" c:type="const gchar*"/>
  1096. </parameter>
  1097. </parameters>
  1098. </function>
  1099. </enumeration>
  1100. <record name="Attribute" c:type="PangoAttribute">
  1101. <doc xml:space="preserve">The #PangoAttribute structure represents the common portions of all
  1102. attributes. Particular types of attributes include this structure
  1103. as their initial portion. The common portion of the attribute holds
  1104. the range to which the value in the type-specific part of the attribute
  1105. applies and should be initialized using pango_attribute_init().
  1106. By default an attribute will have an all-inclusive range of [0,%G_MAXUINT].</doc>
  1107. <field name="klass" writable="1">
  1108. <doc xml:space="preserve">the class structure holding information about the type of the attribute</doc>
  1109. <type name="AttrClass" c:type="const PangoAttrClass*"/>
  1110. </field>
  1111. <field name="start_index" writable="1">
  1112. <doc xml:space="preserve">the start index of the range (in bytes).</doc>
  1113. <type name="guint" c:type="guint"/>
  1114. </field>
  1115. <field name="end_index" writable="1">
  1116. <doc xml:space="preserve">end index of the range (in bytes). The character at this index
  1117. is not included in the range.</doc>
  1118. <type name="guint" c:type="guint"/>
  1119. </field>
  1120. <method name="copy"
  1121. c:identifier="pango_attribute_copy"
  1122. introspectable="0">
  1123. <doc xml:space="preserve">Make a copy of an attribute.</doc>
  1124. <return-value transfer-ownership="full">
  1125. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  1126. which should be freed with pango_attribute_destroy().</doc>
  1127. <type name="Attribute" c:type="PangoAttribute*"/>
  1128. </return-value>
  1129. <parameters>
  1130. <instance-parameter name="attr" transfer-ownership="none">
  1131. <doc xml:space="preserve">a #PangoAttribute</doc>
  1132. <type name="Attribute" c:type="const PangoAttribute*"/>
  1133. </instance-parameter>
  1134. </parameters>
  1135. </method>
  1136. <method name="destroy" c:identifier="pango_attribute_destroy">
  1137. <doc xml:space="preserve">Destroy a #PangoAttribute and free all associated memory.</doc>
  1138. <return-value transfer-ownership="none">
  1139. <type name="none" c:type="void"/>
  1140. </return-value>
  1141. <parameters>
  1142. <instance-parameter name="attr" transfer-ownership="none">
  1143. <doc xml:space="preserve">a #PangoAttribute.</doc>
  1144. <type name="Attribute" c:type="PangoAttribute*"/>
  1145. </instance-parameter>
  1146. </parameters>
  1147. </method>
  1148. <method name="equal" c:identifier="pango_attribute_equal">
  1149. <doc xml:space="preserve">Compare two attributes for equality. This compares only the
  1150. actual value of the two attributes and not the ranges that the
  1151. attributes apply to.</doc>
  1152. <return-value transfer-ownership="none">
  1153. <doc xml:space="preserve">%TRUE if the two attributes have the same value.</doc>
  1154. <type name="gboolean" c:type="gboolean"/>
  1155. </return-value>
  1156. <parameters>
  1157. <instance-parameter name="attr1" transfer-ownership="none">
  1158. <doc xml:space="preserve">a #PangoAttribute</doc>
  1159. <type name="Attribute" c:type="const PangoAttribute*"/>
  1160. </instance-parameter>
  1161. <parameter name="attr2" transfer-ownership="none">
  1162. <doc xml:space="preserve">another #PangoAttribute</doc>
  1163. <type name="Attribute" c:type="const PangoAttribute*"/>
  1164. </parameter>
  1165. </parameters>
  1166. </method>
  1167. <method name="init" c:identifier="pango_attribute_init" version="1.20">
  1168. <doc xml:space="preserve">Initializes @attr's klass to @klass,
  1169. it's start_index to %PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING
  1170. and end_index to %PANGO_ATTR_INDEX_TO_TEXT_END
  1171. such that the attribute applies
  1172. to the entire text by default.</doc>
  1173. <return-value transfer-ownership="none">
  1174. <type name="none" c:type="void"/>
  1175. </return-value>
  1176. <parameters>
  1177. <instance-parameter name="attr" transfer-ownership="none">
  1178. <doc xml:space="preserve">a #PangoAttribute</doc>
  1179. <type name="Attribute" c:type="PangoAttribute*"/>
  1180. </instance-parameter>
  1181. <parameter name="klass" transfer-ownership="none">
  1182. <doc xml:space="preserve">a #PangoAttrClass</doc>
  1183. <type name="AttrClass" c:type="const PangoAttrClass*"/>
  1184. </parameter>
  1185. </parameters>
  1186. </method>
  1187. </record>
  1188. <enumeration name="BidiType"
  1189. version="1.22"
  1190. glib:type-name="PangoBidiType"
  1191. glib:get-type="pango_bidi_type_get_type"
  1192. c:type="PangoBidiType">
  1193. <doc xml:space="preserve">The #PangoBidiType type represents the bidirectional character
  1194. type of a Unicode character as specified by the
  1195. &lt;ulink url="http://www.unicode.org/reports/tr9/"&gt;Unicode bidirectional algorithm&lt;/ulink&gt;.</doc>
  1196. <member name="l"
  1197. value="0"
  1198. c:identifier="PANGO_BIDI_TYPE_L"
  1199. glib:nick="l">
  1200. <doc xml:space="preserve">Left-to-Right</doc>
  1201. </member>
  1202. <member name="lre"
  1203. value="1"
  1204. c:identifier="PANGO_BIDI_TYPE_LRE"
  1205. glib:nick="lre">
  1206. <doc xml:space="preserve">Left-to-Right Embedding</doc>
  1207. </member>
  1208. <member name="lro"
  1209. value="2"
  1210. c:identifier="PANGO_BIDI_TYPE_LRO"
  1211. glib:nick="lro">
  1212. <doc xml:space="preserve">Left-to-Right Override</doc>
  1213. </member>
  1214. <member name="r"
  1215. value="3"
  1216. c:identifier="PANGO_BIDI_TYPE_R"
  1217. glib:nick="r">
  1218. <doc xml:space="preserve">Right-to-Left</doc>
  1219. </member>
  1220. <member name="al"
  1221. value="4"
  1222. c:identifier="PANGO_BIDI_TYPE_AL"
  1223. glib:nick="al">
  1224. <doc xml:space="preserve">Right-to-Left Arabic</doc>
  1225. </member>
  1226. <member name="rle"
  1227. value="5"
  1228. c:identifier="PANGO_BIDI_TYPE_RLE"
  1229. glib:nick="rle">
  1230. <doc xml:space="preserve">Right-to-Left Embedding</doc>
  1231. </member>
  1232. <member name="rlo"
  1233. value="6"
  1234. c:identifier="PANGO_BIDI_TYPE_RLO"
  1235. glib:nick="rlo">
  1236. <doc xml:space="preserve">Right-to-Left Override</doc>
  1237. </member>
  1238. <member name="pdf"
  1239. value="7"
  1240. c:identifier="PANGO_BIDI_TYPE_PDF"
  1241. glib:nick="pdf">
  1242. <doc xml:space="preserve">Pop Directional Format</doc>
  1243. </member>
  1244. <member name="en"
  1245. value="8"
  1246. c:identifier="PANGO_BIDI_TYPE_EN"
  1247. glib:nick="en">
  1248. <doc xml:space="preserve">European Number</doc>
  1249. </member>
  1250. <member name="es"
  1251. value="9"
  1252. c:identifier="PANGO_BIDI_TYPE_ES"
  1253. glib:nick="es">
  1254. <doc xml:space="preserve">European Number Separator</doc>
  1255. </member>
  1256. <member name="et"
  1257. value="10"
  1258. c:identifier="PANGO_BIDI_TYPE_ET"
  1259. glib:nick="et">
  1260. <doc xml:space="preserve">European Number Terminator</doc>
  1261. </member>
  1262. <member name="an"
  1263. value="11"
  1264. c:identifier="PANGO_BIDI_TYPE_AN"
  1265. glib:nick="an">
  1266. <doc xml:space="preserve">Arabic Number</doc>
  1267. </member>
  1268. <member name="cs"
  1269. value="12"
  1270. c:identifier="PANGO_BIDI_TYPE_CS"
  1271. glib:nick="cs">
  1272. <doc xml:space="preserve">Common Number Separator</doc>
  1273. </member>
  1274. <member name="nsm"
  1275. value="13"
  1276. c:identifier="PANGO_BIDI_TYPE_NSM"
  1277. glib:nick="nsm">
  1278. <doc xml:space="preserve">Nonspacing Mark</doc>
  1279. </member>
  1280. <member name="bn"
  1281. value="14"
  1282. c:identifier="PANGO_BIDI_TYPE_BN"
  1283. glib:nick="bn">
  1284. <doc xml:space="preserve">Boundary Neutral</doc>
  1285. </member>
  1286. <member name="b"
  1287. value="15"
  1288. c:identifier="PANGO_BIDI_TYPE_B"
  1289. glib:nick="b">
  1290. <doc xml:space="preserve">Paragraph Separator</doc>
  1291. </member>
  1292. <member name="s"
  1293. value="16"
  1294. c:identifier="PANGO_BIDI_TYPE_S"
  1295. glib:nick="s">
  1296. <doc xml:space="preserve">Segment Separator</doc>
  1297. </member>
  1298. <member name="ws"
  1299. value="17"
  1300. c:identifier="PANGO_BIDI_TYPE_WS"
  1301. glib:nick="ws">
  1302. <doc xml:space="preserve">Whitespace</doc>
  1303. </member>
  1304. <member name="on"
  1305. value="18"
  1306. c:identifier="PANGO_BIDI_TYPE_ON"
  1307. glib:nick="on">
  1308. <doc xml:space="preserve">Other Neutrals</doc>
  1309. </member>
  1310. <function name="for_unichar"
  1311. c:identifier="pango_bidi_type_for_unichar"
  1312. version="1.22">
  1313. <doc xml:space="preserve">Determines the normative bidirectional character type of a
  1314. character, as specified in the Unicode Character Database.
  1315. A simplified version of this function is available as
  1316. pango_unichar_direction().</doc>
  1317. <return-value transfer-ownership="none">
  1318. <doc xml:space="preserve">the bidirectional character type, as used in the
  1319. Unicode bidirectional algorithm.</doc>
  1320. <type name="BidiType" c:type="PangoBidiType"/>
  1321. </return-value>
  1322. <parameters>
  1323. <parameter name="ch" transfer-ownership="none">
  1324. <doc xml:space="preserve">a Unicode character</doc>
  1325. <type name="gunichar" c:type="gunichar"/>
  1326. </parameter>
  1327. </parameters>
  1328. </function>
  1329. </enumeration>
  1330. <record name="Color"
  1331. c:type="PangoColor"
  1332. glib:type-name="PangoColor"
  1333. glib:get-type="pango_color_get_type"
  1334. c:symbol-prefix="color">
  1335. <doc xml:space="preserve">The #PangoColor structure is used to
  1336. represent a color in an uncalibrated RGB color-space.</doc>
  1337. <field name="red" writable="1">
  1338. <doc xml:space="preserve">value of red component</doc>
  1339. <type name="guint16" c:type="guint16"/>
  1340. </field>
  1341. <field name="green" writable="1">
  1342. <doc xml:space="preserve">value of green component</doc>
  1343. <type name="guint16" c:type="guint16"/>
  1344. </field>
  1345. <field name="blue" writable="1">
  1346. <doc xml:space="preserve">value of blue component</doc>
  1347. <type name="guint16" c:type="guint16"/>
  1348. </field>
  1349. <method name="copy" c:identifier="pango_color_copy">
  1350. <doc xml:space="preserve">Creates a copy of @src, which should be freed with
  1351. pango_color_free(). Primarily used by language bindings,
  1352. not that useful otherwise (since colors can just be copied
  1353. by assignment in C).</doc>
  1354. <return-value transfer-ownership="full" nullable="1">
  1355. <doc xml:space="preserve">the newly allocated #PangoColor, which
  1356. should be freed with pango_color_free(), or %NULL if
  1357. @src was %NULL.</doc>
  1358. <type name="Color" c:type="PangoColor*"/>
  1359. </return-value>
  1360. <parameters>
  1361. <instance-parameter name="src"
  1362. transfer-ownership="none"
  1363. nullable="1"
  1364. allow-none="1">
  1365. <doc xml:space="preserve">color to copy, may be %NULL</doc>
  1366. <type name="Color" c:type="const PangoColor*"/>
  1367. </instance-parameter>
  1368. </parameters>
  1369. </method>
  1370. <method name="free" c:identifier="pango_color_free">
  1371. <doc xml:space="preserve">Frees a color allocated by pango_color_copy().</doc>
  1372. <return-value transfer-ownership="none">
  1373. <type name="none" c:type="void"/>
  1374. </return-value>
  1375. <parameters>
  1376. <instance-parameter name="color"
  1377. transfer-ownership="none"
  1378. nullable="1"
  1379. allow-none="1">
  1380. <doc xml:space="preserve">an allocated #PangoColor, may be %NULL</doc>
  1381. <type name="Color" c:type="PangoColor*"/>
  1382. </instance-parameter>
  1383. </parameters>
  1384. </method>
  1385. <method name="parse" c:identifier="pango_color_parse">
  1386. <doc xml:space="preserve">Fill in the fields of a color from a string specification. The
  1387. string can either one of a large set of standard names. (Taken
  1388. from the CSS &lt;ulink url="http://dev.w3.org/csswg/css-color/#named-colors"&gt;specification&lt;/ulink&gt;), or it can be a hexadecimal
  1389. value in the
  1390. form '&amp;num;rgb' '&amp;num;rrggbb' '&amp;num;rrrgggbbb' or '&amp;num;rrrrggggbbbb' where
  1391. 'r', 'g' and 'b' are hex digits of the red, green, and blue
  1392. components of the color, respectively. (White in the four
  1393. forms is '&amp;num;fff' '&amp;num;ffffff' '&amp;num;fffffffff' and '&amp;num;ffffffffffff')</doc>
  1394. <return-value transfer-ownership="none">
  1395. <doc xml:space="preserve">%TRUE if parsing of the specifier succeeded,
  1396. otherwise false.</doc>
  1397. <type name="gboolean" c:type="gboolean"/>
  1398. </return-value>
  1399. <parameters>
  1400. <instance-parameter name="color"
  1401. transfer-ownership="none"
  1402. nullable="1"
  1403. allow-none="1">
  1404. <doc xml:space="preserve">a #PangoColor structure in which to store the
  1405. result, or %NULL</doc>
  1406. <type name="Color" c:type="PangoColor*"/>
  1407. </instance-parameter>
  1408. <parameter name="spec" transfer-ownership="none">
  1409. <doc xml:space="preserve">a string specifying the new color</doc>
  1410. <type name="utf8" c:type="const char*"/>
  1411. </parameter>
  1412. </parameters>
  1413. </method>
  1414. <method name="to_string"
  1415. c:identifier="pango_color_to_string"
  1416. version="1.16">
  1417. <doc xml:space="preserve">Returns a textual specification of @color in the hexadecimal form
  1418. &lt;literal&gt;&amp;num;rrrrggggbbbb&lt;/literal&gt;, where &lt;literal&gt;r&lt;/literal&gt;,
  1419. &lt;literal&gt;g&lt;/literal&gt; and &lt;literal&gt;b&lt;/literal&gt; are hex digits representing
  1420. the red, green, and blue components respectively.</doc>
  1421. <return-value transfer-ownership="full">
  1422. <doc xml:space="preserve">a newly-allocated text string that must be freed with g_free().</doc>
  1423. <type name="utf8" c:type="gchar*"/>
  1424. </return-value>
  1425. <parameters>
  1426. <instance-parameter name="color" transfer-ownership="none">
  1427. <doc xml:space="preserve">a #PangoColor</doc>
  1428. <type name="Color" c:type="const PangoColor*"/>
  1429. </instance-parameter>
  1430. </parameters>
  1431. </method>
  1432. </record>
  1433. <class name="Context"
  1434. c:symbol-prefix="context"
  1435. c:type="PangoContext"
  1436. parent="GObject.Object"
  1437. glib:type-name="PangoContext"
  1438. glib:get-type="pango_context_get_type"
  1439. glib:type-struct="ContextClass">
  1440. <doc xml:space="preserve">The #PangoContext structure stores global information
  1441. used to control the itemization process.</doc>
  1442. <constructor name="new" c:identifier="pango_context_new">
  1443. <doc xml:space="preserve">Creates a new #PangoContext initialized to default values.
  1444. This function is not particularly useful as it should always
  1445. be followed by a pango_context_set_font_map() call, and the
  1446. function pango_font_map_create_context() does these two steps
  1447. together and hence users are recommended to use that.
  1448. If you are using Pango as part of a higher-level system,
  1449. that system may have it's own way of create a #PangoContext.
  1450. For instance, the GTK+ toolkit has, among others,
  1451. gdk_pango_context_get_for_screen(), and
  1452. gtk_widget_get_pango_context(). Use those instead.</doc>
  1453. <return-value transfer-ownership="full">
  1454. <doc xml:space="preserve">the newly allocated #PangoContext, which should
  1455. be freed with g_object_unref().</doc>
  1456. <type name="Context" c:type="PangoContext*"/>
  1457. </return-value>
  1458. </constructor>
  1459. <method name="changed"
  1460. c:identifier="pango_context_changed"
  1461. version="1.32.4">
  1462. <doc xml:space="preserve">Forces a change in the context, which will cause any #PangoLayout
  1463. using this context to re-layout.
  1464. This function is only useful when implementing a new backend
  1465. for Pango, something applications won't do. Backends should
  1466. call this function if they have attached extra data to the context
  1467. and such data is changed.</doc>
  1468. <return-value transfer-ownership="none">
  1469. <type name="none" c:type="void"/>
  1470. </return-value>
  1471. <parameters>
  1472. <instance-parameter name="context" transfer-ownership="none">
  1473. <doc xml:space="preserve">a #PangoContext</doc>
  1474. <type name="Context" c:type="PangoContext*"/>
  1475. </instance-parameter>
  1476. </parameters>
  1477. </method>
  1478. <method name="get_base_dir" c:identifier="pango_context_get_base_dir">
  1479. <doc xml:space="preserve">Retrieves the base direction for the context. See
  1480. pango_context_set_base_dir().</doc>
  1481. <return-value transfer-ownership="none">
  1482. <doc xml:space="preserve">the base direction for the context.</doc>
  1483. <type name="Direction" c:type="PangoDirection"/>
  1484. </return-value>
  1485. <parameters>
  1486. <instance-parameter name="context" transfer-ownership="none">
  1487. <doc xml:space="preserve">a #PangoContext</doc>
  1488. <type name="Context" c:type="PangoContext*"/>
  1489. </instance-parameter>
  1490. </parameters>
  1491. </method>
  1492. <method name="get_base_gravity"
  1493. c:identifier="pango_context_get_base_gravity"
  1494. version="1.16">
  1495. <doc xml:space="preserve">Retrieves the base gravity for the context. See
  1496. pango_context_set_base_gravity().</doc>
  1497. <return-value transfer-ownership="none">
  1498. <doc xml:space="preserve">the base gravity for the context.</doc>
  1499. <type name="Gravity" c:type="PangoGravity"/>
  1500. </return-value>
  1501. <parameters>
  1502. <instance-parameter name="context" transfer-ownership="none">
  1503. <doc xml:space="preserve">a #PangoContext</doc>
  1504. <type name="Context" c:type="PangoContext*"/>
  1505. </instance-parameter>
  1506. </parameters>
  1507. </method>
  1508. <method name="get_font_description"
  1509. c:identifier="pango_context_get_font_description">
  1510. <doc xml:space="preserve">Retrieve the default font description for the context.</doc>
  1511. <return-value transfer-ownership="none">
  1512. <doc xml:space="preserve">a pointer to the context's default font
  1513. description. This value must not be modified or freed.</doc>
  1514. <type name="FontDescription" c:type="PangoFontDescription*"/>
  1515. </return-value>
  1516. <parameters>
  1517. <instance-parameter name="context" transfer-ownership="none">
  1518. <doc xml:space="preserve">a #PangoContext</doc>
  1519. <type name="Context" c:type="PangoContext*"/>
  1520. </instance-parameter>
  1521. </parameters>
  1522. </method>
  1523. <method name="get_font_map"
  1524. c:identifier="pango_context_get_font_map"
  1525. version="1.6">
  1526. <doc xml:space="preserve">Gets the #PangoFontMap used to look up fonts for this context.</doc>
  1527. <return-value transfer-ownership="none">
  1528. <doc xml:space="preserve">the font map for the #PangoContext.
  1529. This value is owned by Pango and should not be unreferenced.</doc>
  1530. <type name="FontMap" c:type="PangoFontMap*"/>
  1531. </return-value>
  1532. <parameters>
  1533. <instance-parameter name="context" transfer-ownership="none">
  1534. <doc xml:space="preserve">a #PangoContext</doc>
  1535. <type name="Context" c:type="PangoContext*"/>
  1536. </instance-parameter>
  1537. </parameters>
  1538. </method>
  1539. <method name="get_gravity"
  1540. c:identifier="pango_context_get_gravity"
  1541. version="1.16">
  1542. <doc xml:space="preserve">Retrieves the gravity for the context. This is similar to
  1543. pango_context_get_base_gravity(), except for when the base gravity
  1544. is %PANGO_GRAVITY_AUTO for which pango_gravity_get_for_matrix() is used
  1545. to return the gravity from the current context matrix.</doc>
  1546. <return-value transfer-ownership="none">
  1547. <doc xml:space="preserve">the resolved gravity for the context.</doc>
  1548. <type name="Gravity" c:type="PangoGravity"/>
  1549. </return-value>
  1550. <parameters>
  1551. <instance-parameter name="context" transfer-ownership="none">
  1552. <doc xml:space="preserve">a #PangoContext</doc>
  1553. <type name="Context" c:type="PangoContext*"/>
  1554. </instance-parameter>
  1555. </parameters>
  1556. </method>
  1557. <method name="get_gravity_hint"
  1558. c:identifier="pango_context_get_gravity_hint"
  1559. version="1.16">
  1560. <doc xml:space="preserve">Retrieves the gravity hint for the context. See
  1561. pango_context_set_gravity_hint() for details.</doc>
  1562. <return-value transfer-ownership="none">
  1563. <doc xml:space="preserve">the gravity hint for the context.</doc>
  1564. <type name="GravityHint" c:type="PangoGravityHint"/>
  1565. </return-value>
  1566. <parameters>
  1567. <instance-parameter name="context" transfer-ownership="none">
  1568. <doc xml:space="preserve">a #PangoContext</doc>
  1569. <type name="Context" c:type="PangoContext*"/>
  1570. </instance-parameter>
  1571. </parameters>
  1572. </method>
  1573. <method name="get_language" c:identifier="pango_context_get_language">
  1574. <doc xml:space="preserve">Retrieves the global language tag for the context.</doc>
  1575. <return-value transfer-ownership="full">
  1576. <doc xml:space="preserve">the global language tag.</doc>
  1577. <type name="Language" c:type="PangoLanguage*"/>
  1578. </return-value>
  1579. <parameters>
  1580. <instance-parameter name="context" transfer-ownership="none">
  1581. <doc xml:space="preserve">a #PangoContext</doc>
  1582. <type name="Context" c:type="PangoContext*"/>
  1583. </instance-parameter>
  1584. </parameters>
  1585. </method>
  1586. <method name="get_matrix"
  1587. c:identifier="pango_context_get_matrix"
  1588. version="1.6">
  1589. <doc xml:space="preserve">Gets the transformation matrix that will be applied when
  1590. rendering with this context. See pango_context_set_matrix().</doc>
  1591. <return-value transfer-ownership="none" nullable="1">
  1592. <doc xml:space="preserve">the matrix, or %NULL if no matrix has
  1593. been set (which is the same as the identity matrix). The returned
  1594. matrix is owned by Pango and must not be modified or freed.</doc>
  1595. <type name="Matrix" c:type="const PangoMatrix*"/>
  1596. </return-value>
  1597. <parameters>
  1598. <instance-parameter name="context" transfer-ownership="none">
  1599. <doc xml:space="preserve">a #PangoContext</doc>
  1600. <type name="Context" c:type="PangoContext*"/>
  1601. </instance-parameter>
  1602. </parameters>
  1603. </method>
  1604. <method name="get_metrics" c:identifier="pango_context_get_metrics">
  1605. <doc xml:space="preserve">Get overall metric information for a particular font
  1606. description. Since the metrics may be substantially different for
  1607. different scripts, a language tag can be provided to indicate that
  1608. the metrics should be retrieved that correspond to the script(s)
  1609. used by that language.
  1610. The #PangoFontDescription is interpreted in the same way as
  1611. by pango_itemize(), and the family name may be a comma separated
  1612. list of figures. If characters from multiple of these families
  1613. would be used to render the string, then the returned fonts would
  1614. be a composite of the metrics for the fonts loaded for the
  1615. individual families.</doc>
  1616. <return-value transfer-ownership="full">
  1617. <doc xml:space="preserve">a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()
  1618. when finished using the object.</doc>
  1619. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  1620. </return-value>
  1621. <parameters>
  1622. <instance-parameter name="context" transfer-ownership="none">
  1623. <doc xml:space="preserve">a #PangoContext</doc>
  1624. <type name="Context" c:type="PangoContext*"/>
  1625. </instance-parameter>
  1626. <parameter name="desc"
  1627. transfer-ownership="none"
  1628. nullable="1"
  1629. allow-none="1">
  1630. <doc xml:space="preserve">a #PangoFontDescription structure. %NULL means that the
  1631. font description from the context will be used.</doc>
  1632. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  1633. </parameter>
  1634. <parameter name="language"
  1635. transfer-ownership="none"
  1636. nullable="1"
  1637. allow-none="1">
  1638. <doc xml:space="preserve">language tag used to determine which script to get
  1639. the metrics for. %NULL means that the language tag from the context
  1640. will be used. If no language tag is set on the context, metrics
  1641. for the default language (as determined by pango_language_get_default())
  1642. will be returned.</doc>
  1643. <type name="Language" c:type="PangoLanguage*"/>
  1644. </parameter>
  1645. </parameters>
  1646. </method>
  1647. <method name="get_serial"
  1648. c:identifier="pango_context_get_serial"
  1649. version="1.32.4">
  1650. <doc xml:space="preserve">Returns the current serial number of @context. The serial number is
  1651. initialized to an small number larger than zero when a new context
  1652. is created and is increased whenever the context is changed using any
  1653. of the setter functions, or the #PangoFontMap it uses to find fonts has
  1654. changed. The serial may wrap, but will never have the value 0. Since it
  1655. can wrap, never compare it with "less than", always use "not equals".
  1656. This can be used to automatically detect changes to a #PangoContext, and
  1657. is only useful when implementing objects that need update when their
  1658. #PangoContext changes, like #PangoLayout.</doc>
  1659. <return-value transfer-ownership="none">
  1660. <doc xml:space="preserve">The current serial number of @context.</doc>
  1661. <type name="guint" c:type="guint"/>
  1662. </return-value>
  1663. <parameters>
  1664. <instance-parameter name="context" transfer-ownership="none">
  1665. <doc xml:space="preserve">a #PangoContext</doc>
  1666. <type name="Context" c:type="PangoContext*"/>
  1667. </instance-parameter>
  1668. </parameters>
  1669. </method>
  1670. <method name="list_families" c:identifier="pango_context_list_families">
  1671. <doc xml:space="preserve">List all families for a context.</doc>
  1672. <return-value transfer-ownership="none">
  1673. <type name="none" c:type="void"/>
  1674. </return-value>
  1675. <parameters>
  1676. <instance-parameter name="context" transfer-ownership="none">
  1677. <doc xml:space="preserve">a #PangoContext</doc>
  1678. <type name="Context" c:type="PangoContext*"/>
  1679. </instance-parameter>
  1680. <parameter name="families"
  1681. direction="out"
  1682. caller-allocates="0"
  1683. transfer-ownership="container">
  1684. <doc xml:space="preserve">location to store a pointer to
  1685. an array of #PangoFontFamily *. This array should be freed
  1686. with g_free().</doc>
  1687. <array length="1" zero-terminated="0" c:type="PangoFontFamily***">
  1688. <type name="FontFamily" c:type="PangoFontFamily**"/>
  1689. </array>
  1690. </parameter>
  1691. <parameter name="n_families"
  1692. direction="out"
  1693. caller-allocates="0"
  1694. transfer-ownership="full">
  1695. <doc xml:space="preserve">location to store the number of elements in @descs</doc>
  1696. <type name="gint" c:type="int*"/>
  1697. </parameter>
  1698. </parameters>
  1699. </method>
  1700. <method name="load_font" c:identifier="pango_context_load_font">
  1701. <doc xml:space="preserve">Loads the font in one of the fontmaps in the context
  1702. that is the closest match for @desc.</doc>
  1703. <return-value transfer-ownership="full" nullable="1">
  1704. <doc xml:space="preserve">the newly allocated #PangoFont
  1705. that was loaded, or %NULL if no font matched.</doc>
  1706. <type name="Font" c:type="PangoFont*"/>
  1707. </return-value>
  1708. <parameters>
  1709. <instance-parameter name="context" transfer-ownership="none">
  1710. <doc xml:space="preserve">a #PangoContext</doc>
  1711. <type name="Context" c:type="PangoContext*"/>
  1712. </instance-parameter>
  1713. <parameter name="desc" transfer-ownership="none">
  1714. <doc xml:space="preserve">a #PangoFontDescription describing the font to load</doc>
  1715. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  1716. </parameter>
  1717. </parameters>
  1718. </method>
  1719. <method name="load_fontset" c:identifier="pango_context_load_fontset">
  1720. <doc xml:space="preserve">Load a set of fonts in the context that can be used to render
  1721. a font matching @desc.</doc>
  1722. <return-value transfer-ownership="full" nullable="1">
  1723. <doc xml:space="preserve">the newly allocated
  1724. #PangoFontset loaded, or %NULL if no font matched.</doc>
  1725. <type name="Fontset" c:type="PangoFontset*"/>
  1726. </return-value>
  1727. <parameters>
  1728. <instance-parameter name="context" transfer-ownership="none">
  1729. <doc xml:space="preserve">a #PangoContext</doc>
  1730. <type name="Context" c:type="PangoContext*"/>
  1731. </instance-parameter>
  1732. <parameter name="desc" transfer-ownership="none">
  1733. <doc xml:space="preserve">a #PangoFontDescription describing the fonts to load</doc>
  1734. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  1735. </parameter>
  1736. <parameter name="language" transfer-ownership="none">
  1737. <doc xml:space="preserve">a #PangoLanguage the fonts will be used for</doc>
  1738. <type name="Language" c:type="PangoLanguage*"/>
  1739. </parameter>
  1740. </parameters>
  1741. </method>
  1742. <method name="set_base_dir" c:identifier="pango_context_set_base_dir">
  1743. <doc xml:space="preserve">Sets the base direction for the context.
  1744. The base direction is used in applying the Unicode bidirectional
  1745. algorithm; if the @direction is %PANGO_DIRECTION_LTR or
  1746. %PANGO_DIRECTION_RTL, then the value will be used as the paragraph
  1747. direction in the Unicode bidirectional algorithm. A value of
  1748. %PANGO_DIRECTION_WEAK_LTR or %PANGO_DIRECTION_WEAK_RTL is used only
  1749. for paragraphs that do not contain any strong characters themselves.</doc>
  1750. <return-value transfer-ownership="none">
  1751. <type name="none" c:type="void"/>
  1752. </return-value>
  1753. <parameters>
  1754. <instance-parameter name="context" transfer-ownership="none">
  1755. <doc xml:space="preserve">a #PangoContext</doc>
  1756. <type name="Context" c:type="PangoContext*"/>
  1757. </instance-parameter>
  1758. <parameter name="direction" transfer-ownership="none">
  1759. <doc xml:space="preserve">the new base direction</doc>
  1760. <type name="Direction" c:type="PangoDirection"/>
  1761. </parameter>
  1762. </parameters>
  1763. </method>
  1764. <method name="set_base_gravity"
  1765. c:identifier="pango_context_set_base_gravity"
  1766. version="1.16">
  1767. <doc xml:space="preserve">Sets the base gravity for the context.
  1768. The base gravity is used in laying vertical text out.</doc>
  1769. <return-value transfer-ownership="none">
  1770. <type name="none" c:type="void"/>
  1771. </return-value>
  1772. <parameters>
  1773. <instance-parameter name="context" transfer-ownership="none">
  1774. <doc xml:space="preserve">a #PangoContext</doc>
  1775. <type name="Context" c:type="PangoContext*"/>
  1776. </instance-parameter>
  1777. <parameter name="gravity" transfer-ownership="none">
  1778. <doc xml:space="preserve">the new base gravity</doc>
  1779. <type name="Gravity" c:type="PangoGravity"/>
  1780. </parameter>
  1781. </parameters>
  1782. </method>
  1783. <method name="set_font_description"
  1784. c:identifier="pango_context_set_font_description">
  1785. <doc xml:space="preserve">Set the default font description for the context</doc>
  1786. <return-value transfer-ownership="none">
  1787. <type name="none" c:type="void"/>
  1788. </return-value>
  1789. <parameters>
  1790. <instance-parameter name="context" transfer-ownership="none">
  1791. <doc xml:space="preserve">a #PangoContext</doc>
  1792. <type name="Context" c:type="PangoContext*"/>
  1793. </instance-parameter>
  1794. <parameter name="desc" transfer-ownership="none">
  1795. <doc xml:space="preserve">the new pango font description</doc>
  1796. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  1797. </parameter>
  1798. </parameters>
  1799. </method>
  1800. <method name="set_font_map" c:identifier="pango_context_set_font_map">
  1801. <doc xml:space="preserve">Sets the font map to be searched when fonts are looked-up in this context.
  1802. This is only for internal use by Pango backends, a #PangoContext obtained
  1803. via one of the recommended methods should already have a suitable font map.</doc>
  1804. <return-value transfer-ownership="none">
  1805. <type name="none" c:type="void"/>
  1806. </return-value>
  1807. <parameters>
  1808. <instance-parameter name="context" transfer-ownership="none">
  1809. <doc xml:space="preserve">a #PangoContext</doc>
  1810. <type name="Context" c:type="PangoContext*"/>
  1811. </instance-parameter>
  1812. <parameter name="font_map" transfer-ownership="none">
  1813. <doc xml:space="preserve">the #PangoFontMap to set.</doc>
  1814. <type name="FontMap" c:type="PangoFontMap*"/>
  1815. </parameter>
  1816. </parameters>
  1817. </method>
  1818. <method name="set_gravity_hint"
  1819. c:identifier="pango_context_set_gravity_hint"
  1820. version="1.16">
  1821. <doc xml:space="preserve">Sets the gravity hint for the context.
  1822. The gravity hint is used in laying vertical text out, and is only relevant
  1823. if gravity of the context as returned by pango_context_get_gravity()
  1824. is set %PANGO_GRAVITY_EAST or %PANGO_GRAVITY_WEST.</doc>
  1825. <return-value transfer-ownership="none">
  1826. <type name="none" c:type="void"/>
  1827. </return-value>
  1828. <parameters>
  1829. <instance-parameter name="context" transfer-ownership="none">
  1830. <doc xml:space="preserve">a #PangoContext</doc>
  1831. <type name="Context" c:type="PangoContext*"/>
  1832. </instance-parameter>
  1833. <parameter name="hint" transfer-ownership="none">
  1834. <doc xml:space="preserve">the new gravity hint</doc>
  1835. <type name="GravityHint" c:type="PangoGravityHint"/>
  1836. </parameter>
  1837. </parameters>
  1838. </method>
  1839. <method name="set_language" c:identifier="pango_context_set_language">
  1840. <doc xml:space="preserve">Sets the global language tag for the context. The default language
  1841. for the locale of the running process can be found using
  1842. pango_language_get_default().</doc>
  1843. <return-value transfer-ownership="none">
  1844. <type name="none" c:type="void"/>
  1845. </return-value>
  1846. <parameters>
  1847. <instance-parameter name="context" transfer-ownership="none">
  1848. <doc xml:space="preserve">a #PangoContext</doc>
  1849. <type name="Context" c:type="PangoContext*"/>
  1850. </instance-parameter>
  1851. <parameter name="language" transfer-ownership="none">
  1852. <doc xml:space="preserve">the new language tag.</doc>
  1853. <type name="Language" c:type="PangoLanguage*"/>
  1854. </parameter>
  1855. </parameters>
  1856. </method>
  1857. <method name="set_matrix"
  1858. c:identifier="pango_context_set_matrix"
  1859. version="1.6">
  1860. <doc xml:space="preserve">Sets the transformation matrix that will be applied when rendering
  1861. with this context. Note that reported metrics are in the user space
  1862. coordinates before the application of the matrix, not device-space
  1863. coordinates after the application of the matrix. So, they don't scale
  1864. with the matrix, though they may change slightly for different
  1865. matrices, depending on how the text is fit to the pixel grid.</doc>
  1866. <return-value transfer-ownership="none">
  1867. <type name="none" c:type="void"/>
  1868. </return-value>
  1869. <parameters>
  1870. <instance-parameter name="context" transfer-ownership="none">
  1871. <doc xml:space="preserve">a #PangoContext</doc>
  1872. <type name="Context" c:type="PangoContext*"/>
  1873. </instance-parameter>
  1874. <parameter name="matrix"
  1875. transfer-ownership="none"
  1876. nullable="1"
  1877. allow-none="1">
  1878. <doc xml:space="preserve">a #PangoMatrix, or %NULL to unset any existing
  1879. matrix. (No matrix set is the same as setting the identity matrix.)</doc>
  1880. <type name="Matrix" c:type="const PangoMatrix*"/>
  1881. </parameter>
  1882. </parameters>
  1883. </method>
  1884. </class>
  1885. <record name="ContextClass"
  1886. c:type="PangoContextClass"
  1887. disguised="1"
  1888. glib:is-gtype-struct-for="Context">
  1889. </record>
  1890. <record name="Coverage" c:type="PangoCoverage" disguised="1">
  1891. <doc xml:space="preserve">The #PangoCoverage structure represents a map from Unicode characters
  1892. to #PangoCoverageLevel. It is an opaque structure with no public fields.</doc>
  1893. <method name="copy"
  1894. c:identifier="pango_coverage_copy"
  1895. introspectable="0">
  1896. <doc xml:space="preserve">Copy an existing #PangoCoverage. (This function may now be unnecessary
  1897. since we refcount the structure. File a bug if you use it.)</doc>
  1898. <return-value transfer-ownership="full">
  1899. <doc xml:space="preserve">the newly allocated #PangoCoverage,
  1900. with a reference count of one, which should be freed
  1901. with pango_coverage_unref().</doc>
  1902. <type name="Coverage" c:type="PangoCoverage*"/>
  1903. </return-value>
  1904. <parameters>
  1905. <instance-parameter name="coverage" transfer-ownership="none">
  1906. <doc xml:space="preserve">a #PangoCoverage</doc>
  1907. <type name="Coverage" c:type="PangoCoverage*"/>
  1908. </instance-parameter>
  1909. </parameters>
  1910. </method>
  1911. <method name="get" c:identifier="pango_coverage_get">
  1912. <doc xml:space="preserve">Determine whether a particular index is covered by @coverage</doc>
  1913. <return-value transfer-ownership="none">
  1914. <doc xml:space="preserve">the coverage level of @coverage for character @index_.</doc>
  1915. <type name="CoverageLevel" c:type="PangoCoverageLevel"/>
  1916. </return-value>
  1917. <parameters>
  1918. <instance-parameter name="coverage" transfer-ownership="none">
  1919. <doc xml:space="preserve">a #PangoCoverage</doc>
  1920. <type name="Coverage" c:type="PangoCoverage*"/>
  1921. </instance-parameter>
  1922. <parameter name="index_" transfer-ownership="none">
  1923. <doc xml:space="preserve">the index to check</doc>
  1924. <type name="gint" c:type="int"/>
  1925. </parameter>
  1926. </parameters>
  1927. </method>
  1928. <method name="max" c:identifier="pango_coverage_max">
  1929. <doc xml:space="preserve">Set the coverage for each index in @coverage to be the max (better)
  1930. value of the current coverage for the index and the coverage for
  1931. the corresponding index in @other.</doc>
  1932. <return-value transfer-ownership="none">
  1933. <type name="none" c:type="void"/>
  1934. </return-value>
  1935. <parameters>
  1936. <instance-parameter name="coverage" transfer-ownership="none">
  1937. <doc xml:space="preserve">a #PangoCoverage</doc>
  1938. <type name="Coverage" c:type="PangoCoverage*"/>
  1939. </instance-parameter>
  1940. <parameter name="other" transfer-ownership="none">
  1941. <doc xml:space="preserve">another #PangoCoverage</doc>
  1942. <type name="Coverage" c:type="PangoCoverage*"/>
  1943. </parameter>
  1944. </parameters>
  1945. </method>
  1946. <method name="ref" c:identifier="pango_coverage_ref" introspectable="0">
  1947. <doc xml:space="preserve">Increase the reference count on the #PangoCoverage by one</doc>
  1948. <return-value>
  1949. <doc xml:space="preserve">@coverage</doc>
  1950. <type name="Coverage" c:type="PangoCoverage*"/>
  1951. </return-value>
  1952. <parameters>
  1953. <instance-parameter name="coverage" transfer-ownership="none">
  1954. <doc xml:space="preserve">a #PangoCoverage</doc>
  1955. <type name="Coverage" c:type="PangoCoverage*"/>
  1956. </instance-parameter>
  1957. </parameters>
  1958. </method>
  1959. <method name="set" c:identifier="pango_coverage_set">
  1960. <doc xml:space="preserve">Modify a particular index within @coverage</doc>
  1961. <return-value transfer-ownership="none">
  1962. <type name="none" c:type="void"/>
  1963. </return-value>
  1964. <parameters>
  1965. <instance-parameter name="coverage" transfer-ownership="none">
  1966. <doc xml:space="preserve">a #PangoCoverage</doc>
  1967. <type name="Coverage" c:type="PangoCoverage*"/>
  1968. </instance-parameter>
  1969. <parameter name="index_" transfer-ownership="none">
  1970. <doc xml:space="preserve">the index to modify</doc>
  1971. <type name="gint" c:type="int"/>
  1972. </parameter>
  1973. <parameter name="level" transfer-ownership="none">
  1974. <doc xml:space="preserve">the new level for @index_</doc>
  1975. <type name="CoverageLevel" c:type="PangoCoverageLevel"/>
  1976. </parameter>
  1977. </parameters>
  1978. </method>
  1979. <method name="to_bytes" c:identifier="pango_coverage_to_bytes">
  1980. <doc xml:space="preserve">Convert a #PangoCoverage structure into a flat binary format</doc>
  1981. <return-value transfer-ownership="none">
  1982. <type name="none" c:type="void"/>
  1983. </return-value>
  1984. <parameters>
  1985. <instance-parameter name="coverage" transfer-ownership="none">
  1986. <doc xml:space="preserve">a #PangoCoverage</doc>
  1987. <type name="Coverage" c:type="PangoCoverage*"/>
  1988. </instance-parameter>
  1989. <parameter name="bytes"
  1990. direction="out"
  1991. caller-allocates="0"
  1992. transfer-ownership="full">
  1993. <doc xml:space="preserve">
  1994. location to store result (must be freed with g_free())</doc>
  1995. <array length="1" zero-terminated="0" c:type="guchar**">
  1996. <type name="guint8"/>
  1997. </array>
  1998. </parameter>
  1999. <parameter name="n_bytes"
  2000. direction="out"
  2001. caller-allocates="0"
  2002. transfer-ownership="full">
  2003. <doc xml:space="preserve">location to store size of result</doc>
  2004. <type name="gint" c:type="int*"/>
  2005. </parameter>
  2006. </parameters>
  2007. </method>
  2008. <method name="unref" c:identifier="pango_coverage_unref">
  2009. <doc xml:space="preserve">Decrease the reference count on the #PangoCoverage by one.
  2010. If the result is zero, free the coverage and all associated memory.</doc>
  2011. <return-value transfer-ownership="none">
  2012. <type name="none" c:type="void"/>
  2013. </return-value>
  2014. <parameters>
  2015. <instance-parameter name="coverage" transfer-ownership="none">
  2016. <doc xml:space="preserve">a #PangoCoverage</doc>
  2017. <type name="Coverage" c:type="PangoCoverage*"/>
  2018. </instance-parameter>
  2019. </parameters>
  2020. </method>
  2021. <function name="from_bytes"
  2022. c:identifier="pango_coverage_from_bytes"
  2023. introspectable="0">
  2024. <doc xml:space="preserve">Convert data generated from pango_coverage_to_bytes() back
  2025. to a #PangoCoverage</doc>
  2026. <return-value transfer-ownership="full" nullable="1">
  2027. <doc xml:space="preserve">a newly allocated
  2028. #PangoCoverage, or %NULL if the data was invalid.</doc>
  2029. <type name="Coverage" c:type="PangoCoverage*"/>
  2030. </return-value>
  2031. <parameters>
  2032. <parameter name="bytes" transfer-ownership="none">
  2033. <doc xml:space="preserve">binary data
  2034. representing a #PangoCoverage</doc>
  2035. <array length="1" zero-terminated="0" c:type="guchar*">
  2036. <type name="guint8"/>
  2037. </array>
  2038. </parameter>
  2039. <parameter name="n_bytes" transfer-ownership="none">
  2040. <doc xml:space="preserve">the size of @bytes in bytes</doc>
  2041. <type name="gint" c:type="int"/>
  2042. </parameter>
  2043. </parameters>
  2044. </function>
  2045. <function name="new"
  2046. c:identifier="pango_coverage_new"
  2047. introspectable="0">
  2048. <doc xml:space="preserve">Create a new #PangoCoverage</doc>
  2049. <return-value>
  2050. <doc xml:space="preserve">the newly allocated #PangoCoverage,
  2051. initialized to %PANGO_COVERAGE_NONE
  2052. with a reference count of one, which
  2053. should be freed with pango_coverage_unref().</doc>
  2054. <type name="Coverage" c:type="PangoCoverage*"/>
  2055. </return-value>
  2056. </function>
  2057. </record>
  2058. <enumeration name="CoverageLevel"
  2059. glib:type-name="PangoCoverageLevel"
  2060. glib:get-type="pango_coverage_level_get_type"
  2061. c:type="PangoCoverageLevel">
  2062. <doc xml:space="preserve">Used to indicate how well a font can represent a particular Unicode
  2063. character point for a particular script.</doc>
  2064. <member name="none"
  2065. value="0"
  2066. c:identifier="PANGO_COVERAGE_NONE"
  2067. glib:nick="none">
  2068. <doc xml:space="preserve">The character is not representable with the font.</doc>
  2069. </member>
  2070. <member name="fallback"
  2071. value="1"
  2072. c:identifier="PANGO_COVERAGE_FALLBACK"
  2073. glib:nick="fallback">
  2074. <doc xml:space="preserve">The character is represented in a way that may be
  2075. comprehensible but is not the correct graphical form.
  2076. For instance, a Hangul character represented as a
  2077. a sequence of Jamos, or a Latin transliteration of a Cyrillic word.</doc>
  2078. </member>
  2079. <member name="approximate"
  2080. value="2"
  2081. c:identifier="PANGO_COVERAGE_APPROXIMATE"
  2082. glib:nick="approximate">
  2083. <doc xml:space="preserve">The character is represented as basically the correct
  2084. graphical form, but with a stylistic variant inappropriate for
  2085. the current script.</doc>
  2086. </member>
  2087. <member name="exact"
  2088. value="3"
  2089. c:identifier="PANGO_COVERAGE_EXACT"
  2090. glib:nick="exact">
  2091. <doc xml:space="preserve">The character is represented as the correct graphical form.</doc>
  2092. </member>
  2093. </enumeration>
  2094. <enumeration name="Direction"
  2095. glib:type-name="PangoDirection"
  2096. glib:get-type="pango_direction_get_type"
  2097. c:type="PangoDirection">
  2098. <doc xml:space="preserve">The #PangoDirection type represents a direction in the
  2099. Unicode bidirectional algorithm; not every value in this
  2100. enumeration makes sense for every usage of #PangoDirection;
  2101. for example, the return value of pango_unichar_direction()
  2102. and pango_find_base_dir() cannot be %PANGO_DIRECTION_WEAK_LTR
  2103. or %PANGO_DIRECTION_WEAK_RTL, since every character is either
  2104. neutral or has a strong direction; on the other hand
  2105. %PANGO_DIRECTION_NEUTRAL doesn't make sense to pass
  2106. to pango_itemize_with_base_dir().
  2107. The %PANGO_DIRECTION_TTB_LTR, %PANGO_DIRECTION_TTB_RTL
  2108. values come from an earlier interpretation of this
  2109. enumeration as the writing direction of a block of
  2110. text and are no longer used; See #PangoGravity for how
  2111. vertical text is handled in Pango.</doc>
  2112. <member name="ltr"
  2113. value="0"
  2114. c:identifier="PANGO_DIRECTION_LTR"
  2115. glib:nick="ltr">
  2116. <doc xml:space="preserve">A strong left-to-right direction</doc>
  2117. </member>
  2118. <member name="rtl"
  2119. value="1"
  2120. c:identifier="PANGO_DIRECTION_RTL"
  2121. glib:nick="rtl">
  2122. <doc xml:space="preserve">A strong right-to-left direction</doc>
  2123. </member>
  2124. <member name="ttb_ltr"
  2125. value="2"
  2126. c:identifier="PANGO_DIRECTION_TTB_LTR"
  2127. glib:nick="ttb-ltr">
  2128. <doc xml:space="preserve">Deprecated value; treated the
  2129. same as %PANGO_DIRECTION_RTL.</doc>
  2130. </member>
  2131. <member name="ttb_rtl"
  2132. value="3"
  2133. c:identifier="PANGO_DIRECTION_TTB_RTL"
  2134. glib:nick="ttb-rtl">
  2135. <doc xml:space="preserve">Deprecated value; treated the
  2136. same as %PANGO_DIRECTION_LTR</doc>
  2137. </member>
  2138. <member name="weak_ltr"
  2139. value="4"
  2140. c:identifier="PANGO_DIRECTION_WEAK_LTR"
  2141. glib:nick="weak-ltr">
  2142. <doc xml:space="preserve">A weak left-to-right direction</doc>
  2143. </member>
  2144. <member name="weak_rtl"
  2145. value="5"
  2146. c:identifier="PANGO_DIRECTION_WEAK_RTL"
  2147. glib:nick="weak-rtl">
  2148. <doc xml:space="preserve">A weak right-to-left direction</doc>
  2149. </member>
  2150. <member name="neutral"
  2151. value="6"
  2152. c:identifier="PANGO_DIRECTION_NEUTRAL"
  2153. glib:nick="neutral">
  2154. <doc xml:space="preserve">No direction specified</doc>
  2155. </member>
  2156. </enumeration>
  2157. <constant name="ENGINE_TYPE_LANG"
  2158. value="PangoEngineLang"
  2159. c:type="PANGO_ENGINE_TYPE_LANG"
  2160. deprecated="1"
  2161. deprecated-version="1.38">
  2162. <doc xml:space="preserve">A string constant defining the engine type for language engines.
  2163. These engines derive from #PangoEngineLang.</doc>
  2164. <type name="utf8" c:type="gchar*"/>
  2165. </constant>
  2166. <constant name="ENGINE_TYPE_SHAPE"
  2167. value="PangoEngineShape"
  2168. c:type="PANGO_ENGINE_TYPE_SHAPE"
  2169. deprecated="1"
  2170. deprecated-version="1.38">
  2171. <doc xml:space="preserve">A string constant defining the engine type for shaping engines.
  2172. These engines derive from #PangoEngineShape.</doc>
  2173. <type name="utf8" c:type="gchar*"/>
  2174. </constant>
  2175. <enumeration name="EllipsizeMode"
  2176. glib:type-name="PangoEllipsizeMode"
  2177. glib:get-type="pango_ellipsize_mode_get_type"
  2178. c:type="PangoEllipsizeMode">
  2179. <doc xml:space="preserve">The #PangoEllipsizeMode type describes what sort of (if any)
  2180. ellipsization should be applied to a line of text. In
  2181. the ellipsization process characters are removed from the
  2182. text in order to make it fit to a given width and replaced
  2183. with an ellipsis.</doc>
  2184. <member name="none"
  2185. value="0"
  2186. c:identifier="PANGO_ELLIPSIZE_NONE"
  2187. glib:nick="none">
  2188. <doc xml:space="preserve">No ellipsization</doc>
  2189. </member>
  2190. <member name="start"
  2191. value="1"
  2192. c:identifier="PANGO_ELLIPSIZE_START"
  2193. glib:nick="start">
  2194. <doc xml:space="preserve">Omit characters at the start of the text</doc>
  2195. </member>
  2196. <member name="middle"
  2197. value="2"
  2198. c:identifier="PANGO_ELLIPSIZE_MIDDLE"
  2199. glib:nick="middle">
  2200. <doc xml:space="preserve">Omit characters in the middle of the text</doc>
  2201. </member>
  2202. <member name="end"
  2203. value="3"
  2204. c:identifier="PANGO_ELLIPSIZE_END"
  2205. glib:nick="end">
  2206. <doc xml:space="preserve">Omit characters at the end of the text</doc>
  2207. </member>
  2208. </enumeration>
  2209. <class name="Engine"
  2210. c:symbol-prefix="engine"
  2211. c:type="PangoEngine"
  2212. deprecated="1"
  2213. deprecated-version="1.38"
  2214. parent="GObject.Object"
  2215. abstract="1"
  2216. glib:type-name="PangoEngine"
  2217. glib:get-type="pango_engine_get_type"
  2218. glib:type-struct="EngineClass">
  2219. <doc xml:space="preserve">#PangoEngine is the base class for all types of language and
  2220. script specific engines. It has no functionality by itself.</doc>
  2221. <field name="parent_instance" readable="0" private="1">
  2222. <type name="GObject.Object" c:type="GObject"/>
  2223. </field>
  2224. </class>
  2225. <record name="EngineClass"
  2226. c:type="PangoEngineClass"
  2227. glib:is-gtype-struct-for="Engine"
  2228. deprecated="1"
  2229. deprecated-version="1.38">
  2230. <doc xml:space="preserve">Class structure for #PangoEngine</doc>
  2231. <field name="parent_class" readable="0" private="1">
  2232. <type name="GObject.ObjectClass" c:type="GObjectClass"/>
  2233. </field>
  2234. </record>
  2235. <record name="EngineInfo"
  2236. c:type="PangoEngineInfo"
  2237. deprecated="1"
  2238. deprecated-version="1.38">
  2239. <doc xml:space="preserve">The #PangoEngineInfo structure contains information about a particular
  2240. engine. It contains the following fields:</doc>
  2241. <field name="id" writable="1">
  2242. <doc xml:space="preserve">a unique string ID for the engine.</doc>
  2243. <type name="utf8" c:type="const gchar*"/>
  2244. </field>
  2245. <field name="engine_type" writable="1">
  2246. <doc xml:space="preserve">a string identifying the engine type.</doc>
  2247. <type name="utf8" c:type="const gchar*"/>
  2248. </field>
  2249. <field name="render_type" writable="1">
  2250. <doc xml:space="preserve">a string identifying the render type.</doc>
  2251. <type name="utf8" c:type="const gchar*"/>
  2252. </field>
  2253. <field name="scripts" writable="1">
  2254. <doc xml:space="preserve">array of scripts this engine supports.</doc>
  2255. <type name="EngineScriptInfo" c:type="PangoEngineScriptInfo*"/>
  2256. </field>
  2257. <field name="n_scripts" writable="1">
  2258. <doc xml:space="preserve">number of items in @scripts.</doc>
  2259. <type name="gint" c:type="gint"/>
  2260. </field>
  2261. </record>
  2262. <class name="EngineLang"
  2263. c:symbol-prefix="engine_lang"
  2264. c:type="PangoEngineLang"
  2265. deprecated="1"
  2266. deprecated-version="1.38"
  2267. parent="Engine"
  2268. abstract="1"
  2269. glib:type-name="PangoEngineLang"
  2270. glib:get-type="pango_engine_lang_get_type"
  2271. glib:type-struct="EngineLangClass">
  2272. <doc xml:space="preserve">The #PangoEngineLang class is implemented by engines that
  2273. customize the rendering-system independent part of the
  2274. Pango pipeline for a particular script or language. For
  2275. instance, a custom #PangoEngineLang could be provided for
  2276. Thai to implement the dictionary-based word boundary
  2277. lookups needed for that language.</doc>
  2278. <virtual-method name="script_break">
  2279. <return-value transfer-ownership="none">
  2280. <type name="none" c:type="void"/>
  2281. </return-value>
  2282. <parameters>
  2283. <instance-parameter name="engine" transfer-ownership="none">
  2284. <type name="EngineLang" c:type="PangoEngineLang*"/>
  2285. </instance-parameter>
  2286. <parameter name="text" transfer-ownership="none">
  2287. <type name="utf8" c:type="const char*"/>
  2288. </parameter>
  2289. <parameter name="len" transfer-ownership="none">
  2290. <type name="gint" c:type="int"/>
  2291. </parameter>
  2292. <parameter name="analysis" transfer-ownership="none">
  2293. <type name="Analysis" c:type="PangoAnalysis*"/>
  2294. </parameter>
  2295. <parameter name="attrs" transfer-ownership="none">
  2296. <type name="LogAttr" c:type="PangoLogAttr*"/>
  2297. </parameter>
  2298. <parameter name="attrs_len" transfer-ownership="none">
  2299. <type name="gint" c:type="int"/>
  2300. </parameter>
  2301. </parameters>
  2302. </virtual-method>
  2303. <field name="parent_instance" readable="0" private="1">
  2304. <type name="Engine" c:type="PangoEngine"/>
  2305. </field>
  2306. </class>
  2307. <record name="EngineLangClass"
  2308. c:type="PangoEngineLangClass"
  2309. glib:is-gtype-struct-for="EngineLang"
  2310. deprecated="1"
  2311. deprecated-version="1.38">
  2312. <doc xml:space="preserve">Class structure for #PangoEngineLang</doc>
  2313. <field name="parent_class" readable="0" private="1">
  2314. <type name="EngineClass" c:type="PangoEngineClass"/>
  2315. </field>
  2316. <field name="script_break">
  2317. <callback name="script_break">
  2318. <return-value transfer-ownership="none">
  2319. <type name="none" c:type="void"/>
  2320. </return-value>
  2321. <parameters>
  2322. <parameter name="engine" transfer-ownership="none">
  2323. <type name="EngineLang" c:type="PangoEngineLang*"/>
  2324. </parameter>
  2325. <parameter name="text" transfer-ownership="none">
  2326. <type name="utf8" c:type="const char*"/>
  2327. </parameter>
  2328. <parameter name="len" transfer-ownership="none">
  2329. <type name="gint" c:type="int"/>
  2330. </parameter>
  2331. <parameter name="analysis" transfer-ownership="none">
  2332. <type name="Analysis" c:type="PangoAnalysis*"/>
  2333. </parameter>
  2334. <parameter name="attrs" transfer-ownership="none">
  2335. <type name="LogAttr" c:type="PangoLogAttr*"/>
  2336. </parameter>
  2337. <parameter name="attrs_len" transfer-ownership="none">
  2338. <type name="gint" c:type="int"/>
  2339. </parameter>
  2340. </parameters>
  2341. </callback>
  2342. </field>
  2343. </record>
  2344. <record name="EngineScriptInfo"
  2345. c:type="PangoEngineScriptInfo"
  2346. deprecated="1"
  2347. deprecated-version="1.38">
  2348. <doc xml:space="preserve">The #PangoEngineScriptInfo structure contains
  2349. information about how the shaper covers a particular script.</doc>
  2350. <field name="script" writable="1">
  2351. <doc xml:space="preserve">a #PangoScript. The value %PANGO_SCRIPT_COMMON has
  2352. the special meaning here of "all scripts"</doc>
  2353. <type name="Script" c:type="PangoScript"/>
  2354. </field>
  2355. <field name="langs" writable="1">
  2356. <doc xml:space="preserve">a semicolon separated list of languages that this
  2357. engine handles for this script. This may be empty,
  2358. in which case the engine is saying that it is a
  2359. fallback choice for all languages for this range,
  2360. but should not be used if another engine
  2361. indicates that it is specific for the language for
  2362. a given code point. An entry in this list of "*"
  2363. indicates that this engine is specific to all
  2364. languages for this range.</doc>
  2365. <type name="utf8" c:type="const gchar*"/>
  2366. </field>
  2367. </record>
  2368. <class name="EngineShape"
  2369. c:symbol-prefix="engine_shape"
  2370. c:type="PangoEngineShape"
  2371. deprecated="1"
  2372. deprecated-version="1.38"
  2373. parent="Engine"
  2374. abstract="1"
  2375. glib:type-name="PangoEngineShape"
  2376. glib:get-type="pango_engine_shape_get_type"
  2377. glib:type-struct="EngineShapeClass">
  2378. <doc xml:space="preserve">The #PangoEngineShape class is implemented by engines that
  2379. customize the rendering-system dependent part of the
  2380. Pango pipeline for a particular script or language.
  2381. A #PangoEngineShape implementation is then specific to both
  2382. a particular rendering system or group of rendering systems
  2383. and to a particular script. For instance, there is one
  2384. #PangoEngineShape implementation to handle shaping Arabic
  2385. for Fontconfig-based backends.</doc>
  2386. <virtual-method name="covers">
  2387. <return-value transfer-ownership="none">
  2388. <type name="CoverageLevel" c:type="PangoCoverageLevel"/>
  2389. </return-value>
  2390. <parameters>
  2391. <instance-parameter name="engine" transfer-ownership="none">
  2392. <type name="EngineShape" c:type="PangoEngineShape*"/>
  2393. </instance-parameter>
  2394. <parameter name="font" transfer-ownership="none">
  2395. <type name="Font" c:type="PangoFont*"/>
  2396. </parameter>
  2397. <parameter name="language" transfer-ownership="none">
  2398. <type name="Language" c:type="PangoLanguage*"/>
  2399. </parameter>
  2400. <parameter name="wc" transfer-ownership="none">
  2401. <type name="gunichar" c:type="gunichar"/>
  2402. </parameter>
  2403. </parameters>
  2404. </virtual-method>
  2405. <virtual-method name="script_shape">
  2406. <return-value transfer-ownership="none">
  2407. <type name="none" c:type="void"/>
  2408. </return-value>
  2409. <parameters>
  2410. <instance-parameter name="engine" transfer-ownership="none">
  2411. <type name="EngineShape" c:type="PangoEngineShape*"/>
  2412. </instance-parameter>
  2413. <parameter name="font" transfer-ownership="none">
  2414. <type name="Font" c:type="PangoFont*"/>
  2415. </parameter>
  2416. <parameter name="item_text" transfer-ownership="none">
  2417. <type name="utf8" c:type="const char*"/>
  2418. </parameter>
  2419. <parameter name="item_length" transfer-ownership="none">
  2420. <type name="guint" c:type="unsigned int"/>
  2421. </parameter>
  2422. <parameter name="analysis" transfer-ownership="none">
  2423. <type name="Analysis" c:type="const PangoAnalysis*"/>
  2424. </parameter>
  2425. <parameter name="glyphs" transfer-ownership="none">
  2426. <type name="GlyphString" c:type="PangoGlyphString*"/>
  2427. </parameter>
  2428. <parameter name="paragraph_text" transfer-ownership="none">
  2429. <type name="utf8" c:type="const char*"/>
  2430. </parameter>
  2431. <parameter name="paragraph_length" transfer-ownership="none">
  2432. <type name="guint" c:type="unsigned int"/>
  2433. </parameter>
  2434. </parameters>
  2435. </virtual-method>
  2436. <field name="parent_instance">
  2437. <type name="Engine" c:type="PangoEngine"/>
  2438. </field>
  2439. </class>
  2440. <record name="EngineShapeClass"
  2441. c:type="PangoEngineShapeClass"
  2442. glib:is-gtype-struct-for="EngineShape"
  2443. deprecated="1"
  2444. deprecated-version="1.38">
  2445. <doc xml:space="preserve">Class structure for #PangoEngineShape</doc>
  2446. <field name="parent_class" readable="0" private="1">
  2447. <type name="EngineClass" c:type="PangoEngineClass"/>
  2448. </field>
  2449. <field name="script_shape">
  2450. <callback name="script_shape">
  2451. <return-value transfer-ownership="none">
  2452. <type name="none" c:type="void"/>
  2453. </return-value>
  2454. <parameters>
  2455. <parameter name="engine" transfer-ownership="none">
  2456. <type name="EngineShape" c:type="PangoEngineShape*"/>
  2457. </parameter>
  2458. <parameter name="font" transfer-ownership="none">
  2459. <type name="Font" c:type="PangoFont*"/>
  2460. </parameter>
  2461. <parameter name="item_text" transfer-ownership="none">
  2462. <type name="utf8" c:type="const char*"/>
  2463. </parameter>
  2464. <parameter name="item_length" transfer-ownership="none">
  2465. <type name="guint" c:type="unsigned int"/>
  2466. </parameter>
  2467. <parameter name="analysis" transfer-ownership="none">
  2468. <type name="Analysis" c:type="const PangoAnalysis*"/>
  2469. </parameter>
  2470. <parameter name="glyphs" transfer-ownership="none">
  2471. <type name="GlyphString" c:type="PangoGlyphString*"/>
  2472. </parameter>
  2473. <parameter name="paragraph_text" transfer-ownership="none">
  2474. <type name="utf8" c:type="const char*"/>
  2475. </parameter>
  2476. <parameter name="paragraph_length" transfer-ownership="none">
  2477. <type name="guint" c:type="unsigned int"/>
  2478. </parameter>
  2479. </parameters>
  2480. </callback>
  2481. </field>
  2482. <field name="covers">
  2483. <callback name="covers">
  2484. <return-value transfer-ownership="none">
  2485. <type name="CoverageLevel" c:type="PangoCoverageLevel"/>
  2486. </return-value>
  2487. <parameters>
  2488. <parameter name="engine" transfer-ownership="none">
  2489. <type name="EngineShape" c:type="PangoEngineShape*"/>
  2490. </parameter>
  2491. <parameter name="font" transfer-ownership="none">
  2492. <type name="Font" c:type="PangoFont*"/>
  2493. </parameter>
  2494. <parameter name="language" transfer-ownership="none">
  2495. <type name="Language" c:type="PangoLanguage*"/>
  2496. </parameter>
  2497. <parameter name="wc" transfer-ownership="none">
  2498. <type name="gunichar" c:type="gunichar"/>
  2499. </parameter>
  2500. </parameters>
  2501. </callback>
  2502. </field>
  2503. </record>
  2504. <class name="Font"
  2505. c:symbol-prefix="font"
  2506. c:type="PangoFont"
  2507. parent="GObject.Object"
  2508. abstract="1"
  2509. glib:type-name="PangoFont"
  2510. glib:get-type="pango_font_get_type"
  2511. glib:type-struct="FontClass">
  2512. <doc xml:space="preserve">The #PangoFont structure is used to represent
  2513. a font in a rendering-system-independent matter.
  2514. To create an implementation of a #PangoFont,
  2515. the rendering-system specific code should allocate
  2516. a larger structure that contains a nested
  2517. #PangoFont, fill in the &lt;structfield&gt;klass&lt;/structfield&gt; member of
  2518. the nested #PangoFont with a pointer to
  2519. a appropriate #PangoFontClass, then call
  2520. pango_font_init() on the structure.
  2521. The #PangoFont structure contains one member
  2522. which the implementation fills in.</doc>
  2523. <function name="descriptions_free"
  2524. c:identifier="pango_font_descriptions_free">
  2525. <doc xml:space="preserve">Frees an array of font descriptions.</doc>
  2526. <return-value transfer-ownership="none">
  2527. <type name="none" c:type="void"/>
  2528. </return-value>
  2529. <parameters>
  2530. <parameter name="descs"
  2531. transfer-ownership="full"
  2532. nullable="1"
  2533. allow-none="1">
  2534. <doc xml:space="preserve">a pointer
  2535. to an array of #PangoFontDescription, may be %NULL</doc>
  2536. <array length="1"
  2537. zero-terminated="0"
  2538. c:type="PangoFontDescription**">
  2539. <type name="FontDescription" c:type="PangoFontDescription*"/>
  2540. </array>
  2541. </parameter>
  2542. <parameter name="n_descs" transfer-ownership="none">
  2543. <doc xml:space="preserve">number of font descriptions in @descs</doc>
  2544. <type name="gint" c:type="int"/>
  2545. </parameter>
  2546. </parameters>
  2547. </function>
  2548. <virtual-method name="describe" invoker="describe">
  2549. <doc xml:space="preserve">Returns a description of the font, with font size set in points.
  2550. Use pango_font_describe_with_absolute_size() if you want the font
  2551. size in device units.</doc>
  2552. <return-value transfer-ownership="full">
  2553. <doc xml:space="preserve">a newly-allocated #PangoFontDescription object.</doc>
  2554. <type name="FontDescription" c:type="PangoFontDescription*"/>
  2555. </return-value>
  2556. <parameters>
  2557. <instance-parameter name="font" transfer-ownership="none">
  2558. <doc xml:space="preserve">a #PangoFont</doc>
  2559. <type name="Font" c:type="PangoFont*"/>
  2560. </instance-parameter>
  2561. </parameters>
  2562. </virtual-method>
  2563. <virtual-method name="describe_absolute">
  2564. <return-value transfer-ownership="full">
  2565. <type name="FontDescription" c:type="PangoFontDescription*"/>
  2566. </return-value>
  2567. <parameters>
  2568. <instance-parameter name="font" transfer-ownership="none">
  2569. <type name="Font" c:type="PangoFont*"/>
  2570. </instance-parameter>
  2571. </parameters>
  2572. </virtual-method>
  2573. <virtual-method name="find_shaper"
  2574. invoker="find_shaper"
  2575. introspectable="0">
  2576. <doc xml:space="preserve">Finds the best matching shaper for a font for a particular
  2577. language tag and character point.</doc>
  2578. <return-value>
  2579. <doc xml:space="preserve">the best matching shaper.</doc>
  2580. <type name="EngineShape" c:type="PangoEngineShape*"/>
  2581. </return-value>
  2582. <parameters>
  2583. <instance-parameter name="font" transfer-ownership="none">
  2584. <doc xml:space="preserve">a #PangoFont</doc>
  2585. <type name="Font" c:type="PangoFont*"/>
  2586. </instance-parameter>
  2587. <parameter name="lang" transfer-ownership="none">
  2588. <type name="Language" c:type="PangoLanguage*"/>
  2589. </parameter>
  2590. <parameter name="ch" transfer-ownership="none">
  2591. <doc xml:space="preserve">a Unicode character.</doc>
  2592. <type name="guint32" c:type="guint32"/>
  2593. </parameter>
  2594. </parameters>
  2595. </virtual-method>
  2596. <virtual-method name="get_coverage"
  2597. invoker="get_coverage"
  2598. introspectable="0">
  2599. <doc xml:space="preserve">Computes the coverage map for a given font and language tag.</doc>
  2600. <return-value transfer-ownership="full">
  2601. <doc xml:space="preserve">a newly-allocated #PangoCoverage
  2602. object.</doc>
  2603. <type name="Coverage" c:type="PangoCoverage*"/>
  2604. </return-value>
  2605. <parameters>
  2606. <instance-parameter name="font" transfer-ownership="none">
  2607. <doc xml:space="preserve">a #PangoFont</doc>
  2608. <type name="Font" c:type="PangoFont*"/>
  2609. </instance-parameter>
  2610. <parameter name="lang" transfer-ownership="none">
  2611. <type name="Language" c:type="PangoLanguage*"/>
  2612. </parameter>
  2613. </parameters>
  2614. </virtual-method>
  2615. <virtual-method name="get_font_map"
  2616. invoker="get_font_map"
  2617. version="1.10">
  2618. <doc xml:space="preserve">Gets the font map for which the font was created.
  2619. Note that the font maintains a &lt;firstterm&gt;weak&lt;/firstterm&gt; reference
  2620. to the font map, so if all references to font map are dropped, the font
  2621. map will be finalized even if there are fonts created with the font
  2622. map that are still alive. In that case this function will return %NULL.
  2623. It is the responsibility of the user to ensure that the font map is kept
  2624. alive. In most uses this is not an issue as a #PangoContext holds
  2625. a reference to the font map.</doc>
  2626. <return-value transfer-ownership="none" nullable="1">
  2627. <doc xml:space="preserve">the #PangoFontMap for the
  2628. font, or %NULL if @font is %NULL.</doc>
  2629. <type name="FontMap" c:type="PangoFontMap*"/>
  2630. </return-value>
  2631. <parameters>
  2632. <instance-parameter name="font"
  2633. transfer-ownership="none"
  2634. nullable="1"
  2635. allow-none="1">
  2636. <doc xml:space="preserve">a #PangoFont, or %NULL</doc>
  2637. <type name="Font" c:type="PangoFont*"/>
  2638. </instance-parameter>
  2639. </parameters>
  2640. </virtual-method>
  2641. <virtual-method name="get_glyph_extents" invoker="get_glyph_extents">
  2642. <doc xml:space="preserve">Gets the logical and ink extents of a glyph within a font. The
  2643. coordinate system for each rectangle has its origin at the
  2644. base line and horizontal origin of the character with increasing
  2645. coordinates extending to the right and down. The macros PANGO_ASCENT(),
  2646. PANGO_DESCENT(), PANGO_LBEARING(), and PANGO_RBEARING() can be used to convert
  2647. from the extents rectangle to more traditional font metrics. The units
  2648. of the rectangles are in 1/PANGO_SCALE of a device unit.
  2649. If @font is %NULL, this function gracefully sets some sane values in the
  2650. output variables and returns.</doc>
  2651. <return-value transfer-ownership="none">
  2652. <type name="none" c:type="void"/>
  2653. </return-value>
  2654. <parameters>
  2655. <instance-parameter name="font"
  2656. transfer-ownership="none"
  2657. nullable="1"
  2658. allow-none="1">
  2659. <doc xml:space="preserve">a #PangoFont</doc>
  2660. <type name="Font" c:type="PangoFont*"/>
  2661. </instance-parameter>
  2662. <parameter name="glyph" transfer-ownership="none">
  2663. <doc xml:space="preserve">the glyph index</doc>
  2664. <type name="Glyph" c:type="PangoGlyph"/>
  2665. </parameter>
  2666. <parameter name="ink_rect"
  2667. direction="out"
  2668. caller-allocates="1"
  2669. transfer-ownership="none"
  2670. optional="1"
  2671. allow-none="1">
  2672. <doc xml:space="preserve">rectangle used to store the extents of the glyph
  2673. as drawn or %NULL to indicate that the result is not needed.</doc>
  2674. <type name="Rectangle" c:type="PangoRectangle*"/>
  2675. </parameter>
  2676. <parameter name="logical_rect"
  2677. direction="out"
  2678. caller-allocates="1"
  2679. transfer-ownership="none"
  2680. optional="1"
  2681. allow-none="1">
  2682. <doc xml:space="preserve">rectangle used to store the logical extents of
  2683. the glyph or %NULL to indicate that the result is not needed.</doc>
  2684. <type name="Rectangle" c:type="PangoRectangle*"/>
  2685. </parameter>
  2686. </parameters>
  2687. </virtual-method>
  2688. <virtual-method name="get_metrics" invoker="get_metrics">
  2689. <doc xml:space="preserve">Gets overall metric information for a font. Since the metrics may be
  2690. substantially different for different scripts, a language tag can
  2691. be provided to indicate that the metrics should be retrieved that
  2692. correspond to the script(s) used by that language.
  2693. If @font is %NULL, this function gracefully sets some sane values in the
  2694. output variables and returns.</doc>
  2695. <return-value transfer-ownership="full">
  2696. <doc xml:space="preserve">a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()
  2697. when finished using the object.</doc>
  2698. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  2699. </return-value>
  2700. <parameters>
  2701. <instance-parameter name="font"
  2702. transfer-ownership="none"
  2703. nullable="1"
  2704. allow-none="1">
  2705. <doc xml:space="preserve">a #PangoFont</doc>
  2706. <type name="Font" c:type="PangoFont*"/>
  2707. </instance-parameter>
  2708. <parameter name="language"
  2709. transfer-ownership="none"
  2710. nullable="1"
  2711. allow-none="1">
  2712. <doc xml:space="preserve">language tag used to determine which script to get the metrics
  2713. for, or %NULL to indicate to get the metrics for the entire font.</doc>
  2714. <type name="Language" c:type="PangoLanguage*"/>
  2715. </parameter>
  2716. </parameters>
  2717. </virtual-method>
  2718. <method name="describe" c:identifier="pango_font_describe">
  2719. <doc xml:space="preserve">Returns a description of the font, with font size set in points.
  2720. Use pango_font_describe_with_absolute_size() if you want the font
  2721. size in device units.</doc>
  2722. <return-value transfer-ownership="full">
  2723. <doc xml:space="preserve">a newly-allocated #PangoFontDescription object.</doc>
  2724. <type name="FontDescription" c:type="PangoFontDescription*"/>
  2725. </return-value>
  2726. <parameters>
  2727. <instance-parameter name="font" transfer-ownership="none">
  2728. <doc xml:space="preserve">a #PangoFont</doc>
  2729. <type name="Font" c:type="PangoFont*"/>
  2730. </instance-parameter>
  2731. </parameters>
  2732. </method>
  2733. <method name="describe_with_absolute_size"
  2734. c:identifier="pango_font_describe_with_absolute_size"
  2735. version="1.14">
  2736. <doc xml:space="preserve">Returns a description of the font, with absolute font size set
  2737. (in device units). Use pango_font_describe() if you want the font
  2738. size in points.</doc>
  2739. <return-value transfer-ownership="full">
  2740. <doc xml:space="preserve">a newly-allocated #PangoFontDescription object.</doc>
  2741. <type name="FontDescription" c:type="PangoFontDescription*"/>
  2742. </return-value>
  2743. <parameters>
  2744. <instance-parameter name="font" transfer-ownership="none">
  2745. <doc xml:space="preserve">a #PangoFont</doc>
  2746. <type name="Font" c:type="PangoFont*"/>
  2747. </instance-parameter>
  2748. </parameters>
  2749. </method>
  2750. <method name="find_shaper"
  2751. c:identifier="pango_font_find_shaper"
  2752. introspectable="0">
  2753. <doc xml:space="preserve">Finds the best matching shaper for a font for a particular
  2754. language tag and character point.</doc>
  2755. <return-value>
  2756. <doc xml:space="preserve">the best matching shaper.</doc>
  2757. <type name="EngineShape" c:type="PangoEngineShape*"/>
  2758. </return-value>
  2759. <parameters>
  2760. <instance-parameter name="font" transfer-ownership="none">
  2761. <doc xml:space="preserve">a #PangoFont</doc>
  2762. <type name="Font" c:type="PangoFont*"/>
  2763. </instance-parameter>
  2764. <parameter name="language" transfer-ownership="none">
  2765. <doc xml:space="preserve">the language tag</doc>
  2766. <type name="Language" c:type="PangoLanguage*"/>
  2767. </parameter>
  2768. <parameter name="ch" transfer-ownership="none">
  2769. <doc xml:space="preserve">a Unicode character.</doc>
  2770. <type name="guint32" c:type="guint32"/>
  2771. </parameter>
  2772. </parameters>
  2773. </method>
  2774. <method name="get_coverage"
  2775. c:identifier="pango_font_get_coverage"
  2776. introspectable="0">
  2777. <doc xml:space="preserve">Computes the coverage map for a given font and language tag.</doc>
  2778. <return-value transfer-ownership="full">
  2779. <doc xml:space="preserve">a newly-allocated #PangoCoverage
  2780. object.</doc>
  2781. <type name="Coverage" c:type="PangoCoverage*"/>
  2782. </return-value>
  2783. <parameters>
  2784. <instance-parameter name="font" transfer-ownership="none">
  2785. <doc xml:space="preserve">a #PangoFont</doc>
  2786. <type name="Font" c:type="PangoFont*"/>
  2787. </instance-parameter>
  2788. <parameter name="language" transfer-ownership="none">
  2789. <doc xml:space="preserve">the language tag</doc>
  2790. <type name="Language" c:type="PangoLanguage*"/>
  2791. </parameter>
  2792. </parameters>
  2793. </method>
  2794. <method name="get_font_map"
  2795. c:identifier="pango_font_get_font_map"
  2796. version="1.10">
  2797. <doc xml:space="preserve">Gets the font map for which the font was created.
  2798. Note that the font maintains a &lt;firstterm&gt;weak&lt;/firstterm&gt; reference
  2799. to the font map, so if all references to font map are dropped, the font
  2800. map will be finalized even if there are fonts created with the font
  2801. map that are still alive. In that case this function will return %NULL.
  2802. It is the responsibility of the user to ensure that the font map is kept
  2803. alive. In most uses this is not an issue as a #PangoContext holds
  2804. a reference to the font map.</doc>
  2805. <return-value transfer-ownership="none" nullable="1">
  2806. <doc xml:space="preserve">the #PangoFontMap for the
  2807. font, or %NULL if @font is %NULL.</doc>
  2808. <type name="FontMap" c:type="PangoFontMap*"/>
  2809. </return-value>
  2810. <parameters>
  2811. <instance-parameter name="font"
  2812. transfer-ownership="none"
  2813. nullable="1"
  2814. allow-none="1">
  2815. <doc xml:space="preserve">a #PangoFont, or %NULL</doc>
  2816. <type name="Font" c:type="PangoFont*"/>
  2817. </instance-parameter>
  2818. </parameters>
  2819. </method>
  2820. <method name="get_glyph_extents"
  2821. c:identifier="pango_font_get_glyph_extents">
  2822. <doc xml:space="preserve">Gets the logical and ink extents of a glyph within a font. The
  2823. coordinate system for each rectangle has its origin at the
  2824. base line and horizontal origin of the character with increasing
  2825. coordinates extending to the right and down. The macros PANGO_ASCENT(),
  2826. PANGO_DESCENT(), PANGO_LBEARING(), and PANGO_RBEARING() can be used to convert
  2827. from the extents rectangle to more traditional font metrics. The units
  2828. of the rectangles are in 1/PANGO_SCALE of a device unit.
  2829. If @font is %NULL, this function gracefully sets some sane values in the
  2830. output variables and returns.</doc>
  2831. <return-value transfer-ownership="none">
  2832. <type name="none" c:type="void"/>
  2833. </return-value>
  2834. <parameters>
  2835. <instance-parameter name="font"
  2836. transfer-ownership="none"
  2837. nullable="1"
  2838. allow-none="1">
  2839. <doc xml:space="preserve">a #PangoFont</doc>
  2840. <type name="Font" c:type="PangoFont*"/>
  2841. </instance-parameter>
  2842. <parameter name="glyph" transfer-ownership="none">
  2843. <doc xml:space="preserve">the glyph index</doc>
  2844. <type name="Glyph" c:type="PangoGlyph"/>
  2845. </parameter>
  2846. <parameter name="ink_rect"
  2847. direction="out"
  2848. caller-allocates="1"
  2849. transfer-ownership="none"
  2850. optional="1"
  2851. allow-none="1">
  2852. <doc xml:space="preserve">rectangle used to store the extents of the glyph
  2853. as drawn or %NULL to indicate that the result is not needed.</doc>
  2854. <type name="Rectangle" c:type="PangoRectangle*"/>
  2855. </parameter>
  2856. <parameter name="logical_rect"
  2857. direction="out"
  2858. caller-allocates="1"
  2859. transfer-ownership="none"
  2860. optional="1"
  2861. allow-none="1">
  2862. <doc xml:space="preserve">rectangle used to store the logical extents of
  2863. the glyph or %NULL to indicate that the result is not needed.</doc>
  2864. <type name="Rectangle" c:type="PangoRectangle*"/>
  2865. </parameter>
  2866. </parameters>
  2867. </method>
  2868. <method name="get_metrics" c:identifier="pango_font_get_metrics">
  2869. <doc xml:space="preserve">Gets overall metric information for a font. Since the metrics may be
  2870. substantially different for different scripts, a language tag can
  2871. be provided to indicate that the metrics should be retrieved that
  2872. correspond to the script(s) used by that language.
  2873. If @font is %NULL, this function gracefully sets some sane values in the
  2874. output variables and returns.</doc>
  2875. <return-value transfer-ownership="full">
  2876. <doc xml:space="preserve">a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()
  2877. when finished using the object.</doc>
  2878. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  2879. </return-value>
  2880. <parameters>
  2881. <instance-parameter name="font"
  2882. transfer-ownership="none"
  2883. nullable="1"
  2884. allow-none="1">
  2885. <doc xml:space="preserve">a #PangoFont</doc>
  2886. <type name="Font" c:type="PangoFont*"/>
  2887. </instance-parameter>
  2888. <parameter name="language"
  2889. transfer-ownership="none"
  2890. nullable="1"
  2891. allow-none="1">
  2892. <doc xml:space="preserve">language tag used to determine which script to get the metrics
  2893. for, or %NULL to indicate to get the metrics for the entire font.</doc>
  2894. <type name="Language" c:type="PangoLanguage*"/>
  2895. </parameter>
  2896. </parameters>
  2897. </method>
  2898. <field name="parent_instance">
  2899. <type name="GObject.Object" c:type="GObject"/>
  2900. </field>
  2901. </class>
  2902. <record name="FontClass"
  2903. c:type="PangoFontClass"
  2904. glib:is-gtype-struct-for="Font">
  2905. <field name="parent_class">
  2906. <type name="GObject.ObjectClass" c:type="GObjectClass"/>
  2907. </field>
  2908. <field name="describe">
  2909. <callback name="describe">
  2910. <return-value transfer-ownership="full">
  2911. <doc xml:space="preserve">a newly-allocated #PangoFontDescription object.</doc>
  2912. <type name="FontDescription" c:type="PangoFontDescription*"/>
  2913. </return-value>
  2914. <parameters>
  2915. <parameter name="font" transfer-ownership="none">
  2916. <doc xml:space="preserve">a #PangoFont</doc>
  2917. <type name="Font" c:type="PangoFont*"/>
  2918. </parameter>
  2919. </parameters>
  2920. </callback>
  2921. </field>
  2922. <field name="get_coverage" introspectable="0">
  2923. <callback name="get_coverage" introspectable="0">
  2924. <return-value transfer-ownership="full">
  2925. <doc xml:space="preserve">a newly-allocated #PangoCoverage
  2926. object.</doc>
  2927. <type name="Coverage" c:type="PangoCoverage*"/>
  2928. </return-value>
  2929. <parameters>
  2930. <parameter name="font" transfer-ownership="none">
  2931. <doc xml:space="preserve">a #PangoFont</doc>
  2932. <type name="Font" c:type="PangoFont*"/>
  2933. </parameter>
  2934. <parameter name="lang" transfer-ownership="none">
  2935. <type name="Language" c:type="PangoLanguage*"/>
  2936. </parameter>
  2937. </parameters>
  2938. </callback>
  2939. </field>
  2940. <field name="find_shaper" introspectable="0">
  2941. <callback name="find_shaper" introspectable="0">
  2942. <return-value>
  2943. <doc xml:space="preserve">the best matching shaper.</doc>
  2944. <type name="EngineShape" c:type="PangoEngineShape*"/>
  2945. </return-value>
  2946. <parameters>
  2947. <parameter name="font" transfer-ownership="none">
  2948. <doc xml:space="preserve">a #PangoFont</doc>
  2949. <type name="Font" c:type="PangoFont*"/>
  2950. </parameter>
  2951. <parameter name="lang" transfer-ownership="none">
  2952. <type name="Language" c:type="PangoLanguage*"/>
  2953. </parameter>
  2954. <parameter name="ch" transfer-ownership="none">
  2955. <doc xml:space="preserve">a Unicode character.</doc>
  2956. <type name="guint32" c:type="guint32"/>
  2957. </parameter>
  2958. </parameters>
  2959. </callback>
  2960. </field>
  2961. <field name="get_glyph_extents">
  2962. <callback name="get_glyph_extents">
  2963. <return-value transfer-ownership="none">
  2964. <type name="none" c:type="void"/>
  2965. </return-value>
  2966. <parameters>
  2967. <parameter name="font"
  2968. transfer-ownership="none"
  2969. nullable="1"
  2970. allow-none="1">
  2971. <doc xml:space="preserve">a #PangoFont</doc>
  2972. <type name="Font" c:type="PangoFont*"/>
  2973. </parameter>
  2974. <parameter name="glyph" transfer-ownership="none">
  2975. <doc xml:space="preserve">the glyph index</doc>
  2976. <type name="Glyph" c:type="PangoGlyph"/>
  2977. </parameter>
  2978. <parameter name="ink_rect"
  2979. direction="out"
  2980. caller-allocates="1"
  2981. transfer-ownership="none"
  2982. optional="1"
  2983. allow-none="1">
  2984. <doc xml:space="preserve">rectangle used to store the extents of the glyph
  2985. as drawn or %NULL to indicate that the result is not needed.</doc>
  2986. <type name="Rectangle" c:type="PangoRectangle*"/>
  2987. </parameter>
  2988. <parameter name="logical_rect"
  2989. direction="out"
  2990. caller-allocates="1"
  2991. transfer-ownership="none"
  2992. optional="1"
  2993. allow-none="1">
  2994. <doc xml:space="preserve">rectangle used to store the logical extents of
  2995. the glyph or %NULL to indicate that the result is not needed.</doc>
  2996. <type name="Rectangle" c:type="PangoRectangle*"/>
  2997. </parameter>
  2998. </parameters>
  2999. </callback>
  3000. </field>
  3001. <field name="get_metrics">
  3002. <callback name="get_metrics">
  3003. <return-value transfer-ownership="full">
  3004. <doc xml:space="preserve">a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()
  3005. when finished using the object.</doc>
  3006. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  3007. </return-value>
  3008. <parameters>
  3009. <parameter name="font"
  3010. transfer-ownership="none"
  3011. nullable="1"
  3012. allow-none="1">
  3013. <doc xml:space="preserve">a #PangoFont</doc>
  3014. <type name="Font" c:type="PangoFont*"/>
  3015. </parameter>
  3016. <parameter name="language"
  3017. transfer-ownership="none"
  3018. nullable="1"
  3019. allow-none="1">
  3020. <doc xml:space="preserve">language tag used to determine which script to get the metrics
  3021. for, or %NULL to indicate to get the metrics for the entire font.</doc>
  3022. <type name="Language" c:type="PangoLanguage*"/>
  3023. </parameter>
  3024. </parameters>
  3025. </callback>
  3026. </field>
  3027. <field name="get_font_map">
  3028. <callback name="get_font_map">
  3029. <return-value transfer-ownership="none" nullable="1">
  3030. <doc xml:space="preserve">the #PangoFontMap for the
  3031. font, or %NULL if @font is %NULL.</doc>
  3032. <type name="FontMap" c:type="PangoFontMap*"/>
  3033. </return-value>
  3034. <parameters>
  3035. <parameter name="font"
  3036. transfer-ownership="none"
  3037. nullable="1"
  3038. allow-none="1">
  3039. <doc xml:space="preserve">a #PangoFont, or %NULL</doc>
  3040. <type name="Font" c:type="PangoFont*"/>
  3041. </parameter>
  3042. </parameters>
  3043. </callback>
  3044. </field>
  3045. <field name="describe_absolute">
  3046. <callback name="describe_absolute">
  3047. <return-value transfer-ownership="full">
  3048. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3049. </return-value>
  3050. <parameters>
  3051. <parameter name="font" transfer-ownership="none">
  3052. <type name="Font" c:type="PangoFont*"/>
  3053. </parameter>
  3054. </parameters>
  3055. </callback>
  3056. </field>
  3057. <field name="_pango_reserved1" introspectable="0">
  3058. <callback name="_pango_reserved1">
  3059. <return-value transfer-ownership="none">
  3060. <type name="none" c:type="void"/>
  3061. </return-value>
  3062. </callback>
  3063. </field>
  3064. <field name="_pango_reserved2" introspectable="0">
  3065. <callback name="_pango_reserved2">
  3066. <return-value transfer-ownership="none">
  3067. <type name="none" c:type="void"/>
  3068. </return-value>
  3069. </callback>
  3070. </field>
  3071. </record>
  3072. <record name="FontDescription"
  3073. c:type="PangoFontDescription"
  3074. glib:type-name="PangoFontDescription"
  3075. glib:get-type="pango_font_description_get_type"
  3076. c:symbol-prefix="font_description">
  3077. <doc xml:space="preserve">The #PangoFontDescription structure represents the description
  3078. of an ideal font. These structures are used both to list
  3079. what fonts are available on the system and also for specifying
  3080. the characteristics of a font to load.</doc>
  3081. <constructor name="new" c:identifier="pango_font_description_new">
  3082. <doc xml:space="preserve">Creates a new font description structure with all fields unset.</doc>
  3083. <return-value transfer-ownership="full">
  3084. <doc xml:space="preserve">the newly allocated #PangoFontDescription, which
  3085. should be freed using pango_font_description_free().</doc>
  3086. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3087. </return-value>
  3088. </constructor>
  3089. <method name="better_match"
  3090. c:identifier="pango_font_description_better_match">
  3091. <doc xml:space="preserve">Determines if the style attributes of @new_match are a closer match
  3092. for @desc than those of @old_match are, or if @old_match is %NULL,
  3093. determines if @new_match is a match at all.
  3094. Approximate matching is done for
  3095. weight and style; other style attributes must match exactly.
  3096. Style attributes are all attributes other than family and size-related
  3097. attributes. Approximate matching for style considers PANGO_STYLE_OBLIQUE
  3098. and PANGO_STYLE_ITALIC as matches, but not as good a match as when the
  3099. styles are equal.
  3100. Note that @old_match must match @desc.</doc>
  3101. <return-value transfer-ownership="none">
  3102. <doc xml:space="preserve">%TRUE if @new_match is a better match</doc>
  3103. <type name="gboolean" c:type="gboolean"/>
  3104. </return-value>
  3105. <parameters>
  3106. <instance-parameter name="desc" transfer-ownership="none">
  3107. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3108. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3109. </instance-parameter>
  3110. <parameter name="old_match"
  3111. transfer-ownership="none"
  3112. nullable="1"
  3113. allow-none="1">
  3114. <doc xml:space="preserve">a #PangoFontDescription, or %NULL</doc>
  3115. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3116. </parameter>
  3117. <parameter name="new_match" transfer-ownership="none">
  3118. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3119. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3120. </parameter>
  3121. </parameters>
  3122. </method>
  3123. <method name="copy" c:identifier="pango_font_description_copy">
  3124. <doc xml:space="preserve">Make a copy of a #PangoFontDescription.</doc>
  3125. <return-value transfer-ownership="full" nullable="1">
  3126. <doc xml:space="preserve">the newly allocated
  3127. #PangoFontDescription, which should be freed with
  3128. pango_font_description_free(), or %NULL if @desc was
  3129. %NULL.</doc>
  3130. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3131. </return-value>
  3132. <parameters>
  3133. <instance-parameter name="desc"
  3134. transfer-ownership="none"
  3135. nullable="1"
  3136. allow-none="1">
  3137. <doc xml:space="preserve">a #PangoFontDescription, may be %NULL</doc>
  3138. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3139. </instance-parameter>
  3140. </parameters>
  3141. </method>
  3142. <method name="copy_static"
  3143. c:identifier="pango_font_description_copy_static">
  3144. <doc xml:space="preserve">Like pango_font_description_copy(), but only a shallow copy is made
  3145. of the family name and other allocated fields. The result can only
  3146. be used until @desc is modified or freed. This is meant to be used
  3147. when the copy is only needed temporarily.</doc>
  3148. <return-value transfer-ownership="full" nullable="1">
  3149. <doc xml:space="preserve">the newly allocated
  3150. #PangoFontDescription, which should be freed with
  3151. pango_font_description_free(), or %NULL if @desc was
  3152. %NULL.</doc>
  3153. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3154. </return-value>
  3155. <parameters>
  3156. <instance-parameter name="desc"
  3157. transfer-ownership="none"
  3158. nullable="1"
  3159. allow-none="1">
  3160. <doc xml:space="preserve">a #PangoFontDescription, may be %NULL</doc>
  3161. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3162. </instance-parameter>
  3163. </parameters>
  3164. </method>
  3165. <method name="equal" c:identifier="pango_font_description_equal">
  3166. <doc xml:space="preserve">Compares two font descriptions for equality. Two font descriptions
  3167. are considered equal if the fonts they describe are provably identical.
  3168. This means that their masks do not have to match, as long as other fields
  3169. are all the same. (Two font descriptions may result in identical fonts
  3170. being loaded, but still compare %FALSE.)</doc>
  3171. <return-value transfer-ownership="none">
  3172. <doc xml:space="preserve">%TRUE if the two font descriptions are identical,
  3173. %FALSE otherwise.</doc>
  3174. <type name="gboolean" c:type="gboolean"/>
  3175. </return-value>
  3176. <parameters>
  3177. <instance-parameter name="desc1" transfer-ownership="none">
  3178. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3179. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3180. </instance-parameter>
  3181. <parameter name="desc2" transfer-ownership="none">
  3182. <doc xml:space="preserve">another #PangoFontDescription</doc>
  3183. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3184. </parameter>
  3185. </parameters>
  3186. </method>
  3187. <method name="free" c:identifier="pango_font_description_free">
  3188. <doc xml:space="preserve">Frees a font description.</doc>
  3189. <return-value transfer-ownership="none">
  3190. <type name="none" c:type="void"/>
  3191. </return-value>
  3192. <parameters>
  3193. <instance-parameter name="desc"
  3194. transfer-ownership="none"
  3195. nullable="1"
  3196. allow-none="1">
  3197. <doc xml:space="preserve">a #PangoFontDescription, may be %NULL</doc>
  3198. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3199. </instance-parameter>
  3200. </parameters>
  3201. </method>
  3202. <method name="get_family"
  3203. c:identifier="pango_font_description_get_family">
  3204. <doc xml:space="preserve">Gets the family name field of a font description. See
  3205. pango_font_description_set_family().</doc>
  3206. <return-value transfer-ownership="none" nullable="1">
  3207. <doc xml:space="preserve">the family name field for the font
  3208. description, or %NULL if not previously set. This
  3209. has the same life-time as the font description itself
  3210. and should not be freed.</doc>
  3211. <type name="utf8" c:type="const char*"/>
  3212. </return-value>
  3213. <parameters>
  3214. <instance-parameter name="desc" transfer-ownership="none">
  3215. <doc xml:space="preserve">a #PangoFontDescription.</doc>
  3216. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3217. </instance-parameter>
  3218. </parameters>
  3219. </method>
  3220. <method name="get_gravity"
  3221. c:identifier="pango_font_description_get_gravity"
  3222. version="1.16">
  3223. <doc xml:space="preserve">Gets the gravity field of a font description. See
  3224. pango_font_description_set_gravity().</doc>
  3225. <return-value transfer-ownership="none">
  3226. <doc xml:space="preserve">the gravity field for the font description. Use
  3227. pango_font_description_get_set_fields() to find out if
  3228. the field was explicitly set or not.</doc>
  3229. <type name="Gravity" c:type="PangoGravity"/>
  3230. </return-value>
  3231. <parameters>
  3232. <instance-parameter name="desc" transfer-ownership="none">
  3233. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3234. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3235. </instance-parameter>
  3236. </parameters>
  3237. </method>
  3238. <method name="get_set_fields"
  3239. c:identifier="pango_font_description_get_set_fields">
  3240. <doc xml:space="preserve">Determines which fields in a font description have been set.</doc>
  3241. <return-value transfer-ownership="none">
  3242. <doc xml:space="preserve">a bitmask with bits set corresponding to the
  3243. fields in @desc that have been set.</doc>
  3244. <type name="FontMask" c:type="PangoFontMask"/>
  3245. </return-value>
  3246. <parameters>
  3247. <instance-parameter name="desc" transfer-ownership="none">
  3248. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3249. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3250. </instance-parameter>
  3251. </parameters>
  3252. </method>
  3253. <method name="get_size" c:identifier="pango_font_description_get_size">
  3254. <doc xml:space="preserve">Gets the size field of a font description.
  3255. See pango_font_description_set_size().</doc>
  3256. <return-value transfer-ownership="none">
  3257. <doc xml:space="preserve">the size field for the font description in points or device units.
  3258. You must call pango_font_description_get_size_is_absolute()
  3259. to find out which is the case. Returns 0 if the size field has not
  3260. previously been set or it has been set to 0 explicitly.
  3261. Use pango_font_description_get_set_fields() to
  3262. find out if the field was explicitly set or not.</doc>
  3263. <type name="gint" c:type="gint"/>
  3264. </return-value>
  3265. <parameters>
  3266. <instance-parameter name="desc" transfer-ownership="none">
  3267. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3268. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3269. </instance-parameter>
  3270. </parameters>
  3271. </method>
  3272. <method name="get_size_is_absolute"
  3273. c:identifier="pango_font_description_get_size_is_absolute"
  3274. version="1.8">
  3275. <doc xml:space="preserve">Determines whether the size of the font is in points (not absolute) or device units (absolute).
  3276. See pango_font_description_set_size() and pango_font_description_set_absolute_size().</doc>
  3277. <return-value transfer-ownership="none">
  3278. <doc xml:space="preserve">whether the size for the font description is in
  3279. points or device units. Use pango_font_description_get_set_fields() to
  3280. find out if the size field of the font description was explicitly set or not.</doc>
  3281. <type name="gboolean" c:type="gboolean"/>
  3282. </return-value>
  3283. <parameters>
  3284. <instance-parameter name="desc" transfer-ownership="none">
  3285. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3286. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3287. </instance-parameter>
  3288. </parameters>
  3289. </method>
  3290. <method name="get_stretch"
  3291. c:identifier="pango_font_description_get_stretch">
  3292. <doc xml:space="preserve">Gets the stretch field of a font description.
  3293. See pango_font_description_set_stretch().</doc>
  3294. <return-value transfer-ownership="none">
  3295. <doc xml:space="preserve">the stretch field for the font description. Use
  3296. pango_font_description_get_set_fields() to find out if
  3297. the field was explicitly set or not.</doc>
  3298. <type name="Stretch" c:type="PangoStretch"/>
  3299. </return-value>
  3300. <parameters>
  3301. <instance-parameter name="desc" transfer-ownership="none">
  3302. <doc xml:space="preserve">a #PangoFontDescription.</doc>
  3303. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3304. </instance-parameter>
  3305. </parameters>
  3306. </method>
  3307. <method name="get_style" c:identifier="pango_font_description_get_style">
  3308. <doc xml:space="preserve">Gets the style field of a #PangoFontDescription. See
  3309. pango_font_description_set_style().</doc>
  3310. <return-value transfer-ownership="none">
  3311. <doc xml:space="preserve">the style field for the font description.
  3312. Use pango_font_description_get_set_fields() to find out if
  3313. the field was explicitly set or not.</doc>
  3314. <type name="Style" c:type="PangoStyle"/>
  3315. </return-value>
  3316. <parameters>
  3317. <instance-parameter name="desc" transfer-ownership="none">
  3318. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3319. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3320. </instance-parameter>
  3321. </parameters>
  3322. </method>
  3323. <method name="get_variant"
  3324. c:identifier="pango_font_description_get_variant">
  3325. <doc xml:space="preserve">Gets the variant field of a #PangoFontDescription. See
  3326. pango_font_description_set_variant().</doc>
  3327. <return-value transfer-ownership="none">
  3328. <doc xml:space="preserve">the variant field for the font description. Use
  3329. pango_font_description_get_set_fields() to find out if
  3330. the field was explicitly set or not.</doc>
  3331. <type name="Variant" c:type="PangoVariant"/>
  3332. </return-value>
  3333. <parameters>
  3334. <instance-parameter name="desc" transfer-ownership="none">
  3335. <doc xml:space="preserve">a #PangoFontDescription.</doc>
  3336. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3337. </instance-parameter>
  3338. </parameters>
  3339. </method>
  3340. <method name="get_weight"
  3341. c:identifier="pango_font_description_get_weight">
  3342. <doc xml:space="preserve">Gets the weight field of a font description. See
  3343. pango_font_description_set_weight().</doc>
  3344. <return-value transfer-ownership="none">
  3345. <doc xml:space="preserve">the weight field for the font description. Use
  3346. pango_font_description_get_set_fields() to find out if
  3347. the field was explicitly set or not.</doc>
  3348. <type name="Weight" c:type="PangoWeight"/>
  3349. </return-value>
  3350. <parameters>
  3351. <instance-parameter name="desc" transfer-ownership="none">
  3352. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3353. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3354. </instance-parameter>
  3355. </parameters>
  3356. </method>
  3357. <method name="hash" c:identifier="pango_font_description_hash">
  3358. <doc xml:space="preserve">Computes a hash of a #PangoFontDescription structure suitable
  3359. to be used, for example, as an argument to g_hash_table_new().
  3360. The hash value is independent of @desc-&gt;mask.</doc>
  3361. <return-value transfer-ownership="none">
  3362. <doc xml:space="preserve">the hash value.</doc>
  3363. <type name="guint" c:type="guint"/>
  3364. </return-value>
  3365. <parameters>
  3366. <instance-parameter name="desc" transfer-ownership="none">
  3367. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3368. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3369. </instance-parameter>
  3370. </parameters>
  3371. </method>
  3372. <method name="merge" c:identifier="pango_font_description_merge">
  3373. <doc xml:space="preserve">Merges the fields that are set in @desc_to_merge into the fields in
  3374. @desc. If @replace_existing is %FALSE, only fields in @desc that
  3375. are not already set are affected. If %TRUE, then fields that are
  3376. already set will be replaced as well.
  3377. If @desc_to_merge is %NULL, this function performs nothing.</doc>
  3378. <return-value transfer-ownership="none">
  3379. <type name="none" c:type="void"/>
  3380. </return-value>
  3381. <parameters>
  3382. <instance-parameter name="desc" transfer-ownership="none">
  3383. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3384. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3385. </instance-parameter>
  3386. <parameter name="desc_to_merge"
  3387. transfer-ownership="none"
  3388. nullable="1"
  3389. allow-none="1">
  3390. <doc xml:space="preserve">the #PangoFontDescription to merge from, or %NULL</doc>
  3391. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3392. </parameter>
  3393. <parameter name="replace_existing" transfer-ownership="none">
  3394. <doc xml:space="preserve">if %TRUE, replace fields in @desc with the
  3395. corresponding values from @desc_to_merge, even if they
  3396. are already exist.</doc>
  3397. <type name="gboolean" c:type="gboolean"/>
  3398. </parameter>
  3399. </parameters>
  3400. </method>
  3401. <method name="merge_static"
  3402. c:identifier="pango_font_description_merge_static">
  3403. <doc xml:space="preserve">Like pango_font_description_merge(), but only a shallow copy is made
  3404. of the family name and other allocated fields. @desc can only be
  3405. used until @desc_to_merge is modified or freed. This is meant
  3406. to be used when the merged font description is only needed temporarily.</doc>
  3407. <return-value transfer-ownership="none">
  3408. <type name="none" c:type="void"/>
  3409. </return-value>
  3410. <parameters>
  3411. <instance-parameter name="desc" transfer-ownership="none">
  3412. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3413. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3414. </instance-parameter>
  3415. <parameter name="desc_to_merge" transfer-ownership="none">
  3416. <doc xml:space="preserve">the #PangoFontDescription to merge from</doc>
  3417. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3418. </parameter>
  3419. <parameter name="replace_existing" transfer-ownership="none">
  3420. <doc xml:space="preserve">if %TRUE, replace fields in @desc with the
  3421. corresponding values from @desc_to_merge, even if they
  3422. are already exist.</doc>
  3423. <type name="gboolean" c:type="gboolean"/>
  3424. </parameter>
  3425. </parameters>
  3426. </method>
  3427. <method name="set_absolute_size"
  3428. c:identifier="pango_font_description_set_absolute_size"
  3429. version="1.8">
  3430. <doc xml:space="preserve">Sets the size field of a font description, in device units. This is mutually
  3431. exclusive with pango_font_description_set_size() which sets the font size
  3432. in points.</doc>
  3433. <return-value transfer-ownership="none">
  3434. <type name="none" c:type="void"/>
  3435. </return-value>
  3436. <parameters>
  3437. <instance-parameter name="desc" transfer-ownership="none">
  3438. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3439. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3440. </instance-parameter>
  3441. <parameter name="size" transfer-ownership="none">
  3442. <doc xml:space="preserve">the new size, in Pango units. There are %PANGO_SCALE Pango units in one
  3443. device unit. For an output backend where a device unit is a pixel, a @size
  3444. value of 10 * PANGO_SCALE gives a 10 pixel font.</doc>
  3445. <type name="gdouble" c:type="double"/>
  3446. </parameter>
  3447. </parameters>
  3448. </method>
  3449. <method name="set_family"
  3450. c:identifier="pango_font_description_set_family">
  3451. <doc xml:space="preserve">Sets the family name field of a font description. The family
  3452. name represents a family of related font styles, and will
  3453. resolve to a particular #PangoFontFamily. In some uses of
  3454. #PangoFontDescription, it is also possible to use a comma
  3455. separated list of family names for this field.</doc>
  3456. <return-value transfer-ownership="none">
  3457. <type name="none" c:type="void"/>
  3458. </return-value>
  3459. <parameters>
  3460. <instance-parameter name="desc" transfer-ownership="none">
  3461. <doc xml:space="preserve">a #PangoFontDescription.</doc>
  3462. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3463. </instance-parameter>
  3464. <parameter name="family" transfer-ownership="none">
  3465. <doc xml:space="preserve">a string representing the family name.</doc>
  3466. <type name="utf8" c:type="const char*"/>
  3467. </parameter>
  3468. </parameters>
  3469. </method>
  3470. <method name="set_family_static"
  3471. c:identifier="pango_font_description_set_family_static">
  3472. <doc xml:space="preserve">Like pango_font_description_set_family(), except that no
  3473. copy of @family is made. The caller must make sure that the
  3474. string passed in stays around until @desc has been freed
  3475. or the name is set again. This function can be used if
  3476. @family is a static string such as a C string literal, or
  3477. if @desc is only needed temporarily.</doc>
  3478. <return-value transfer-ownership="none">
  3479. <type name="none" c:type="void"/>
  3480. </return-value>
  3481. <parameters>
  3482. <instance-parameter name="desc" transfer-ownership="none">
  3483. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3484. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3485. </instance-parameter>
  3486. <parameter name="family" transfer-ownership="none">
  3487. <doc xml:space="preserve">a string representing the family name.</doc>
  3488. <type name="utf8" c:type="const char*"/>
  3489. </parameter>
  3490. </parameters>
  3491. </method>
  3492. <method name="set_gravity"
  3493. c:identifier="pango_font_description_set_gravity"
  3494. version="1.16">
  3495. <doc xml:space="preserve">Sets the gravity field of a font description. The gravity field
  3496. specifies how the glyphs should be rotated. If @gravity is
  3497. %PANGO_GRAVITY_AUTO, this actually unsets the gravity mask on
  3498. the font description.
  3499. This function is seldom useful to the user. Gravity should normally
  3500. be set on a #PangoContext.</doc>
  3501. <return-value transfer-ownership="none">
  3502. <type name="none" c:type="void"/>
  3503. </return-value>
  3504. <parameters>
  3505. <instance-parameter name="desc" transfer-ownership="none">
  3506. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3507. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3508. </instance-parameter>
  3509. <parameter name="gravity" transfer-ownership="none">
  3510. <doc xml:space="preserve">the gravity for the font description.</doc>
  3511. <type name="Gravity" c:type="PangoGravity"/>
  3512. </parameter>
  3513. </parameters>
  3514. </method>
  3515. <method name="set_size" c:identifier="pango_font_description_set_size">
  3516. <doc xml:space="preserve">Sets the size field of a font description in fractional points. This is mutually
  3517. exclusive with pango_font_description_set_absolute_size().</doc>
  3518. <return-value transfer-ownership="none">
  3519. <type name="none" c:type="void"/>
  3520. </return-value>
  3521. <parameters>
  3522. <instance-parameter name="desc" transfer-ownership="none">
  3523. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3524. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3525. </instance-parameter>
  3526. <parameter name="size" transfer-ownership="none">
  3527. <doc xml:space="preserve">the size of the font in points, scaled by PANGO_SCALE. (That is,
  3528. a @size value of 10 * PANGO_SCALE is a 10 point font. The conversion
  3529. factor between points and device units depends on system configuration
  3530. and the output device. For screen display, a logical DPI of 96 is
  3531. common, in which case a 10 point font corresponds to a 10 * (96 / 72) = 13.3
  3532. pixel font. Use pango_font_description_set_absolute_size() if you need
  3533. a particular size in device units.</doc>
  3534. <type name="gint" c:type="gint"/>
  3535. </parameter>
  3536. </parameters>
  3537. </method>
  3538. <method name="set_stretch"
  3539. c:identifier="pango_font_description_set_stretch">
  3540. <doc xml:space="preserve">Sets the stretch field of a font description. The stretch field
  3541. specifies how narrow or wide the font should be.</doc>
  3542. <return-value transfer-ownership="none">
  3543. <type name="none" c:type="void"/>
  3544. </return-value>
  3545. <parameters>
  3546. <instance-parameter name="desc" transfer-ownership="none">
  3547. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3548. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3549. </instance-parameter>
  3550. <parameter name="stretch" transfer-ownership="none">
  3551. <doc xml:space="preserve">the stretch for the font description</doc>
  3552. <type name="Stretch" c:type="PangoStretch"/>
  3553. </parameter>
  3554. </parameters>
  3555. </method>
  3556. <method name="set_style" c:identifier="pango_font_description_set_style">
  3557. <doc xml:space="preserve">Sets the style field of a #PangoFontDescription. The
  3558. #PangoStyle enumeration describes whether the font is slanted and
  3559. the manner in which it is slanted; it can be either
  3560. #PANGO_STYLE_NORMAL, #PANGO_STYLE_ITALIC, or #PANGO_STYLE_OBLIQUE.
  3561. Most fonts will either have a italic style or an oblique
  3562. style, but not both, and font matching in Pango will
  3563. match italic specifications with oblique fonts and vice-versa
  3564. if an exact match is not found.</doc>
  3565. <return-value transfer-ownership="none">
  3566. <type name="none" c:type="void"/>
  3567. </return-value>
  3568. <parameters>
  3569. <instance-parameter name="desc" transfer-ownership="none">
  3570. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3571. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3572. </instance-parameter>
  3573. <parameter name="style" transfer-ownership="none">
  3574. <doc xml:space="preserve">the style for the font description</doc>
  3575. <type name="Style" c:type="PangoStyle"/>
  3576. </parameter>
  3577. </parameters>
  3578. </method>
  3579. <method name="set_variant"
  3580. c:identifier="pango_font_description_set_variant">
  3581. <doc xml:space="preserve">Sets the variant field of a font description. The #PangoVariant
  3582. can either be %PANGO_VARIANT_NORMAL or %PANGO_VARIANT_SMALL_CAPS.</doc>
  3583. <return-value transfer-ownership="none">
  3584. <type name="none" c:type="void"/>
  3585. </return-value>
  3586. <parameters>
  3587. <instance-parameter name="desc" transfer-ownership="none">
  3588. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3589. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3590. </instance-parameter>
  3591. <parameter name="variant" transfer-ownership="none">
  3592. <doc xml:space="preserve">the variant type for the font description.</doc>
  3593. <type name="Variant" c:type="PangoVariant"/>
  3594. </parameter>
  3595. </parameters>
  3596. </method>
  3597. <method name="set_weight"
  3598. c:identifier="pango_font_description_set_weight">
  3599. <doc xml:space="preserve">Sets the weight field of a font description. The weight field
  3600. specifies how bold or light the font should be. In addition
  3601. to the values of the #PangoWeight enumeration, other intermediate
  3602. numeric values are possible.</doc>
  3603. <return-value transfer-ownership="none">
  3604. <type name="none" c:type="void"/>
  3605. </return-value>
  3606. <parameters>
  3607. <instance-parameter name="desc" transfer-ownership="none">
  3608. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3609. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3610. </instance-parameter>
  3611. <parameter name="weight" transfer-ownership="none">
  3612. <doc xml:space="preserve">the weight for the font description.</doc>
  3613. <type name="Weight" c:type="PangoWeight"/>
  3614. </parameter>
  3615. </parameters>
  3616. </method>
  3617. <method name="to_filename"
  3618. c:identifier="pango_font_description_to_filename">
  3619. <doc xml:space="preserve">Creates a filename representation of a font description. The
  3620. filename is identical to the result from calling
  3621. pango_font_description_to_string(), but with underscores instead of
  3622. characters that are untypical in filenames, and in lower case only.</doc>
  3623. <return-value transfer-ownership="full">
  3624. <doc xml:space="preserve">a new string that must be freed with g_free().</doc>
  3625. <type name="utf8" c:type="char*"/>
  3626. </return-value>
  3627. <parameters>
  3628. <instance-parameter name="desc" transfer-ownership="none">
  3629. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3630. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3631. </instance-parameter>
  3632. </parameters>
  3633. </method>
  3634. <method name="to_string" c:identifier="pango_font_description_to_string">
  3635. <doc xml:space="preserve">Creates a string representation of a font description. See
  3636. pango_font_description_from_string() for a description of the
  3637. format of the string representation. The family list in the
  3638. string description will only have a terminating comma if the
  3639. last word of the list is a valid style option.</doc>
  3640. <return-value transfer-ownership="full">
  3641. <doc xml:space="preserve">a new string that must be freed with g_free().</doc>
  3642. <type name="utf8" c:type="char*"/>
  3643. </return-value>
  3644. <parameters>
  3645. <instance-parameter name="desc" transfer-ownership="none">
  3646. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3647. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  3648. </instance-parameter>
  3649. </parameters>
  3650. </method>
  3651. <method name="unset_fields"
  3652. c:identifier="pango_font_description_unset_fields">
  3653. <doc xml:space="preserve">Unsets some of the fields in a #PangoFontDescription. The unset
  3654. fields will get back to their default values.</doc>
  3655. <return-value transfer-ownership="none">
  3656. <type name="none" c:type="void"/>
  3657. </return-value>
  3658. <parameters>
  3659. <instance-parameter name="desc" transfer-ownership="none">
  3660. <doc xml:space="preserve">a #PangoFontDescription</doc>
  3661. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3662. </instance-parameter>
  3663. <parameter name="to_unset" transfer-ownership="none">
  3664. <doc xml:space="preserve">bitmask of fields in the @desc to unset.</doc>
  3665. <type name="FontMask" c:type="PangoFontMask"/>
  3666. </parameter>
  3667. </parameters>
  3668. </method>
  3669. <function name="from_string"
  3670. c:identifier="pango_font_description_from_string">
  3671. <doc xml:space="preserve">Creates a new font description from a string representation in the
  3672. form "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where FAMILY-LIST is a
  3673. comma separated list of families optionally terminated by a comma,
  3674. STYLE_OPTIONS is a whitespace separated list of words where each word
  3675. describes one of style, variant, weight, stretch, or gravity, and SIZE
  3676. is a decimal number (size in points) or optionally followed by the
  3677. unit modifier "px" for absolute size. Any one of the options may
  3678. be absent. If FAMILY-LIST is absent, then the family_name field of
  3679. the resulting font description will be initialized to %NULL. If
  3680. STYLE-OPTIONS is missing, then all style options will be set to the
  3681. default values. If SIZE is missing, the size in the resulting font
  3682. description will be set to 0.</doc>
  3683. <return-value transfer-ownership="full">
  3684. <doc xml:space="preserve">a new #PangoFontDescription.</doc>
  3685. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3686. </return-value>
  3687. <parameters>
  3688. <parameter name="str" transfer-ownership="none">
  3689. <doc xml:space="preserve">string representation of a font description.</doc>
  3690. <type name="utf8" c:type="const char*"/>
  3691. </parameter>
  3692. </parameters>
  3693. </function>
  3694. </record>
  3695. <class name="FontFace"
  3696. c:symbol-prefix="font_face"
  3697. c:type="PangoFontFace"
  3698. parent="GObject.Object"
  3699. abstract="1"
  3700. glib:type-name="PangoFontFace"
  3701. glib:get-type="pango_font_face_get_type"
  3702. glib:type-struct="FontFaceClass">
  3703. <doc xml:space="preserve">The #PangoFontFace structure is used to represent a group of fonts with
  3704. the same family, slant, weight, width, but varying sizes.</doc>
  3705. <virtual-method name="describe" invoker="describe">
  3706. <doc xml:space="preserve">Returns the family, style, variant, weight and stretch of
  3707. a #PangoFontFace. The size field of the resulting font description
  3708. will be unset.</doc>
  3709. <return-value transfer-ownership="full">
  3710. <doc xml:space="preserve">a newly-created #PangoFontDescription structure
  3711. holding the description of the face. Use pango_font_description_free()
  3712. to free the result.</doc>
  3713. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3714. </return-value>
  3715. <parameters>
  3716. <instance-parameter name="face" transfer-ownership="none">
  3717. <doc xml:space="preserve">a #PangoFontFace</doc>
  3718. <type name="FontFace" c:type="PangoFontFace*"/>
  3719. </instance-parameter>
  3720. </parameters>
  3721. </virtual-method>
  3722. <virtual-method name="get_face_name" invoker="get_face_name">
  3723. <doc xml:space="preserve">Gets a name representing the style of this face among the
  3724. different faces in the #PangoFontFamily for the face. This
  3725. name is unique among all faces in the family and is suitable
  3726. for displaying to users.</doc>
  3727. <return-value transfer-ownership="none">
  3728. <doc xml:space="preserve">the face name for the face. This string is
  3729. owned by the face object and must not be modified or freed.</doc>
  3730. <type name="utf8" c:type="const char*"/>
  3731. </return-value>
  3732. <parameters>
  3733. <instance-parameter name="face" transfer-ownership="none">
  3734. <doc xml:space="preserve">a #PangoFontFace.</doc>
  3735. <type name="FontFace" c:type="PangoFontFace*"/>
  3736. </instance-parameter>
  3737. </parameters>
  3738. </virtual-method>
  3739. <virtual-method name="is_synthesized"
  3740. invoker="is_synthesized"
  3741. version="1.18">
  3742. <doc xml:space="preserve">Returns whether a #PangoFontFace is synthesized by the underlying
  3743. font rendering engine from another face, perhaps by shearing, emboldening,
  3744. or lightening it.</doc>
  3745. <return-value transfer-ownership="none">
  3746. <doc xml:space="preserve">whether @face is synthesized.</doc>
  3747. <type name="gboolean" c:type="gboolean"/>
  3748. </return-value>
  3749. <parameters>
  3750. <instance-parameter name="face" transfer-ownership="none">
  3751. <doc xml:space="preserve">a #PangoFontFace</doc>
  3752. <type name="FontFace" c:type="PangoFontFace*"/>
  3753. </instance-parameter>
  3754. </parameters>
  3755. </virtual-method>
  3756. <virtual-method name="list_sizes" invoker="list_sizes" version="1.4">
  3757. <doc xml:space="preserve">List the available sizes for a font. This is only applicable to bitmap
  3758. fonts. For scalable fonts, stores %NULL at the location pointed to by
  3759. @sizes and 0 at the location pointed to by @n_sizes. The sizes returned
  3760. are in Pango units and are sorted in ascending order.</doc>
  3761. <return-value transfer-ownership="none">
  3762. <type name="none" c:type="void"/>
  3763. </return-value>
  3764. <parameters>
  3765. <instance-parameter name="face" transfer-ownership="none">
  3766. <doc xml:space="preserve">a #PangoFontFace.</doc>
  3767. <type name="FontFace" c:type="PangoFontFace*"/>
  3768. </instance-parameter>
  3769. <parameter name="sizes"
  3770. direction="out"
  3771. caller-allocates="0"
  3772. transfer-ownership="full"
  3773. nullable="1"
  3774. optional="1"
  3775. allow-none="1">
  3776. <doc xml:space="preserve">
  3777. location to store a pointer to an array of int. This array
  3778. should be freed with g_free().</doc>
  3779. <array length="1" zero-terminated="0" c:type="int**">
  3780. <type name="gint" c:type="int*"/>
  3781. </array>
  3782. </parameter>
  3783. <parameter name="n_sizes"
  3784. direction="out"
  3785. caller-allocates="0"
  3786. transfer-ownership="full">
  3787. <doc xml:space="preserve">location to store the number of elements in @sizes</doc>
  3788. <type name="gint" c:type="int*"/>
  3789. </parameter>
  3790. </parameters>
  3791. </virtual-method>
  3792. <method name="describe" c:identifier="pango_font_face_describe">
  3793. <doc xml:space="preserve">Returns the family, style, variant, weight and stretch of
  3794. a #PangoFontFace. The size field of the resulting font description
  3795. will be unset.</doc>
  3796. <return-value transfer-ownership="full">
  3797. <doc xml:space="preserve">a newly-created #PangoFontDescription structure
  3798. holding the description of the face. Use pango_font_description_free()
  3799. to free the result.</doc>
  3800. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3801. </return-value>
  3802. <parameters>
  3803. <instance-parameter name="face" transfer-ownership="none">
  3804. <doc xml:space="preserve">a #PangoFontFace</doc>
  3805. <type name="FontFace" c:type="PangoFontFace*"/>
  3806. </instance-parameter>
  3807. </parameters>
  3808. </method>
  3809. <method name="get_face_name"
  3810. c:identifier="pango_font_face_get_face_name">
  3811. <doc xml:space="preserve">Gets a name representing the style of this face among the
  3812. different faces in the #PangoFontFamily for the face. This
  3813. name is unique among all faces in the family and is suitable
  3814. for displaying to users.</doc>
  3815. <return-value transfer-ownership="none">
  3816. <doc xml:space="preserve">the face name for the face. This string is
  3817. owned by the face object and must not be modified or freed.</doc>
  3818. <type name="utf8" c:type="const char*"/>
  3819. </return-value>
  3820. <parameters>
  3821. <instance-parameter name="face" transfer-ownership="none">
  3822. <doc xml:space="preserve">a #PangoFontFace.</doc>
  3823. <type name="FontFace" c:type="PangoFontFace*"/>
  3824. </instance-parameter>
  3825. </parameters>
  3826. </method>
  3827. <method name="is_synthesized"
  3828. c:identifier="pango_font_face_is_synthesized"
  3829. version="1.18">
  3830. <doc xml:space="preserve">Returns whether a #PangoFontFace is synthesized by the underlying
  3831. font rendering engine from another face, perhaps by shearing, emboldening,
  3832. or lightening it.</doc>
  3833. <return-value transfer-ownership="none">
  3834. <doc xml:space="preserve">whether @face is synthesized.</doc>
  3835. <type name="gboolean" c:type="gboolean"/>
  3836. </return-value>
  3837. <parameters>
  3838. <instance-parameter name="face" transfer-ownership="none">
  3839. <doc xml:space="preserve">a #PangoFontFace</doc>
  3840. <type name="FontFace" c:type="PangoFontFace*"/>
  3841. </instance-parameter>
  3842. </parameters>
  3843. </method>
  3844. <method name="list_sizes"
  3845. c:identifier="pango_font_face_list_sizes"
  3846. version="1.4">
  3847. <doc xml:space="preserve">List the available sizes for a font. This is only applicable to bitmap
  3848. fonts. For scalable fonts, stores %NULL at the location pointed to by
  3849. @sizes and 0 at the location pointed to by @n_sizes. The sizes returned
  3850. are in Pango units and are sorted in ascending order.</doc>
  3851. <return-value transfer-ownership="none">
  3852. <type name="none" c:type="void"/>
  3853. </return-value>
  3854. <parameters>
  3855. <instance-parameter name="face" transfer-ownership="none">
  3856. <doc xml:space="preserve">a #PangoFontFace.</doc>
  3857. <type name="FontFace" c:type="PangoFontFace*"/>
  3858. </instance-parameter>
  3859. <parameter name="sizes"
  3860. direction="out"
  3861. caller-allocates="0"
  3862. transfer-ownership="full"
  3863. nullable="1"
  3864. optional="1"
  3865. allow-none="1">
  3866. <doc xml:space="preserve">
  3867. location to store a pointer to an array of int. This array
  3868. should be freed with g_free().</doc>
  3869. <array length="1" zero-terminated="0" c:type="int**">
  3870. <type name="gint" c:type="int*"/>
  3871. </array>
  3872. </parameter>
  3873. <parameter name="n_sizes"
  3874. direction="out"
  3875. caller-allocates="0"
  3876. transfer-ownership="full">
  3877. <doc xml:space="preserve">location to store the number of elements in @sizes</doc>
  3878. <type name="gint" c:type="int*"/>
  3879. </parameter>
  3880. </parameters>
  3881. </method>
  3882. <field name="parent_instance">
  3883. <type name="GObject.Object" c:type="GObject"/>
  3884. </field>
  3885. </class>
  3886. <record name="FontFaceClass"
  3887. c:type="PangoFontFaceClass"
  3888. glib:is-gtype-struct-for="FontFace">
  3889. <field name="parent_class">
  3890. <type name="GObject.ObjectClass" c:type="GObjectClass"/>
  3891. </field>
  3892. <field name="get_face_name">
  3893. <callback name="get_face_name">
  3894. <return-value transfer-ownership="none">
  3895. <doc xml:space="preserve">the face name for the face. This string is
  3896. owned by the face object and must not be modified or freed.</doc>
  3897. <type name="utf8" c:type="const char*"/>
  3898. </return-value>
  3899. <parameters>
  3900. <parameter name="face" transfer-ownership="none">
  3901. <doc xml:space="preserve">a #PangoFontFace.</doc>
  3902. <type name="FontFace" c:type="PangoFontFace*"/>
  3903. </parameter>
  3904. </parameters>
  3905. </callback>
  3906. </field>
  3907. <field name="describe">
  3908. <callback name="describe">
  3909. <return-value transfer-ownership="full">
  3910. <doc xml:space="preserve">a newly-created #PangoFontDescription structure
  3911. holding the description of the face. Use pango_font_description_free()
  3912. to free the result.</doc>
  3913. <type name="FontDescription" c:type="PangoFontDescription*"/>
  3914. </return-value>
  3915. <parameters>
  3916. <parameter name="face" transfer-ownership="none">
  3917. <doc xml:space="preserve">a #PangoFontFace</doc>
  3918. <type name="FontFace" c:type="PangoFontFace*"/>
  3919. </parameter>
  3920. </parameters>
  3921. </callback>
  3922. </field>
  3923. <field name="list_sizes">
  3924. <callback name="list_sizes">
  3925. <return-value transfer-ownership="none">
  3926. <type name="none" c:type="void"/>
  3927. </return-value>
  3928. <parameters>
  3929. <parameter name="face" transfer-ownership="none">
  3930. <doc xml:space="preserve">a #PangoFontFace.</doc>
  3931. <type name="FontFace" c:type="PangoFontFace*"/>
  3932. </parameter>
  3933. <parameter name="sizes"
  3934. direction="out"
  3935. caller-allocates="0"
  3936. transfer-ownership="full"
  3937. nullable="1"
  3938. optional="1"
  3939. allow-none="1">
  3940. <doc xml:space="preserve">
  3941. location to store a pointer to an array of int. This array
  3942. should be freed with g_free().</doc>
  3943. <array length="2" zero-terminated="0" c:type="int**">
  3944. <type name="gint" c:type="int*"/>
  3945. </array>
  3946. </parameter>
  3947. <parameter name="n_sizes"
  3948. direction="out"
  3949. caller-allocates="0"
  3950. transfer-ownership="full">
  3951. <doc xml:space="preserve">location to store the number of elements in @sizes</doc>
  3952. <type name="gint" c:type="int*"/>
  3953. </parameter>
  3954. </parameters>
  3955. </callback>
  3956. </field>
  3957. <field name="is_synthesized">
  3958. <callback name="is_synthesized">
  3959. <return-value transfer-ownership="none">
  3960. <doc xml:space="preserve">whether @face is synthesized.</doc>
  3961. <type name="gboolean" c:type="gboolean"/>
  3962. </return-value>
  3963. <parameters>
  3964. <parameter name="face" transfer-ownership="none">
  3965. <doc xml:space="preserve">a #PangoFontFace</doc>
  3966. <type name="FontFace" c:type="PangoFontFace*"/>
  3967. </parameter>
  3968. </parameters>
  3969. </callback>
  3970. </field>
  3971. <field name="_pango_reserved3" introspectable="0">
  3972. <callback name="_pango_reserved3">
  3973. <return-value transfer-ownership="none">
  3974. <type name="none" c:type="void"/>
  3975. </return-value>
  3976. </callback>
  3977. </field>
  3978. <field name="_pango_reserved4" introspectable="0">
  3979. <callback name="_pango_reserved4">
  3980. <return-value transfer-ownership="none">
  3981. <type name="none" c:type="void"/>
  3982. </return-value>
  3983. </callback>
  3984. </field>
  3985. </record>
  3986. <class name="FontFamily"
  3987. c:symbol-prefix="font_family"
  3988. c:type="PangoFontFamily"
  3989. parent="GObject.Object"
  3990. abstract="1"
  3991. glib:type-name="PangoFontFamily"
  3992. glib:get-type="pango_font_family_get_type"
  3993. glib:type-struct="FontFamilyClass">
  3994. <doc xml:space="preserve">The #PangoFontFamily structure is used to represent a family of related
  3995. font faces. The faces in a family share a common design, but differ in
  3996. slant, weight, width and other aspects.</doc>
  3997. <virtual-method name="get_name" invoker="get_name">
  3998. <doc xml:space="preserve">Gets the name of the family. The name is unique among all
  3999. fonts for the font backend and can be used in a #PangoFontDescription
  4000. to specify that a face from this family is desired.</doc>
  4001. <return-value transfer-ownership="none">
  4002. <doc xml:space="preserve">the name of the family. This string is owned
  4003. by the family object and must not be modified or freed.</doc>
  4004. <type name="utf8" c:type="const char*"/>
  4005. </return-value>
  4006. <parameters>
  4007. <instance-parameter name="family" transfer-ownership="none">
  4008. <doc xml:space="preserve">a #PangoFontFamily</doc>
  4009. <type name="FontFamily" c:type="PangoFontFamily*"/>
  4010. </instance-parameter>
  4011. </parameters>
  4012. </virtual-method>
  4013. <virtual-method name="is_monospace" invoker="is_monospace" version="1.4">
  4014. <doc xml:space="preserve">A monospace font is a font designed for text display where the the
  4015. characters form a regular grid. For Western languages this would
  4016. mean that the advance width of all characters are the same, but
  4017. this categorization also includes Asian fonts which include
  4018. double-width characters: characters that occupy two grid cells.
  4019. g_unichar_iswide() returns a result that indicates whether a
  4020. character is typically double-width in a monospace font.
  4021. The best way to find out the grid-cell size is to call
  4022. pango_font_metrics_get_approximate_digit_width(), since the results
  4023. of pango_font_metrics_get_approximate_char_width() may be affected
  4024. by double-width characters.</doc>
  4025. <return-value transfer-ownership="none">
  4026. <doc xml:space="preserve">%TRUE if the family is monospace.</doc>
  4027. <type name="gboolean" c:type="gboolean"/>
  4028. </return-value>
  4029. <parameters>
  4030. <instance-parameter name="family" transfer-ownership="none">
  4031. <doc xml:space="preserve">a #PangoFontFamily</doc>
  4032. <type name="FontFamily" c:type="PangoFontFamily*"/>
  4033. </instance-parameter>
  4034. </parameters>
  4035. </virtual-method>
  4036. <virtual-method name="list_faces" invoker="list_faces">
  4037. <doc xml:space="preserve">Lists the different font faces that make up @family. The faces
  4038. in a family share a common design, but differ in slant, weight,
  4039. width and other aspects.</doc>
  4040. <return-value transfer-ownership="none">
  4041. <type name="none" c:type="void"/>
  4042. </return-value>
  4043. <parameters>
  4044. <instance-parameter name="family" transfer-ownership="none">
  4045. <doc xml:space="preserve">a #PangoFontFamily</doc>
  4046. <type name="FontFamily" c:type="PangoFontFamily*"/>
  4047. </instance-parameter>
  4048. <parameter name="faces"
  4049. direction="out"
  4050. caller-allocates="0"
  4051. transfer-ownership="container"
  4052. optional="1"
  4053. allow-none="1">
  4054. <doc xml:space="preserve">
  4055. location to store an array of pointers to #PangoFontFace objects,
  4056. or %NULL. This array should be freed with g_free() when it is no
  4057. longer needed.</doc>
  4058. <array length="1" zero-terminated="0" c:type="PangoFontFace***">
  4059. <type name="FontFace" c:type="PangoFontFace**"/>
  4060. </array>
  4061. </parameter>
  4062. <parameter name="n_faces"
  4063. direction="out"
  4064. caller-allocates="0"
  4065. transfer-ownership="full">
  4066. <doc xml:space="preserve">location to store number of elements in @faces.</doc>
  4067. <type name="gint" c:type="int*"/>
  4068. </parameter>
  4069. </parameters>
  4070. </virtual-method>
  4071. <method name="get_name" c:identifier="pango_font_family_get_name">
  4072. <doc xml:space="preserve">Gets the name of the family. The name is unique among all
  4073. fonts for the font backend and can be used in a #PangoFontDescription
  4074. to specify that a face from this family is desired.</doc>
  4075. <return-value transfer-ownership="none">
  4076. <doc xml:space="preserve">the name of the family. This string is owned
  4077. by the family object and must not be modified or freed.</doc>
  4078. <type name="utf8" c:type="const char*"/>
  4079. </return-value>
  4080. <parameters>
  4081. <instance-parameter name="family" transfer-ownership="none">
  4082. <doc xml:space="preserve">a #PangoFontFamily</doc>
  4083. <type name="FontFamily" c:type="PangoFontFamily*"/>
  4084. </instance-parameter>
  4085. </parameters>
  4086. </method>
  4087. <method name="is_monospace"
  4088. c:identifier="pango_font_family_is_monospace"
  4089. version="1.4">
  4090. <doc xml:space="preserve">A monospace font is a font designed for text display where the the
  4091. characters form a regular grid. For Western languages this would
  4092. mean that the advance width of all characters are the same, but
  4093. this categorization also includes Asian fonts which include
  4094. double-width characters: characters that occupy two grid cells.
  4095. g_unichar_iswide() returns a result that indicates whether a
  4096. character is typically double-width in a monospace font.
  4097. The best way to find out the grid-cell size is to call
  4098. pango_font_metrics_get_approximate_digit_width(), since the results
  4099. of pango_font_metrics_get_approximate_char_width() may be affected
  4100. by double-width characters.</doc>
  4101. <return-value transfer-ownership="none">
  4102. <doc xml:space="preserve">%TRUE if the family is monospace.</doc>
  4103. <type name="gboolean" c:type="gboolean"/>
  4104. </return-value>
  4105. <parameters>
  4106. <instance-parameter name="family" transfer-ownership="none">
  4107. <doc xml:space="preserve">a #PangoFontFamily</doc>
  4108. <type name="FontFamily" c:type="PangoFontFamily*"/>
  4109. </instance-parameter>
  4110. </parameters>
  4111. </method>
  4112. <method name="list_faces" c:identifier="pango_font_family_list_faces">
  4113. <doc xml:space="preserve">Lists the different font faces that make up @family. The faces
  4114. in a family share a common design, but differ in slant, weight,
  4115. width and other aspects.</doc>
  4116. <return-value transfer-ownership="none">
  4117. <type name="none" c:type="void"/>
  4118. </return-value>
  4119. <parameters>
  4120. <instance-parameter name="family" transfer-ownership="none">
  4121. <doc xml:space="preserve">a #PangoFontFamily</doc>
  4122. <type name="FontFamily" c:type="PangoFontFamily*"/>
  4123. </instance-parameter>
  4124. <parameter name="faces"
  4125. direction="out"
  4126. caller-allocates="0"
  4127. transfer-ownership="container"
  4128. optional="1"
  4129. allow-none="1">
  4130. <doc xml:space="preserve">
  4131. location to store an array of pointers to #PangoFontFace objects,
  4132. or %NULL. This array should be freed with g_free() when it is no
  4133. longer needed.</doc>
  4134. <array length="1" zero-terminated="0" c:type="PangoFontFace***">
  4135. <type name="FontFace" c:type="PangoFontFace**"/>
  4136. </array>
  4137. </parameter>
  4138. <parameter name="n_faces"
  4139. direction="out"
  4140. caller-allocates="0"
  4141. transfer-ownership="full">
  4142. <doc xml:space="preserve">location to store number of elements in @faces.</doc>
  4143. <type name="gint" c:type="int*"/>
  4144. </parameter>
  4145. </parameters>
  4146. </method>
  4147. <field name="parent_instance">
  4148. <type name="GObject.Object" c:type="GObject"/>
  4149. </field>
  4150. </class>
  4151. <record name="FontFamilyClass"
  4152. c:type="PangoFontFamilyClass"
  4153. glib:is-gtype-struct-for="FontFamily">
  4154. <field name="parent_class">
  4155. <type name="GObject.ObjectClass" c:type="GObjectClass"/>
  4156. </field>
  4157. <field name="list_faces">
  4158. <callback name="list_faces">
  4159. <return-value transfer-ownership="none">
  4160. <type name="none" c:type="void"/>
  4161. </return-value>
  4162. <parameters>
  4163. <parameter name="family" transfer-ownership="none">
  4164. <doc xml:space="preserve">a #PangoFontFamily</doc>
  4165. <type name="FontFamily" c:type="PangoFontFamily*"/>
  4166. </parameter>
  4167. <parameter name="faces"
  4168. direction="out"
  4169. caller-allocates="0"
  4170. transfer-ownership="container"
  4171. optional="1"
  4172. allow-none="1">
  4173. <doc xml:space="preserve">
  4174. location to store an array of pointers to #PangoFontFace objects,
  4175. or %NULL. This array should be freed with g_free() when it is no
  4176. longer needed.</doc>
  4177. <array length="2" zero-terminated="0" c:type="PangoFontFace***">
  4178. <type name="FontFace" c:type="PangoFontFace**"/>
  4179. </array>
  4180. </parameter>
  4181. <parameter name="n_faces"
  4182. direction="out"
  4183. caller-allocates="0"
  4184. transfer-ownership="full">
  4185. <doc xml:space="preserve">location to store number of elements in @faces.</doc>
  4186. <type name="gint" c:type="int*"/>
  4187. </parameter>
  4188. </parameters>
  4189. </callback>
  4190. </field>
  4191. <field name="get_name">
  4192. <callback name="get_name">
  4193. <return-value transfer-ownership="none">
  4194. <doc xml:space="preserve">the name of the family. This string is owned
  4195. by the family object and must not be modified or freed.</doc>
  4196. <type name="utf8" c:type="const char*"/>
  4197. </return-value>
  4198. <parameters>
  4199. <parameter name="family" transfer-ownership="none">
  4200. <doc xml:space="preserve">a #PangoFontFamily</doc>
  4201. <type name="FontFamily" c:type="PangoFontFamily*"/>
  4202. </parameter>
  4203. </parameters>
  4204. </callback>
  4205. </field>
  4206. <field name="is_monospace">
  4207. <callback name="is_monospace">
  4208. <return-value transfer-ownership="none">
  4209. <doc xml:space="preserve">%TRUE if the family is monospace.</doc>
  4210. <type name="gboolean" c:type="gboolean"/>
  4211. </return-value>
  4212. <parameters>
  4213. <parameter name="family" transfer-ownership="none">
  4214. <doc xml:space="preserve">a #PangoFontFamily</doc>
  4215. <type name="FontFamily" c:type="PangoFontFamily*"/>
  4216. </parameter>
  4217. </parameters>
  4218. </callback>
  4219. </field>
  4220. <field name="_pango_reserved2" introspectable="0">
  4221. <callback name="_pango_reserved2">
  4222. <return-value transfer-ownership="none">
  4223. <type name="none" c:type="void"/>
  4224. </return-value>
  4225. </callback>
  4226. </field>
  4227. <field name="_pango_reserved3" introspectable="0">
  4228. <callback name="_pango_reserved3">
  4229. <return-value transfer-ownership="none">
  4230. <type name="none" c:type="void"/>
  4231. </return-value>
  4232. </callback>
  4233. </field>
  4234. <field name="_pango_reserved4" introspectable="0">
  4235. <callback name="_pango_reserved4">
  4236. <return-value transfer-ownership="none">
  4237. <type name="none" c:type="void"/>
  4238. </return-value>
  4239. </callback>
  4240. </field>
  4241. </record>
  4242. <class name="FontMap"
  4243. c:symbol-prefix="font_map"
  4244. c:type="PangoFontMap"
  4245. parent="GObject.Object"
  4246. abstract="1"
  4247. glib:type-name="PangoFontMap"
  4248. glib:get-type="pango_font_map_get_type"
  4249. glib:type-struct="FontMapClass">
  4250. <doc xml:space="preserve">The #PangoFontMap represents the set of fonts available for a
  4251. particular rendering system. This is a virtual object with
  4252. implementations being specific to particular rendering systems. To
  4253. create an implementation of a #PangoFontMap, the rendering-system
  4254. specific code should allocate a larger structure that contains a nested
  4255. #PangoFontMap, fill in the &lt;structfield&gt;klass&lt;/structfield&gt; member of the nested #PangoFontMap with a
  4256. pointer to a appropriate #PangoFontMapClass, then call
  4257. pango_font_map_init() on the structure.
  4258. The #PangoFontMap structure contains one member which the implementation
  4259. fills in.</doc>
  4260. <virtual-method name="changed" invoker="changed" version="1.34">
  4261. <doc xml:space="preserve">Forces a change in the context, which will cause any #PangoContext
  4262. using this fontmap to change.
  4263. This function is only useful when implementing a new backend
  4264. for Pango, something applications won't do. Backends should
  4265. call this function if they have attached extra data to the context
  4266. and such data is changed.</doc>
  4267. <return-value transfer-ownership="none">
  4268. <type name="none" c:type="void"/>
  4269. </return-value>
  4270. <parameters>
  4271. <instance-parameter name="fontmap" transfer-ownership="none">
  4272. <doc xml:space="preserve">a #PangoFontMap</doc>
  4273. <type name="FontMap" c:type="PangoFontMap*"/>
  4274. </instance-parameter>
  4275. </parameters>
  4276. </virtual-method>
  4277. <virtual-method name="get_serial" invoker="get_serial" version="1.32.4">
  4278. <doc xml:space="preserve">Returns the current serial number of @fontmap. The serial number is
  4279. initialized to an small number larger than zero when a new fontmap
  4280. is created and is increased whenever the fontmap is changed. It may
  4281. wrap, but will never have the value 0. Since it can wrap, never compare
  4282. it with "less than", always use "not equals".
  4283. The fontmap can only be changed using backend-specific API, like changing
  4284. fontmap resolution.
  4285. This can be used to automatically detect changes to a #PangoFontMap, like
  4286. in #PangoContext.</doc>
  4287. <return-value transfer-ownership="none">
  4288. <doc xml:space="preserve">The current serial number of @fontmap.</doc>
  4289. <type name="guint" c:type="guint"/>
  4290. </return-value>
  4291. <parameters>
  4292. <instance-parameter name="fontmap" transfer-ownership="none">
  4293. <doc xml:space="preserve">a #PangoFontMap</doc>
  4294. <type name="FontMap" c:type="PangoFontMap*"/>
  4295. </instance-parameter>
  4296. </parameters>
  4297. </virtual-method>
  4298. <virtual-method name="list_families" invoker="list_families">
  4299. <doc xml:space="preserve">List all families for a fontmap.</doc>
  4300. <return-value transfer-ownership="none">
  4301. <type name="none" c:type="void"/>
  4302. </return-value>
  4303. <parameters>
  4304. <instance-parameter name="fontmap" transfer-ownership="none">
  4305. <doc xml:space="preserve">a #PangoFontMap</doc>
  4306. <type name="FontMap" c:type="PangoFontMap*"/>
  4307. </instance-parameter>
  4308. <parameter name="families"
  4309. direction="out"
  4310. caller-allocates="0"
  4311. transfer-ownership="container">
  4312. <doc xml:space="preserve">location to store a pointer to an array of #PangoFontFamily *.
  4313. This array should be freed with g_free().</doc>
  4314. <array length="1" zero-terminated="0" c:type="PangoFontFamily***">
  4315. <type name="FontFamily" c:type="PangoFontFamily**"/>
  4316. </array>
  4317. </parameter>
  4318. <parameter name="n_families"
  4319. direction="out"
  4320. caller-allocates="0"
  4321. transfer-ownership="full">
  4322. <doc xml:space="preserve">location to store the number of elements in @families</doc>
  4323. <type name="gint" c:type="int*"/>
  4324. </parameter>
  4325. </parameters>
  4326. </virtual-method>
  4327. <virtual-method name="load_font" invoker="load_font">
  4328. <doc xml:space="preserve">Load the font in the fontmap that is the closest match for @desc.</doc>
  4329. <return-value transfer-ownership="full" nullable="1">
  4330. <doc xml:space="preserve">the newly allocated #PangoFont
  4331. loaded, or %NULL if no font matched.</doc>
  4332. <type name="Font" c:type="PangoFont*"/>
  4333. </return-value>
  4334. <parameters>
  4335. <instance-parameter name="fontmap" transfer-ownership="none">
  4336. <doc xml:space="preserve">a #PangoFontMap</doc>
  4337. <type name="FontMap" c:type="PangoFontMap*"/>
  4338. </instance-parameter>
  4339. <parameter name="context" transfer-ownership="none">
  4340. <doc xml:space="preserve">the #PangoContext the font will be used with</doc>
  4341. <type name="Context" c:type="PangoContext*"/>
  4342. </parameter>
  4343. <parameter name="desc" transfer-ownership="none">
  4344. <doc xml:space="preserve">a #PangoFontDescription describing the font to load</doc>
  4345. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  4346. </parameter>
  4347. </parameters>
  4348. </virtual-method>
  4349. <virtual-method name="load_fontset" invoker="load_fontset">
  4350. <doc xml:space="preserve">Load a set of fonts in the fontmap that can be used to render
  4351. a font matching @desc.</doc>
  4352. <return-value transfer-ownership="full" nullable="1">
  4353. <doc xml:space="preserve">the newly allocated
  4354. #PangoFontset loaded, or %NULL if no font matched.</doc>
  4355. <type name="Fontset" c:type="PangoFontset*"/>
  4356. </return-value>
  4357. <parameters>
  4358. <instance-parameter name="fontmap" transfer-ownership="none">
  4359. <doc xml:space="preserve">a #PangoFontMap</doc>
  4360. <type name="FontMap" c:type="PangoFontMap*"/>
  4361. </instance-parameter>
  4362. <parameter name="context" transfer-ownership="none">
  4363. <doc xml:space="preserve">the #PangoContext the font will be used with</doc>
  4364. <type name="Context" c:type="PangoContext*"/>
  4365. </parameter>
  4366. <parameter name="desc" transfer-ownership="none">
  4367. <doc xml:space="preserve">a #PangoFontDescription describing the font to load</doc>
  4368. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  4369. </parameter>
  4370. <parameter name="language" transfer-ownership="none">
  4371. <doc xml:space="preserve">a #PangoLanguage the fonts will be used for</doc>
  4372. <type name="Language" c:type="PangoLanguage*"/>
  4373. </parameter>
  4374. </parameters>
  4375. </virtual-method>
  4376. <method name="changed"
  4377. c:identifier="pango_font_map_changed"
  4378. version="1.34">
  4379. <doc xml:space="preserve">Forces a change in the context, which will cause any #PangoContext
  4380. using this fontmap to change.
  4381. This function is only useful when implementing a new backend
  4382. for Pango, something applications won't do. Backends should
  4383. call this function if they have attached extra data to the context
  4384. and such data is changed.</doc>
  4385. <return-value transfer-ownership="none">
  4386. <type name="none" c:type="void"/>
  4387. </return-value>
  4388. <parameters>
  4389. <instance-parameter name="fontmap" transfer-ownership="none">
  4390. <doc xml:space="preserve">a #PangoFontMap</doc>
  4391. <type name="FontMap" c:type="PangoFontMap*"/>
  4392. </instance-parameter>
  4393. </parameters>
  4394. </method>
  4395. <method name="create_context"
  4396. c:identifier="pango_font_map_create_context"
  4397. version="1.22">
  4398. <doc xml:space="preserve">Creates a #PangoContext connected to @fontmap. This is equivalent
  4399. to pango_context_new() followed by pango_context_set_font_map().
  4400. If you are using Pango as part of a higher-level system,
  4401. that system may have it's own way of create a #PangoContext.
  4402. For instance, the GTK+ toolkit has, among others,
  4403. gdk_pango_context_get_for_screen(), and
  4404. gtk_widget_get_pango_context(). Use those instead.</doc>
  4405. <return-value transfer-ownership="full">
  4406. <doc xml:space="preserve">the newly allocated #PangoContext,
  4407. which should be freed with g_object_unref().</doc>
  4408. <type name="Context" c:type="PangoContext*"/>
  4409. </return-value>
  4410. <parameters>
  4411. <instance-parameter name="fontmap" transfer-ownership="none">
  4412. <doc xml:space="preserve">a #PangoFontMap</doc>
  4413. <type name="FontMap" c:type="PangoFontMap*"/>
  4414. </instance-parameter>
  4415. </parameters>
  4416. </method>
  4417. <method name="get_serial"
  4418. c:identifier="pango_font_map_get_serial"
  4419. version="1.32.4">
  4420. <doc xml:space="preserve">Returns the current serial number of @fontmap. The serial number is
  4421. initialized to an small number larger than zero when a new fontmap
  4422. is created and is increased whenever the fontmap is changed. It may
  4423. wrap, but will never have the value 0. Since it can wrap, never compare
  4424. it with "less than", always use "not equals".
  4425. The fontmap can only be changed using backend-specific API, like changing
  4426. fontmap resolution.
  4427. This can be used to automatically detect changes to a #PangoFontMap, like
  4428. in #PangoContext.</doc>
  4429. <return-value transfer-ownership="none">
  4430. <doc xml:space="preserve">The current serial number of @fontmap.</doc>
  4431. <type name="guint" c:type="guint"/>
  4432. </return-value>
  4433. <parameters>
  4434. <instance-parameter name="fontmap" transfer-ownership="none">
  4435. <doc xml:space="preserve">a #PangoFontMap</doc>
  4436. <type name="FontMap" c:type="PangoFontMap*"/>
  4437. </instance-parameter>
  4438. </parameters>
  4439. </method>
  4440. <method name="get_shape_engine_type"
  4441. c:identifier="pango_font_map_get_shape_engine_type"
  4442. version="1.4"
  4443. deprecated="1"
  4444. deprecated-version="1.38">
  4445. <doc xml:space="preserve">Returns the render ID for shape engines for this fontmap.
  4446. See the &lt;structfield&gt;render_type&lt;/structfield&gt; field of
  4447. #PangoEngineInfo.</doc>
  4448. <return-value transfer-ownership="none">
  4449. <doc xml:space="preserve">the ID string for shape engines for
  4450. this fontmap. Owned by Pango, should not be modified
  4451. or freed.</doc>
  4452. <type name="utf8" c:type="const char*"/>
  4453. </return-value>
  4454. <parameters>
  4455. <instance-parameter name="fontmap" transfer-ownership="none">
  4456. <doc xml:space="preserve">a #PangoFontMap</doc>
  4457. <type name="FontMap" c:type="PangoFontMap*"/>
  4458. </instance-parameter>
  4459. </parameters>
  4460. </method>
  4461. <method name="list_families" c:identifier="pango_font_map_list_families">
  4462. <doc xml:space="preserve">List all families for a fontmap.</doc>
  4463. <return-value transfer-ownership="none">
  4464. <type name="none" c:type="void"/>
  4465. </return-value>
  4466. <parameters>
  4467. <instance-parameter name="fontmap" transfer-ownership="none">
  4468. <doc xml:space="preserve">a #PangoFontMap</doc>
  4469. <type name="FontMap" c:type="PangoFontMap*"/>
  4470. </instance-parameter>
  4471. <parameter name="families"
  4472. direction="out"
  4473. caller-allocates="0"
  4474. transfer-ownership="container">
  4475. <doc xml:space="preserve">location to store a pointer to an array of #PangoFontFamily *.
  4476. This array should be freed with g_free().</doc>
  4477. <array length="1" zero-terminated="0" c:type="PangoFontFamily***">
  4478. <type name="FontFamily" c:type="PangoFontFamily**"/>
  4479. </array>
  4480. </parameter>
  4481. <parameter name="n_families"
  4482. direction="out"
  4483. caller-allocates="0"
  4484. transfer-ownership="full">
  4485. <doc xml:space="preserve">location to store the number of elements in @families</doc>
  4486. <type name="gint" c:type="int*"/>
  4487. </parameter>
  4488. </parameters>
  4489. </method>
  4490. <method name="load_font" c:identifier="pango_font_map_load_font">
  4491. <doc xml:space="preserve">Load the font in the fontmap that is the closest match for @desc.</doc>
  4492. <return-value transfer-ownership="full" nullable="1">
  4493. <doc xml:space="preserve">the newly allocated #PangoFont
  4494. loaded, or %NULL if no font matched.</doc>
  4495. <type name="Font" c:type="PangoFont*"/>
  4496. </return-value>
  4497. <parameters>
  4498. <instance-parameter name="fontmap" transfer-ownership="none">
  4499. <doc xml:space="preserve">a #PangoFontMap</doc>
  4500. <type name="FontMap" c:type="PangoFontMap*"/>
  4501. </instance-parameter>
  4502. <parameter name="context" transfer-ownership="none">
  4503. <doc xml:space="preserve">the #PangoContext the font will be used with</doc>
  4504. <type name="Context" c:type="PangoContext*"/>
  4505. </parameter>
  4506. <parameter name="desc" transfer-ownership="none">
  4507. <doc xml:space="preserve">a #PangoFontDescription describing the font to load</doc>
  4508. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  4509. </parameter>
  4510. </parameters>
  4511. </method>
  4512. <method name="load_fontset" c:identifier="pango_font_map_load_fontset">
  4513. <doc xml:space="preserve">Load a set of fonts in the fontmap that can be used to render
  4514. a font matching @desc.</doc>
  4515. <return-value transfer-ownership="full" nullable="1">
  4516. <doc xml:space="preserve">the newly allocated
  4517. #PangoFontset loaded, or %NULL if no font matched.</doc>
  4518. <type name="Fontset" c:type="PangoFontset*"/>
  4519. </return-value>
  4520. <parameters>
  4521. <instance-parameter name="fontmap" transfer-ownership="none">
  4522. <doc xml:space="preserve">a #PangoFontMap</doc>
  4523. <type name="FontMap" c:type="PangoFontMap*"/>
  4524. </instance-parameter>
  4525. <parameter name="context" transfer-ownership="none">
  4526. <doc xml:space="preserve">the #PangoContext the font will be used with</doc>
  4527. <type name="Context" c:type="PangoContext*"/>
  4528. </parameter>
  4529. <parameter name="desc" transfer-ownership="none">
  4530. <doc xml:space="preserve">a #PangoFontDescription describing the font to load</doc>
  4531. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  4532. </parameter>
  4533. <parameter name="language" transfer-ownership="none">
  4534. <doc xml:space="preserve">a #PangoLanguage the fonts will be used for</doc>
  4535. <type name="Language" c:type="PangoLanguage*"/>
  4536. </parameter>
  4537. </parameters>
  4538. </method>
  4539. <field name="parent_instance">
  4540. <type name="GObject.Object" c:type="GObject"/>
  4541. </field>
  4542. </class>
  4543. <record name="FontMapClass"
  4544. c:type="PangoFontMapClass"
  4545. glib:is-gtype-struct-for="FontMap">
  4546. <doc xml:space="preserve">The #PangoFontMapClass structure holds the virtual functions for
  4547. a particular #PangoFontMap implementation.</doc>
  4548. <field name="parent_class">
  4549. <doc xml:space="preserve">parent #GObjectClass.</doc>
  4550. <type name="GObject.ObjectClass" c:type="GObjectClass"/>
  4551. </field>
  4552. <field name="load_font">
  4553. <callback name="load_font">
  4554. <return-value transfer-ownership="full" nullable="1">
  4555. <doc xml:space="preserve">the newly allocated #PangoFont
  4556. loaded, or %NULL if no font matched.</doc>
  4557. <type name="Font" c:type="PangoFont*"/>
  4558. </return-value>
  4559. <parameters>
  4560. <parameter name="fontmap" transfer-ownership="none">
  4561. <doc xml:space="preserve">a #PangoFontMap</doc>
  4562. <type name="FontMap" c:type="PangoFontMap*"/>
  4563. </parameter>
  4564. <parameter name="context" transfer-ownership="none">
  4565. <doc xml:space="preserve">the #PangoContext the font will be used with</doc>
  4566. <type name="Context" c:type="PangoContext*"/>
  4567. </parameter>
  4568. <parameter name="desc" transfer-ownership="none">
  4569. <doc xml:space="preserve">a #PangoFontDescription describing the font to load</doc>
  4570. <type name="FontDescription"
  4571. c:type="const PangoFontDescription*"/>
  4572. </parameter>
  4573. </parameters>
  4574. </callback>
  4575. </field>
  4576. <field name="list_families">
  4577. <callback name="list_families">
  4578. <return-value transfer-ownership="none">
  4579. <type name="none" c:type="void"/>
  4580. </return-value>
  4581. <parameters>
  4582. <parameter name="fontmap" transfer-ownership="none">
  4583. <doc xml:space="preserve">a #PangoFontMap</doc>
  4584. <type name="FontMap" c:type="PangoFontMap*"/>
  4585. </parameter>
  4586. <parameter name="families"
  4587. direction="out"
  4588. caller-allocates="0"
  4589. transfer-ownership="container">
  4590. <doc xml:space="preserve">location to store a pointer to an array of #PangoFontFamily *.
  4591. This array should be freed with g_free().</doc>
  4592. <array length="2"
  4593. zero-terminated="0"
  4594. c:type="PangoFontFamily***">
  4595. <type name="FontFamily" c:type="PangoFontFamily**"/>
  4596. </array>
  4597. </parameter>
  4598. <parameter name="n_families"
  4599. direction="out"
  4600. caller-allocates="0"
  4601. transfer-ownership="full">
  4602. <doc xml:space="preserve">location to store the number of elements in @families</doc>
  4603. <type name="gint" c:type="int*"/>
  4604. </parameter>
  4605. </parameters>
  4606. </callback>
  4607. </field>
  4608. <field name="load_fontset">
  4609. <callback name="load_fontset">
  4610. <return-value transfer-ownership="full" nullable="1">
  4611. <doc xml:space="preserve">the newly allocated
  4612. #PangoFontset loaded, or %NULL if no font matched.</doc>
  4613. <type name="Fontset" c:type="PangoFontset*"/>
  4614. </return-value>
  4615. <parameters>
  4616. <parameter name="fontmap" transfer-ownership="none">
  4617. <doc xml:space="preserve">a #PangoFontMap</doc>
  4618. <type name="FontMap" c:type="PangoFontMap*"/>
  4619. </parameter>
  4620. <parameter name="context" transfer-ownership="none">
  4621. <doc xml:space="preserve">the #PangoContext the font will be used with</doc>
  4622. <type name="Context" c:type="PangoContext*"/>
  4623. </parameter>
  4624. <parameter name="desc" transfer-ownership="none">
  4625. <doc xml:space="preserve">a #PangoFontDescription describing the font to load</doc>
  4626. <type name="FontDescription"
  4627. c:type="const PangoFontDescription*"/>
  4628. </parameter>
  4629. <parameter name="language" transfer-ownership="none">
  4630. <doc xml:space="preserve">a #PangoLanguage the fonts will be used for</doc>
  4631. <type name="Language" c:type="PangoLanguage*"/>
  4632. </parameter>
  4633. </parameters>
  4634. </callback>
  4635. </field>
  4636. <field name="shape_engine_type">
  4637. <doc xml:space="preserve">the type of rendering-system-dependent engines that
  4638. can handle fonts of this fonts loaded with this fontmap.</doc>
  4639. <type name="utf8" c:type="const char*"/>
  4640. </field>
  4641. <field name="get_serial">
  4642. <callback name="get_serial">
  4643. <return-value transfer-ownership="none">
  4644. <doc xml:space="preserve">The current serial number of @fontmap.</doc>
  4645. <type name="guint" c:type="guint"/>
  4646. </return-value>
  4647. <parameters>
  4648. <parameter name="fontmap" transfer-ownership="none">
  4649. <doc xml:space="preserve">a #PangoFontMap</doc>
  4650. <type name="FontMap" c:type="PangoFontMap*"/>
  4651. </parameter>
  4652. </parameters>
  4653. </callback>
  4654. </field>
  4655. <field name="changed">
  4656. <callback name="changed">
  4657. <return-value transfer-ownership="none">
  4658. <type name="none" c:type="void"/>
  4659. </return-value>
  4660. <parameters>
  4661. <parameter name="fontmap" transfer-ownership="none">
  4662. <doc xml:space="preserve">a #PangoFontMap</doc>
  4663. <type name="FontMap" c:type="PangoFontMap*"/>
  4664. </parameter>
  4665. </parameters>
  4666. </callback>
  4667. </field>
  4668. <field name="_pango_reserved1" introspectable="0">
  4669. <callback name="_pango_reserved1">
  4670. <return-value transfer-ownership="none">
  4671. <type name="none" c:type="void"/>
  4672. </return-value>
  4673. </callback>
  4674. </field>
  4675. <field name="_pango_reserved2" introspectable="0">
  4676. <callback name="_pango_reserved2">
  4677. <return-value transfer-ownership="none">
  4678. <type name="none" c:type="void"/>
  4679. </return-value>
  4680. </callback>
  4681. </field>
  4682. </record>
  4683. <bitfield name="FontMask"
  4684. glib:type-name="PangoFontMask"
  4685. glib:get-type="pango_font_mask_get_type"
  4686. c:type="PangoFontMask">
  4687. <doc xml:space="preserve">The bits in a #PangoFontMask correspond to fields in a
  4688. #PangoFontDescription that have been set.</doc>
  4689. <member name="family"
  4690. value="1"
  4691. c:identifier="PANGO_FONT_MASK_FAMILY"
  4692. glib:nick="family">
  4693. <doc xml:space="preserve">the font family is specified.</doc>
  4694. </member>
  4695. <member name="style"
  4696. value="2"
  4697. c:identifier="PANGO_FONT_MASK_STYLE"
  4698. glib:nick="style">
  4699. <doc xml:space="preserve">the font style is specified.</doc>
  4700. </member>
  4701. <member name="variant"
  4702. value="4"
  4703. c:identifier="PANGO_FONT_MASK_VARIANT"
  4704. glib:nick="variant">
  4705. <doc xml:space="preserve">the font variant is specified.</doc>
  4706. </member>
  4707. <member name="weight"
  4708. value="8"
  4709. c:identifier="PANGO_FONT_MASK_WEIGHT"
  4710. glib:nick="weight">
  4711. <doc xml:space="preserve">the font weight is specified.</doc>
  4712. </member>
  4713. <member name="stretch"
  4714. value="16"
  4715. c:identifier="PANGO_FONT_MASK_STRETCH"
  4716. glib:nick="stretch">
  4717. <doc xml:space="preserve">the font stretch is specified.</doc>
  4718. </member>
  4719. <member name="size"
  4720. value="32"
  4721. c:identifier="PANGO_FONT_MASK_SIZE"
  4722. glib:nick="size">
  4723. <doc xml:space="preserve">the font size is specified.</doc>
  4724. </member>
  4725. <member name="gravity"
  4726. value="64"
  4727. c:identifier="PANGO_FONT_MASK_GRAVITY"
  4728. glib:nick="gravity">
  4729. <doc xml:space="preserve">the font gravity is specified (Since: 1.16.)</doc>
  4730. </member>
  4731. </bitfield>
  4732. <record name="FontMetrics"
  4733. c:type="PangoFontMetrics"
  4734. glib:type-name="PangoFontMetrics"
  4735. glib:get-type="pango_font_metrics_get_type"
  4736. c:symbol-prefix="font_metrics">
  4737. <doc xml:space="preserve">A #PangoFontMetrics structure holds the overall metric information
  4738. for a font (possibly restricted to a script). The fields of this
  4739. structure are private to implementations of a font backend. See
  4740. the documentation of the corresponding getters for documentation
  4741. of their meaning.</doc>
  4742. <field name="ref_count" readable="0" private="1">
  4743. <type name="guint" c:type="guint"/>
  4744. </field>
  4745. <field name="ascent" readable="0" private="1">
  4746. <type name="gint" c:type="int"/>
  4747. </field>
  4748. <field name="descent" readable="0" private="1">
  4749. <type name="gint" c:type="int"/>
  4750. </field>
  4751. <field name="approximate_char_width" readable="0" private="1">
  4752. <type name="gint" c:type="int"/>
  4753. </field>
  4754. <field name="approximate_digit_width" readable="0" private="1">
  4755. <type name="gint" c:type="int"/>
  4756. </field>
  4757. <field name="underline_position" readable="0" private="1">
  4758. <type name="gint" c:type="int"/>
  4759. </field>
  4760. <field name="underline_thickness" readable="0" private="1">
  4761. <type name="gint" c:type="int"/>
  4762. </field>
  4763. <field name="strikethrough_position" readable="0" private="1">
  4764. <type name="gint" c:type="int"/>
  4765. </field>
  4766. <field name="strikethrough_thickness" readable="0" private="1">
  4767. <type name="gint" c:type="int"/>
  4768. </field>
  4769. <constructor name="new" c:identifier="pango_font_metrics_new">
  4770. <doc xml:space="preserve">Creates a new #PangoFontMetrics structure. This is only for
  4771. internal use by Pango backends and there is no public way
  4772. to set the fields of the structure.</doc>
  4773. <return-value transfer-ownership="full">
  4774. <doc xml:space="preserve">a newly-created #PangoFontMetrics structure
  4775. with a reference count of 1.</doc>
  4776. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  4777. </return-value>
  4778. </constructor>
  4779. <method name="get_approximate_char_width"
  4780. c:identifier="pango_font_metrics_get_approximate_char_width">
  4781. <doc xml:space="preserve">Gets the approximate character width for a font metrics structure.
  4782. This is merely a representative value useful, for example, for
  4783. determining the initial size for a window. Actual characters in
  4784. text will be wider and narrower than this.</doc>
  4785. <return-value transfer-ownership="none">
  4786. <doc xml:space="preserve">the character width, in Pango units.</doc>
  4787. <type name="gint" c:type="int"/>
  4788. </return-value>
  4789. <parameters>
  4790. <instance-parameter name="metrics" transfer-ownership="none">
  4791. <doc xml:space="preserve">a #PangoFontMetrics structure</doc>
  4792. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  4793. </instance-parameter>
  4794. </parameters>
  4795. </method>
  4796. <method name="get_approximate_digit_width"
  4797. c:identifier="pango_font_metrics_get_approximate_digit_width">
  4798. <doc xml:space="preserve">Gets the approximate digit width for a font metrics structure.
  4799. This is merely a representative value useful, for example, for
  4800. determining the initial size for a window. Actual digits in
  4801. text can be wider or narrower than this, though this value
  4802. is generally somewhat more accurate than the result of
  4803. pango_font_metrics_get_approximate_char_width() for digits.</doc>
  4804. <return-value transfer-ownership="none">
  4805. <doc xml:space="preserve">the digit width, in Pango units.</doc>
  4806. <type name="gint" c:type="int"/>
  4807. </return-value>
  4808. <parameters>
  4809. <instance-parameter name="metrics" transfer-ownership="none">
  4810. <doc xml:space="preserve">a #PangoFontMetrics structure</doc>
  4811. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  4812. </instance-parameter>
  4813. </parameters>
  4814. </method>
  4815. <method name="get_ascent" c:identifier="pango_font_metrics_get_ascent">
  4816. <doc xml:space="preserve">Gets the ascent from a font metrics structure. The ascent is
  4817. the distance from the baseline to the logical top of a line
  4818. of text. (The logical top may be above or below the top of the
  4819. actual drawn ink. It is necessary to lay out the text to figure
  4820. where the ink will be.)</doc>
  4821. <return-value transfer-ownership="none">
  4822. <doc xml:space="preserve">the ascent, in Pango units.</doc>
  4823. <type name="gint" c:type="int"/>
  4824. </return-value>
  4825. <parameters>
  4826. <instance-parameter name="metrics" transfer-ownership="none">
  4827. <doc xml:space="preserve">a #PangoFontMetrics structure</doc>
  4828. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  4829. </instance-parameter>
  4830. </parameters>
  4831. </method>
  4832. <method name="get_descent" c:identifier="pango_font_metrics_get_descent">
  4833. <doc xml:space="preserve">Gets the descent from a font metrics structure. The descent is
  4834. the distance from the baseline to the logical bottom of a line
  4835. of text. (The logical bottom may be above or below the bottom of the
  4836. actual drawn ink. It is necessary to lay out the text to figure
  4837. where the ink will be.)</doc>
  4838. <return-value transfer-ownership="none">
  4839. <doc xml:space="preserve">the descent, in Pango units.</doc>
  4840. <type name="gint" c:type="int"/>
  4841. </return-value>
  4842. <parameters>
  4843. <instance-parameter name="metrics" transfer-ownership="none">
  4844. <doc xml:space="preserve">a #PangoFontMetrics structure</doc>
  4845. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  4846. </instance-parameter>
  4847. </parameters>
  4848. </method>
  4849. <method name="get_strikethrough_position"
  4850. c:identifier="pango_font_metrics_get_strikethrough_position"
  4851. version="1.6">
  4852. <doc xml:space="preserve">Gets the suggested position to draw the strikethrough.
  4853. The value returned is the distance &lt;emphasis&gt;above&lt;/emphasis&gt; the
  4854. baseline of the top of the strikethrough.</doc>
  4855. <return-value transfer-ownership="none">
  4856. <doc xml:space="preserve">the suggested strikethrough position, in Pango units.</doc>
  4857. <type name="gint" c:type="int"/>
  4858. </return-value>
  4859. <parameters>
  4860. <instance-parameter name="metrics" transfer-ownership="none">
  4861. <doc xml:space="preserve">a #PangoFontMetrics structure</doc>
  4862. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  4863. </instance-parameter>
  4864. </parameters>
  4865. </method>
  4866. <method name="get_strikethrough_thickness"
  4867. c:identifier="pango_font_metrics_get_strikethrough_thickness"
  4868. version="1.6">
  4869. <doc xml:space="preserve">Gets the suggested thickness to draw for the strikethrough.</doc>
  4870. <return-value transfer-ownership="none">
  4871. <doc xml:space="preserve">the suggested strikethrough thickness, in Pango units.</doc>
  4872. <type name="gint" c:type="int"/>
  4873. </return-value>
  4874. <parameters>
  4875. <instance-parameter name="metrics" transfer-ownership="none">
  4876. <doc xml:space="preserve">a #PangoFontMetrics structure</doc>
  4877. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  4878. </instance-parameter>
  4879. </parameters>
  4880. </method>
  4881. <method name="get_underline_position"
  4882. c:identifier="pango_font_metrics_get_underline_position"
  4883. version="1.6">
  4884. <doc xml:space="preserve">Gets the suggested position to draw the underline.
  4885. The value returned is the distance &lt;emphasis&gt;above&lt;/emphasis&gt; the
  4886. baseline of the top of the underline. Since most fonts have
  4887. underline positions beneath the baseline, this value is typically
  4888. negative.</doc>
  4889. <return-value transfer-ownership="none">
  4890. <doc xml:space="preserve">the suggested underline position, in Pango units.</doc>
  4891. <type name="gint" c:type="int"/>
  4892. </return-value>
  4893. <parameters>
  4894. <instance-parameter name="metrics" transfer-ownership="none">
  4895. <doc xml:space="preserve">a #PangoFontMetrics structure</doc>
  4896. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  4897. </instance-parameter>
  4898. </parameters>
  4899. </method>
  4900. <method name="get_underline_thickness"
  4901. c:identifier="pango_font_metrics_get_underline_thickness"
  4902. version="1.6">
  4903. <doc xml:space="preserve">Gets the suggested thickness to draw for the underline.</doc>
  4904. <return-value transfer-ownership="none">
  4905. <doc xml:space="preserve">the suggested underline thickness, in Pango units.</doc>
  4906. <type name="gint" c:type="int"/>
  4907. </return-value>
  4908. <parameters>
  4909. <instance-parameter name="metrics" transfer-ownership="none">
  4910. <doc xml:space="preserve">a #PangoFontMetrics structure</doc>
  4911. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  4912. </instance-parameter>
  4913. </parameters>
  4914. </method>
  4915. <method name="ref" c:identifier="pango_font_metrics_ref">
  4916. <doc xml:space="preserve">Increase the reference count of a font metrics structure by one.</doc>
  4917. <return-value transfer-ownership="full" nullable="1">
  4918. <doc xml:space="preserve">@metrics</doc>
  4919. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  4920. </return-value>
  4921. <parameters>
  4922. <instance-parameter name="metrics"
  4923. transfer-ownership="none"
  4924. nullable="1"
  4925. allow-none="1">
  4926. <doc xml:space="preserve">a #PangoFontMetrics structure, may be %NULL</doc>
  4927. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  4928. </instance-parameter>
  4929. </parameters>
  4930. </method>
  4931. <method name="unref" c:identifier="pango_font_metrics_unref">
  4932. <doc xml:space="preserve">Decrease the reference count of a font metrics structure by one. If
  4933. the result is zero, frees the structure and any associated
  4934. memory.</doc>
  4935. <return-value transfer-ownership="none">
  4936. <type name="none" c:type="void"/>
  4937. </return-value>
  4938. <parameters>
  4939. <instance-parameter name="metrics"
  4940. transfer-ownership="none"
  4941. nullable="1"
  4942. allow-none="1">
  4943. <doc xml:space="preserve">a #PangoFontMetrics structure, may be %NULL</doc>
  4944. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  4945. </instance-parameter>
  4946. </parameters>
  4947. </method>
  4948. </record>
  4949. <class name="Fontset"
  4950. c:symbol-prefix="fontset"
  4951. c:type="PangoFontset"
  4952. parent="GObject.Object"
  4953. abstract="1"
  4954. glib:type-name="PangoFontset"
  4955. glib:get-type="pango_fontset_get_type"
  4956. glib:type-struct="FontsetClass">
  4957. <doc xml:space="preserve">A #PangoFontset represents a set of #PangoFont to use
  4958. when rendering text. It is the result of resolving a
  4959. #PangoFontDescription against a particular #PangoContext.
  4960. It has operations for finding the component font for
  4961. a particular Unicode character, and for finding a composite
  4962. set of metrics for the entire fontset.</doc>
  4963. <virtual-method name="foreach" invoker="foreach" version="1.4">
  4964. <doc xml:space="preserve">Iterates through all the fonts in a fontset, calling @func for
  4965. each one. If @func returns %TRUE, that stops the iteration.</doc>
  4966. <return-value transfer-ownership="none">
  4967. <type name="none" c:type="void"/>
  4968. </return-value>
  4969. <parameters>
  4970. <instance-parameter name="fontset" transfer-ownership="none">
  4971. <doc xml:space="preserve">a #PangoFontset</doc>
  4972. <type name="Fontset" c:type="PangoFontset*"/>
  4973. </instance-parameter>
  4974. <parameter name="func"
  4975. transfer-ownership="none"
  4976. scope="call"
  4977. closure="1">
  4978. <doc xml:space="preserve">Callback function</doc>
  4979. <type name="FontsetForeachFunc" c:type="PangoFontsetForeachFunc"/>
  4980. </parameter>
  4981. <parameter name="data"
  4982. transfer-ownership="none"
  4983. nullable="1"
  4984. allow-none="1">
  4985. <doc xml:space="preserve">data to pass to the callback function</doc>
  4986. <type name="gpointer" c:type="gpointer"/>
  4987. </parameter>
  4988. </parameters>
  4989. </virtual-method>
  4990. <virtual-method name="get_font" invoker="get_font">
  4991. <doc xml:space="preserve">Returns the font in the fontset that contains the best glyph for the
  4992. Unicode character @wc.</doc>
  4993. <return-value transfer-ownership="full">
  4994. <doc xml:space="preserve">a #PangoFont. The caller must call
  4995. g_object_unref when finished with the font.</doc>
  4996. <type name="Font" c:type="PangoFont*"/>
  4997. </return-value>
  4998. <parameters>
  4999. <instance-parameter name="fontset" transfer-ownership="none">
  5000. <doc xml:space="preserve">a #PangoFontset</doc>
  5001. <type name="Fontset" c:type="PangoFontset*"/>
  5002. </instance-parameter>
  5003. <parameter name="wc" transfer-ownership="none">
  5004. <doc xml:space="preserve">a Unicode character</doc>
  5005. <type name="guint" c:type="guint"/>
  5006. </parameter>
  5007. </parameters>
  5008. </virtual-method>
  5009. <virtual-method name="get_language">
  5010. <return-value transfer-ownership="full">
  5011. <type name="Language" c:type="PangoLanguage*"/>
  5012. </return-value>
  5013. <parameters>
  5014. <instance-parameter name="fontset" transfer-ownership="none">
  5015. <type name="Fontset" c:type="PangoFontset*"/>
  5016. </instance-parameter>
  5017. </parameters>
  5018. </virtual-method>
  5019. <virtual-method name="get_metrics" invoker="get_metrics">
  5020. <doc xml:space="preserve">Get overall metric information for the fonts in the fontset.</doc>
  5021. <return-value transfer-ownership="full">
  5022. <doc xml:space="preserve">a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()
  5023. when finished using the object.</doc>
  5024. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  5025. </return-value>
  5026. <parameters>
  5027. <instance-parameter name="fontset" transfer-ownership="none">
  5028. <doc xml:space="preserve">a #PangoFontset</doc>
  5029. <type name="Fontset" c:type="PangoFontset*"/>
  5030. </instance-parameter>
  5031. </parameters>
  5032. </virtual-method>
  5033. <method name="foreach"
  5034. c:identifier="pango_fontset_foreach"
  5035. version="1.4">
  5036. <doc xml:space="preserve">Iterates through all the fonts in a fontset, calling @func for
  5037. each one. If @func returns %TRUE, that stops the iteration.</doc>
  5038. <return-value transfer-ownership="none">
  5039. <type name="none" c:type="void"/>
  5040. </return-value>
  5041. <parameters>
  5042. <instance-parameter name="fontset" transfer-ownership="none">
  5043. <doc xml:space="preserve">a #PangoFontset</doc>
  5044. <type name="Fontset" c:type="PangoFontset*"/>
  5045. </instance-parameter>
  5046. <parameter name="func"
  5047. transfer-ownership="none"
  5048. scope="call"
  5049. closure="1">
  5050. <doc xml:space="preserve">Callback function</doc>
  5051. <type name="FontsetForeachFunc" c:type="PangoFontsetForeachFunc"/>
  5052. </parameter>
  5053. <parameter name="data"
  5054. transfer-ownership="none"
  5055. nullable="1"
  5056. allow-none="1">
  5057. <doc xml:space="preserve">data to pass to the callback function</doc>
  5058. <type name="gpointer" c:type="gpointer"/>
  5059. </parameter>
  5060. </parameters>
  5061. </method>
  5062. <method name="get_font" c:identifier="pango_fontset_get_font">
  5063. <doc xml:space="preserve">Returns the font in the fontset that contains the best glyph for the
  5064. Unicode character @wc.</doc>
  5065. <return-value transfer-ownership="full">
  5066. <doc xml:space="preserve">a #PangoFont. The caller must call
  5067. g_object_unref when finished with the font.</doc>
  5068. <type name="Font" c:type="PangoFont*"/>
  5069. </return-value>
  5070. <parameters>
  5071. <instance-parameter name="fontset" transfer-ownership="none">
  5072. <doc xml:space="preserve">a #PangoFontset</doc>
  5073. <type name="Fontset" c:type="PangoFontset*"/>
  5074. </instance-parameter>
  5075. <parameter name="wc" transfer-ownership="none">
  5076. <doc xml:space="preserve">a Unicode character</doc>
  5077. <type name="guint" c:type="guint"/>
  5078. </parameter>
  5079. </parameters>
  5080. </method>
  5081. <method name="get_metrics" c:identifier="pango_fontset_get_metrics">
  5082. <doc xml:space="preserve">Get overall metric information for the fonts in the fontset.</doc>
  5083. <return-value transfer-ownership="full">
  5084. <doc xml:space="preserve">a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()
  5085. when finished using the object.</doc>
  5086. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  5087. </return-value>
  5088. <parameters>
  5089. <instance-parameter name="fontset" transfer-ownership="none">
  5090. <doc xml:space="preserve">a #PangoFontset</doc>
  5091. <type name="Fontset" c:type="PangoFontset*"/>
  5092. </instance-parameter>
  5093. </parameters>
  5094. </method>
  5095. <field name="parent_instance">
  5096. <type name="GObject.Object" c:type="GObject"/>
  5097. </field>
  5098. </class>
  5099. <record name="FontsetClass"
  5100. c:type="PangoFontsetClass"
  5101. glib:is-gtype-struct-for="Fontset">
  5102. <doc xml:space="preserve">The #PangoFontsetClass structure holds the virtual functions for
  5103. a particular #PangoFontset implementation.</doc>
  5104. <field name="parent_class">
  5105. <doc xml:space="preserve">parent #GObjectClass.</doc>
  5106. <type name="GObject.ObjectClass" c:type="GObjectClass"/>
  5107. </field>
  5108. <field name="get_font">
  5109. <callback name="get_font">
  5110. <return-value transfer-ownership="full">
  5111. <doc xml:space="preserve">a #PangoFont. The caller must call
  5112. g_object_unref when finished with the font.</doc>
  5113. <type name="Font" c:type="PangoFont*"/>
  5114. </return-value>
  5115. <parameters>
  5116. <parameter name="fontset" transfer-ownership="none">
  5117. <doc xml:space="preserve">a #PangoFontset</doc>
  5118. <type name="Fontset" c:type="PangoFontset*"/>
  5119. </parameter>
  5120. <parameter name="wc" transfer-ownership="none">
  5121. <doc xml:space="preserve">a Unicode character</doc>
  5122. <type name="guint" c:type="guint"/>
  5123. </parameter>
  5124. </parameters>
  5125. </callback>
  5126. </field>
  5127. <field name="get_metrics">
  5128. <callback name="get_metrics">
  5129. <return-value transfer-ownership="full">
  5130. <doc xml:space="preserve">a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()
  5131. when finished using the object.</doc>
  5132. <type name="FontMetrics" c:type="PangoFontMetrics*"/>
  5133. </return-value>
  5134. <parameters>
  5135. <parameter name="fontset" transfer-ownership="none">
  5136. <doc xml:space="preserve">a #PangoFontset</doc>
  5137. <type name="Fontset" c:type="PangoFontset*"/>
  5138. </parameter>
  5139. </parameters>
  5140. </callback>
  5141. </field>
  5142. <field name="get_language">
  5143. <callback name="get_language">
  5144. <return-value transfer-ownership="full">
  5145. <type name="Language" c:type="PangoLanguage*"/>
  5146. </return-value>
  5147. <parameters>
  5148. <parameter name="fontset" transfer-ownership="none">
  5149. <type name="Fontset" c:type="PangoFontset*"/>
  5150. </parameter>
  5151. </parameters>
  5152. </callback>
  5153. </field>
  5154. <field name="foreach">
  5155. <callback name="foreach">
  5156. <return-value transfer-ownership="none">
  5157. <type name="none" c:type="void"/>
  5158. </return-value>
  5159. <parameters>
  5160. <parameter name="fontset" transfer-ownership="none">
  5161. <doc xml:space="preserve">a #PangoFontset</doc>
  5162. <type name="Fontset" c:type="PangoFontset*"/>
  5163. </parameter>
  5164. <parameter name="func"
  5165. transfer-ownership="none"
  5166. scope="call"
  5167. closure="2">
  5168. <doc xml:space="preserve">Callback function</doc>
  5169. <type name="FontsetForeachFunc"
  5170. c:type="PangoFontsetForeachFunc"/>
  5171. </parameter>
  5172. <parameter name="data"
  5173. transfer-ownership="none"
  5174. nullable="1"
  5175. allow-none="1">
  5176. <doc xml:space="preserve">data to pass to the callback function</doc>
  5177. <type name="gpointer" c:type="gpointer"/>
  5178. </parameter>
  5179. </parameters>
  5180. </callback>
  5181. </field>
  5182. <field name="_pango_reserved1" introspectable="0">
  5183. <callback name="_pango_reserved1">
  5184. <return-value transfer-ownership="none">
  5185. <type name="none" c:type="void"/>
  5186. </return-value>
  5187. </callback>
  5188. </field>
  5189. <field name="_pango_reserved2" introspectable="0">
  5190. <callback name="_pango_reserved2">
  5191. <return-value transfer-ownership="none">
  5192. <type name="none" c:type="void"/>
  5193. </return-value>
  5194. </callback>
  5195. </field>
  5196. <field name="_pango_reserved3" introspectable="0">
  5197. <callback name="_pango_reserved3">
  5198. <return-value transfer-ownership="none">
  5199. <type name="none" c:type="void"/>
  5200. </return-value>
  5201. </callback>
  5202. </field>
  5203. <field name="_pango_reserved4" introspectable="0">
  5204. <callback name="_pango_reserved4">
  5205. <return-value transfer-ownership="none">
  5206. <type name="none" c:type="void"/>
  5207. </return-value>
  5208. </callback>
  5209. </field>
  5210. </record>
  5211. <callback name="FontsetForeachFunc"
  5212. c:type="PangoFontsetForeachFunc"
  5213. version="1.4">
  5214. <doc xml:space="preserve">A callback function used by pango_fontset_foreach() when enumerating
  5215. the fonts in a fontset.</doc>
  5216. <return-value transfer-ownership="none">
  5217. <doc xml:space="preserve">if %TRUE, stop iteration and return immediately.</doc>
  5218. <type name="gboolean" c:type="gboolean"/>
  5219. </return-value>
  5220. <parameters>
  5221. <parameter name="fontset" transfer-ownership="none">
  5222. <doc xml:space="preserve">a #PangoFontset</doc>
  5223. <type name="Fontset" c:type="PangoFontset*"/>
  5224. </parameter>
  5225. <parameter name="font" transfer-ownership="none">
  5226. <doc xml:space="preserve">a font from @fontset</doc>
  5227. <type name="Font" c:type="PangoFont*"/>
  5228. </parameter>
  5229. <parameter name="user_data"
  5230. transfer-ownership="none"
  5231. nullable="1"
  5232. allow-none="1"
  5233. closure="2">
  5234. <doc xml:space="preserve">callback data</doc>
  5235. <type name="gpointer" c:type="gpointer"/>
  5236. </parameter>
  5237. </parameters>
  5238. </callback>
  5239. <class name="FontsetSimple"
  5240. c:symbol-prefix="fontset_simple"
  5241. c:type="PangoFontsetSimple"
  5242. parent="Fontset"
  5243. glib:type-name="PangoFontsetSimple"
  5244. glib:get-type="pango_fontset_simple_get_type"
  5245. glib:type-struct="FontsetSimpleClass">
  5246. <doc xml:space="preserve">#PangoFontsetSimple is a implementation of the abstract
  5247. #PangoFontset base class in terms of an array of fonts,
  5248. which the creator provides when constructing the
  5249. #PangoFontsetSimple.</doc>
  5250. <constructor name="new" c:identifier="pango_fontset_simple_new">
  5251. <doc xml:space="preserve">Creates a new #PangoFontsetSimple for the given language.</doc>
  5252. <return-value transfer-ownership="full">
  5253. <doc xml:space="preserve">the newly allocated #PangoFontsetSimple, which should
  5254. be freed with g_object_unref().</doc>
  5255. <type name="FontsetSimple" c:type="PangoFontsetSimple*"/>
  5256. </return-value>
  5257. <parameters>
  5258. <parameter name="language" transfer-ownership="none">
  5259. <doc xml:space="preserve">a #PangoLanguage tag</doc>
  5260. <type name="Language" c:type="PangoLanguage*"/>
  5261. </parameter>
  5262. </parameters>
  5263. </constructor>
  5264. <method name="append" c:identifier="pango_fontset_simple_append">
  5265. <doc xml:space="preserve">Adds a font to the fontset.</doc>
  5266. <return-value transfer-ownership="none">
  5267. <type name="none" c:type="void"/>
  5268. </return-value>
  5269. <parameters>
  5270. <instance-parameter name="fontset" transfer-ownership="none">
  5271. <doc xml:space="preserve">a #PangoFontsetSimple.</doc>
  5272. <type name="FontsetSimple" c:type="PangoFontsetSimple*"/>
  5273. </instance-parameter>
  5274. <parameter name="font" transfer-ownership="none">
  5275. <doc xml:space="preserve">a #PangoFont.</doc>
  5276. <type name="Font" c:type="PangoFont*"/>
  5277. </parameter>
  5278. </parameters>
  5279. </method>
  5280. <method name="size" c:identifier="pango_fontset_simple_size">
  5281. <doc xml:space="preserve">Returns the number of fonts in the fontset.</doc>
  5282. <return-value transfer-ownership="none">
  5283. <doc xml:space="preserve">the size of @fontset.</doc>
  5284. <type name="gint" c:type="int"/>
  5285. </return-value>
  5286. <parameters>
  5287. <instance-parameter name="fontset" transfer-ownership="none">
  5288. <doc xml:space="preserve">a #PangoFontsetSimple.</doc>
  5289. <type name="FontsetSimple" c:type="PangoFontsetSimple*"/>
  5290. </instance-parameter>
  5291. </parameters>
  5292. </method>
  5293. </class>
  5294. <record name="FontsetSimpleClass"
  5295. c:type="PangoFontsetSimpleClass"
  5296. disguised="1"
  5297. glib:is-gtype-struct-for="FontsetSimple">
  5298. </record>
  5299. <constant name="GLYPH_EMPTY" value="268435455" c:type="PANGO_GLYPH_EMPTY">
  5300. <doc xml:space="preserve">The %PANGO_GLYPH_EMPTY macro represents a #PangoGlyph value that has a
  5301. special meaning, which is a zero-width empty glyph. This is useful for
  5302. example in shaper modules, to use as the glyph for various zero-width
  5303. Unicode characters (those passing pango_is_zero_width()).</doc>
  5304. <type name="Glyph" c:type="PangoGlyph"/>
  5305. </constant>
  5306. <constant name="GLYPH_INVALID_INPUT"
  5307. value="4294967295"
  5308. c:type="PANGO_GLYPH_INVALID_INPUT"
  5309. version="1.20">
  5310. <doc xml:space="preserve">The %PANGO_GLYPH_INVALID_INPUT macro represents a #PangoGlyph value that has a
  5311. special meaning of invalid input. #PangoLayout produces one such glyph
  5312. per invalid input UTF-8 byte and such a glyph is rendered as a crossed
  5313. box.
  5314. Note that this value is defined such that it has the %PANGO_GLYPH_UNKNOWN_FLAG
  5315. on.</doc>
  5316. <type name="Glyph" c:type="PangoGlyph"/>
  5317. </constant>
  5318. <constant name="GLYPH_UNKNOWN_FLAG"
  5319. value="268435456"
  5320. c:type="PANGO_GLYPH_UNKNOWN_FLAG">
  5321. <doc xml:space="preserve">The %PANGO_GLYPH_UNKNOWN_FLAG macro is a flag value that can be added to
  5322. a #gunichar value of a valid Unicode character, to produce a #PangoGlyph
  5323. value, representing an unknown-character glyph for the respective #gunichar.</doc>
  5324. <type name="Glyph" c:type="PangoGlyph"/>
  5325. </constant>
  5326. <record name="GlyphGeometry" c:type="PangoGlyphGeometry">
  5327. <doc xml:space="preserve">The #PangoGlyphGeometry structure contains width and positioning
  5328. information for a single glyph.</doc>
  5329. <field name="width" writable="1">
  5330. <doc xml:space="preserve">the logical width to use for the the character.</doc>
  5331. <type name="GlyphUnit" c:type="PangoGlyphUnit"/>
  5332. </field>
  5333. <field name="x_offset" writable="1">
  5334. <doc xml:space="preserve">horizontal offset from nominal character position.</doc>
  5335. <type name="GlyphUnit" c:type="PangoGlyphUnit"/>
  5336. </field>
  5337. <field name="y_offset" writable="1">
  5338. <doc xml:space="preserve">vertical offset from nominal character position.</doc>
  5339. <type name="GlyphUnit" c:type="PangoGlyphUnit"/>
  5340. </field>
  5341. </record>
  5342. <record name="GlyphInfo" c:type="PangoGlyphInfo">
  5343. <doc xml:space="preserve">The #PangoGlyphInfo structure represents a single glyph together with
  5344. positioning information and visual attributes.
  5345. It contains the following fields.</doc>
  5346. <field name="glyph" writable="1">
  5347. <doc xml:space="preserve">the glyph itself.</doc>
  5348. <type name="Glyph" c:type="PangoGlyph"/>
  5349. </field>
  5350. <field name="geometry" writable="1">
  5351. <doc xml:space="preserve">the positional information about the glyph.</doc>
  5352. <type name="GlyphGeometry" c:type="PangoGlyphGeometry"/>
  5353. </field>
  5354. <field name="attr" writable="1">
  5355. <doc xml:space="preserve">the visual attributes of the glyph.</doc>
  5356. <type name="GlyphVisAttr" c:type="PangoGlyphVisAttr"/>
  5357. </field>
  5358. </record>
  5359. <record name="GlyphItem"
  5360. c:type="PangoGlyphItem"
  5361. glib:type-name="PangoGlyphItem"
  5362. glib:get-type="pango_glyph_item_get_type"
  5363. c:symbol-prefix="glyph_item">
  5364. <doc xml:space="preserve">A #PangoGlyphItem is a pair of a #PangoItem and the glyphs
  5365. resulting from shaping the text corresponding to an item.
  5366. As an example of the usage of #PangoGlyphItem, the results
  5367. of shaping text with #PangoLayout is a list of #PangoLayoutLine,
  5368. each of which contains a list of #PangoGlyphItem.</doc>
  5369. <field name="item" writable="1">
  5370. <doc xml:space="preserve">corresponding #PangoItem.</doc>
  5371. <type name="Item" c:type="PangoItem*"/>
  5372. </field>
  5373. <field name="glyphs" writable="1">
  5374. <doc xml:space="preserve">corresponding #PangoGlyphString.</doc>
  5375. <type name="GlyphString" c:type="PangoGlyphString*"/>
  5376. </field>
  5377. <method name="apply_attrs"
  5378. c:identifier="pango_glyph_item_apply_attrs"
  5379. version="1.2">
  5380. <doc xml:space="preserve">Splits a shaped item (PangoGlyphItem) into multiple items based
  5381. on an attribute list. The idea is that if you have attributes
  5382. that don't affect shaping, such as color or underline, to avoid
  5383. affecting shaping, you filter them out (pango_attr_list_filter()),
  5384. apply the shaping process and then reapply them to the result using
  5385. this function.
  5386. All attributes that start or end inside a cluster are applied
  5387. to that cluster; for instance, if half of a cluster is underlined
  5388. and the other-half strikethrough, then the cluster will end
  5389. up with both underline and strikethrough attributes. In these
  5390. cases, it may happen that item-&gt;extra_attrs for some of the
  5391. result items can have multiple attributes of the same type.
  5392. This function takes ownership of @glyph_item; it will be reused
  5393. as one of the elements in the list.</doc>
  5394. <return-value transfer-ownership="full">
  5395. <doc xml:space="preserve">a
  5396. list of glyph items resulting from splitting @glyph_item. Free
  5397. the elements using pango_glyph_item_free(), the list using
  5398. g_slist_free().</doc>
  5399. <type name="GLib.SList" c:type="GSList*">
  5400. <type name="GlyphItem"/>
  5401. </type>
  5402. </return-value>
  5403. <parameters>
  5404. <instance-parameter name="glyph_item" transfer-ownership="none">
  5405. <doc xml:space="preserve">a shaped item</doc>
  5406. <type name="GlyphItem" c:type="PangoGlyphItem*"/>
  5407. </instance-parameter>
  5408. <parameter name="text" transfer-ownership="none">
  5409. <doc xml:space="preserve">text that @list applies to</doc>
  5410. <type name="utf8" c:type="const char*"/>
  5411. </parameter>
  5412. <parameter name="list" transfer-ownership="none">
  5413. <doc xml:space="preserve">a #PangoAttrList</doc>
  5414. <type name="AttrList" c:type="PangoAttrList*"/>
  5415. </parameter>
  5416. </parameters>
  5417. </method>
  5418. <method name="copy" c:identifier="pango_glyph_item_copy" version="1.20">
  5419. <doc xml:space="preserve">Make a deep copy of an existing #PangoGlyphItem structure.</doc>
  5420. <return-value transfer-ownership="full" nullable="1">
  5421. <doc xml:space="preserve">the newly allocated #PangoGlyphItem, which should
  5422. be freed with pango_glyph_item_free(), or %NULL
  5423. if @orig was %NULL.</doc>
  5424. <type name="GlyphItem" c:type="PangoGlyphItem*"/>
  5425. </return-value>
  5426. <parameters>
  5427. <instance-parameter name="orig"
  5428. transfer-ownership="none"
  5429. nullable="1"
  5430. allow-none="1">
  5431. <doc xml:space="preserve">a #PangoGlyphItem, may be %NULL</doc>
  5432. <type name="GlyphItem" c:type="PangoGlyphItem*"/>
  5433. </instance-parameter>
  5434. </parameters>
  5435. </method>
  5436. <method name="free" c:identifier="pango_glyph_item_free" version="1.6">
  5437. <doc xml:space="preserve">Frees a #PangoGlyphItem and resources to which it points.</doc>
  5438. <return-value transfer-ownership="none">
  5439. <type name="none" c:type="void"/>
  5440. </return-value>
  5441. <parameters>
  5442. <instance-parameter name="glyph_item"
  5443. transfer-ownership="none"
  5444. nullable="1"
  5445. allow-none="1">
  5446. <doc xml:space="preserve">a #PangoGlyphItem, may be %NULL</doc>
  5447. <type name="GlyphItem" c:type="PangoGlyphItem*"/>
  5448. </instance-parameter>
  5449. </parameters>
  5450. </method>
  5451. <method name="get_logical_widths"
  5452. c:identifier="pango_glyph_item_get_logical_widths"
  5453. version="1.26">
  5454. <doc xml:space="preserve">Given a #PangoGlyphItem and the corresponding
  5455. text, determine the screen width corresponding to each character. When
  5456. multiple characters compose a single cluster, the width of the entire
  5457. cluster is divided equally among the characters.
  5458. See also pango_glyph_string_get_logical_widths().</doc>
  5459. <return-value transfer-ownership="none">
  5460. <type name="none" c:type="void"/>
  5461. </return-value>
  5462. <parameters>
  5463. <instance-parameter name="glyph_item" transfer-ownership="none">
  5464. <doc xml:space="preserve">a #PangoGlyphItem</doc>
  5465. <type name="GlyphItem" c:type="PangoGlyphItem*"/>
  5466. </instance-parameter>
  5467. <parameter name="text" transfer-ownership="none">
  5468. <doc xml:space="preserve">text that @glyph_item corresponds to
  5469. (glyph_item-&gt;item-&gt;offset is an offset from the
  5470. start of @text)</doc>
  5471. <type name="utf8" c:type="const char*"/>
  5472. </parameter>
  5473. <parameter name="logical_widths" transfer-ownership="none">
  5474. <doc xml:space="preserve">an array whose length is the number of
  5475. characters in glyph_item (equal to
  5476. glyph_item-&gt;item-&gt;num_chars) to be filled in with
  5477. the resulting character widths.</doc>
  5478. <array zero-terminated="0" c:type="int*">
  5479. <type name="gint" c:type="int"/>
  5480. </array>
  5481. </parameter>
  5482. </parameters>
  5483. </method>
  5484. <method name="letter_space"
  5485. c:identifier="pango_glyph_item_letter_space"
  5486. version="1.6">
  5487. <doc xml:space="preserve">Adds spacing between the graphemes of @glyph_item to
  5488. give the effect of typographic letter spacing.</doc>
  5489. <return-value transfer-ownership="none">
  5490. <type name="none" c:type="void"/>
  5491. </return-value>
  5492. <parameters>
  5493. <instance-parameter name="glyph_item" transfer-ownership="none">
  5494. <doc xml:space="preserve">a #PangoGlyphItem</doc>
  5495. <type name="GlyphItem" c:type="PangoGlyphItem*"/>
  5496. </instance-parameter>
  5497. <parameter name="text" transfer-ownership="none">
  5498. <doc xml:space="preserve">text that @glyph_item corresponds to
  5499. (glyph_item-&gt;item-&gt;offset is an offset from the
  5500. start of @text)</doc>
  5501. <type name="utf8" c:type="const char*"/>
  5502. </parameter>
  5503. <parameter name="log_attrs" transfer-ownership="none">
  5504. <doc xml:space="preserve">logical attributes for the item
  5505. (the first logical attribute refers to the position
  5506. before the first character in the item)</doc>
  5507. <array zero-terminated="0" c:type="PangoLogAttr*">
  5508. <type name="LogAttr" c:type="PangoLogAttr"/>
  5509. </array>
  5510. </parameter>
  5511. <parameter name="letter_spacing" transfer-ownership="none">
  5512. <doc xml:space="preserve">amount of letter spacing to add
  5513. in Pango units. May be negative, though too large
  5514. negative values will give ugly results.</doc>
  5515. <type name="gint" c:type="int"/>
  5516. </parameter>
  5517. </parameters>
  5518. </method>
  5519. <method name="split" c:identifier="pango_glyph_item_split" version="1.2">
  5520. <doc xml:space="preserve">Modifies @orig to cover only the text after @split_index, and
  5521. returns a new item that covers the text before @split_index that
  5522. used to be in @orig. You can think of @split_index as the length of
  5523. the returned item. @split_index may not be 0, and it may not be
  5524. greater than or equal to the length of @orig (that is, there must
  5525. be at least one byte assigned to each item, you can't create a
  5526. zero-length item).
  5527. This function is similar in function to pango_item_split() (and uses
  5528. it internally.)</doc>
  5529. <return-value transfer-ownership="full">
  5530. <doc xml:space="preserve">the newly allocated item representing text before
  5531. @split_index, which should be freed
  5532. with pango_glyph_item_free().</doc>
  5533. <type name="GlyphItem" c:type="PangoGlyphItem*"/>
  5534. </return-value>
  5535. <parameters>
  5536. <instance-parameter name="orig" transfer-ownership="none">
  5537. <doc xml:space="preserve">a #PangoItem</doc>
  5538. <type name="GlyphItem" c:type="PangoGlyphItem*"/>
  5539. </instance-parameter>
  5540. <parameter name="text" transfer-ownership="none">
  5541. <doc xml:space="preserve">text to which positions in @orig apply</doc>
  5542. <type name="utf8" c:type="const char*"/>
  5543. </parameter>
  5544. <parameter name="split_index" transfer-ownership="none">
  5545. <doc xml:space="preserve">byte index of position to split item, relative to the start of the item</doc>
  5546. <type name="gint" c:type="int"/>
  5547. </parameter>
  5548. </parameters>
  5549. </method>
  5550. </record>
  5551. <record name="GlyphItemIter"
  5552. c:type="PangoGlyphItemIter"
  5553. version="1.22"
  5554. glib:type-name="PangoGlyphItemIter"
  5555. glib:get-type="pango_glyph_item_iter_get_type"
  5556. c:symbol-prefix="glyph_item_iter">
  5557. <doc xml:space="preserve">A #PangoGlyphItemIter is an iterator over the clusters in a
  5558. #PangoGlyphItem. The &lt;firstterm&gt;forward direction&lt;/firstterm&gt; of the
  5559. iterator is the logical direction of text. That is, with increasing
  5560. @start_index and @start_char values. If @glyph_item is right-to-left
  5561. (that is, if &lt;literal&gt;@glyph_item-&gt;item-&gt;analysis.level&lt;/literal&gt; is odd),
  5562. then @start_glyph decreases as the iterator moves forward. Moreover,
  5563. in right-to-left cases, @start_glyph is greater than @end_glyph.
  5564. An iterator should be initialized using either of
  5565. pango_glyph_item_iter_init_start() and
  5566. pango_glyph_item_iter_init_end(), for forward and backward iteration
  5567. respectively, and walked over using any desired mixture of
  5568. pango_glyph_item_iter_next_cluster() and
  5569. pango_glyph_item_iter_prev_cluster(). A common idiom for doing a
  5570. forward iteration over the clusters is:
  5571. &lt;programlisting&gt;
  5572. PangoGlyphItemIter cluster_iter;
  5573. gboolean have_cluster;
  5574. for (have_cluster = pango_glyph_item_iter_init_start (&amp;amp;cluster_iter,
  5575. glyph_item, text);
  5576. have_cluster;
  5577. have_cluster = pango_glyph_item_iter_next_cluster (&amp;amp;cluster_iter))
  5578. {
  5579. ...
  5580. }
  5581. &lt;/programlisting&gt;
  5582. Note that @text is the start of the text for layout, which is then
  5583. indexed by &lt;literal&gt;@glyph_item-&gt;item-&gt;offset&lt;/literal&gt; to get to the
  5584. text of @glyph_item. The @start_index and @end_index values can directly
  5585. index into @text. The @start_glyph, @end_glyph, @start_char, and @end_char
  5586. values however are zero-based for the @glyph_item. For each cluster, the
  5587. item pointed at by the start variables is included in the cluster while
  5588. the one pointed at by end variables is not.
  5589. None of the members of a #PangoGlyphItemIter should be modified manually.</doc>
  5590. <field name="glyph_item" writable="1">
  5591. <type name="GlyphItem" c:type="PangoGlyphItem*"/>
  5592. </field>
  5593. <field name="text" writable="1">
  5594. <type name="utf8" c:type="const gchar*"/>
  5595. </field>
  5596. <field name="start_glyph" writable="1">
  5597. <type name="gint" c:type="int"/>
  5598. </field>
  5599. <field name="start_index" writable="1">
  5600. <type name="gint" c:type="int"/>
  5601. </field>
  5602. <field name="start_char" writable="1">
  5603. <type name="gint" c:type="int"/>
  5604. </field>
  5605. <field name="end_glyph" writable="1">
  5606. <type name="gint" c:type="int"/>
  5607. </field>
  5608. <field name="end_index" writable="1">
  5609. <type name="gint" c:type="int"/>
  5610. </field>
  5611. <field name="end_char" writable="1">
  5612. <type name="gint" c:type="int"/>
  5613. </field>
  5614. <method name="copy"
  5615. c:identifier="pango_glyph_item_iter_copy"
  5616. version="1.22">
  5617. <doc xml:space="preserve">Make a shallow copy of an existing #PangoGlyphItemIter structure.</doc>
  5618. <return-value transfer-ownership="full" nullable="1">
  5619. <doc xml:space="preserve">the newly allocated #PangoGlyphItemIter, which should
  5620. be freed with pango_glyph_item_iter_free(), or %NULL
  5621. if @orig was %NULL.</doc>
  5622. <type name="GlyphItemIter" c:type="PangoGlyphItemIter*"/>
  5623. </return-value>
  5624. <parameters>
  5625. <instance-parameter name="orig"
  5626. transfer-ownership="none"
  5627. nullable="1"
  5628. allow-none="1">
  5629. <doc xml:space="preserve">a #PangoGlyphItemIter, may be %NULL</doc>
  5630. <type name="GlyphItemIter" c:type="PangoGlyphItemIter*"/>
  5631. </instance-parameter>
  5632. </parameters>
  5633. </method>
  5634. <method name="free"
  5635. c:identifier="pango_glyph_item_iter_free"
  5636. version="1.22">
  5637. <doc xml:space="preserve">Frees a #PangoGlyphItemIter created by pango_glyph_item_iter_copy().</doc>
  5638. <return-value transfer-ownership="none">
  5639. <type name="none" c:type="void"/>
  5640. </return-value>
  5641. <parameters>
  5642. <instance-parameter name="iter"
  5643. transfer-ownership="none"
  5644. nullable="1"
  5645. allow-none="1">
  5646. <doc xml:space="preserve">a #PangoGlyphItemIter, may be %NULL</doc>
  5647. <type name="GlyphItemIter" c:type="PangoGlyphItemIter*"/>
  5648. </instance-parameter>
  5649. </parameters>
  5650. </method>
  5651. <method name="init_end"
  5652. c:identifier="pango_glyph_item_iter_init_end"
  5653. version="1.22">
  5654. <doc xml:space="preserve">Initializes a #PangoGlyphItemIter structure to point to the
  5655. last cluster in a glyph item.
  5656. See #PangoGlyphItemIter for details of cluster orders.</doc>
  5657. <return-value transfer-ownership="none">
  5658. <doc xml:space="preserve">%FALSE if there are no clusters in the glyph item</doc>
  5659. <type name="gboolean" c:type="gboolean"/>
  5660. </return-value>
  5661. <parameters>
  5662. <instance-parameter name="iter" transfer-ownership="none">
  5663. <doc xml:space="preserve">a #PangoGlyphItemIter</doc>
  5664. <type name="GlyphItemIter" c:type="PangoGlyphItemIter*"/>
  5665. </instance-parameter>
  5666. <parameter name="glyph_item" transfer-ownership="none">
  5667. <doc xml:space="preserve">the glyph item to iterate over</doc>
  5668. <type name="GlyphItem" c:type="PangoGlyphItem*"/>
  5669. </parameter>
  5670. <parameter name="text" transfer-ownership="none">
  5671. <doc xml:space="preserve">text corresponding to the glyph item</doc>
  5672. <type name="utf8" c:type="const char*"/>
  5673. </parameter>
  5674. </parameters>
  5675. </method>
  5676. <method name="init_start"
  5677. c:identifier="pango_glyph_item_iter_init_start"
  5678. version="1.22">
  5679. <doc xml:space="preserve">Initializes a #PangoGlyphItemIter structure to point to the
  5680. first cluster in a glyph item.
  5681. See #PangoGlyphItemIter for details of cluster orders.</doc>
  5682. <return-value transfer-ownership="none">
  5683. <doc xml:space="preserve">%FALSE if there are no clusters in the glyph item</doc>
  5684. <type name="gboolean" c:type="gboolean"/>
  5685. </return-value>
  5686. <parameters>
  5687. <instance-parameter name="iter" transfer-ownership="none">
  5688. <doc xml:space="preserve">a #PangoGlyphItemIter</doc>
  5689. <type name="GlyphItemIter" c:type="PangoGlyphItemIter*"/>
  5690. </instance-parameter>
  5691. <parameter name="glyph_item" transfer-ownership="none">
  5692. <doc xml:space="preserve">the glyph item to iterate over</doc>
  5693. <type name="GlyphItem" c:type="PangoGlyphItem*"/>
  5694. </parameter>
  5695. <parameter name="text" transfer-ownership="none">
  5696. <doc xml:space="preserve">text corresponding to the glyph item</doc>
  5697. <type name="utf8" c:type="const char*"/>
  5698. </parameter>
  5699. </parameters>
  5700. </method>
  5701. <method name="next_cluster"
  5702. c:identifier="pango_glyph_item_iter_next_cluster"
  5703. version="1.22">
  5704. <doc xml:space="preserve">Advances the iterator to the next cluster in the glyph item.
  5705. See #PangoGlyphItemIter for details of cluster orders.</doc>
  5706. <return-value transfer-ownership="none">
  5707. <doc xml:space="preserve">%TRUE if the iterator was advanced, %FALSE if we were already on the
  5708. last cluster.</doc>
  5709. <type name="gboolean" c:type="gboolean"/>
  5710. </return-value>
  5711. <parameters>
  5712. <instance-parameter name="iter" transfer-ownership="none">
  5713. <doc xml:space="preserve">a #PangoGlyphItemIter</doc>
  5714. <type name="GlyphItemIter" c:type="PangoGlyphItemIter*"/>
  5715. </instance-parameter>
  5716. </parameters>
  5717. </method>
  5718. <method name="prev_cluster"
  5719. c:identifier="pango_glyph_item_iter_prev_cluster"
  5720. version="1.22">
  5721. <doc xml:space="preserve">Moves the iterator to the preceding cluster in the glyph item.
  5722. See #PangoGlyphItemIter for details of cluster orders.</doc>
  5723. <return-value transfer-ownership="none">
  5724. <doc xml:space="preserve">%TRUE if the iterator was moved, %FALSE if we were already on the
  5725. first cluster.</doc>
  5726. <type name="gboolean" c:type="gboolean"/>
  5727. </return-value>
  5728. <parameters>
  5729. <instance-parameter name="iter" transfer-ownership="none">
  5730. <doc xml:space="preserve">a #PangoGlyphItemIter</doc>
  5731. <type name="GlyphItemIter" c:type="PangoGlyphItemIter*"/>
  5732. </instance-parameter>
  5733. </parameters>
  5734. </method>
  5735. </record>
  5736. <record name="GlyphString"
  5737. c:type="PangoGlyphString"
  5738. glib:type-name="PangoGlyphString"
  5739. glib:get-type="pango_glyph_string_get_type"
  5740. c:symbol-prefix="glyph_string">
  5741. <doc xml:space="preserve">The #PangoGlyphString structure is used to store strings
  5742. of glyphs with geometry and visual attribute information.
  5743. The storage for the glyph information is owned
  5744. by the structure which simplifies memory management.</doc>
  5745. <field name="num_glyphs" writable="1">
  5746. <doc xml:space="preserve">number of the glyphs in this glyph string.</doc>
  5747. <type name="gint" c:type="gint"/>
  5748. </field>
  5749. <field name="glyphs" writable="1">
  5750. <doc xml:space="preserve">array of glyph information
  5751. for the glyph string.</doc>
  5752. <array length="0" zero-terminated="0" c:type="PangoGlyphInfo*">
  5753. <type name="GlyphInfo" c:type="PangoGlyphInfo"/>
  5754. </array>
  5755. </field>
  5756. <field name="log_clusters" writable="1">
  5757. <doc xml:space="preserve">logical cluster info, indexed by the byte index
  5758. within the text corresponding to the glyph string.</doc>
  5759. <type name="gint" c:type="gint*"/>
  5760. </field>
  5761. <field name="space" readable="0" private="1">
  5762. <type name="gint" c:type="gint"/>
  5763. </field>
  5764. <constructor name="new" c:identifier="pango_glyph_string_new">
  5765. <doc xml:space="preserve">Create a new #PangoGlyphString.</doc>
  5766. <return-value transfer-ownership="full">
  5767. <doc xml:space="preserve">the newly allocated #PangoGlyphString, which
  5768. should be freed with pango_glyph_string_free().</doc>
  5769. <type name="GlyphString" c:type="PangoGlyphString*"/>
  5770. </return-value>
  5771. </constructor>
  5772. <method name="copy" c:identifier="pango_glyph_string_copy">
  5773. <doc xml:space="preserve">Copy a glyph string and associated storage.</doc>
  5774. <return-value transfer-ownership="full" nullable="1">
  5775. <doc xml:space="preserve">the newly allocated #PangoGlyphString,
  5776. which should be freed with pango_glyph_string_free(),
  5777. or %NULL if @string was %NULL.</doc>
  5778. <type name="GlyphString" c:type="PangoGlyphString*"/>
  5779. </return-value>
  5780. <parameters>
  5781. <instance-parameter name="string"
  5782. transfer-ownership="none"
  5783. nullable="1"
  5784. allow-none="1">
  5785. <doc xml:space="preserve">a #PangoGlyphString, may be %NULL</doc>
  5786. <type name="GlyphString" c:type="PangoGlyphString*"/>
  5787. </instance-parameter>
  5788. </parameters>
  5789. </method>
  5790. <method name="extents" c:identifier="pango_glyph_string_extents">
  5791. <doc xml:space="preserve">Compute the logical and ink extents of a glyph string. See the documentation
  5792. for pango_font_get_glyph_extents() for details about the interpretation
  5793. of the rectangles.</doc>
  5794. <return-value transfer-ownership="none">
  5795. <type name="none" c:type="void"/>
  5796. </return-value>
  5797. <parameters>
  5798. <instance-parameter name="glyphs" transfer-ownership="none">
  5799. <doc xml:space="preserve">a #PangoGlyphString</doc>
  5800. <type name="GlyphString" c:type="PangoGlyphString*"/>
  5801. </instance-parameter>
  5802. <parameter name="font" transfer-ownership="none">
  5803. <doc xml:space="preserve">a #PangoFont</doc>
  5804. <type name="Font" c:type="PangoFont*"/>
  5805. </parameter>
  5806. <parameter name="ink_rect"
  5807. direction="out"
  5808. caller-allocates="1"
  5809. transfer-ownership="none"
  5810. optional="1"
  5811. allow-none="1">
  5812. <doc xml:space="preserve">rectangle used to store the extents of the glyph string
  5813. as drawn or %NULL to indicate that the result is not needed.</doc>
  5814. <type name="Rectangle" c:type="PangoRectangle*"/>
  5815. </parameter>
  5816. <parameter name="logical_rect"
  5817. direction="out"
  5818. caller-allocates="1"
  5819. transfer-ownership="none"
  5820. optional="1"
  5821. allow-none="1">
  5822. <doc xml:space="preserve">rectangle used to store the logical extents of the
  5823. glyph string or %NULL to indicate that the result is not needed.</doc>
  5824. <type name="Rectangle" c:type="PangoRectangle*"/>
  5825. </parameter>
  5826. </parameters>
  5827. </method>
  5828. <method name="extents_range"
  5829. c:identifier="pango_glyph_string_extents_range">
  5830. <doc xml:space="preserve">Computes the extents of a sub-portion of a glyph string. The extents are
  5831. relative to the start of the glyph string range (the origin of their
  5832. coordinate system is at the start of the range, not at the start of the entire
  5833. glyph string).</doc>
  5834. <return-value transfer-ownership="none">
  5835. <type name="none" c:type="void"/>
  5836. </return-value>
  5837. <parameters>
  5838. <instance-parameter name="glyphs" transfer-ownership="none">
  5839. <doc xml:space="preserve">a #PangoGlyphString</doc>
  5840. <type name="GlyphString" c:type="PangoGlyphString*"/>
  5841. </instance-parameter>
  5842. <parameter name="start" transfer-ownership="none">
  5843. <doc xml:space="preserve">start index</doc>
  5844. <type name="gint" c:type="int"/>
  5845. </parameter>
  5846. <parameter name="end" transfer-ownership="none">
  5847. <doc xml:space="preserve">end index (the range is the set of bytes with
  5848. indices such that start &lt;= index &lt; end)</doc>
  5849. <type name="gint" c:type="int"/>
  5850. </parameter>
  5851. <parameter name="font" transfer-ownership="none">
  5852. <doc xml:space="preserve">a #PangoFont</doc>
  5853. <type name="Font" c:type="PangoFont*"/>
  5854. </parameter>
  5855. <parameter name="ink_rect"
  5856. direction="out"
  5857. caller-allocates="1"
  5858. transfer-ownership="none"
  5859. optional="1"
  5860. allow-none="1">
  5861. <doc xml:space="preserve">rectangle used to
  5862. store the extents of the glyph string range as drawn or
  5863. %NULL to indicate that the result is not needed.</doc>
  5864. <type name="Rectangle" c:type="PangoRectangle*"/>
  5865. </parameter>
  5866. <parameter name="logical_rect"
  5867. direction="out"
  5868. caller-allocates="1"
  5869. transfer-ownership="none"
  5870. optional="1"
  5871. allow-none="1">
  5872. <doc xml:space="preserve">rectangle used to
  5873. store the logical extents of the glyph string range or
  5874. %NULL to indicate that the result is not needed.</doc>
  5875. <type name="Rectangle" c:type="PangoRectangle*"/>
  5876. </parameter>
  5877. </parameters>
  5878. </method>
  5879. <method name="free" c:identifier="pango_glyph_string_free">
  5880. <doc xml:space="preserve">Free a glyph string and associated storage.</doc>
  5881. <return-value transfer-ownership="none">
  5882. <type name="none" c:type="void"/>
  5883. </return-value>
  5884. <parameters>
  5885. <instance-parameter name="string"
  5886. transfer-ownership="none"
  5887. nullable="1"
  5888. allow-none="1">
  5889. <doc xml:space="preserve">a #PangoGlyphString, may be %NULL</doc>
  5890. <type name="GlyphString" c:type="PangoGlyphString*"/>
  5891. </instance-parameter>
  5892. </parameters>
  5893. </method>
  5894. <method name="get_logical_widths"
  5895. c:identifier="pango_glyph_string_get_logical_widths">
  5896. <doc xml:space="preserve">Given a #PangoGlyphString resulting from pango_shape() and the corresponding
  5897. text, determine the screen width corresponding to each character. When
  5898. multiple characters compose a single cluster, the width of the entire
  5899. cluster is divided equally among the characters.
  5900. See also pango_glyph_item_get_logical_widths().</doc>
  5901. <return-value transfer-ownership="none">
  5902. <type name="none" c:type="void"/>
  5903. </return-value>
  5904. <parameters>
  5905. <instance-parameter name="glyphs" transfer-ownership="none">
  5906. <doc xml:space="preserve">a #PangoGlyphString</doc>
  5907. <type name="GlyphString" c:type="PangoGlyphString*"/>
  5908. </instance-parameter>
  5909. <parameter name="text" transfer-ownership="none">
  5910. <doc xml:space="preserve">the text corresponding to the glyphs</doc>
  5911. <type name="utf8" c:type="const char*"/>
  5912. </parameter>
  5913. <parameter name="length" transfer-ownership="none">
  5914. <doc xml:space="preserve">the length of @text, in bytes</doc>
  5915. <type name="gint" c:type="int"/>
  5916. </parameter>
  5917. <parameter name="embedding_level" transfer-ownership="none">
  5918. <doc xml:space="preserve">the embedding level of the string</doc>
  5919. <type name="gint" c:type="int"/>
  5920. </parameter>
  5921. <parameter name="logical_widths" transfer-ownership="none">
  5922. <doc xml:space="preserve">an array whose length is the number of
  5923. characters in text (equal to g_utf8_strlen (text,
  5924. length) unless text has NUL bytes) to be filled in
  5925. with the resulting character widths.</doc>
  5926. <array zero-terminated="0" c:type="int*">
  5927. <type name="gint" c:type="int"/>
  5928. </array>
  5929. </parameter>
  5930. </parameters>
  5931. </method>
  5932. <method name="get_width"
  5933. c:identifier="pango_glyph_string_get_width"
  5934. version="1.14">
  5935. <doc xml:space="preserve">Computes the logical width of the glyph string as can also be computed
  5936. using pango_glyph_string_extents(). However, since this only computes the
  5937. width, it's much faster. This is in fact only a convenience function that
  5938. computes the sum of geometry.width for each glyph in the @glyphs.</doc>
  5939. <return-value transfer-ownership="none">
  5940. <doc xml:space="preserve">the logical width of the glyph string.</doc>
  5941. <type name="gint" c:type="int"/>
  5942. </return-value>
  5943. <parameters>
  5944. <instance-parameter name="glyphs" transfer-ownership="none">
  5945. <doc xml:space="preserve">a #PangoGlyphString</doc>
  5946. <type name="GlyphString" c:type="PangoGlyphString*"/>
  5947. </instance-parameter>
  5948. </parameters>
  5949. </method>
  5950. <method name="index_to_x" c:identifier="pango_glyph_string_index_to_x">
  5951. <doc xml:space="preserve">Converts from character position to x position. (X position
  5952. is measured from the left edge of the run). Character positions
  5953. are computed by dividing up each cluster into equal portions.</doc>
  5954. <return-value transfer-ownership="none">
  5955. <type name="none" c:type="void"/>
  5956. </return-value>
  5957. <parameters>
  5958. <instance-parameter name="glyphs" transfer-ownership="none">
  5959. <doc xml:space="preserve">the glyphs return from pango_shape()</doc>
  5960. <type name="GlyphString" c:type="PangoGlyphString*"/>
  5961. </instance-parameter>
  5962. <parameter name="text" transfer-ownership="none">
  5963. <doc xml:space="preserve">the text for the run</doc>
  5964. <type name="utf8" c:type="char*"/>
  5965. </parameter>
  5966. <parameter name="length" transfer-ownership="none">
  5967. <doc xml:space="preserve">the number of bytes (not characters) in @text.</doc>
  5968. <type name="gint" c:type="int"/>
  5969. </parameter>
  5970. <parameter name="analysis" transfer-ownership="none">
  5971. <doc xml:space="preserve">the analysis information return from pango_itemize()</doc>
  5972. <type name="Analysis" c:type="PangoAnalysis*"/>
  5973. </parameter>
  5974. <parameter name="index_" transfer-ownership="none">
  5975. <doc xml:space="preserve">the byte index within @text</doc>
  5976. <type name="gint" c:type="int"/>
  5977. </parameter>
  5978. <parameter name="trailing" transfer-ownership="none">
  5979. <doc xml:space="preserve">whether we should compute the result for the beginning (%FALSE)
  5980. or end (%TRUE) of the character.</doc>
  5981. <type name="gboolean" c:type="gboolean"/>
  5982. </parameter>
  5983. <parameter name="x_pos"
  5984. direction="out"
  5985. caller-allocates="0"
  5986. transfer-ownership="full">
  5987. <doc xml:space="preserve">location to store result</doc>
  5988. <type name="gint" c:type="int*"/>
  5989. </parameter>
  5990. </parameters>
  5991. </method>
  5992. <method name="set_size" c:identifier="pango_glyph_string_set_size">
  5993. <doc xml:space="preserve">Resize a glyph string to the given length.</doc>
  5994. <return-value transfer-ownership="none">
  5995. <type name="none" c:type="void"/>
  5996. </return-value>
  5997. <parameters>
  5998. <instance-parameter name="string" transfer-ownership="none">
  5999. <doc xml:space="preserve">a #PangoGlyphString.</doc>
  6000. <type name="GlyphString" c:type="PangoGlyphString*"/>
  6001. </instance-parameter>
  6002. <parameter name="new_len" transfer-ownership="none">
  6003. <doc xml:space="preserve">the new length of the string.</doc>
  6004. <type name="gint" c:type="gint"/>
  6005. </parameter>
  6006. </parameters>
  6007. </method>
  6008. <method name="x_to_index" c:identifier="pango_glyph_string_x_to_index">
  6009. <doc xml:space="preserve">Convert from x offset to character position. Character positions
  6010. are computed by dividing up each cluster into equal portions.
  6011. In scripts where positioning within a cluster is not allowed
  6012. (such as Thai), the returned value may not be a valid cursor
  6013. position; the caller must combine the result with the logical
  6014. attributes for the text to compute the valid cursor position.</doc>
  6015. <return-value transfer-ownership="none">
  6016. <type name="none" c:type="void"/>
  6017. </return-value>
  6018. <parameters>
  6019. <instance-parameter name="glyphs" transfer-ownership="none">
  6020. <doc xml:space="preserve">the glyphs returned from pango_shape()</doc>
  6021. <type name="GlyphString" c:type="PangoGlyphString*"/>
  6022. </instance-parameter>
  6023. <parameter name="text" transfer-ownership="none">
  6024. <doc xml:space="preserve">the text for the run</doc>
  6025. <type name="utf8" c:type="char*"/>
  6026. </parameter>
  6027. <parameter name="length" transfer-ownership="none">
  6028. <doc xml:space="preserve">the number of bytes (not characters) in text.</doc>
  6029. <type name="gint" c:type="int"/>
  6030. </parameter>
  6031. <parameter name="analysis" transfer-ownership="none">
  6032. <doc xml:space="preserve">the analysis information return from pango_itemize()</doc>
  6033. <type name="Analysis" c:type="PangoAnalysis*"/>
  6034. </parameter>
  6035. <parameter name="x_pos" transfer-ownership="none">
  6036. <doc xml:space="preserve">the x offset (in Pango units)</doc>
  6037. <type name="gint" c:type="int"/>
  6038. </parameter>
  6039. <parameter name="index_"
  6040. direction="out"
  6041. caller-allocates="0"
  6042. transfer-ownership="full">
  6043. <doc xml:space="preserve">location to store calculated byte index within @text</doc>
  6044. <type name="gint" c:type="int*"/>
  6045. </parameter>
  6046. <parameter name="trailing"
  6047. direction="out"
  6048. caller-allocates="0"
  6049. transfer-ownership="full">
  6050. <doc xml:space="preserve">location to store a boolean indicating
  6051. whether the user clicked on the leading or trailing
  6052. edge of the character.</doc>
  6053. <type name="gint" c:type="int*"/>
  6054. </parameter>
  6055. </parameters>
  6056. </method>
  6057. </record>
  6058. <record name="GlyphVisAttr" c:type="PangoGlyphVisAttr">
  6059. <doc xml:space="preserve">The PangoGlyphVisAttr is used to communicate information between
  6060. the shaping phase and the rendering phase. More attributes may be
  6061. added in the future.</doc>
  6062. <field name="is_cluster_start" writable="1" bits="1">
  6063. <doc xml:space="preserve">set for the first logical glyph in each cluster. (Clusters
  6064. are stored in visual order, within the cluster, glyphs
  6065. are always ordered in logical order, since visual
  6066. order is meaningless; that is, in Arabic text, accent glyphs
  6067. follow the glyphs for the base character.)</doc>
  6068. <type name="guint" c:type="guint"/>
  6069. </field>
  6070. </record>
  6071. <enumeration name="Gravity"
  6072. version="1.16"
  6073. glib:type-name="PangoGravity"
  6074. glib:get-type="pango_gravity_get_type"
  6075. c:type="PangoGravity">
  6076. <doc xml:space="preserve">The #PangoGravity type represents the orientation of glyphs in a segment
  6077. of text. This is useful when rendering vertical text layouts. In
  6078. those situations, the layout is rotated using a non-identity PangoMatrix,
  6079. and then glyph orientation is controlled using #PangoGravity.
  6080. Not every value in this enumeration makes sense for every usage of
  6081. #PangoGravity; for example, %PANGO_GRAVITY_AUTO only can be passed to
  6082. pango_context_set_base_gravity() and can only be returned by
  6083. pango_context_get_base_gravity().
  6084. See also: #PangoGravityHint</doc>
  6085. <member name="south"
  6086. value="0"
  6087. c:identifier="PANGO_GRAVITY_SOUTH"
  6088. glib:nick="south">
  6089. <doc xml:space="preserve">Glyphs stand upright (default)</doc>
  6090. </member>
  6091. <member name="east"
  6092. value="1"
  6093. c:identifier="PANGO_GRAVITY_EAST"
  6094. glib:nick="east">
  6095. <doc xml:space="preserve">Glyphs are rotated 90 degrees clockwise</doc>
  6096. </member>
  6097. <member name="north"
  6098. value="2"
  6099. c:identifier="PANGO_GRAVITY_NORTH"
  6100. glib:nick="north">
  6101. <doc xml:space="preserve">Glyphs are upside-down</doc>
  6102. </member>
  6103. <member name="west"
  6104. value="3"
  6105. c:identifier="PANGO_GRAVITY_WEST"
  6106. glib:nick="west">
  6107. <doc xml:space="preserve">Glyphs are rotated 90 degrees counter-clockwise</doc>
  6108. </member>
  6109. <member name="auto"
  6110. value="4"
  6111. c:identifier="PANGO_GRAVITY_AUTO"
  6112. glib:nick="auto">
  6113. <doc xml:space="preserve">Gravity is resolved from the context matrix</doc>
  6114. </member>
  6115. <function name="get_for_matrix"
  6116. c:identifier="pango_gravity_get_for_matrix"
  6117. version="1.16">
  6118. <doc xml:space="preserve">Finds the gravity that best matches the rotation component
  6119. in a #PangoMatrix.</doc>
  6120. <return-value transfer-ownership="none">
  6121. <doc xml:space="preserve">the gravity of @matrix, which will never be
  6122. %PANGO_GRAVITY_AUTO, or %PANGO_GRAVITY_SOUTH if @matrix is %NULL</doc>
  6123. <type name="Gravity" c:type="PangoGravity"/>
  6124. </return-value>
  6125. <parameters>
  6126. <parameter name="matrix"
  6127. transfer-ownership="none"
  6128. nullable="1"
  6129. allow-none="1">
  6130. <doc xml:space="preserve">a #PangoMatrix</doc>
  6131. <type name="Matrix" c:type="const PangoMatrix*"/>
  6132. </parameter>
  6133. </parameters>
  6134. </function>
  6135. <function name="get_for_script"
  6136. c:identifier="pango_gravity_get_for_script"
  6137. version="1.16">
  6138. <doc xml:space="preserve">Based on the script, base gravity, and hint, returns actual gravity
  6139. to use in laying out a single #PangoItem.
  6140. If @base_gravity is %PANGO_GRAVITY_AUTO, it is first replaced with the
  6141. preferred gravity of @script. To get the preferred gravity of a script,
  6142. pass %PANGO_GRAVITY_AUTO and %PANGO_GRAVITY_HINT_STRONG in.</doc>
  6143. <return-value transfer-ownership="none">
  6144. <doc xml:space="preserve">resolved gravity suitable to use for a run of text
  6145. with @script.</doc>
  6146. <type name="Gravity" c:type="PangoGravity"/>
  6147. </return-value>
  6148. <parameters>
  6149. <parameter name="script" transfer-ownership="none">
  6150. <doc xml:space="preserve">#PangoScript to query</doc>
  6151. <type name="Script" c:type="PangoScript"/>
  6152. </parameter>
  6153. <parameter name="base_gravity" transfer-ownership="none">
  6154. <doc xml:space="preserve">base gravity of the paragraph</doc>
  6155. <type name="Gravity" c:type="PangoGravity"/>
  6156. </parameter>
  6157. <parameter name="hint" transfer-ownership="none">
  6158. <doc xml:space="preserve">orientation hint</doc>
  6159. <type name="GravityHint" c:type="PangoGravityHint"/>
  6160. </parameter>
  6161. </parameters>
  6162. </function>
  6163. <function name="get_for_script_and_width"
  6164. c:identifier="pango_gravity_get_for_script_and_width"
  6165. version="1.26">
  6166. <doc xml:space="preserve">Based on the script, East Asian width, base gravity, and hint,
  6167. returns actual gravity to use in laying out a single character
  6168. or #PangoItem.
  6169. This function is similar to pango_gravity_get_for_script() except
  6170. that this function makes a distinction between narrow/half-width and
  6171. wide/full-width characters also. Wide/full-width characters always
  6172. stand &lt;emphasis&gt;upright&lt;/emphasis&gt;, that is, they always take the base gravity,
  6173. whereas narrow/full-width characters are always rotated in vertical
  6174. context.
  6175. If @base_gravity is %PANGO_GRAVITY_AUTO, it is first replaced with the
  6176. preferred gravity of @script.</doc>
  6177. <return-value transfer-ownership="none">
  6178. <doc xml:space="preserve">resolved gravity suitable to use for a run of text
  6179. with @script and @wide.</doc>
  6180. <type name="Gravity" c:type="PangoGravity"/>
  6181. </return-value>
  6182. <parameters>
  6183. <parameter name="script" transfer-ownership="none">
  6184. <doc xml:space="preserve">#PangoScript to query</doc>
  6185. <type name="Script" c:type="PangoScript"/>
  6186. </parameter>
  6187. <parameter name="wide" transfer-ownership="none">
  6188. <doc xml:space="preserve">%TRUE for wide characters as returned by g_unichar_iswide()</doc>
  6189. <type name="gboolean" c:type="gboolean"/>
  6190. </parameter>
  6191. <parameter name="base_gravity" transfer-ownership="none">
  6192. <doc xml:space="preserve">base gravity of the paragraph</doc>
  6193. <type name="Gravity" c:type="PangoGravity"/>
  6194. </parameter>
  6195. <parameter name="hint" transfer-ownership="none">
  6196. <doc xml:space="preserve">orientation hint</doc>
  6197. <type name="GravityHint" c:type="PangoGravityHint"/>
  6198. </parameter>
  6199. </parameters>
  6200. </function>
  6201. <function name="to_rotation"
  6202. c:identifier="pango_gravity_to_rotation"
  6203. version="1.16">
  6204. <doc xml:space="preserve">Converts a #PangoGravity value to its natural rotation in radians.
  6205. @gravity should not be %PANGO_GRAVITY_AUTO.
  6206. Note that pango_matrix_rotate() takes angle in degrees, not radians.
  6207. So, to call pango_matrix_rotate() with the output of this function
  6208. you should multiply it by (180. / G_PI).</doc>
  6209. <return-value transfer-ownership="none">
  6210. <doc xml:space="preserve">the rotation value corresponding to @gravity.</doc>
  6211. <type name="gdouble" c:type="double"/>
  6212. </return-value>
  6213. <parameters>
  6214. <parameter name="gravity" transfer-ownership="none">
  6215. <doc xml:space="preserve">gravity to query</doc>
  6216. <type name="Gravity" c:type="PangoGravity"/>
  6217. </parameter>
  6218. </parameters>
  6219. </function>
  6220. </enumeration>
  6221. <enumeration name="GravityHint"
  6222. version="1.16"
  6223. glib:type-name="PangoGravityHint"
  6224. glib:get-type="pango_gravity_hint_get_type"
  6225. c:type="PangoGravityHint">
  6226. <doc xml:space="preserve">The #PangoGravityHint defines how horizontal scripts should behave in a
  6227. vertical context. That is, English excerpt in a vertical paragraph for
  6228. example.
  6229. See #PangoGravity.</doc>
  6230. <member name="natural"
  6231. value="0"
  6232. c:identifier="PANGO_GRAVITY_HINT_NATURAL"
  6233. glib:nick="natural">
  6234. <doc xml:space="preserve">scripts will take their natural gravity based
  6235. on the base gravity and the script. This is the default.</doc>
  6236. </member>
  6237. <member name="strong"
  6238. value="1"
  6239. c:identifier="PANGO_GRAVITY_HINT_STRONG"
  6240. glib:nick="strong">
  6241. <doc xml:space="preserve">always use the base gravity set, regardless of
  6242. the script.</doc>
  6243. </member>
  6244. <member name="line"
  6245. value="2"
  6246. c:identifier="PANGO_GRAVITY_HINT_LINE"
  6247. glib:nick="line">
  6248. <doc xml:space="preserve">for scripts not in their natural direction (eg.
  6249. Latin in East gravity), choose per-script gravity such that every script
  6250. respects the line progression. This means, Latin and Arabic will take
  6251. opposite gravities and both flow top-to-bottom for example.</doc>
  6252. </member>
  6253. </enumeration>
  6254. <record name="IncludedModule"
  6255. c:type="PangoIncludedModule"
  6256. deprecated="1"
  6257. deprecated-version="1.38">
  6258. <doc xml:space="preserve">The #PangoIncludedModule structure for a statically linked module
  6259. contains the functions that would otherwise be loaded from a dynamically
  6260. loaded module.</doc>
  6261. <field name="list">
  6262. <callback name="list">
  6263. <return-value transfer-ownership="none">
  6264. <type name="none" c:type="void"/>
  6265. </return-value>
  6266. <parameters>
  6267. <parameter name="engines" transfer-ownership="none">
  6268. <type name="EngineInfo" c:type="PangoEngineInfo**"/>
  6269. </parameter>
  6270. <parameter name="n_engines" transfer-ownership="none">
  6271. <type name="gint" c:type="int*"/>
  6272. </parameter>
  6273. </parameters>
  6274. </callback>
  6275. </field>
  6276. <field name="init">
  6277. <callback name="init">
  6278. <return-value transfer-ownership="none">
  6279. <type name="none" c:type="void"/>
  6280. </return-value>
  6281. <parameters>
  6282. <parameter name="module" transfer-ownership="none">
  6283. <type name="GObject.TypeModule" c:type="GTypeModule*"/>
  6284. </parameter>
  6285. </parameters>
  6286. </callback>
  6287. </field>
  6288. <field name="exit">
  6289. <callback name="exit">
  6290. <return-value transfer-ownership="none">
  6291. <type name="none" c:type="void"/>
  6292. </return-value>
  6293. </callback>
  6294. </field>
  6295. <field name="create" introspectable="0">
  6296. <callback name="create" introspectable="0">
  6297. <return-value>
  6298. <type name="Engine" c:type="PangoEngine*"/>
  6299. </return-value>
  6300. <parameters>
  6301. <parameter name="id" transfer-ownership="none">
  6302. <type name="utf8" c:type="const char*"/>
  6303. </parameter>
  6304. </parameters>
  6305. </callback>
  6306. </field>
  6307. </record>
  6308. <record name="Item"
  6309. c:type="PangoItem"
  6310. glib:type-name="PangoItem"
  6311. glib:get-type="pango_item_get_type"
  6312. c:symbol-prefix="item">
  6313. <doc xml:space="preserve">The #PangoItem structure stores information about a segment of text.</doc>
  6314. <field name="offset" writable="1">
  6315. <doc xml:space="preserve">byte offset of the start of this item in text.</doc>
  6316. <type name="gint" c:type="gint"/>
  6317. </field>
  6318. <field name="length" writable="1">
  6319. <doc xml:space="preserve">length of this item in bytes.</doc>
  6320. <type name="gint" c:type="gint"/>
  6321. </field>
  6322. <field name="num_chars" writable="1">
  6323. <doc xml:space="preserve">number of Unicode characters in the item.</doc>
  6324. <type name="gint" c:type="gint"/>
  6325. </field>
  6326. <field name="analysis" writable="1">
  6327. <doc xml:space="preserve">analysis results for the item.</doc>
  6328. <type name="Analysis" c:type="PangoAnalysis"/>
  6329. </field>
  6330. <constructor name="new" c:identifier="pango_item_new">
  6331. <doc xml:space="preserve">Creates a new #PangoItem structure initialized to default values.</doc>
  6332. <return-value transfer-ownership="full">
  6333. <doc xml:space="preserve">the newly allocated #PangoItem, which should
  6334. be freed with pango_item_free().</doc>
  6335. <type name="Item" c:type="PangoItem*"/>
  6336. </return-value>
  6337. </constructor>
  6338. <method name="copy" c:identifier="pango_item_copy">
  6339. <doc xml:space="preserve">Copy an existing #PangoItem structure.</doc>
  6340. <return-value transfer-ownership="full" nullable="1">
  6341. <doc xml:space="preserve">the newly allocated #PangoItem, which
  6342. should be freed with pango_item_free(), or %NULL if
  6343. @item was %NULL.</doc>
  6344. <type name="Item" c:type="PangoItem*"/>
  6345. </return-value>
  6346. <parameters>
  6347. <instance-parameter name="item"
  6348. transfer-ownership="none"
  6349. nullable="1"
  6350. allow-none="1">
  6351. <doc xml:space="preserve">a #PangoItem, may be %NULL</doc>
  6352. <type name="Item" c:type="PangoItem*"/>
  6353. </instance-parameter>
  6354. </parameters>
  6355. </method>
  6356. <method name="free" c:identifier="pango_item_free">
  6357. <doc xml:space="preserve">Free a #PangoItem and all associated memory.</doc>
  6358. <return-value transfer-ownership="none">
  6359. <type name="none" c:type="void"/>
  6360. </return-value>
  6361. <parameters>
  6362. <instance-parameter name="item"
  6363. transfer-ownership="none"
  6364. nullable="1"
  6365. allow-none="1">
  6366. <doc xml:space="preserve">a #PangoItem, may be %NULL</doc>
  6367. <type name="Item" c:type="PangoItem*"/>
  6368. </instance-parameter>
  6369. </parameters>
  6370. </method>
  6371. <method name="split" c:identifier="pango_item_split">
  6372. <doc xml:space="preserve">Modifies @orig to cover only the text after @split_index, and
  6373. returns a new item that covers the text before @split_index that
  6374. used to be in @orig. You can think of @split_index as the length of
  6375. the returned item. @split_index may not be 0, and it may not be
  6376. greater than or equal to the length of @orig (that is, there must
  6377. be at least one byte assigned to each item, you can't create a
  6378. zero-length item). @split_offset is the length of the first item in
  6379. chars, and must be provided because the text used to generate the
  6380. item isn't available, so pango_item_split() can't count the char
  6381. length of the split items itself.</doc>
  6382. <return-value transfer-ownership="full">
  6383. <doc xml:space="preserve">new item representing text before @split_index, which
  6384. should be freed with pango_item_free().</doc>
  6385. <type name="Item" c:type="PangoItem*"/>
  6386. </return-value>
  6387. <parameters>
  6388. <instance-parameter name="orig" transfer-ownership="none">
  6389. <doc xml:space="preserve">a #PangoItem</doc>
  6390. <type name="Item" c:type="PangoItem*"/>
  6391. </instance-parameter>
  6392. <parameter name="split_index" transfer-ownership="none">
  6393. <doc xml:space="preserve">byte index of position to split item, relative to the start of the item</doc>
  6394. <type name="gint" c:type="int"/>
  6395. </parameter>
  6396. <parameter name="split_offset" transfer-ownership="none">
  6397. <doc xml:space="preserve">number of chars between start of @orig and @split_index</doc>
  6398. <type name="gint" c:type="int"/>
  6399. </parameter>
  6400. </parameters>
  6401. </method>
  6402. </record>
  6403. <record name="Language"
  6404. c:type="PangoLanguage"
  6405. glib:type-name="PangoLanguage"
  6406. glib:get-type="pango_language_get_type"
  6407. c:symbol-prefix="language">
  6408. <doc xml:space="preserve">The #PangoLanguage structure is used to
  6409. represent a language.
  6410. #PangoLanguage pointers can be efficiently
  6411. copied and compared with each other.</doc>
  6412. <method name="get_sample_string"
  6413. c:identifier="pango_language_get_sample_string">
  6414. <doc xml:space="preserve">Get a string that is representative of the characters needed to
  6415. render a particular language.
  6416. The sample text may be a pangram, but is not necessarily. It is chosen to
  6417. be demonstrative of normal text in the language, as well as exposing font
  6418. feature requirements unique to the language. It is suitable for use
  6419. as sample text in a font selection dialog.
  6420. If @language is %NULL, the default language as found by
  6421. pango_language_get_default() is used.
  6422. If Pango does not have a sample string for @language, the classic
  6423. "The quick brown fox..." is returned. This can be detected by
  6424. comparing the returned pointer value to that returned for (non-existent)
  6425. language code "xx". That is, compare to:
  6426. &lt;informalexample&gt;&lt;programlisting&gt;
  6427. pango_language_get_sample_string (pango_language_from_string ("xx"))
  6428. &lt;/programlisting&gt;&lt;/informalexample&gt;</doc>
  6429. <return-value transfer-ownership="none">
  6430. <doc xml:space="preserve">the sample string. This value is owned by Pango
  6431. and should not be freed.</doc>
  6432. <type name="utf8" c:type="const char*"/>
  6433. </return-value>
  6434. <parameters>
  6435. <instance-parameter name="language"
  6436. transfer-ownership="none"
  6437. nullable="1"
  6438. allow-none="1">
  6439. <doc xml:space="preserve">a #PangoLanguage, or %NULL</doc>
  6440. <type name="Language" c:type="PangoLanguage*"/>
  6441. </instance-parameter>
  6442. </parameters>
  6443. </method>
  6444. <method name="get_scripts"
  6445. c:identifier="pango_language_get_scripts"
  6446. version="1.22">
  6447. <doc xml:space="preserve">Determines the scripts used to to write @language.
  6448. If nothing is known about the language tag @language,
  6449. or if @language is %NULL, then %NULL is returned.
  6450. The list of scripts returned starts with the script that the
  6451. language uses most and continues to the one it uses least.
  6452. The value @num_script points at will be set to the number
  6453. of scripts in the returned array (or zero if %NULL is returned).
  6454. Most languages use only one script for writing, but there are
  6455. some that use two (Latin and Cyrillic for example), and a few
  6456. use three (Japanese for example). Applications should not make
  6457. any assumptions on the maximum number of scripts returned
  6458. though, except that it is positive if the return value is not
  6459. %NULL, and it is a small number.
  6460. The pango_language_includes_script() function uses this function
  6461. internally.</doc>
  6462. <return-value transfer-ownership="none" nullable="1">
  6463. <doc xml:space="preserve">An array of
  6464. #PangoScript values, with the number of entries in the array stored
  6465. in @num_scripts, or %NULL if Pango does not have any information
  6466. about this particular language tag (also the case if @language is
  6467. %NULL). The returned array is owned by Pango and should not be
  6468. modified or freed.</doc>
  6469. <array length="0" zero-terminated="0" c:type="PangoScript*">
  6470. <type name="Script" c:type="PangoScript"/>
  6471. </array>
  6472. </return-value>
  6473. <parameters>
  6474. <instance-parameter name="language"
  6475. transfer-ownership="none"
  6476. nullable="1"
  6477. allow-none="1">
  6478. <doc xml:space="preserve">a #PangoLanguage, or %NULL</doc>
  6479. <type name="Language" c:type="PangoLanguage*"/>
  6480. </instance-parameter>
  6481. <parameter name="num_scripts"
  6482. direction="out"
  6483. caller-allocates="1"
  6484. transfer-ownership="full"
  6485. optional="1"
  6486. allow-none="1">
  6487. <doc xml:space="preserve">location to return number of scripts,
  6488. or %NULL</doc>
  6489. <type name="gint" c:type="int*"/>
  6490. </parameter>
  6491. </parameters>
  6492. </method>
  6493. <method name="includes_script"
  6494. c:identifier="pango_language_includes_script"
  6495. version="1.4">
  6496. <doc xml:space="preserve">Determines if @script is one of the scripts used to
  6497. write @language. The returned value is conservative;
  6498. if nothing is known about the language tag @language,
  6499. %TRUE will be returned, since, as far as Pango knows,
  6500. @script might be used to write @language.
  6501. This routine is used in Pango's itemization process when
  6502. determining if a supplied language tag is relevant to
  6503. a particular section of text. It probably is not useful for
  6504. applications in most circumstances.
  6505. This function uses pango_language_get_scripts() internally.</doc>
  6506. <return-value transfer-ownership="none">
  6507. <doc xml:space="preserve">%TRUE if @script is one of the scripts used
  6508. to write @language or if nothing is known about @language
  6509. (including the case that @language is %NULL),
  6510. %FALSE otherwise.</doc>
  6511. <type name="gboolean" c:type="gboolean"/>
  6512. </return-value>
  6513. <parameters>
  6514. <instance-parameter name="language"
  6515. transfer-ownership="none"
  6516. nullable="1"
  6517. allow-none="1">
  6518. <doc xml:space="preserve">a #PangoLanguage, or %NULL</doc>
  6519. <type name="Language" c:type="PangoLanguage*"/>
  6520. </instance-parameter>
  6521. <parameter name="script" transfer-ownership="none">
  6522. <doc xml:space="preserve">a #PangoScript</doc>
  6523. <type name="Script" c:type="PangoScript"/>
  6524. </parameter>
  6525. </parameters>
  6526. </method>
  6527. <method name="matches" c:identifier="pango_language_matches">
  6528. <doc xml:space="preserve">Checks if a language tag matches one of the elements in a list of
  6529. language ranges. A language tag is considered to match a range
  6530. in the list if the range is '*', the range is exactly the tag,
  6531. or the range is a prefix of the tag, and the character after it
  6532. in the tag is '-'.</doc>
  6533. <return-value transfer-ownership="none">
  6534. <doc xml:space="preserve">%TRUE if a match was found.</doc>
  6535. <type name="gboolean" c:type="gboolean"/>
  6536. </return-value>
  6537. <parameters>
  6538. <instance-parameter name="language"
  6539. transfer-ownership="none"
  6540. nullable="1"
  6541. allow-none="1">
  6542. <doc xml:space="preserve">a language tag (see pango_language_from_string()),
  6543. %NULL is allowed and matches nothing but '*'</doc>
  6544. <type name="Language" c:type="PangoLanguage*"/>
  6545. </instance-parameter>
  6546. <parameter name="range_list" transfer-ownership="none">
  6547. <doc xml:space="preserve">a list of language ranges, separated by ';', ':',
  6548. ',', or space characters.
  6549. Each element must either be '*', or a RFC 3066 language range
  6550. canonicalized as by pango_language_from_string()</doc>
  6551. <type name="utf8" c:type="const char*"/>
  6552. </parameter>
  6553. </parameters>
  6554. </method>
  6555. <method name="to_string" c:identifier="pango_language_to_string">
  6556. <doc xml:space="preserve">Gets the RFC-3066 format string representing the given language tag.</doc>
  6557. <return-value transfer-ownership="none">
  6558. <doc xml:space="preserve">a string representing the language tag. This is owned by
  6559. Pango and should not be freed.</doc>
  6560. <type name="utf8" c:type="const char*"/>
  6561. </return-value>
  6562. <parameters>
  6563. <instance-parameter name="language" transfer-ownership="none">
  6564. <doc xml:space="preserve">a language tag.</doc>
  6565. <type name="Language" c:type="PangoLanguage*"/>
  6566. </instance-parameter>
  6567. </parameters>
  6568. </method>
  6569. <function name="from_string" c:identifier="pango_language_from_string">
  6570. <doc xml:space="preserve">Take a RFC-3066 format language tag as a string and convert it to a
  6571. #PangoLanguage pointer that can be efficiently copied (copy the
  6572. pointer) and compared with other language tags (compare the
  6573. pointer.)
  6574. This function first canonicalizes the string by converting it to
  6575. lowercase, mapping '_' to '-', and stripping all characters other
  6576. than letters and '-'.
  6577. Use pango_language_get_default() if you want to get the #PangoLanguage for
  6578. the current locale of the process.</doc>
  6579. <return-value transfer-ownership="none" nullable="1">
  6580. <doc xml:space="preserve">an opaque pointer to a
  6581. #PangoLanguage structure, or %NULL if @language was
  6582. %NULL. The returned pointer will be valid forever
  6583. after, and should not be freed.</doc>
  6584. <type name="Language" c:type="PangoLanguage*"/>
  6585. </return-value>
  6586. <parameters>
  6587. <parameter name="language"
  6588. transfer-ownership="none"
  6589. nullable="1"
  6590. allow-none="1">
  6591. <doc xml:space="preserve">a string representing a language tag, or %NULL</doc>
  6592. <type name="utf8" c:type="const char*"/>
  6593. </parameter>
  6594. </parameters>
  6595. </function>
  6596. <function name="get_default"
  6597. c:identifier="pango_language_get_default"
  6598. version="1.16">
  6599. <doc xml:space="preserve">Returns the #PangoLanguage for the current locale of the process.
  6600. Note that this can change over the life of an application.
  6601. On Unix systems, this is the return value is derived from
  6602. &lt;literal&gt;setlocale(LC_CTYPE, NULL)&lt;/literal&gt;, and the user can
  6603. affect this through the environment variables LC_ALL, LC_CTYPE or
  6604. LANG (checked in that order). The locale string typically is in
  6605. the form lang_COUNTRY, where lang is an ISO-639 language code, and
  6606. COUNTRY is an ISO-3166 country code. For instance, sv_FI for
  6607. Swedish as written in Finland or pt_BR for Portuguese as written in
  6608. Brazil.
  6609. On Windows, the C library does not use any such environment
  6610. variables, and setting them won't affect the behavior of functions
  6611. like ctime(). The user sets the locale through the Regional Options
  6612. in the Control Panel. The C library (in the setlocale() function)
  6613. does not use country and language codes, but country and language
  6614. names spelled out in English.
  6615. However, this function does check the above environment
  6616. variables, and does return a Unix-style locale string based on
  6617. either said environment variables or the thread's current locale.
  6618. Your application should call &lt;literal&gt;setlocale(LC_ALL, "");&lt;/literal&gt;
  6619. for the user settings to take effect. Gtk+ does this in its initialization
  6620. functions automatically (by calling gtk_set_locale()).
  6621. See &lt;literal&gt;man setlocale&lt;/literal&gt; for more details.</doc>
  6622. <return-value transfer-ownership="none">
  6623. <doc xml:space="preserve">the default language as a
  6624. #PangoLanguage, must not be freed.</doc>
  6625. <type name="Language" c:type="PangoLanguage*"/>
  6626. </return-value>
  6627. </function>
  6628. </record>
  6629. <class name="Layout"
  6630. c:symbol-prefix="layout"
  6631. c:type="PangoLayout"
  6632. parent="GObject.Object"
  6633. glib:type-name="PangoLayout"
  6634. glib:get-type="pango_layout_get_type"
  6635. glib:type-struct="LayoutClass">
  6636. <doc xml:space="preserve">The #PangoLayout structure represents an entire paragraph
  6637. of text. It is initialized with a #PangoContext, UTF-8 string
  6638. and set of attributes for that string. Once that is done, the
  6639. set of formatted lines can be extracted from the object,
  6640. the layout can be rendered, and conversion between logical
  6641. character positions within the layout's text, and the physical
  6642. position of the resulting glyphs can be made.
  6643. There are also a number of parameters to adjust the formatting
  6644. of a #PangoLayout, which are illustrated in &lt;xref linkend="parameters"/&gt;.
  6645. It is possible, as well, to ignore the 2-D setup, and simply
  6646. treat the results of a #PangoLayout as a list of lines.
  6647. &lt;figure id="parameters"&gt;
  6648. &lt;title&gt;Adjustable parameters for a PangoLayout&lt;/title&gt;
  6649. &lt;graphic fileref="layout.gif" format="GIF"&gt;&lt;/graphic&gt;
  6650. &lt;/figure&gt;
  6651. The #PangoLayout structure is opaque, and has no user-visible
  6652. fields.</doc>
  6653. <constructor name="new" c:identifier="pango_layout_new">
  6654. <doc xml:space="preserve">Create a new #PangoLayout object with attributes initialized to
  6655. default values for a particular #PangoContext.</doc>
  6656. <return-value transfer-ownership="full">
  6657. <doc xml:space="preserve">the newly allocated #PangoLayout, with a reference
  6658. count of one, which should be freed with
  6659. g_object_unref().</doc>
  6660. <type name="Layout" c:type="PangoLayout*"/>
  6661. </return-value>
  6662. <parameters>
  6663. <parameter name="context" transfer-ownership="none">
  6664. <doc xml:space="preserve">a #PangoContext</doc>
  6665. <type name="Context" c:type="PangoContext*"/>
  6666. </parameter>
  6667. </parameters>
  6668. </constructor>
  6669. <method name="context_changed"
  6670. c:identifier="pango_layout_context_changed">
  6671. <doc xml:space="preserve">Forces recomputation of any state in the #PangoLayout that
  6672. might depend on the layout's context. This function should
  6673. be called if you make changes to the context subsequent
  6674. to creating the layout.</doc>
  6675. <return-value transfer-ownership="none">
  6676. <type name="none" c:type="void"/>
  6677. </return-value>
  6678. <parameters>
  6679. <instance-parameter name="layout" transfer-ownership="none">
  6680. <doc xml:space="preserve">a #PangoLayout</doc>
  6681. <type name="Layout" c:type="PangoLayout*"/>
  6682. </instance-parameter>
  6683. </parameters>
  6684. </method>
  6685. <method name="copy" c:identifier="pango_layout_copy">
  6686. <doc xml:space="preserve">Does a deep copy-by-value of the @src layout. The attribute list,
  6687. tab array, and text from the original layout are all copied by
  6688. value.</doc>
  6689. <return-value transfer-ownership="full">
  6690. <doc xml:space="preserve">the newly allocated #PangoLayout,
  6691. with a reference count of one, which should be freed
  6692. with g_object_unref().</doc>
  6693. <type name="Layout" c:type="PangoLayout*"/>
  6694. </return-value>
  6695. <parameters>
  6696. <instance-parameter name="src" transfer-ownership="none">
  6697. <doc xml:space="preserve">a #PangoLayout</doc>
  6698. <type name="Layout" c:type="PangoLayout*"/>
  6699. </instance-parameter>
  6700. </parameters>
  6701. </method>
  6702. <method name="get_alignment" c:identifier="pango_layout_get_alignment">
  6703. <doc xml:space="preserve">Gets the alignment for the layout: how partial lines are
  6704. positioned within the horizontal space available.</doc>
  6705. <return-value transfer-ownership="none">
  6706. <doc xml:space="preserve">the alignment.</doc>
  6707. <type name="Alignment" c:type="PangoAlignment"/>
  6708. </return-value>
  6709. <parameters>
  6710. <instance-parameter name="layout" transfer-ownership="none">
  6711. <doc xml:space="preserve">a #PangoLayout</doc>
  6712. <type name="Layout" c:type="PangoLayout*"/>
  6713. </instance-parameter>
  6714. </parameters>
  6715. </method>
  6716. <method name="get_attributes" c:identifier="pango_layout_get_attributes">
  6717. <doc xml:space="preserve">Gets the attribute list for the layout, if any.</doc>
  6718. <return-value transfer-ownership="none">
  6719. <doc xml:space="preserve">a #PangoAttrList.</doc>
  6720. <type name="AttrList" c:type="PangoAttrList*"/>
  6721. </return-value>
  6722. <parameters>
  6723. <instance-parameter name="layout" transfer-ownership="none">
  6724. <doc xml:space="preserve">a #PangoLayout</doc>
  6725. <type name="Layout" c:type="PangoLayout*"/>
  6726. </instance-parameter>
  6727. </parameters>
  6728. </method>
  6729. <method name="get_auto_dir"
  6730. c:identifier="pango_layout_get_auto_dir"
  6731. version="1.4">
  6732. <doc xml:space="preserve">Gets whether to calculate the bidirectional base direction
  6733. for the layout according to the contents of the layout.
  6734. See pango_layout_set_auto_dir().</doc>
  6735. <return-value transfer-ownership="none">
  6736. <doc xml:space="preserve">%TRUE if the bidirectional base direction
  6737. is computed from the layout's contents, %FALSE otherwise.</doc>
  6738. <type name="gboolean" c:type="gboolean"/>
  6739. </return-value>
  6740. <parameters>
  6741. <instance-parameter name="layout" transfer-ownership="none">
  6742. <doc xml:space="preserve">a #PangoLayout</doc>
  6743. <type name="Layout" c:type="PangoLayout*"/>
  6744. </instance-parameter>
  6745. </parameters>
  6746. </method>
  6747. <method name="get_baseline"
  6748. c:identifier="pango_layout_get_baseline"
  6749. version="1.22">
  6750. <doc xml:space="preserve">Gets the Y position of baseline of the first line in @layout.</doc>
  6751. <return-value transfer-ownership="none">
  6752. <doc xml:space="preserve">baseline of first line, from top of @layout.</doc>
  6753. <type name="gint" c:type="int"/>
  6754. </return-value>
  6755. <parameters>
  6756. <instance-parameter name="layout" transfer-ownership="none">
  6757. <doc xml:space="preserve">a #PangoLayout</doc>
  6758. <type name="Layout" c:type="PangoLayout*"/>
  6759. </instance-parameter>
  6760. </parameters>
  6761. </method>
  6762. <method name="get_character_count"
  6763. c:identifier="pango_layout_get_character_count"
  6764. version="1.30">
  6765. <doc xml:space="preserve">Returns the number of Unicode characters in the
  6766. the text of @layout.</doc>
  6767. <return-value transfer-ownership="none">
  6768. <doc xml:space="preserve">the number of Unicode characters
  6769. in the text of @layout</doc>
  6770. <type name="gint" c:type="gint"/>
  6771. </return-value>
  6772. <parameters>
  6773. <instance-parameter name="layout" transfer-ownership="none">
  6774. <doc xml:space="preserve">a #PangoLayout</doc>
  6775. <type name="Layout" c:type="PangoLayout*"/>
  6776. </instance-parameter>
  6777. </parameters>
  6778. </method>
  6779. <method name="get_context" c:identifier="pango_layout_get_context">
  6780. <doc xml:space="preserve">Retrieves the #PangoContext used for this layout.</doc>
  6781. <return-value transfer-ownership="none">
  6782. <doc xml:space="preserve">the #PangoContext for the layout.
  6783. This does not have an additional refcount added, so if you want to
  6784. keep a copy of this around, you must reference it yourself.</doc>
  6785. <type name="Context" c:type="PangoContext*"/>
  6786. </return-value>
  6787. <parameters>
  6788. <instance-parameter name="layout" transfer-ownership="none">
  6789. <doc xml:space="preserve">a #PangoLayout</doc>
  6790. <type name="Layout" c:type="PangoLayout*"/>
  6791. </instance-parameter>
  6792. </parameters>
  6793. </method>
  6794. <method name="get_cursor_pos" c:identifier="pango_layout_get_cursor_pos">
  6795. <doc xml:space="preserve">Given an index within a layout, determines the positions that of the
  6796. strong and weak cursors if the insertion point is at that
  6797. index. The position of each cursor is stored as a zero-width
  6798. rectangle. The strong cursor location is the location where
  6799. characters of the directionality equal to the base direction of the
  6800. layout are inserted. The weak cursor location is the location
  6801. where characters of the directionality opposite to the base
  6802. direction of the layout are inserted.</doc>
  6803. <return-value transfer-ownership="none">
  6804. <type name="none" c:type="void"/>
  6805. </return-value>
  6806. <parameters>
  6807. <instance-parameter name="layout" transfer-ownership="none">
  6808. <doc xml:space="preserve">a #PangoLayout</doc>
  6809. <type name="Layout" c:type="PangoLayout*"/>
  6810. </instance-parameter>
  6811. <parameter name="index_" transfer-ownership="none">
  6812. <doc xml:space="preserve">the byte index of the cursor</doc>
  6813. <type name="gint" c:type="int"/>
  6814. </parameter>
  6815. <parameter name="strong_pos"
  6816. direction="out"
  6817. caller-allocates="1"
  6818. transfer-ownership="none"
  6819. optional="1"
  6820. allow-none="1">
  6821. <doc xml:space="preserve">location to store the strong cursor position
  6822. (may be %NULL)</doc>
  6823. <type name="Rectangle" c:type="PangoRectangle*"/>
  6824. </parameter>
  6825. <parameter name="weak_pos"
  6826. direction="out"
  6827. caller-allocates="1"
  6828. transfer-ownership="none"
  6829. optional="1"
  6830. allow-none="1">
  6831. <doc xml:space="preserve">location to store the weak cursor position (may be %NULL)</doc>
  6832. <type name="Rectangle" c:type="PangoRectangle*"/>
  6833. </parameter>
  6834. </parameters>
  6835. </method>
  6836. <method name="get_ellipsize"
  6837. c:identifier="pango_layout_get_ellipsize"
  6838. version="1.6">
  6839. <doc xml:space="preserve">Gets the type of ellipsization being performed for @layout.
  6840. See pango_layout_set_ellipsize()</doc>
  6841. <return-value transfer-ownership="none">
  6842. <doc xml:space="preserve">the current ellipsization mode for @layout.
  6843. Use pango_layout_is_ellipsized() to query whether any paragraphs
  6844. were actually ellipsized.</doc>
  6845. <type name="EllipsizeMode" c:type="PangoEllipsizeMode"/>
  6846. </return-value>
  6847. <parameters>
  6848. <instance-parameter name="layout" transfer-ownership="none">
  6849. <doc xml:space="preserve">a #PangoLayout</doc>
  6850. <type name="Layout" c:type="PangoLayout*"/>
  6851. </instance-parameter>
  6852. </parameters>
  6853. </method>
  6854. <method name="get_extents" c:identifier="pango_layout_get_extents">
  6855. <doc xml:space="preserve">Computes the logical and ink extents of @layout. Logical extents
  6856. are usually what you want for positioning things. Note that both extents
  6857. may have non-zero x and y. You may want to use those to offset where you
  6858. render the layout. Not doing that is a very typical bug that shows up as
  6859. right-to-left layouts not being correctly positioned in a layout with
  6860. a set width.
  6861. The extents are given in layout coordinates and in Pango units; layout
  6862. coordinates begin at the top left corner of the layout.</doc>
  6863. <return-value transfer-ownership="none">
  6864. <type name="none" c:type="void"/>
  6865. </return-value>
  6866. <parameters>
  6867. <instance-parameter name="layout" transfer-ownership="none">
  6868. <doc xml:space="preserve">a #PangoLayout</doc>
  6869. <type name="Layout" c:type="PangoLayout*"/>
  6870. </instance-parameter>
  6871. <parameter name="ink_rect"
  6872. direction="out"
  6873. caller-allocates="1"
  6874. transfer-ownership="none"
  6875. optional="1"
  6876. allow-none="1">
  6877. <doc xml:space="preserve">rectangle used to store the extents of the
  6878. layout as drawn or %NULL to indicate that the result is
  6879. not needed.</doc>
  6880. <type name="Rectangle" c:type="PangoRectangle*"/>
  6881. </parameter>
  6882. <parameter name="logical_rect"
  6883. direction="out"
  6884. caller-allocates="1"
  6885. transfer-ownership="none"
  6886. optional="1"
  6887. allow-none="1">
  6888. <doc xml:space="preserve">rectangle used to store the logical
  6889. extents of the layout or %NULL to indicate that the
  6890. result is not needed.</doc>
  6891. <type name="Rectangle" c:type="PangoRectangle*"/>
  6892. </parameter>
  6893. </parameters>
  6894. </method>
  6895. <method name="get_font_description"
  6896. c:identifier="pango_layout_get_font_description"
  6897. version="1.8">
  6898. <doc xml:space="preserve">Gets the font description for the layout, if any.</doc>
  6899. <return-value transfer-ownership="none" nullable="1">
  6900. <doc xml:space="preserve">a pointer to the layout's font
  6901. description, or %NULL if the font description from the layout's
  6902. context is inherited. This value is owned by the layout and must
  6903. not be modified or freed.</doc>
  6904. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  6905. </return-value>
  6906. <parameters>
  6907. <instance-parameter name="layout" transfer-ownership="none">
  6908. <doc xml:space="preserve">a #PangoLayout</doc>
  6909. <type name="Layout" c:type="PangoLayout*"/>
  6910. </instance-parameter>
  6911. </parameters>
  6912. </method>
  6913. <method name="get_height"
  6914. c:identifier="pango_layout_get_height"
  6915. version="1.20">
  6916. <doc xml:space="preserve">Gets the height of layout used for ellipsization. See
  6917. pango_layout_set_height() for details.</doc>
  6918. <return-value transfer-ownership="none">
  6919. <doc xml:space="preserve">the height, in Pango units if positive, or
  6920. number of lines if negative.</doc>
  6921. <type name="gint" c:type="int"/>
  6922. </return-value>
  6923. <parameters>
  6924. <instance-parameter name="layout" transfer-ownership="none">
  6925. <doc xml:space="preserve">a #PangoLayout</doc>
  6926. <type name="Layout" c:type="PangoLayout*"/>
  6927. </instance-parameter>
  6928. </parameters>
  6929. </method>
  6930. <method name="get_indent" c:identifier="pango_layout_get_indent">
  6931. <doc xml:space="preserve">Gets the paragraph indent width in Pango units. A negative value
  6932. indicates a hanging indentation.</doc>
  6933. <return-value transfer-ownership="none">
  6934. <doc xml:space="preserve">the indent in Pango units.</doc>
  6935. <type name="gint" c:type="int"/>
  6936. </return-value>
  6937. <parameters>
  6938. <instance-parameter name="layout" transfer-ownership="none">
  6939. <doc xml:space="preserve">a #PangoLayout</doc>
  6940. <type name="Layout" c:type="PangoLayout*"/>
  6941. </instance-parameter>
  6942. </parameters>
  6943. </method>
  6944. <method name="get_iter" c:identifier="pango_layout_get_iter">
  6945. <doc xml:space="preserve">Returns an iterator to iterate over the visual extents of the layout.</doc>
  6946. <return-value transfer-ownership="full">
  6947. <doc xml:space="preserve">the new #PangoLayoutIter that should be freed using
  6948. pango_layout_iter_free().</doc>
  6949. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  6950. </return-value>
  6951. <parameters>
  6952. <instance-parameter name="layout" transfer-ownership="none">
  6953. <doc xml:space="preserve">a #PangoLayout</doc>
  6954. <type name="Layout" c:type="PangoLayout*"/>
  6955. </instance-parameter>
  6956. </parameters>
  6957. </method>
  6958. <method name="get_justify" c:identifier="pango_layout_get_justify">
  6959. <doc xml:space="preserve">Gets whether each complete line should be stretched to fill the entire
  6960. width of the layout.</doc>
  6961. <return-value transfer-ownership="none">
  6962. <doc xml:space="preserve">the justify.</doc>
  6963. <type name="gboolean" c:type="gboolean"/>
  6964. </return-value>
  6965. <parameters>
  6966. <instance-parameter name="layout" transfer-ownership="none">
  6967. <doc xml:space="preserve">a #PangoLayout</doc>
  6968. <type name="Layout" c:type="PangoLayout*"/>
  6969. </instance-parameter>
  6970. </parameters>
  6971. </method>
  6972. <method name="get_line" c:identifier="pango_layout_get_line">
  6973. <doc xml:space="preserve">Retrieves a particular line from a #PangoLayout.
  6974. Use the faster pango_layout_get_line_readonly() if you do not plan
  6975. to modify the contents of the line (glyphs, glyph widths, etc.).</doc>
  6976. <return-value transfer-ownership="none" nullable="1">
  6977. <doc xml:space="preserve">the requested
  6978. #PangoLayoutLine, or %NULL if the index is out of
  6979. range. This layout line can be ref'ed and retained,
  6980. but will become invalid if changes are made to the
  6981. #PangoLayout.</doc>
  6982. <type name="LayoutLine" c:type="PangoLayoutLine*"/>
  6983. </return-value>
  6984. <parameters>
  6985. <instance-parameter name="layout" transfer-ownership="none">
  6986. <doc xml:space="preserve">a #PangoLayout</doc>
  6987. <type name="Layout" c:type="PangoLayout*"/>
  6988. </instance-parameter>
  6989. <parameter name="line" transfer-ownership="none">
  6990. <doc xml:space="preserve">the index of a line, which must be between 0 and
  6991. &lt;literal&gt;pango_layout_get_line_count(layout) - 1&lt;/literal&gt;, inclusive.</doc>
  6992. <type name="gint" c:type="int"/>
  6993. </parameter>
  6994. </parameters>
  6995. </method>
  6996. <method name="get_line_count" c:identifier="pango_layout_get_line_count">
  6997. <doc xml:space="preserve">Retrieves the count of lines for the @layout.</doc>
  6998. <return-value transfer-ownership="none">
  6999. <doc xml:space="preserve">the line count.</doc>
  7000. <type name="gint" c:type="int"/>
  7001. </return-value>
  7002. <parameters>
  7003. <instance-parameter name="layout" transfer-ownership="none">
  7004. <doc xml:space="preserve">#PangoLayout</doc>
  7005. <type name="Layout" c:type="PangoLayout*"/>
  7006. </instance-parameter>
  7007. </parameters>
  7008. </method>
  7009. <method name="get_line_readonly"
  7010. c:identifier="pango_layout_get_line_readonly"
  7011. version="1.16">
  7012. <doc xml:space="preserve">Retrieves a particular line from a #PangoLayout.
  7013. This is a faster alternative to pango_layout_get_line(),
  7014. but the user is not expected
  7015. to modify the contents of the line (glyphs, glyph widths, etc.).</doc>
  7016. <return-value transfer-ownership="none" nullable="1">
  7017. <doc xml:space="preserve">the requested
  7018. #PangoLayoutLine, or %NULL if the index is out of
  7019. range. This layout line can be ref'ed and retained,
  7020. but will become invalid if changes are made to the
  7021. #PangoLayout. No changes should be made to the line.</doc>
  7022. <type name="LayoutLine" c:type="PangoLayoutLine*"/>
  7023. </return-value>
  7024. <parameters>
  7025. <instance-parameter name="layout" transfer-ownership="none">
  7026. <doc xml:space="preserve">a #PangoLayout</doc>
  7027. <type name="Layout" c:type="PangoLayout*"/>
  7028. </instance-parameter>
  7029. <parameter name="line" transfer-ownership="none">
  7030. <doc xml:space="preserve">the index of a line, which must be between 0 and
  7031. &lt;literal&gt;pango_layout_get_line_count(layout) - 1&lt;/literal&gt;, inclusive.</doc>
  7032. <type name="gint" c:type="int"/>
  7033. </parameter>
  7034. </parameters>
  7035. </method>
  7036. <method name="get_lines" c:identifier="pango_layout_get_lines">
  7037. <doc xml:space="preserve">Returns the lines of the @layout as a list.
  7038. Use the faster pango_layout_get_lines_readonly() if you do not plan
  7039. to modify the contents of the lines (glyphs, glyph widths, etc.).</doc>
  7040. <return-value transfer-ownership="none">
  7041. <doc xml:space="preserve">a #GSList containing
  7042. the lines in the layout. This points to internal data of the #PangoLayout
  7043. and must be used with care. It will become invalid on any change to the layout's
  7044. text or properties.</doc>
  7045. <type name="GLib.SList" c:type="GSList*">
  7046. <type name="LayoutLine"/>
  7047. </type>
  7048. </return-value>
  7049. <parameters>
  7050. <instance-parameter name="layout" transfer-ownership="none">
  7051. <doc xml:space="preserve">a #PangoLayout</doc>
  7052. <type name="Layout" c:type="PangoLayout*"/>
  7053. </instance-parameter>
  7054. </parameters>
  7055. </method>
  7056. <method name="get_lines_readonly"
  7057. c:identifier="pango_layout_get_lines_readonly"
  7058. version="1.16">
  7059. <doc xml:space="preserve">Returns the lines of the @layout as a list.
  7060. This is a faster alternative to pango_layout_get_lines(),
  7061. but the user is not expected
  7062. to modify the contents of the lines (glyphs, glyph widths, etc.).</doc>
  7063. <return-value transfer-ownership="none">
  7064. <doc xml:space="preserve">a #GSList containing
  7065. the lines in the layout. This points to internal data of the #PangoLayout and
  7066. must be used with care. It will become invalid on any change to the layout's
  7067. text or properties. No changes should be made to the lines.</doc>
  7068. <type name="GLib.SList" c:type="GSList*">
  7069. <type name="LayoutLine"/>
  7070. </type>
  7071. </return-value>
  7072. <parameters>
  7073. <instance-parameter name="layout" transfer-ownership="none">
  7074. <doc xml:space="preserve">a #PangoLayout</doc>
  7075. <type name="Layout" c:type="PangoLayout*"/>
  7076. </instance-parameter>
  7077. </parameters>
  7078. </method>
  7079. <method name="get_log_attrs" c:identifier="pango_layout_get_log_attrs">
  7080. <doc xml:space="preserve">Retrieves an array of logical attributes for each character in
  7081. the @layout.</doc>
  7082. <return-value transfer-ownership="none">
  7083. <type name="none" c:type="void"/>
  7084. </return-value>
  7085. <parameters>
  7086. <instance-parameter name="layout" transfer-ownership="none">
  7087. <doc xml:space="preserve">a #PangoLayout</doc>
  7088. <type name="Layout" c:type="PangoLayout*"/>
  7089. </instance-parameter>
  7090. <parameter name="attrs"
  7091. direction="out"
  7092. caller-allocates="0"
  7093. transfer-ownership="container">
  7094. <doc xml:space="preserve">
  7095. location to store a pointer to an array of logical attributes
  7096. This value must be freed with g_free().</doc>
  7097. <array length="1" zero-terminated="0" c:type="PangoLogAttr**">
  7098. <type name="LogAttr" c:type="PangoLogAttr*"/>
  7099. </array>
  7100. </parameter>
  7101. <parameter name="n_attrs"
  7102. direction="out"
  7103. caller-allocates="0"
  7104. transfer-ownership="full">
  7105. <doc xml:space="preserve">location to store the number of the attributes in the
  7106. array. (The stored value will be one more than the total number
  7107. of characters in the layout, since there need to be attributes
  7108. corresponding to both the position before the first character
  7109. and the position after the last character.)</doc>
  7110. <type name="gint" c:type="gint*"/>
  7111. </parameter>
  7112. </parameters>
  7113. </method>
  7114. <method name="get_log_attrs_readonly"
  7115. c:identifier="pango_layout_get_log_attrs_readonly"
  7116. version="1.30">
  7117. <doc xml:space="preserve">Retrieves an array of logical attributes for each character in
  7118. the @layout.
  7119. This is a faster alternative to pango_layout_get_log_attrs().
  7120. The returned array is part of @layout and must not be modified.
  7121. Modifying the layout will invalidate the returned array.
  7122. The number of attributes returned in @n_attrs will be one more
  7123. than the total number of characters in the layout, since there
  7124. need to be attributes corresponding to both the position before
  7125. the first character and the position after the last character.</doc>
  7126. <return-value transfer-ownership="none">
  7127. <doc xml:space="preserve">an array of logical attributes</doc>
  7128. <array length="0" zero-terminated="0" c:type="PangoLogAttr*">
  7129. <type name="LogAttr" c:type="PangoLogAttr"/>
  7130. </array>
  7131. </return-value>
  7132. <parameters>
  7133. <instance-parameter name="layout" transfer-ownership="none">
  7134. <doc xml:space="preserve">a #PangoLayout</doc>
  7135. <type name="Layout" c:type="PangoLayout*"/>
  7136. </instance-parameter>
  7137. <parameter name="n_attrs"
  7138. direction="out"
  7139. caller-allocates="0"
  7140. transfer-ownership="full">
  7141. <doc xml:space="preserve">location to store the number of the attributes in
  7142. the array</doc>
  7143. <type name="gint" c:type="gint*"/>
  7144. </parameter>
  7145. </parameters>
  7146. </method>
  7147. <method name="get_pixel_extents"
  7148. c:identifier="pango_layout_get_pixel_extents">
  7149. <doc xml:space="preserve">Computes the logical and ink extents of @layout in device units.
  7150. This function just calls pango_layout_get_extents() followed by
  7151. two pango_extents_to_pixels() calls, rounding @ink_rect and @logical_rect
  7152. such that the rounded rectangles fully contain the unrounded one (that is,
  7153. passes them as first argument to pango_extents_to_pixels()).</doc>
  7154. <return-value transfer-ownership="none">
  7155. <type name="none" c:type="void"/>
  7156. </return-value>
  7157. <parameters>
  7158. <instance-parameter name="layout" transfer-ownership="none">
  7159. <doc xml:space="preserve">a #PangoLayout</doc>
  7160. <type name="Layout" c:type="PangoLayout*"/>
  7161. </instance-parameter>
  7162. <parameter name="ink_rect"
  7163. direction="out"
  7164. caller-allocates="1"
  7165. transfer-ownership="none"
  7166. optional="1"
  7167. allow-none="1">
  7168. <doc xml:space="preserve">rectangle used to store the extents of the
  7169. layout as drawn or %NULL to indicate that the result is
  7170. not needed.</doc>
  7171. <type name="Rectangle" c:type="PangoRectangle*"/>
  7172. </parameter>
  7173. <parameter name="logical_rect"
  7174. direction="out"
  7175. caller-allocates="1"
  7176. transfer-ownership="none"
  7177. optional="1"
  7178. allow-none="1">
  7179. <doc xml:space="preserve">rectangle used to store the logical
  7180. extents of the layout or %NULL to indicate that the
  7181. result is not needed.</doc>
  7182. <type name="Rectangle" c:type="PangoRectangle*"/>
  7183. </parameter>
  7184. </parameters>
  7185. </method>
  7186. <method name="get_pixel_size" c:identifier="pango_layout_get_pixel_size">
  7187. <doc xml:space="preserve">Determines the logical width and height of a #PangoLayout
  7188. in device units. (pango_layout_get_size() returns the width
  7189. and height scaled by %PANGO_SCALE.) This
  7190. is simply a convenience function around
  7191. pango_layout_get_pixel_extents().</doc>
  7192. <return-value transfer-ownership="none">
  7193. <type name="none" c:type="void"/>
  7194. </return-value>
  7195. <parameters>
  7196. <instance-parameter name="layout" transfer-ownership="none">
  7197. <doc xml:space="preserve">a #PangoLayout</doc>
  7198. <type name="Layout" c:type="PangoLayout*"/>
  7199. </instance-parameter>
  7200. <parameter name="width"
  7201. direction="out"
  7202. caller-allocates="0"
  7203. transfer-ownership="full"
  7204. optional="1"
  7205. allow-none="1">
  7206. <doc xml:space="preserve">location to store the logical width, or %NULL</doc>
  7207. <type name="gint" c:type="int*"/>
  7208. </parameter>
  7209. <parameter name="height"
  7210. direction="out"
  7211. caller-allocates="0"
  7212. transfer-ownership="full"
  7213. optional="1"
  7214. allow-none="1">
  7215. <doc xml:space="preserve">location to store the logical height, or %NULL</doc>
  7216. <type name="gint" c:type="int*"/>
  7217. </parameter>
  7218. </parameters>
  7219. </method>
  7220. <method name="get_serial"
  7221. c:identifier="pango_layout_get_serial"
  7222. version="1.32.4">
  7223. <doc xml:space="preserve">Returns the current serial number of @layout. The serial number is
  7224. initialized to an small number larger than zero when a new layout
  7225. is created and is increased whenever the layout is changed using any
  7226. of the setter functions, or the #PangoContext it uses has changed.
  7227. The serial may wrap, but will never have the value 0. Since it
  7228. can wrap, never compare it with "less than", always use "not equals".
  7229. This can be used to automatically detect changes to a #PangoLayout, and
  7230. is useful for example to decide whether a layout needs redrawing.
  7231. To force the serial to be increased, use pango_layout_context_changed().</doc>
  7232. <return-value transfer-ownership="none">
  7233. <doc xml:space="preserve">The current serial number of @layout.</doc>
  7234. <type name="guint" c:type="guint"/>
  7235. </return-value>
  7236. <parameters>
  7237. <instance-parameter name="layout" transfer-ownership="none">
  7238. <doc xml:space="preserve">a #PangoLayout</doc>
  7239. <type name="Layout" c:type="PangoLayout*"/>
  7240. </instance-parameter>
  7241. </parameters>
  7242. </method>
  7243. <method name="get_single_paragraph_mode"
  7244. c:identifier="pango_layout_get_single_paragraph_mode">
  7245. <doc xml:space="preserve">Obtains the value set by pango_layout_set_single_paragraph_mode().</doc>
  7246. <return-value transfer-ownership="none">
  7247. <doc xml:space="preserve">%TRUE if the layout does not break paragraphs at
  7248. paragraph separator characters, %FALSE otherwise.</doc>
  7249. <type name="gboolean" c:type="gboolean"/>
  7250. </return-value>
  7251. <parameters>
  7252. <instance-parameter name="layout" transfer-ownership="none">
  7253. <doc xml:space="preserve">a #PangoLayout</doc>
  7254. <type name="Layout" c:type="PangoLayout*"/>
  7255. </instance-parameter>
  7256. </parameters>
  7257. </method>
  7258. <method name="get_size" c:identifier="pango_layout_get_size">
  7259. <doc xml:space="preserve">Determines the logical width and height of a #PangoLayout
  7260. in Pango units (device units scaled by %PANGO_SCALE). This
  7261. is simply a convenience function around pango_layout_get_extents().</doc>
  7262. <return-value transfer-ownership="none">
  7263. <type name="none" c:type="void"/>
  7264. </return-value>
  7265. <parameters>
  7266. <instance-parameter name="layout" transfer-ownership="none">
  7267. <doc xml:space="preserve">a #PangoLayout</doc>
  7268. <type name="Layout" c:type="PangoLayout*"/>
  7269. </instance-parameter>
  7270. <parameter name="width"
  7271. direction="out"
  7272. caller-allocates="1"
  7273. transfer-ownership="none"
  7274. optional="1"
  7275. allow-none="1">
  7276. <doc xml:space="preserve">location to store the logical width, or %NULL</doc>
  7277. <type name="gint" c:type="int*"/>
  7278. </parameter>
  7279. <parameter name="height"
  7280. direction="out"
  7281. caller-allocates="1"
  7282. transfer-ownership="none"
  7283. optional="1"
  7284. allow-none="1">
  7285. <doc xml:space="preserve">location to store the logical height, or %NULL</doc>
  7286. <type name="gint" c:type="int*"/>
  7287. </parameter>
  7288. </parameters>
  7289. </method>
  7290. <method name="get_spacing" c:identifier="pango_layout_get_spacing">
  7291. <doc xml:space="preserve">Gets the amount of spacing between the lines of the layout.</doc>
  7292. <return-value transfer-ownership="none">
  7293. <doc xml:space="preserve">the spacing in Pango units.</doc>
  7294. <type name="gint" c:type="int"/>
  7295. </return-value>
  7296. <parameters>
  7297. <instance-parameter name="layout" transfer-ownership="none">
  7298. <doc xml:space="preserve">a #PangoLayout</doc>
  7299. <type name="Layout" c:type="PangoLayout*"/>
  7300. </instance-parameter>
  7301. </parameters>
  7302. </method>
  7303. <method name="get_tabs" c:identifier="pango_layout_get_tabs">
  7304. <doc xml:space="preserve">Gets the current #PangoTabArray used by this layout. If no
  7305. #PangoTabArray has been set, then the default tabs are in use
  7306. and %NULL is returned. Default tabs are every 8 spaces.
  7307. The return value should be freed with pango_tab_array_free().</doc>
  7308. <return-value transfer-ownership="full" nullable="1">
  7309. <doc xml:space="preserve">a copy of the tabs for this layout, or
  7310. %NULL.</doc>
  7311. <type name="TabArray" c:type="PangoTabArray*"/>
  7312. </return-value>
  7313. <parameters>
  7314. <instance-parameter name="layout" transfer-ownership="none">
  7315. <doc xml:space="preserve">a #PangoLayout</doc>
  7316. <type name="Layout" c:type="PangoLayout*"/>
  7317. </instance-parameter>
  7318. </parameters>
  7319. </method>
  7320. <method name="get_text" c:identifier="pango_layout_get_text">
  7321. <doc xml:space="preserve">Gets the text in the layout. The returned text should not
  7322. be freed or modified.</doc>
  7323. <return-value transfer-ownership="none">
  7324. <doc xml:space="preserve">the text in the @layout.</doc>
  7325. <type name="utf8" c:type="const char*"/>
  7326. </return-value>
  7327. <parameters>
  7328. <instance-parameter name="layout" transfer-ownership="none">
  7329. <doc xml:space="preserve">a #PangoLayout</doc>
  7330. <type name="Layout" c:type="PangoLayout*"/>
  7331. </instance-parameter>
  7332. </parameters>
  7333. </method>
  7334. <method name="get_unknown_glyphs_count"
  7335. c:identifier="pango_layout_get_unknown_glyphs_count"
  7336. version="1.16">
  7337. <doc xml:space="preserve">Counts the number unknown glyphs in @layout. That is, zero if
  7338. glyphs for all characters in the layout text were found, or more
  7339. than zero otherwise.
  7340. This function can be used to determine if there are any fonts
  7341. available to render all characters in a certain string, or when
  7342. used in combination with %PANGO_ATTR_FALLBACK, to check if a
  7343. certain font supports all the characters in the string.</doc>
  7344. <return-value transfer-ownership="none">
  7345. <doc xml:space="preserve">The number of unknown glyphs in @layout.</doc>
  7346. <type name="gint" c:type="int"/>
  7347. </return-value>
  7348. <parameters>
  7349. <instance-parameter name="layout" transfer-ownership="none">
  7350. <doc xml:space="preserve">a #PangoLayout</doc>
  7351. <type name="Layout" c:type="PangoLayout*"/>
  7352. </instance-parameter>
  7353. </parameters>
  7354. </method>
  7355. <method name="get_width" c:identifier="pango_layout_get_width">
  7356. <doc xml:space="preserve">Gets the width to which the lines of the #PangoLayout should wrap.</doc>
  7357. <return-value transfer-ownership="none">
  7358. <doc xml:space="preserve">the width in Pango units, or -1 if no width set.</doc>
  7359. <type name="gint" c:type="int"/>
  7360. </return-value>
  7361. <parameters>
  7362. <instance-parameter name="layout" transfer-ownership="none">
  7363. <doc xml:space="preserve">a #PangoLayout</doc>
  7364. <type name="Layout" c:type="PangoLayout*"/>
  7365. </instance-parameter>
  7366. </parameters>
  7367. </method>
  7368. <method name="get_wrap" c:identifier="pango_layout_get_wrap">
  7369. <doc xml:space="preserve">Gets the wrap mode for the layout.
  7370. Use pango_layout_is_wrapped() to query whether any paragraphs
  7371. were actually wrapped.</doc>
  7372. <return-value transfer-ownership="none">
  7373. <doc xml:space="preserve">active wrap mode.</doc>
  7374. <type name="WrapMode" c:type="PangoWrapMode"/>
  7375. </return-value>
  7376. <parameters>
  7377. <instance-parameter name="layout" transfer-ownership="none">
  7378. <doc xml:space="preserve">a #PangoLayout</doc>
  7379. <type name="Layout" c:type="PangoLayout*"/>
  7380. </instance-parameter>
  7381. </parameters>
  7382. </method>
  7383. <method name="index_to_line_x"
  7384. c:identifier="pango_layout_index_to_line_x">
  7385. <doc xml:space="preserve">Converts from byte @index_ within the @layout to line and X position.
  7386. (X position is measured from the left edge of the line)</doc>
  7387. <return-value transfer-ownership="none">
  7388. <type name="none" c:type="void"/>
  7389. </return-value>
  7390. <parameters>
  7391. <instance-parameter name="layout" transfer-ownership="none">
  7392. <doc xml:space="preserve">a #PangoLayout</doc>
  7393. <type name="Layout" c:type="PangoLayout*"/>
  7394. </instance-parameter>
  7395. <parameter name="index_" transfer-ownership="none">
  7396. <doc xml:space="preserve">the byte index of a grapheme within the layout.</doc>
  7397. <type name="gint" c:type="int"/>
  7398. </parameter>
  7399. <parameter name="trailing" transfer-ownership="none">
  7400. <doc xml:space="preserve">an integer indicating the edge of the grapheme to retrieve the
  7401. position of. If &gt; 0, the trailing edge of the grapheme, if 0,
  7402. the leading of the grapheme.</doc>
  7403. <type name="gboolean" c:type="gboolean"/>
  7404. </parameter>
  7405. <parameter name="line"
  7406. direction="out"
  7407. caller-allocates="0"
  7408. transfer-ownership="full"
  7409. optional="1"
  7410. allow-none="1">
  7411. <doc xml:space="preserve">location to store resulting line index. (which will
  7412. between 0 and pango_layout_get_line_count(layout) - 1), or %NULL</doc>
  7413. <type name="gint" c:type="int*"/>
  7414. </parameter>
  7415. <parameter name="x_pos"
  7416. direction="out"
  7417. caller-allocates="0"
  7418. transfer-ownership="full"
  7419. optional="1"
  7420. allow-none="1">
  7421. <doc xml:space="preserve">location to store resulting position within line
  7422. (%PANGO_SCALE units per device unit), or %NULL</doc>
  7423. <type name="gint" c:type="int*"/>
  7424. </parameter>
  7425. </parameters>
  7426. </method>
  7427. <method name="index_to_pos" c:identifier="pango_layout_index_to_pos">
  7428. <doc xml:space="preserve">Converts from an index within a #PangoLayout to the onscreen position
  7429. corresponding to the grapheme at that index, which is represented
  7430. as rectangle. Note that &lt;literal&gt;pos-&gt;x&lt;/literal&gt; is always the leading
  7431. edge of the grapheme and &lt;literal&gt;pos-&gt;x + pos-&gt;width&lt;/literal&gt; the trailing
  7432. edge of the grapheme. If the directionality of the grapheme is right-to-left,
  7433. then &lt;literal&gt;pos-&gt;width&lt;/literal&gt; will be negative.</doc>
  7434. <return-value transfer-ownership="none">
  7435. <type name="none" c:type="void"/>
  7436. </return-value>
  7437. <parameters>
  7438. <instance-parameter name="layout" transfer-ownership="none">
  7439. <doc xml:space="preserve">a #PangoLayout</doc>
  7440. <type name="Layout" c:type="PangoLayout*"/>
  7441. </instance-parameter>
  7442. <parameter name="index_" transfer-ownership="none">
  7443. <doc xml:space="preserve">byte index within @layout</doc>
  7444. <type name="gint" c:type="int"/>
  7445. </parameter>
  7446. <parameter name="pos"
  7447. direction="out"
  7448. caller-allocates="1"
  7449. transfer-ownership="none">
  7450. <doc xml:space="preserve">rectangle in which to store the position of the grapheme</doc>
  7451. <type name="Rectangle" c:type="PangoRectangle*"/>
  7452. </parameter>
  7453. </parameters>
  7454. </method>
  7455. <method name="is_ellipsized"
  7456. c:identifier="pango_layout_is_ellipsized"
  7457. version="1.16">
  7458. <doc xml:space="preserve">Queries whether the layout had to ellipsize any paragraphs.
  7459. This returns %TRUE if the ellipsization mode for @layout
  7460. is not %PANGO_ELLIPSIZE_NONE, a positive width is set on @layout,
  7461. and there are paragraphs exceeding that width that have to be
  7462. ellipsized.</doc>
  7463. <return-value transfer-ownership="none">
  7464. <doc xml:space="preserve">%TRUE if any paragraphs had to be ellipsized, %FALSE
  7465. otherwise.</doc>
  7466. <type name="gboolean" c:type="gboolean"/>
  7467. </return-value>
  7468. <parameters>
  7469. <instance-parameter name="layout" transfer-ownership="none">
  7470. <doc xml:space="preserve">a #PangoLayout</doc>
  7471. <type name="Layout" c:type="PangoLayout*"/>
  7472. </instance-parameter>
  7473. </parameters>
  7474. </method>
  7475. <method name="is_wrapped"
  7476. c:identifier="pango_layout_is_wrapped"
  7477. version="1.16">
  7478. <doc xml:space="preserve">Queries whether the layout had to wrap any paragraphs.
  7479. This returns %TRUE if a positive width is set on @layout,
  7480. ellipsization mode of @layout is set to %PANGO_ELLIPSIZE_NONE,
  7481. and there are paragraphs exceeding the layout width that have
  7482. to be wrapped.</doc>
  7483. <return-value transfer-ownership="none">
  7484. <doc xml:space="preserve">%TRUE if any paragraphs had to be wrapped, %FALSE
  7485. otherwise.</doc>
  7486. <type name="gboolean" c:type="gboolean"/>
  7487. </return-value>
  7488. <parameters>
  7489. <instance-parameter name="layout" transfer-ownership="none">
  7490. <doc xml:space="preserve">a #PangoLayout</doc>
  7491. <type name="Layout" c:type="PangoLayout*"/>
  7492. </instance-parameter>
  7493. </parameters>
  7494. </method>
  7495. <method name="move_cursor_visually"
  7496. c:identifier="pango_layout_move_cursor_visually">
  7497. <doc xml:space="preserve">Computes a new cursor position from an old position and
  7498. a count of positions to move visually. If @direction is positive,
  7499. then the new strong cursor position will be one position
  7500. to the right of the old cursor position. If @direction is negative,
  7501. then the new strong cursor position will be one position
  7502. to the left of the old cursor position.
  7503. In the presence of bidirectional text, the correspondence
  7504. between logical and visual order will depend on the direction
  7505. of the current run, and there may be jumps when the cursor
  7506. is moved off of the end of a run.
  7507. Motion here is in cursor positions, not in characters, so a
  7508. single call to pango_layout_move_cursor_visually() may move the
  7509. cursor over multiple characters when multiple characters combine
  7510. to form a single grapheme.</doc>
  7511. <return-value transfer-ownership="none">
  7512. <type name="none" c:type="void"/>
  7513. </return-value>
  7514. <parameters>
  7515. <instance-parameter name="layout" transfer-ownership="none">
  7516. <doc xml:space="preserve">a #PangoLayout.</doc>
  7517. <type name="Layout" c:type="PangoLayout*"/>
  7518. </instance-parameter>
  7519. <parameter name="strong" transfer-ownership="none">
  7520. <doc xml:space="preserve">whether the moving cursor is the strong cursor or the
  7521. weak cursor. The strong cursor is the cursor corresponding
  7522. to text insertion in the base direction for the layout.</doc>
  7523. <type name="gboolean" c:type="gboolean"/>
  7524. </parameter>
  7525. <parameter name="old_index" transfer-ownership="none">
  7526. <doc xml:space="preserve">the byte index of the grapheme for the old index</doc>
  7527. <type name="gint" c:type="int"/>
  7528. </parameter>
  7529. <parameter name="old_trailing" transfer-ownership="none">
  7530. <doc xml:space="preserve">if 0, the cursor was at the leading edge of the
  7531. grapheme indicated by @old_index, if &gt; 0, the cursor
  7532. was at the trailing edge.</doc>
  7533. <type name="gint" c:type="int"/>
  7534. </parameter>
  7535. <parameter name="direction" transfer-ownership="none">
  7536. <doc xml:space="preserve">direction to move cursor. A negative
  7537. value indicates motion to the left.</doc>
  7538. <type name="gint" c:type="int"/>
  7539. </parameter>
  7540. <parameter name="new_index"
  7541. direction="out"
  7542. caller-allocates="0"
  7543. transfer-ownership="full">
  7544. <doc xml:space="preserve">location to store the new cursor byte index. A value of -1
  7545. indicates that the cursor has been moved off the beginning
  7546. of the layout. A value of %G_MAXINT indicates that
  7547. the cursor has been moved off the end of the layout.</doc>
  7548. <type name="gint" c:type="int*"/>
  7549. </parameter>
  7550. <parameter name="new_trailing"
  7551. direction="out"
  7552. caller-allocates="0"
  7553. transfer-ownership="full">
  7554. <doc xml:space="preserve">number of characters to move forward from the
  7555. location returned for @new_index to get the position
  7556. where the cursor should be displayed. This allows
  7557. distinguishing the position at the beginning of one
  7558. line from the position at the end of the preceding
  7559. line. @new_index is always on the line where the
  7560. cursor should be displayed.</doc>
  7561. <type name="gint" c:type="int*"/>
  7562. </parameter>
  7563. </parameters>
  7564. </method>
  7565. <method name="set_alignment" c:identifier="pango_layout_set_alignment">
  7566. <doc xml:space="preserve">Sets the alignment for the layout: how partial lines are
  7567. positioned within the horizontal space available.</doc>
  7568. <return-value transfer-ownership="none">
  7569. <type name="none" c:type="void"/>
  7570. </return-value>
  7571. <parameters>
  7572. <instance-parameter name="layout" transfer-ownership="none">
  7573. <doc xml:space="preserve">a #PangoLayout</doc>
  7574. <type name="Layout" c:type="PangoLayout*"/>
  7575. </instance-parameter>
  7576. <parameter name="alignment" transfer-ownership="none">
  7577. <doc xml:space="preserve">the alignment</doc>
  7578. <type name="Alignment" c:type="PangoAlignment"/>
  7579. </parameter>
  7580. </parameters>
  7581. </method>
  7582. <method name="set_attributes" c:identifier="pango_layout_set_attributes">
  7583. <doc xml:space="preserve">Sets the text attributes for a layout object.
  7584. References @attrs, so the caller can unref its reference.</doc>
  7585. <return-value transfer-ownership="none">
  7586. <type name="none" c:type="void"/>
  7587. </return-value>
  7588. <parameters>
  7589. <instance-parameter name="layout" transfer-ownership="none">
  7590. <doc xml:space="preserve">a #PangoLayout</doc>
  7591. <type name="Layout" c:type="PangoLayout*"/>
  7592. </instance-parameter>
  7593. <parameter name="attrs"
  7594. transfer-ownership="none"
  7595. nullable="1"
  7596. allow-none="1">
  7597. <doc xml:space="preserve">a #PangoAttrList, can be %NULL</doc>
  7598. <type name="AttrList" c:type="PangoAttrList*"/>
  7599. </parameter>
  7600. </parameters>
  7601. </method>
  7602. <method name="set_auto_dir"
  7603. c:identifier="pango_layout_set_auto_dir"
  7604. version="1.4">
  7605. <doc xml:space="preserve">Sets whether to calculate the bidirectional base direction
  7606. for the layout according to the contents of the layout;
  7607. when this flag is on (the default), then paragraphs in
  7608. @layout that begin with strong right-to-left characters
  7609. (Arabic and Hebrew principally), will have right-to-left
  7610. layout, paragraphs with letters from other scripts will
  7611. have left-to-right layout. Paragraphs with only neutral
  7612. characters get their direction from the surrounding paragraphs.
  7613. When %FALSE, the choice between left-to-right and
  7614. right-to-left layout is done according to the base direction
  7615. of the layout's #PangoContext. (See pango_context_set_base_dir()).
  7616. When the auto-computed direction of a paragraph differs from the
  7617. base direction of the context, the interpretation of
  7618. %PANGO_ALIGN_LEFT and %PANGO_ALIGN_RIGHT are swapped.</doc>
  7619. <return-value transfer-ownership="none">
  7620. <type name="none" c:type="void"/>
  7621. </return-value>
  7622. <parameters>
  7623. <instance-parameter name="layout" transfer-ownership="none">
  7624. <doc xml:space="preserve">a #PangoLayout</doc>
  7625. <type name="Layout" c:type="PangoLayout*"/>
  7626. </instance-parameter>
  7627. <parameter name="auto_dir" transfer-ownership="none">
  7628. <doc xml:space="preserve">if %TRUE, compute the bidirectional base direction
  7629. from the layout's contents.</doc>
  7630. <type name="gboolean" c:type="gboolean"/>
  7631. </parameter>
  7632. </parameters>
  7633. </method>
  7634. <method name="set_ellipsize"
  7635. c:identifier="pango_layout_set_ellipsize"
  7636. version="1.6">
  7637. <doc xml:space="preserve">Sets the type of ellipsization being performed for @layout.
  7638. Depending on the ellipsization mode @ellipsize text is
  7639. removed from the start, middle, or end of text so they
  7640. fit within the width and height of layout set with
  7641. pango_layout_set_width() and pango_layout_set_height().
  7642. If the layout contains characters such as newlines that
  7643. force it to be layed out in multiple paragraphs, then whether
  7644. each paragraph is ellipsized separately or the entire layout
  7645. is ellipsized as a whole depends on the set height of the layout.
  7646. See pango_layout_set_height() for details.</doc>
  7647. <return-value transfer-ownership="none">
  7648. <type name="none" c:type="void"/>
  7649. </return-value>
  7650. <parameters>
  7651. <instance-parameter name="layout" transfer-ownership="none">
  7652. <doc xml:space="preserve">a #PangoLayout</doc>
  7653. <type name="Layout" c:type="PangoLayout*"/>
  7654. </instance-parameter>
  7655. <parameter name="ellipsize" transfer-ownership="none">
  7656. <doc xml:space="preserve">the new ellipsization mode for @layout</doc>
  7657. <type name="EllipsizeMode" c:type="PangoEllipsizeMode"/>
  7658. </parameter>
  7659. </parameters>
  7660. </method>
  7661. <method name="set_font_description"
  7662. c:identifier="pango_layout_set_font_description">
  7663. <doc xml:space="preserve">Sets the default font description for the layout. If no font
  7664. description is set on the layout, the font description from
  7665. the layout's context is used.</doc>
  7666. <return-value transfer-ownership="none">
  7667. <type name="none" c:type="void"/>
  7668. </return-value>
  7669. <parameters>
  7670. <instance-parameter name="layout" transfer-ownership="none">
  7671. <doc xml:space="preserve">a #PangoLayout</doc>
  7672. <type name="Layout" c:type="PangoLayout*"/>
  7673. </instance-parameter>
  7674. <parameter name="desc"
  7675. transfer-ownership="none"
  7676. nullable="1"
  7677. allow-none="1">
  7678. <doc xml:space="preserve">the new #PangoFontDescription, or %NULL to unset the
  7679. current font description</doc>
  7680. <type name="FontDescription" c:type="const PangoFontDescription*"/>
  7681. </parameter>
  7682. </parameters>
  7683. </method>
  7684. <method name="set_height"
  7685. c:identifier="pango_layout_set_height"
  7686. version="1.20">
  7687. <doc xml:space="preserve">Sets the height to which the #PangoLayout should be ellipsized at. There
  7688. are two different behaviors, based on whether @height is positive or
  7689. negative.
  7690. If @height is positive, it will be the maximum height of the layout. Only
  7691. lines would be shown that would fit, and if there is any text omitted,
  7692. an ellipsis added. At least one line is included in each paragraph regardless
  7693. of how small the height value is. A value of zero will render exactly one
  7694. line for the entire layout.
  7695. If @height is negative, it will be the (negative of) maximum number of lines per
  7696. paragraph. That is, the total number of lines shown may well be more than
  7697. this value if the layout contains multiple paragraphs of text.
  7698. The default value of -1 means that first line of each paragraph is ellipsized.
  7699. This behvaior may be changed in the future to act per layout instead of per
  7700. paragraph. File a bug against pango at &lt;ulink
  7701. url="http://bugzilla.gnome.org/"&gt;http://bugzilla.gnome.org/&lt;/ulink&gt; if your
  7702. code relies on this behavior.
  7703. Height setting only has effect if a positive width is set on
  7704. @layout and ellipsization mode of @layout is not %PANGO_ELLIPSIZE_NONE.
  7705. The behavior is undefined if a height other than -1 is set and
  7706. ellipsization mode is set to %PANGO_ELLIPSIZE_NONE, and may change in the
  7707. future.</doc>
  7708. <return-value transfer-ownership="none">
  7709. <type name="none" c:type="void"/>
  7710. </return-value>
  7711. <parameters>
  7712. <instance-parameter name="layout" transfer-ownership="none">
  7713. <doc xml:space="preserve">a #PangoLayout.</doc>
  7714. <type name="Layout" c:type="PangoLayout*"/>
  7715. </instance-parameter>
  7716. <parameter name="height" transfer-ownership="none">
  7717. <doc xml:space="preserve">the desired height of the layout in Pango units if positive,
  7718. or desired number of lines if negative.</doc>
  7719. <type name="gint" c:type="int"/>
  7720. </parameter>
  7721. </parameters>
  7722. </method>
  7723. <method name="set_indent" c:identifier="pango_layout_set_indent">
  7724. <doc xml:space="preserve">Sets the width in Pango units to indent each paragraph. A negative value
  7725. of @indent will produce a hanging indentation. That is, the first line will
  7726. have the full width, and subsequent lines will be indented by the
  7727. absolute value of @indent.
  7728. The indent setting is ignored if layout alignment is set to
  7729. %PANGO_ALIGN_CENTER.</doc>
  7730. <return-value transfer-ownership="none">
  7731. <type name="none" c:type="void"/>
  7732. </return-value>
  7733. <parameters>
  7734. <instance-parameter name="layout" transfer-ownership="none">
  7735. <doc xml:space="preserve">a #PangoLayout.</doc>
  7736. <type name="Layout" c:type="PangoLayout*"/>
  7737. </instance-parameter>
  7738. <parameter name="indent" transfer-ownership="none">
  7739. <doc xml:space="preserve">the amount by which to indent.</doc>
  7740. <type name="gint" c:type="int"/>
  7741. </parameter>
  7742. </parameters>
  7743. </method>
  7744. <method name="set_justify" c:identifier="pango_layout_set_justify">
  7745. <doc xml:space="preserve">Sets whether each complete line should be stretched to
  7746. fill the entire width of the layout. This stretching is typically
  7747. done by adding whitespace, but for some scripts (such as Arabic),
  7748. the justification may be done in more complex ways, like extending
  7749. the characters.
  7750. Note that this setting is not implemented and so is ignored in Pango
  7751. older than 1.18.</doc>
  7752. <return-value transfer-ownership="none">
  7753. <type name="none" c:type="void"/>
  7754. </return-value>
  7755. <parameters>
  7756. <instance-parameter name="layout" transfer-ownership="none">
  7757. <doc xml:space="preserve">a #PangoLayout</doc>
  7758. <type name="Layout" c:type="PangoLayout*"/>
  7759. </instance-parameter>
  7760. <parameter name="justify" transfer-ownership="none">
  7761. <doc xml:space="preserve">whether the lines in the layout should be justified.</doc>
  7762. <type name="gboolean" c:type="gboolean"/>
  7763. </parameter>
  7764. </parameters>
  7765. </method>
  7766. <method name="set_markup" c:identifier="pango_layout_set_markup">
  7767. <doc xml:space="preserve">Same as pango_layout_set_markup_with_accel(), but
  7768. the markup text isn't scanned for accelerators.</doc>
  7769. <return-value transfer-ownership="none">
  7770. <type name="none" c:type="void"/>
  7771. </return-value>
  7772. <parameters>
  7773. <instance-parameter name="layout" transfer-ownership="none">
  7774. <doc xml:space="preserve">a #PangoLayout</doc>
  7775. <type name="Layout" c:type="PangoLayout*"/>
  7776. </instance-parameter>
  7777. <parameter name="markup" transfer-ownership="none">
  7778. <doc xml:space="preserve">marked-up text</doc>
  7779. <type name="utf8" c:type="const char*"/>
  7780. </parameter>
  7781. <parameter name="length" transfer-ownership="none">
  7782. <doc xml:space="preserve">length of marked-up text in bytes, or -1 if @markup is
  7783. null-terminated</doc>
  7784. <type name="gint" c:type="int"/>
  7785. </parameter>
  7786. </parameters>
  7787. </method>
  7788. <method name="set_markup_with_accel"
  7789. c:identifier="pango_layout_set_markup_with_accel">
  7790. <doc xml:space="preserve">Sets the layout text and attribute list from marked-up text (see
  7791. &lt;link linkend="PangoMarkupFormat"&gt;markup format&lt;/link&gt;). Replaces
  7792. the current text and attribute list.
  7793. If @accel_marker is nonzero, the given character will mark the
  7794. character following it as an accelerator. For example, @accel_marker
  7795. might be an ampersand or underscore. All characters marked
  7796. as an accelerator will receive a %PANGO_UNDERLINE_LOW attribute,
  7797. and the first character so marked will be returned in @accel_char.
  7798. Two @accel_marker characters following each other produce a single
  7799. literal @accel_marker character.</doc>
  7800. <return-value transfer-ownership="none">
  7801. <type name="none" c:type="void"/>
  7802. </return-value>
  7803. <parameters>
  7804. <instance-parameter name="layout" transfer-ownership="none">
  7805. <doc xml:space="preserve">a #PangoLayout</doc>
  7806. <type name="Layout" c:type="PangoLayout*"/>
  7807. </instance-parameter>
  7808. <parameter name="markup" transfer-ownership="none">
  7809. <doc xml:space="preserve">marked-up text
  7810. (see &lt;link linkend="PangoMarkupFormat"&gt;markup format&lt;/link&gt;)</doc>
  7811. <type name="utf8" c:type="const char*"/>
  7812. </parameter>
  7813. <parameter name="length" transfer-ownership="none">
  7814. <doc xml:space="preserve">length of marked-up text in bytes, or -1 if @markup is
  7815. null-terminated</doc>
  7816. <type name="gint" c:type="int"/>
  7817. </parameter>
  7818. <parameter name="accel_marker" transfer-ownership="none">
  7819. <doc xml:space="preserve">marker for accelerators in the text</doc>
  7820. <type name="gunichar" c:type="gunichar"/>
  7821. </parameter>
  7822. <parameter name="accel_char"
  7823. direction="out"
  7824. caller-allocates="1"
  7825. transfer-ownership="none"
  7826. optional="1"
  7827. allow-none="1">
  7828. <doc xml:space="preserve">return location
  7829. for first located accelerator, or %NULL</doc>
  7830. <type name="gunichar" c:type="gunichar*"/>
  7831. </parameter>
  7832. </parameters>
  7833. </method>
  7834. <method name="set_single_paragraph_mode"
  7835. c:identifier="pango_layout_set_single_paragraph_mode">
  7836. <doc xml:space="preserve">If @setting is %TRUE, do not treat newlines and similar characters
  7837. as paragraph separators; instead, keep all text in a single paragraph,
  7838. and display a glyph for paragraph separator characters. Used when
  7839. you want to allow editing of newlines on a single text line.</doc>
  7840. <return-value transfer-ownership="none">
  7841. <type name="none" c:type="void"/>
  7842. </return-value>
  7843. <parameters>
  7844. <instance-parameter name="layout" transfer-ownership="none">
  7845. <doc xml:space="preserve">a #PangoLayout</doc>
  7846. <type name="Layout" c:type="PangoLayout*"/>
  7847. </instance-parameter>
  7848. <parameter name="setting" transfer-ownership="none">
  7849. <doc xml:space="preserve">new setting</doc>
  7850. <type name="gboolean" c:type="gboolean"/>
  7851. </parameter>
  7852. </parameters>
  7853. </method>
  7854. <method name="set_spacing" c:identifier="pango_layout_set_spacing">
  7855. <doc xml:space="preserve">Sets the amount of spacing in Pango unit between the lines of the
  7856. layout.</doc>
  7857. <return-value transfer-ownership="none">
  7858. <type name="none" c:type="void"/>
  7859. </return-value>
  7860. <parameters>
  7861. <instance-parameter name="layout" transfer-ownership="none">
  7862. <doc xml:space="preserve">a #PangoLayout.</doc>
  7863. <type name="Layout" c:type="PangoLayout*"/>
  7864. </instance-parameter>
  7865. <parameter name="spacing" transfer-ownership="none">
  7866. <doc xml:space="preserve">the amount of spacing</doc>
  7867. <type name="gint" c:type="int"/>
  7868. </parameter>
  7869. </parameters>
  7870. </method>
  7871. <method name="set_tabs" c:identifier="pango_layout_set_tabs">
  7872. <doc xml:space="preserve">Sets the tabs to use for @layout, overriding the default tabs
  7873. (by default, tabs are every 8 spaces). If @tabs is %NULL, the default
  7874. tabs are reinstated. @tabs is copied into the layout; you must
  7875. free your copy of @tabs yourself.</doc>
  7876. <return-value transfer-ownership="none">
  7877. <type name="none" c:type="void"/>
  7878. </return-value>
  7879. <parameters>
  7880. <instance-parameter name="layout" transfer-ownership="none">
  7881. <doc xml:space="preserve">a #PangoLayout</doc>
  7882. <type name="Layout" c:type="PangoLayout*"/>
  7883. </instance-parameter>
  7884. <parameter name="tabs"
  7885. transfer-ownership="none"
  7886. nullable="1"
  7887. allow-none="1">
  7888. <doc xml:space="preserve">a #PangoTabArray, or %NULL</doc>
  7889. <type name="TabArray" c:type="PangoTabArray*"/>
  7890. </parameter>
  7891. </parameters>
  7892. </method>
  7893. <method name="set_text" c:identifier="pango_layout_set_text">
  7894. <doc xml:space="preserve">Sets the text of the layout.
  7895. Note that if you have used
  7896. pango_layout_set_markup() or pango_layout_set_markup_with_accel() on
  7897. @layout before, you may want to call pango_layout_set_attributes() to clear
  7898. the attributes set on the layout from the markup as this function does not
  7899. clear attributes.</doc>
  7900. <return-value transfer-ownership="none">
  7901. <type name="none" c:type="void"/>
  7902. </return-value>
  7903. <parameters>
  7904. <instance-parameter name="layout" transfer-ownership="none">
  7905. <doc xml:space="preserve">a #PangoLayout</doc>
  7906. <type name="Layout" c:type="PangoLayout*"/>
  7907. </instance-parameter>
  7908. <parameter name="text" transfer-ownership="none">
  7909. <doc xml:space="preserve">a valid UTF-8 string</doc>
  7910. <type name="utf8" c:type="const char*"/>
  7911. </parameter>
  7912. <parameter name="length" transfer-ownership="none">
  7913. <doc xml:space="preserve">maximum length of @text, in bytes. -1 indicates that
  7914. the string is nul-terminated and the length should be
  7915. calculated. The text will also be truncated on
  7916. encountering a nul-termination even when @length is
  7917. positive.</doc>
  7918. <type name="gint" c:type="int"/>
  7919. </parameter>
  7920. </parameters>
  7921. </method>
  7922. <method name="set_width" c:identifier="pango_layout_set_width">
  7923. <doc xml:space="preserve">Sets the width to which the lines of the #PangoLayout should wrap or
  7924. ellipsized. The default value is -1: no width set.</doc>
  7925. <return-value transfer-ownership="none">
  7926. <type name="none" c:type="void"/>
  7927. </return-value>
  7928. <parameters>
  7929. <instance-parameter name="layout" transfer-ownership="none">
  7930. <doc xml:space="preserve">a #PangoLayout.</doc>
  7931. <type name="Layout" c:type="PangoLayout*"/>
  7932. </instance-parameter>
  7933. <parameter name="width" transfer-ownership="none">
  7934. <doc xml:space="preserve">the desired width in Pango units, or -1 to indicate that no
  7935. wrapping or ellipsization should be performed.</doc>
  7936. <type name="gint" c:type="int"/>
  7937. </parameter>
  7938. </parameters>
  7939. </method>
  7940. <method name="set_wrap" c:identifier="pango_layout_set_wrap">
  7941. <doc xml:space="preserve">Sets the wrap mode; the wrap mode only has effect if a width
  7942. is set on the layout with pango_layout_set_width().
  7943. To turn off wrapping, set the width to -1.</doc>
  7944. <return-value transfer-ownership="none">
  7945. <type name="none" c:type="void"/>
  7946. </return-value>
  7947. <parameters>
  7948. <instance-parameter name="layout" transfer-ownership="none">
  7949. <doc xml:space="preserve">a #PangoLayout</doc>
  7950. <type name="Layout" c:type="PangoLayout*"/>
  7951. </instance-parameter>
  7952. <parameter name="wrap" transfer-ownership="none">
  7953. <doc xml:space="preserve">the wrap mode</doc>
  7954. <type name="WrapMode" c:type="PangoWrapMode"/>
  7955. </parameter>
  7956. </parameters>
  7957. </method>
  7958. <method name="xy_to_index" c:identifier="pango_layout_xy_to_index">
  7959. <doc xml:space="preserve">Converts from X and Y position within a layout to the byte
  7960. index to the character at that logical position. If the
  7961. Y position is not inside the layout, the closest position is chosen
  7962. (the position will be clamped inside the layout). If the
  7963. X position is not within the layout, then the start or the
  7964. end of the line is chosen as described for pango_layout_line_x_to_index().
  7965. If either the X or Y positions were not inside the layout, then the
  7966. function returns %FALSE; on an exact hit, it returns %TRUE.</doc>
  7967. <return-value transfer-ownership="none">
  7968. <doc xml:space="preserve">%TRUE if the coordinates were inside text, %FALSE otherwise.</doc>
  7969. <type name="gboolean" c:type="gboolean"/>
  7970. </return-value>
  7971. <parameters>
  7972. <instance-parameter name="layout" transfer-ownership="none">
  7973. <doc xml:space="preserve">a #PangoLayout</doc>
  7974. <type name="Layout" c:type="PangoLayout*"/>
  7975. </instance-parameter>
  7976. <parameter name="x" transfer-ownership="none">
  7977. <doc xml:space="preserve">the X offset (in Pango units)
  7978. from the left edge of the layout.</doc>
  7979. <type name="gint" c:type="int"/>
  7980. </parameter>
  7981. <parameter name="y" transfer-ownership="none">
  7982. <doc xml:space="preserve">the Y offset (in Pango units)
  7983. from the top edge of the layout</doc>
  7984. <type name="gint" c:type="int"/>
  7985. </parameter>
  7986. <parameter name="index_"
  7987. direction="out"
  7988. caller-allocates="0"
  7989. transfer-ownership="full">
  7990. <doc xml:space="preserve">location to store calculated byte index</doc>
  7991. <type name="gint" c:type="int*"/>
  7992. </parameter>
  7993. <parameter name="trailing"
  7994. direction="out"
  7995. caller-allocates="0"
  7996. transfer-ownership="full">
  7997. <doc xml:space="preserve">location to store a integer indicating where
  7998. in the grapheme the user clicked. It will either
  7999. be zero, or the number of characters in the
  8000. grapheme. 0 represents the leading edge of the grapheme.</doc>
  8001. <type name="gint" c:type="int*"/>
  8002. </parameter>
  8003. </parameters>
  8004. </method>
  8005. </class>
  8006. <record name="LayoutClass"
  8007. c:type="PangoLayoutClass"
  8008. disguised="1"
  8009. glib:is-gtype-struct-for="Layout">
  8010. </record>
  8011. <record name="LayoutIter"
  8012. c:type="PangoLayoutIter"
  8013. glib:type-name="PangoLayoutIter"
  8014. glib:get-type="pango_layout_iter_get_type"
  8015. c:symbol-prefix="layout_iter">
  8016. <doc xml:space="preserve">A #PangoLayoutIter structure can be used to
  8017. iterate over the visual extents of a #PangoLayout.
  8018. The #PangoLayoutIter structure is opaque, and
  8019. has no user-visible fields.</doc>
  8020. <method name="at_last_line"
  8021. c:identifier="pango_layout_iter_at_last_line">
  8022. <doc xml:space="preserve">Determines whether @iter is on the last line of the layout.</doc>
  8023. <return-value transfer-ownership="none">
  8024. <doc xml:space="preserve">%TRUE if @iter is on the last line.</doc>
  8025. <type name="gboolean" c:type="gboolean"/>
  8026. </return-value>
  8027. <parameters>
  8028. <instance-parameter name="iter" transfer-ownership="none">
  8029. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8030. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8031. </instance-parameter>
  8032. </parameters>
  8033. </method>
  8034. <method name="copy" c:identifier="pango_layout_iter_copy" version="1.20">
  8035. <doc xml:space="preserve">Copies a #PangoLayoutIter.</doc>
  8036. <return-value transfer-ownership="full" nullable="1">
  8037. <doc xml:space="preserve">the newly allocated #PangoLayoutIter,
  8038. which should be freed with pango_layout_iter_free(),
  8039. or %NULL if @iter was %NULL.</doc>
  8040. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8041. </return-value>
  8042. <parameters>
  8043. <instance-parameter name="iter"
  8044. transfer-ownership="none"
  8045. nullable="1"
  8046. allow-none="1">
  8047. <doc xml:space="preserve">a #PangoLayoutIter, may be %NULL</doc>
  8048. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8049. </instance-parameter>
  8050. </parameters>
  8051. </method>
  8052. <method name="free" c:identifier="pango_layout_iter_free">
  8053. <doc xml:space="preserve">Frees an iterator that's no longer in use.</doc>
  8054. <return-value transfer-ownership="none">
  8055. <type name="none" c:type="void"/>
  8056. </return-value>
  8057. <parameters>
  8058. <instance-parameter name="iter"
  8059. transfer-ownership="none"
  8060. nullable="1"
  8061. allow-none="1">
  8062. <doc xml:space="preserve">a #PangoLayoutIter, may be %NULL</doc>
  8063. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8064. </instance-parameter>
  8065. </parameters>
  8066. </method>
  8067. <method name="get_baseline"
  8068. c:identifier="pango_layout_iter_get_baseline">
  8069. <doc xml:space="preserve">Gets the Y position of the current line's baseline, in layout
  8070. coordinates (origin at top left of the entire layout).</doc>
  8071. <return-value transfer-ownership="none">
  8072. <doc xml:space="preserve">baseline of current line.</doc>
  8073. <type name="gint" c:type="int"/>
  8074. </return-value>
  8075. <parameters>
  8076. <instance-parameter name="iter" transfer-ownership="none">
  8077. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8078. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8079. </instance-parameter>
  8080. </parameters>
  8081. </method>
  8082. <method name="get_char_extents"
  8083. c:identifier="pango_layout_iter_get_char_extents">
  8084. <doc xml:space="preserve">Gets the extents of the current character, in layout coordinates
  8085. (origin is the top left of the entire layout). Only logical extents
  8086. can sensibly be obtained for characters; ink extents make sense only
  8087. down to the level of clusters.</doc>
  8088. <return-value transfer-ownership="none">
  8089. <type name="none" c:type="void"/>
  8090. </return-value>
  8091. <parameters>
  8092. <instance-parameter name="iter" transfer-ownership="none">
  8093. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8094. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8095. </instance-parameter>
  8096. <parameter name="logical_rect"
  8097. direction="out"
  8098. caller-allocates="1"
  8099. transfer-ownership="none">
  8100. <doc xml:space="preserve">rectangle to fill with
  8101. logical extents</doc>
  8102. <type name="Rectangle" c:type="PangoRectangle*"/>
  8103. </parameter>
  8104. </parameters>
  8105. </method>
  8106. <method name="get_cluster_extents"
  8107. c:identifier="pango_layout_iter_get_cluster_extents">
  8108. <doc xml:space="preserve">Gets the extents of the current cluster, in layout coordinates
  8109. (origin is the top left of the entire layout).</doc>
  8110. <return-value transfer-ownership="none">
  8111. <type name="none" c:type="void"/>
  8112. </return-value>
  8113. <parameters>
  8114. <instance-parameter name="iter" transfer-ownership="none">
  8115. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8116. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8117. </instance-parameter>
  8118. <parameter name="ink_rect"
  8119. direction="out"
  8120. caller-allocates="1"
  8121. transfer-ownership="none"
  8122. optional="1"
  8123. allow-none="1">
  8124. <doc xml:space="preserve">rectangle to fill with ink extents, or %NULL</doc>
  8125. <type name="Rectangle" c:type="PangoRectangle*"/>
  8126. </parameter>
  8127. <parameter name="logical_rect"
  8128. direction="out"
  8129. caller-allocates="1"
  8130. transfer-ownership="none"
  8131. optional="1"
  8132. allow-none="1">
  8133. <doc xml:space="preserve">rectangle to fill with logical extents, or %NULL</doc>
  8134. <type name="Rectangle" c:type="PangoRectangle*"/>
  8135. </parameter>
  8136. </parameters>
  8137. </method>
  8138. <method name="get_index" c:identifier="pango_layout_iter_get_index">
  8139. <doc xml:space="preserve">Gets the current byte index. Note that iterating forward by char
  8140. moves in visual order, not logical order, so indexes may not be
  8141. sequential. Also, the index may be equal to the length of the text
  8142. in the layout, if on the %NULL run (see pango_layout_iter_get_run()).</doc>
  8143. <return-value transfer-ownership="none">
  8144. <doc xml:space="preserve">current byte index.</doc>
  8145. <type name="gint" c:type="int"/>
  8146. </return-value>
  8147. <parameters>
  8148. <instance-parameter name="iter" transfer-ownership="none">
  8149. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8150. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8151. </instance-parameter>
  8152. </parameters>
  8153. </method>
  8154. <method name="get_layout"
  8155. c:identifier="pango_layout_iter_get_layout"
  8156. version="1.20">
  8157. <doc xml:space="preserve">Gets the layout associated with a #PangoLayoutIter.</doc>
  8158. <return-value transfer-ownership="none">
  8159. <doc xml:space="preserve">the layout associated with @iter.</doc>
  8160. <type name="Layout" c:type="PangoLayout*"/>
  8161. </return-value>
  8162. <parameters>
  8163. <instance-parameter name="iter" transfer-ownership="none">
  8164. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8165. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8166. </instance-parameter>
  8167. </parameters>
  8168. </method>
  8169. <method name="get_layout_extents"
  8170. c:identifier="pango_layout_iter_get_layout_extents">
  8171. <doc xml:space="preserve">Obtains the extents of the #PangoLayout being iterated
  8172. over. @ink_rect or @logical_rect can be %NULL if you
  8173. aren't interested in them.</doc>
  8174. <return-value transfer-ownership="none">
  8175. <type name="none" c:type="void"/>
  8176. </return-value>
  8177. <parameters>
  8178. <instance-parameter name="iter" transfer-ownership="none">
  8179. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8180. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8181. </instance-parameter>
  8182. <parameter name="ink_rect"
  8183. direction="out"
  8184. caller-allocates="1"
  8185. transfer-ownership="none"
  8186. optional="1"
  8187. allow-none="1">
  8188. <doc xml:space="preserve">rectangle to fill with ink extents,
  8189. or %NULL</doc>
  8190. <type name="Rectangle" c:type="PangoRectangle*"/>
  8191. </parameter>
  8192. <parameter name="logical_rect"
  8193. direction="out"
  8194. caller-allocates="1"
  8195. transfer-ownership="none"
  8196. optional="1"
  8197. allow-none="1">
  8198. <doc xml:space="preserve">rectangle to fill with logical
  8199. extents, or %NULL</doc>
  8200. <type name="Rectangle" c:type="PangoRectangle*"/>
  8201. </parameter>
  8202. </parameters>
  8203. </method>
  8204. <method name="get_line" c:identifier="pango_layout_iter_get_line">
  8205. <doc xml:space="preserve">Gets the current line.
  8206. Use the faster pango_layout_iter_get_line_readonly() if you do not plan
  8207. to modify the contents of the line (glyphs, glyph widths, etc.).</doc>
  8208. <return-value transfer-ownership="full">
  8209. <doc xml:space="preserve">the current line.</doc>
  8210. <type name="LayoutLine" c:type="PangoLayoutLine*"/>
  8211. </return-value>
  8212. <parameters>
  8213. <instance-parameter name="iter" transfer-ownership="none">
  8214. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8215. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8216. </instance-parameter>
  8217. </parameters>
  8218. </method>
  8219. <method name="get_line_extents"
  8220. c:identifier="pango_layout_iter_get_line_extents">
  8221. <doc xml:space="preserve">Obtains the extents of the current line. @ink_rect or @logical_rect
  8222. can be %NULL if you aren't interested in them. Extents are in layout
  8223. coordinates (origin is the top-left corner of the entire
  8224. #PangoLayout). Thus the extents returned by this function will be
  8225. the same width/height but not at the same x/y as the extents
  8226. returned from pango_layout_line_get_extents().</doc>
  8227. <return-value transfer-ownership="none">
  8228. <type name="none" c:type="void"/>
  8229. </return-value>
  8230. <parameters>
  8231. <instance-parameter name="iter" transfer-ownership="none">
  8232. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8233. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8234. </instance-parameter>
  8235. <parameter name="ink_rect"
  8236. direction="out"
  8237. caller-allocates="1"
  8238. transfer-ownership="none"
  8239. optional="1"
  8240. allow-none="1">
  8241. <doc xml:space="preserve">rectangle to fill with ink extents, or %NULL</doc>
  8242. <type name="Rectangle" c:type="PangoRectangle*"/>
  8243. </parameter>
  8244. <parameter name="logical_rect"
  8245. direction="out"
  8246. caller-allocates="1"
  8247. transfer-ownership="none"
  8248. optional="1"
  8249. allow-none="1">
  8250. <doc xml:space="preserve">rectangle to fill with logical extents, or %NULL</doc>
  8251. <type name="Rectangle" c:type="PangoRectangle*"/>
  8252. </parameter>
  8253. </parameters>
  8254. </method>
  8255. <method name="get_line_readonly"
  8256. c:identifier="pango_layout_iter_get_line_readonly"
  8257. version="1.16">
  8258. <doc xml:space="preserve">Gets the current line for read-only access.
  8259. This is a faster alternative to pango_layout_iter_get_line(),
  8260. but the user is not expected
  8261. to modify the contents of the line (glyphs, glyph widths, etc.).</doc>
  8262. <return-value transfer-ownership="none">
  8263. <doc xml:space="preserve">the current line, that should not be
  8264. modified.</doc>
  8265. <type name="LayoutLine" c:type="PangoLayoutLine*"/>
  8266. </return-value>
  8267. <parameters>
  8268. <instance-parameter name="iter" transfer-ownership="none">
  8269. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8270. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8271. </instance-parameter>
  8272. </parameters>
  8273. </method>
  8274. <method name="get_line_yrange"
  8275. c:identifier="pango_layout_iter_get_line_yrange">
  8276. <doc xml:space="preserve">Divides the vertical space in the #PangoLayout being iterated over
  8277. between the lines in the layout, and returns the space belonging to
  8278. the current line. A line's range includes the line's logical
  8279. extents, plus half of the spacing above and below the line, if
  8280. pango_layout_set_spacing() has been called to set layout spacing.
  8281. The Y positions are in layout coordinates (origin at top left of the
  8282. entire layout).</doc>
  8283. <return-value transfer-ownership="none">
  8284. <type name="none" c:type="void"/>
  8285. </return-value>
  8286. <parameters>
  8287. <instance-parameter name="iter" transfer-ownership="none">
  8288. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8289. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8290. </instance-parameter>
  8291. <parameter name="y0_"
  8292. direction="out"
  8293. caller-allocates="0"
  8294. transfer-ownership="full"
  8295. optional="1"
  8296. allow-none="1">
  8297. <doc xml:space="preserve">start of line, or %NULL</doc>
  8298. <type name="gint" c:type="int*"/>
  8299. </parameter>
  8300. <parameter name="y1_"
  8301. direction="out"
  8302. caller-allocates="0"
  8303. transfer-ownership="full"
  8304. optional="1"
  8305. allow-none="1">
  8306. <doc xml:space="preserve">end of line, or %NULL</doc>
  8307. <type name="gint" c:type="int*"/>
  8308. </parameter>
  8309. </parameters>
  8310. </method>
  8311. <method name="get_run" c:identifier="pango_layout_iter_get_run">
  8312. <doc xml:space="preserve">Gets the current run. When iterating by run, at the end of each
  8313. line, there's a position with a %NULL run, so this function can return
  8314. %NULL. The %NULL run at the end of each line ensures that all lines have
  8315. at least one run, even lines consisting of only a newline.
  8316. Use the faster pango_layout_iter_get_run_readonly() if you do not plan
  8317. to modify the contents of the run (glyphs, glyph widths, etc.).</doc>
  8318. <return-value transfer-ownership="none" nullable="1">
  8319. <doc xml:space="preserve">the current run.</doc>
  8320. <type name="LayoutRun" c:type="PangoLayoutRun*"/>
  8321. </return-value>
  8322. <parameters>
  8323. <instance-parameter name="iter" transfer-ownership="none">
  8324. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8325. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8326. </instance-parameter>
  8327. </parameters>
  8328. </method>
  8329. <method name="get_run_extents"
  8330. c:identifier="pango_layout_iter_get_run_extents">
  8331. <doc xml:space="preserve">Gets the extents of the current run in layout coordinates
  8332. (origin is the top left of the entire layout).</doc>
  8333. <return-value transfer-ownership="none">
  8334. <type name="none" c:type="void"/>
  8335. </return-value>
  8336. <parameters>
  8337. <instance-parameter name="iter" transfer-ownership="none">
  8338. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8339. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8340. </instance-parameter>
  8341. <parameter name="ink_rect"
  8342. direction="out"
  8343. caller-allocates="1"
  8344. transfer-ownership="none"
  8345. optional="1"
  8346. allow-none="1">
  8347. <doc xml:space="preserve">rectangle to fill with ink extents, or %NULL</doc>
  8348. <type name="Rectangle" c:type="PangoRectangle*"/>
  8349. </parameter>
  8350. <parameter name="logical_rect"
  8351. direction="out"
  8352. caller-allocates="1"
  8353. transfer-ownership="none"
  8354. optional="1"
  8355. allow-none="1">
  8356. <doc xml:space="preserve">rectangle to fill with logical extents, or %NULL</doc>
  8357. <type name="Rectangle" c:type="PangoRectangle*"/>
  8358. </parameter>
  8359. </parameters>
  8360. </method>
  8361. <method name="get_run_readonly"
  8362. c:identifier="pango_layout_iter_get_run_readonly"
  8363. version="1.16">
  8364. <doc xml:space="preserve">Gets the current run. When iterating by run, at the end of each
  8365. line, there's a position with a %NULL run, so this function can return
  8366. %NULL. The %NULL run at the end of each line ensures that all lines have
  8367. at least one run, even lines consisting of only a newline.
  8368. This is a faster alternative to pango_layout_iter_get_run(),
  8369. but the user is not expected
  8370. to modify the contents of the run (glyphs, glyph widths, etc.).</doc>
  8371. <return-value transfer-ownership="none" nullable="1">
  8372. <doc xml:space="preserve">the current run, that
  8373. should not be modified.</doc>
  8374. <type name="LayoutRun" c:type="PangoLayoutRun*"/>
  8375. </return-value>
  8376. <parameters>
  8377. <instance-parameter name="iter" transfer-ownership="none">
  8378. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8379. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8380. </instance-parameter>
  8381. </parameters>
  8382. </method>
  8383. <method name="next_char" c:identifier="pango_layout_iter_next_char">
  8384. <doc xml:space="preserve">Moves @iter forward to the next character in visual order. If @iter was already at
  8385. the end of the layout, returns %FALSE.</doc>
  8386. <return-value transfer-ownership="none">
  8387. <doc xml:space="preserve">whether motion was possible.</doc>
  8388. <type name="gboolean" c:type="gboolean"/>
  8389. </return-value>
  8390. <parameters>
  8391. <instance-parameter name="iter" transfer-ownership="none">
  8392. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8393. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8394. </instance-parameter>
  8395. </parameters>
  8396. </method>
  8397. <method name="next_cluster"
  8398. c:identifier="pango_layout_iter_next_cluster">
  8399. <doc xml:space="preserve">Moves @iter forward to the next cluster in visual order. If @iter
  8400. was already at the end of the layout, returns %FALSE.</doc>
  8401. <return-value transfer-ownership="none">
  8402. <doc xml:space="preserve">whether motion was possible.</doc>
  8403. <type name="gboolean" c:type="gboolean"/>
  8404. </return-value>
  8405. <parameters>
  8406. <instance-parameter name="iter" transfer-ownership="none">
  8407. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8408. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8409. </instance-parameter>
  8410. </parameters>
  8411. </method>
  8412. <method name="next_line" c:identifier="pango_layout_iter_next_line">
  8413. <doc xml:space="preserve">Moves @iter forward to the start of the next line. If @iter is
  8414. already on the last line, returns %FALSE.</doc>
  8415. <return-value transfer-ownership="none">
  8416. <doc xml:space="preserve">whether motion was possible.</doc>
  8417. <type name="gboolean" c:type="gboolean"/>
  8418. </return-value>
  8419. <parameters>
  8420. <instance-parameter name="iter" transfer-ownership="none">
  8421. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8422. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8423. </instance-parameter>
  8424. </parameters>
  8425. </method>
  8426. <method name="next_run" c:identifier="pango_layout_iter_next_run">
  8427. <doc xml:space="preserve">Moves @iter forward to the next run in visual order. If @iter was
  8428. already at the end of the layout, returns %FALSE.</doc>
  8429. <return-value transfer-ownership="none">
  8430. <doc xml:space="preserve">whether motion was possible.</doc>
  8431. <type name="gboolean" c:type="gboolean"/>
  8432. </return-value>
  8433. <parameters>
  8434. <instance-parameter name="iter" transfer-ownership="none">
  8435. <doc xml:space="preserve">a #PangoLayoutIter</doc>
  8436. <type name="LayoutIter" c:type="PangoLayoutIter*"/>
  8437. </instance-parameter>
  8438. </parameters>
  8439. </method>
  8440. </record>
  8441. <record name="LayoutLine"
  8442. c:type="PangoLayoutLine"
  8443. glib:type-name="PangoLayoutLine"
  8444. glib:get-type="pango_layout_line_get_type"
  8445. c:symbol-prefix="layout_line">
  8446. <doc xml:space="preserve">The #PangoLayoutLine structure represents one of the lines resulting
  8447. from laying out a paragraph via #PangoLayout. #PangoLayoutLine
  8448. structures are obtained by calling pango_layout_get_line() and
  8449. are only valid until the text, attributes, or settings of the
  8450. parent #PangoLayout are modified.
  8451. Routines for rendering PangoLayout objects are provided in
  8452. code specific to each rendering system.</doc>
  8453. <field name="layout" writable="1">
  8454. <doc xml:space="preserve">the layout this line belongs to, might be %NULL</doc>
  8455. <type name="Layout" c:type="PangoLayout*"/>
  8456. </field>
  8457. <field name="start_index" writable="1">
  8458. <doc xml:space="preserve">start of line as byte index into layout-&gt;text</doc>
  8459. <type name="gint" c:type="gint"/>
  8460. </field>
  8461. <field name="length" writable="1">
  8462. <doc xml:space="preserve">length of line in bytes</doc>
  8463. <type name="gint" c:type="gint"/>
  8464. </field>
  8465. <field name="runs" writable="1">
  8466. <doc xml:space="preserve">list of runs in the
  8467. line, from left to right</doc>
  8468. <type name="GLib.SList" c:type="GSList*">
  8469. <type name="gpointer" c:type="gpointer"/>
  8470. </type>
  8471. </field>
  8472. <field name="is_paragraph_start" writable="1" bits="1">
  8473. <doc xml:space="preserve">#TRUE if this is the first line of the paragraph</doc>
  8474. <type name="guint" c:type="guint"/>
  8475. </field>
  8476. <field name="resolved_dir" writable="1" bits="3">
  8477. <doc xml:space="preserve">#Resolved PangoDirection of line</doc>
  8478. <type name="guint" c:type="guint"/>
  8479. </field>
  8480. <method name="get_extents" c:identifier="pango_layout_line_get_extents">
  8481. <doc xml:space="preserve">Computes the logical and ink extents of a layout line. See
  8482. pango_font_get_glyph_extents() for details about the interpretation
  8483. of the rectangles.</doc>
  8484. <return-value transfer-ownership="none">
  8485. <type name="none" c:type="void"/>
  8486. </return-value>
  8487. <parameters>
  8488. <instance-parameter name="line" transfer-ownership="none">
  8489. <doc xml:space="preserve">a #PangoLayoutLine</doc>
  8490. <type name="LayoutLine" c:type="PangoLayoutLine*"/>
  8491. </instance-parameter>
  8492. <parameter name="ink_rect"
  8493. direction="out"
  8494. caller-allocates="1"
  8495. transfer-ownership="none"
  8496. optional="1"
  8497. allow-none="1">
  8498. <doc xml:space="preserve">rectangle used to store the extents of
  8499. the glyph string as drawn, or %NULL</doc>
  8500. <type name="Rectangle" c:type="PangoRectangle*"/>
  8501. </parameter>
  8502. <parameter name="logical_rect"
  8503. direction="out"
  8504. caller-allocates="1"
  8505. transfer-ownership="none"
  8506. optional="1"
  8507. allow-none="1">
  8508. <doc xml:space="preserve">rectangle used to store the logical
  8509. extents of the glyph string, or %NULL</doc>
  8510. <type name="Rectangle" c:type="PangoRectangle*"/>
  8511. </parameter>
  8512. </parameters>
  8513. </method>
  8514. <method name="get_pixel_extents"
  8515. c:identifier="pango_layout_line_get_pixel_extents">
  8516. <doc xml:space="preserve">Computes the logical and ink extents of @layout_line in device units.
  8517. This function just calls pango_layout_line_get_extents() followed by
  8518. two pango_extents_to_pixels() calls, rounding @ink_rect and @logical_rect
  8519. such that the rounded rectangles fully contain the unrounded one (that is,
  8520. passes them as first argument to pango_extents_to_pixels()).</doc>
  8521. <return-value transfer-ownership="none">
  8522. <type name="none" c:type="void"/>
  8523. </return-value>
  8524. <parameters>
  8525. <instance-parameter name="layout_line" transfer-ownership="none">
  8526. <doc xml:space="preserve">a #PangoLayoutLine</doc>
  8527. <type name="LayoutLine" c:type="PangoLayoutLine*"/>
  8528. </instance-parameter>
  8529. <parameter name="ink_rect"
  8530. direction="out"
  8531. caller-allocates="1"
  8532. transfer-ownership="none"
  8533. optional="1"
  8534. allow-none="1">
  8535. <doc xml:space="preserve">rectangle used to store the extents of
  8536. the glyph string as drawn, or %NULL</doc>
  8537. <type name="Rectangle" c:type="PangoRectangle*"/>
  8538. </parameter>
  8539. <parameter name="logical_rect"
  8540. direction="out"
  8541. caller-allocates="1"
  8542. transfer-ownership="none"
  8543. optional="1"
  8544. allow-none="1">
  8545. <doc xml:space="preserve">rectangle used to store the logical
  8546. extents of the glyph string, or %NULL</doc>
  8547. <type name="Rectangle" c:type="PangoRectangle*"/>
  8548. </parameter>
  8549. </parameters>
  8550. </method>
  8551. <method name="get_x_ranges"
  8552. c:identifier="pango_layout_line_get_x_ranges">
  8553. <doc xml:space="preserve">Gets a list of visual ranges corresponding to a given logical range.
  8554. This list is not necessarily minimal - there may be consecutive
  8555. ranges which are adjacent. The ranges will be sorted from left to
  8556. right. The ranges are with respect to the left edge of the entire
  8557. layout, not with respect to the line.</doc>
  8558. <return-value transfer-ownership="none">
  8559. <type name="none" c:type="void"/>
  8560. </return-value>
  8561. <parameters>
  8562. <instance-parameter name="line" transfer-ownership="none">
  8563. <doc xml:space="preserve">a #PangoLayoutLine</doc>
  8564. <type name="LayoutLine" c:type="PangoLayoutLine*"/>
  8565. </instance-parameter>
  8566. <parameter name="start_index" transfer-ownership="none">
  8567. <doc xml:space="preserve">Start byte index of the logical range. If this value
  8568. is less than the start index for the line, then
  8569. the first range will extend all the way to the leading
  8570. edge of the layout. Otherwise it will start at the
  8571. leading edge of the first character.</doc>
  8572. <type name="gint" c:type="int"/>
  8573. </parameter>
  8574. <parameter name="end_index" transfer-ownership="none">
  8575. <doc xml:space="preserve">Ending byte index of the logical range. If this value
  8576. is greater than the end index for the line, then
  8577. the last range will extend all the way to the trailing
  8578. edge of the layout. Otherwise, it will end at the
  8579. trailing edge of the last character.</doc>
  8580. <type name="gint" c:type="int"/>
  8581. </parameter>
  8582. <parameter name="ranges"
  8583. direction="out"
  8584. caller-allocates="0"
  8585. transfer-ownership="full">
  8586. <doc xml:space="preserve">
  8587. location to store a pointer to an array of ranges.
  8588. The array will be of length &lt;literal&gt;2*n_ranges&lt;/literal&gt;,
  8589. with each range starting at &lt;literal&gt;(*ranges)[2*n]&lt;/literal&gt;
  8590. and of width &lt;literal&gt;(*ranges)[2*n + 1] - (*ranges)[2*n]&lt;/literal&gt;.
  8591. This array must be freed with g_free(). The coordinates are relative
  8592. to the layout and are in Pango units.</doc>
  8593. <array length="3" zero-terminated="0" c:type="int**">
  8594. <type name="gint" c:type="int*"/>
  8595. </array>
  8596. </parameter>
  8597. <parameter name="n_ranges"
  8598. direction="out"
  8599. caller-allocates="0"
  8600. transfer-ownership="full">
  8601. <doc xml:space="preserve">The number of ranges stored in @ranges.</doc>
  8602. <type name="gint" c:type="int*"/>
  8603. </parameter>
  8604. </parameters>
  8605. </method>
  8606. <method name="index_to_x" c:identifier="pango_layout_line_index_to_x">
  8607. <doc xml:space="preserve">Converts an index within a line to a X position.</doc>
  8608. <return-value transfer-ownership="none">
  8609. <type name="none" c:type="void"/>
  8610. </return-value>
  8611. <parameters>
  8612. <instance-parameter name="line" transfer-ownership="none">
  8613. <doc xml:space="preserve">a #PangoLayoutLine</doc>
  8614. <type name="LayoutLine" c:type="PangoLayoutLine*"/>
  8615. </instance-parameter>
  8616. <parameter name="index_" transfer-ownership="none">
  8617. <doc xml:space="preserve">byte offset of a grapheme within the layout</doc>
  8618. <type name="gint" c:type="int"/>
  8619. </parameter>
  8620. <parameter name="trailing" transfer-ownership="none">
  8621. <doc xml:space="preserve">an integer indicating the edge of the grapheme to retrieve
  8622. the position of. If &gt; 0, the trailing edge of the grapheme,
  8623. if 0, the leading of the grapheme.</doc>
  8624. <type name="gboolean" c:type="gboolean"/>
  8625. </parameter>
  8626. <parameter name="x_pos"
  8627. direction="out"
  8628. caller-allocates="0"
  8629. transfer-ownership="full">
  8630. <doc xml:space="preserve">location to store the x_offset (in Pango unit)</doc>
  8631. <type name="gint" c:type="int*"/>
  8632. </parameter>
  8633. </parameters>
  8634. </method>
  8635. <method name="ref" c:identifier="pango_layout_line_ref" version="1.10">
  8636. <doc xml:space="preserve">Increase the reference count of a #PangoLayoutLine by one.</doc>
  8637. <return-value transfer-ownership="full">
  8638. <doc xml:space="preserve">the line passed in.</doc>
  8639. <type name="LayoutLine" c:type="PangoLayoutLine*"/>
  8640. </return-value>
  8641. <parameters>
  8642. <instance-parameter name="line"
  8643. transfer-ownership="none"
  8644. nullable="1"
  8645. allow-none="1">
  8646. <doc xml:space="preserve">a #PangoLayoutLine, may be %NULL</doc>
  8647. <type name="LayoutLine" c:type="PangoLayoutLine*"/>
  8648. </instance-parameter>
  8649. </parameters>
  8650. </method>
  8651. <method name="unref" c:identifier="pango_layout_line_unref">
  8652. <doc xml:space="preserve">Decrease the reference count of a #PangoLayoutLine by one.
  8653. If the result is zero, the line and all associated memory
  8654. will be freed.</doc>
  8655. <return-value transfer-ownership="none">
  8656. <type name="none" c:type="void"/>
  8657. </return-value>
  8658. <parameters>
  8659. <instance-parameter name="line" transfer-ownership="none">
  8660. <doc xml:space="preserve">a #PangoLayoutLine</doc>
  8661. <type name="LayoutLine" c:type="PangoLayoutLine*"/>
  8662. </instance-parameter>
  8663. </parameters>
  8664. </method>
  8665. <method name="x_to_index" c:identifier="pango_layout_line_x_to_index">
  8666. <doc xml:space="preserve">Converts from x offset to the byte index of the corresponding
  8667. character within the text of the layout. If @x_pos is outside the line,
  8668. @index_ and @trailing will point to the very first or very last position
  8669. in the line. This determination is based on the resolved direction
  8670. of the paragraph; for example, if the resolved direction is
  8671. right-to-left, then an X position to the right of the line (after it)
  8672. results in 0 being stored in @index_ and @trailing. An X position to the
  8673. left of the line results in @index_ pointing to the (logical) last
  8674. grapheme in the line and @trailing being set to the number of characters
  8675. in that grapheme. The reverse is true for a left-to-right line.</doc>
  8676. <return-value transfer-ownership="none">
  8677. <doc xml:space="preserve">%FALSE if @x_pos was outside the line, %TRUE if inside</doc>
  8678. <type name="gboolean" c:type="gboolean"/>
  8679. </return-value>
  8680. <parameters>
  8681. <instance-parameter name="line" transfer-ownership="none">
  8682. <doc xml:space="preserve">a #PangoLayoutLine</doc>
  8683. <type name="LayoutLine" c:type="PangoLayoutLine*"/>
  8684. </instance-parameter>
  8685. <parameter name="x_pos" transfer-ownership="none">
  8686. <doc xml:space="preserve">the X offset (in Pango units)
  8687. from the left edge of the line.</doc>
  8688. <type name="gint" c:type="int"/>
  8689. </parameter>
  8690. <parameter name="index_"
  8691. direction="out"
  8692. caller-allocates="0"
  8693. transfer-ownership="full">
  8694. <doc xml:space="preserve">location to store calculated byte index for
  8695. the grapheme in which the user clicked.</doc>
  8696. <type name="gint" c:type="int*"/>
  8697. </parameter>
  8698. <parameter name="trailing"
  8699. direction="out"
  8700. caller-allocates="0"
  8701. transfer-ownership="full">
  8702. <doc xml:space="preserve">location to store an integer indicating where
  8703. in the grapheme the user clicked. It will either
  8704. be zero, or the number of characters in the
  8705. grapheme. 0 represents the leading edge of the grapheme.</doc>
  8706. <type name="gint" c:type="int*"/>
  8707. </parameter>
  8708. </parameters>
  8709. </method>
  8710. </record>
  8711. <record name="LogAttr" c:type="PangoLogAttr">
  8712. <doc xml:space="preserve">The #PangoLogAttr structure stores information
  8713. about the attributes of a single character.</doc>
  8714. <field name="is_line_break" writable="1" bits="1">
  8715. <doc xml:space="preserve">if set, can break line in front of character</doc>
  8716. <type name="guint" c:type="guint"/>
  8717. </field>
  8718. <field name="is_mandatory_break" writable="1" bits="1">
  8719. <doc xml:space="preserve">if set, must break line in front of character</doc>
  8720. <type name="guint" c:type="guint"/>
  8721. </field>
  8722. <field name="is_char_break" writable="1" bits="1">
  8723. <doc xml:space="preserve">if set, can break here when doing character wrapping</doc>
  8724. <type name="guint" c:type="guint"/>
  8725. </field>
  8726. <field name="is_white" writable="1" bits="1">
  8727. <doc xml:space="preserve">is whitespace character</doc>
  8728. <type name="guint" c:type="guint"/>
  8729. </field>
  8730. <field name="is_cursor_position" writable="1" bits="1">
  8731. <doc xml:space="preserve">if set, cursor can appear in front of character.
  8732. i.e. this is a grapheme boundary, or the first character
  8733. in the text.
  8734. This flag implements Unicode's
  8735. &lt;ulink url="http://www.unicode.org/reports/tr29/"&gt;Grapheme
  8736. Cluster Boundaries&lt;/ulink&gt; semantics.</doc>
  8737. <type name="guint" c:type="guint"/>
  8738. </field>
  8739. <field name="is_word_start" writable="1" bits="1">
  8740. <doc xml:space="preserve">is first character in a word</doc>
  8741. <type name="guint" c:type="guint"/>
  8742. </field>
  8743. <field name="is_word_end" writable="1" bits="1">
  8744. <doc xml:space="preserve">is first non-word char after a word
  8745. Note that in degenerate cases, you could have both @is_word_start
  8746. and @is_word_end set for some character.</doc>
  8747. <type name="guint" c:type="guint"/>
  8748. </field>
  8749. <field name="is_sentence_boundary" writable="1" bits="1">
  8750. <doc xml:space="preserve">is a sentence boundary.
  8751. There are two ways to divide sentences. The first assigns all
  8752. inter-sentence whitespace/control/format chars to some sentence,
  8753. so all chars are in some sentence; @is_sentence_boundary denotes
  8754. the boundaries there. The second way doesn't assign
  8755. between-sentence spaces, etc. to any sentence, so
  8756. @is_sentence_start/@is_sentence_end mark the boundaries of those sentences.</doc>
  8757. <type name="guint" c:type="guint"/>
  8758. </field>
  8759. <field name="is_sentence_start" writable="1" bits="1">
  8760. <doc xml:space="preserve">is first character in a sentence</doc>
  8761. <type name="guint" c:type="guint"/>
  8762. </field>
  8763. <field name="is_sentence_end" writable="1" bits="1">
  8764. <doc xml:space="preserve">is first char after a sentence.
  8765. Note that in degenerate cases, you could have both @is_sentence_start
  8766. and @is_sentence_end set for some character. (e.g. no space after a
  8767. period, so the next sentence starts right away)</doc>
  8768. <type name="guint" c:type="guint"/>
  8769. </field>
  8770. <field name="backspace_deletes_character" writable="1" bits="1">
  8771. <doc xml:space="preserve">if set, backspace deletes one character
  8772. rather than the entire grapheme cluster. This
  8773. field is only meaningful on grapheme
  8774. boundaries (where @is_cursor_position is
  8775. set). In some languages, the full grapheme
  8776. (e.g. letter + diacritics) is considered a
  8777. unit, while in others, each decomposed
  8778. character in the grapheme is a unit. In the
  8779. default implementation of pango_break(), this
  8780. bit is set on all grapheme boundaries except
  8781. those following Latin, Cyrillic or Greek base characters.</doc>
  8782. <type name="guint" c:type="guint"/>
  8783. </field>
  8784. <field name="is_expandable_space" writable="1" bits="1">
  8785. <doc xml:space="preserve">is a whitespace character that can possibly be
  8786. expanded for justification purposes. (Since: 1.18)</doc>
  8787. <type name="guint" c:type="guint"/>
  8788. </field>
  8789. <field name="is_word_boundary" writable="1" bits="1">
  8790. <doc xml:space="preserve">is a word boundary.
  8791. More specifically, means that this is not a position in the middle
  8792. of a word. For example, both sides of a punctuation mark are
  8793. considered word boundaries. This flag is particularly useful when
  8794. selecting text word-by-word.
  8795. This flag implements Unicode's
  8796. &lt;ulink url="http://www.unicode.org/reports/tr29/"&gt;Word
  8797. Boundaries&lt;/ulink&gt; semantics. (Since: 1.22)</doc>
  8798. <type name="guint" c:type="guint"/>
  8799. </field>
  8800. </record>
  8801. <record name="Map" c:type="PangoMap" disguised="1">
  8802. <method name="get_engine"
  8803. c:identifier="pango_map_get_engine"
  8804. introspectable="0"
  8805. deprecated="1"
  8806. deprecated-version="1.38">
  8807. <doc xml:space="preserve">Do not use. Does not do anything.</doc>
  8808. <return-value>
  8809. <doc xml:space="preserve">%NULL.</doc>
  8810. <type name="Engine" c:type="PangoEngine*"/>
  8811. </return-value>
  8812. <parameters>
  8813. <instance-parameter name="map" transfer-ownership="none">
  8814. <doc xml:space="preserve">a #PangoMap</doc>
  8815. <type name="Map" c:type="PangoMap*"/>
  8816. </instance-parameter>
  8817. <parameter name="script" transfer-ownership="none">
  8818. <doc xml:space="preserve">a #PangoScript</doc>
  8819. <type name="Script" c:type="PangoScript"/>
  8820. </parameter>
  8821. </parameters>
  8822. </method>
  8823. <method name="get_engines"
  8824. c:identifier="pango_map_get_engines"
  8825. version="1.4"
  8826. introspectable="0"
  8827. deprecated="1"
  8828. deprecated-version="1.38">
  8829. <doc xml:space="preserve">Do not use. Does not do anything.</doc>
  8830. <return-value transfer-ownership="none">
  8831. <type name="none" c:type="void"/>
  8832. </return-value>
  8833. <parameters>
  8834. <instance-parameter name="map" transfer-ownership="none">
  8835. <doc xml:space="preserve">a #PangoMap</doc>
  8836. <type name="Map" c:type="PangoMap*"/>
  8837. </instance-parameter>
  8838. <parameter name="script" transfer-ownership="none">
  8839. <doc xml:space="preserve">a #PangoScript</doc>
  8840. <type name="Script" c:type="PangoScript"/>
  8841. </parameter>
  8842. <parameter name="exact_engines" transfer-ownership="none">
  8843. <doc xml:space="preserve">location to store list of engines that exactly
  8844. handle this script.</doc>
  8845. <type name="GLib.SList" c:type="GSList**">
  8846. <type name="gpointer" c:type="gpointer"/>
  8847. </type>
  8848. </parameter>
  8849. <parameter name="fallback_engines" transfer-ownership="none">
  8850. <doc xml:space="preserve">location to store list of engines that approximately
  8851. handle this script.</doc>
  8852. <type name="GLib.SList" c:type="GSList**">
  8853. <type name="gpointer" c:type="gpointer"/>
  8854. </type>
  8855. </parameter>
  8856. </parameters>
  8857. </method>
  8858. </record>
  8859. <record name="MapEntry" c:type="PangoMapEntry" disguised="1">
  8860. </record>
  8861. <record name="Matrix"
  8862. c:type="PangoMatrix"
  8863. version="1.6"
  8864. glib:type-name="PangoMatrix"
  8865. glib:get-type="pango_matrix_get_type"
  8866. c:symbol-prefix="matrix">
  8867. <doc xml:space="preserve">A structure specifying a transformation between user-space
  8868. coordinates and device coordinates. The transformation
  8869. is given by
  8870. &lt;programlisting&gt;
  8871. x_device = x_user * matrix-&gt;xx + y_user * matrix-&gt;xy + matrix-&gt;x0;
  8872. y_device = x_user * matrix-&gt;yx + y_user * matrix-&gt;yy + matrix-&gt;y0;
  8873. &lt;/programlisting&gt;</doc>
  8874. <field name="xx" writable="1">
  8875. <doc xml:space="preserve">1st component of the transformation matrix</doc>
  8876. <type name="gdouble" c:type="double"/>
  8877. </field>
  8878. <field name="xy" writable="1">
  8879. <doc xml:space="preserve">2nd component of the transformation matrix</doc>
  8880. <type name="gdouble" c:type="double"/>
  8881. </field>
  8882. <field name="yx" writable="1">
  8883. <doc xml:space="preserve">3rd component of the transformation matrix</doc>
  8884. <type name="gdouble" c:type="double"/>
  8885. </field>
  8886. <field name="yy" writable="1">
  8887. <doc xml:space="preserve">4th component of the transformation matrix</doc>
  8888. <type name="gdouble" c:type="double"/>
  8889. </field>
  8890. <field name="x0" writable="1">
  8891. <doc xml:space="preserve">x translation</doc>
  8892. <type name="gdouble" c:type="double"/>
  8893. </field>
  8894. <field name="y0" writable="1">
  8895. <doc xml:space="preserve">y translation</doc>
  8896. <type name="gdouble" c:type="double"/>
  8897. </field>
  8898. <method name="concat" c:identifier="pango_matrix_concat" version="1.6">
  8899. <doc xml:space="preserve">Changes the transformation represented by @matrix to be the
  8900. transformation given by first applying transformation
  8901. given by @new_matrix then applying the original transformation.</doc>
  8902. <return-value transfer-ownership="none">
  8903. <type name="none" c:type="void"/>
  8904. </return-value>
  8905. <parameters>
  8906. <instance-parameter name="matrix" transfer-ownership="none">
  8907. <doc xml:space="preserve">a #PangoMatrix</doc>
  8908. <type name="Matrix" c:type="PangoMatrix*"/>
  8909. </instance-parameter>
  8910. <parameter name="new_matrix" transfer-ownership="none">
  8911. <doc xml:space="preserve">a #PangoMatrix</doc>
  8912. <type name="Matrix" c:type="const PangoMatrix*"/>
  8913. </parameter>
  8914. </parameters>
  8915. </method>
  8916. <method name="copy" c:identifier="pango_matrix_copy" version="1.6">
  8917. <doc xml:space="preserve">Copies a #PangoMatrix.</doc>
  8918. <return-value transfer-ownership="full" nullable="1">
  8919. <doc xml:space="preserve">the newly allocated #PangoMatrix, which
  8920. should be freed with pango_matrix_free(), or %NULL if
  8921. @matrix was %NULL.</doc>
  8922. <type name="Matrix" c:type="PangoMatrix*"/>
  8923. </return-value>
  8924. <parameters>
  8925. <instance-parameter name="matrix"
  8926. transfer-ownership="none"
  8927. nullable="1"
  8928. allow-none="1">
  8929. <doc xml:space="preserve">a #PangoMatrix, may be %NULL</doc>
  8930. <type name="Matrix" c:type="const PangoMatrix*"/>
  8931. </instance-parameter>
  8932. </parameters>
  8933. </method>
  8934. <method name="free" c:identifier="pango_matrix_free" version="1.6">
  8935. <doc xml:space="preserve">Free a #PangoMatrix created with pango_matrix_copy().</doc>
  8936. <return-value transfer-ownership="none">
  8937. <type name="none" c:type="void"/>
  8938. </return-value>
  8939. <parameters>
  8940. <instance-parameter name="matrix"
  8941. transfer-ownership="none"
  8942. nullable="1"
  8943. allow-none="1">
  8944. <doc xml:space="preserve">a #PangoMatrix, may be %NULL</doc>
  8945. <type name="Matrix" c:type="PangoMatrix*"/>
  8946. </instance-parameter>
  8947. </parameters>
  8948. </method>
  8949. <method name="get_font_scale_factor"
  8950. c:identifier="pango_matrix_get_font_scale_factor"
  8951. version="1.12">
  8952. <doc xml:space="preserve">Returns the scale factor of a matrix on the height of the font.
  8953. That is, the scale factor in the direction perpendicular to the
  8954. vector that the X coordinate is mapped to. If the scale in the X
  8955. coordinate is needed as well, use pango_matrix_get_font_scale_factors().</doc>
  8956. <return-value transfer-ownership="none">
  8957. <doc xml:space="preserve">the scale factor of @matrix on the height of the font,
  8958. or 1.0 if @matrix is %NULL.</doc>
  8959. <type name="gdouble" c:type="double"/>
  8960. </return-value>
  8961. <parameters>
  8962. <instance-parameter name="matrix"
  8963. transfer-ownership="none"
  8964. nullable="1"
  8965. allow-none="1">
  8966. <doc xml:space="preserve">a #PangoMatrix, may be %NULL</doc>
  8967. <type name="Matrix" c:type="const PangoMatrix*"/>
  8968. </instance-parameter>
  8969. </parameters>
  8970. </method>
  8971. <method name="get_font_scale_factors"
  8972. c:identifier="pango_matrix_get_font_scale_factors"
  8973. version="1.38">
  8974. <doc xml:space="preserve">Calculates the scale factor of a matrix on the width and height of the font.
  8975. That is, @xscale is the scale factor in the direction of the X coordinate,
  8976. and @yscale is the scale factor in the direction perpendicular to the
  8977. vector that the X coordinate is mapped to.
  8978. Note that output numbers will always be non-negative.</doc>
  8979. <return-value transfer-ownership="none">
  8980. <type name="none" c:type="void"/>
  8981. </return-value>
  8982. <parameters>
  8983. <instance-parameter name="matrix"
  8984. transfer-ownership="none"
  8985. nullable="1"
  8986. allow-none="1">
  8987. <doc xml:space="preserve">a #PangoMatrix, or %NULL</doc>
  8988. <type name="Matrix" c:type="const PangoMatrix*"/>
  8989. </instance-parameter>
  8990. <parameter name="xscale"
  8991. direction="out"
  8992. caller-allocates="0"
  8993. transfer-ownership="full"
  8994. optional="1"
  8995. allow-none="1">
  8996. <doc xml:space="preserve">output scale factor in the x direction, or %NULL</doc>
  8997. <type name="gdouble" c:type="double*"/>
  8998. </parameter>
  8999. <parameter name="yscale"
  9000. direction="out"
  9001. caller-allocates="0"
  9002. transfer-ownership="full"
  9003. optional="1"
  9004. allow-none="1">
  9005. <doc xml:space="preserve">output scale factor perpendicular to the x direction, or %NULL</doc>
  9006. <type name="gdouble" c:type="double*"/>
  9007. </parameter>
  9008. </parameters>
  9009. </method>
  9010. <method name="rotate" c:identifier="pango_matrix_rotate" version="1.6">
  9011. <doc xml:space="preserve">Changes the transformation represented by @matrix to be the
  9012. transformation given by first rotating by @degrees degrees
  9013. counter-clockwise then applying the original transformation.</doc>
  9014. <return-value transfer-ownership="none">
  9015. <type name="none" c:type="void"/>
  9016. </return-value>
  9017. <parameters>
  9018. <instance-parameter name="matrix" transfer-ownership="none">
  9019. <doc xml:space="preserve">a #PangoMatrix</doc>
  9020. <type name="Matrix" c:type="PangoMatrix*"/>
  9021. </instance-parameter>
  9022. <parameter name="degrees" transfer-ownership="none">
  9023. <doc xml:space="preserve">degrees to rotate counter-clockwise</doc>
  9024. <type name="gdouble" c:type="double"/>
  9025. </parameter>
  9026. </parameters>
  9027. </method>
  9028. <method name="scale" c:identifier="pango_matrix_scale" version="1.6">
  9029. <doc xml:space="preserve">Changes the transformation represented by @matrix to be the
  9030. transformation given by first scaling by @sx in the X direction
  9031. and @sy in the Y direction then applying the original
  9032. transformation.</doc>
  9033. <return-value transfer-ownership="none">
  9034. <type name="none" c:type="void"/>
  9035. </return-value>
  9036. <parameters>
  9037. <instance-parameter name="matrix" transfer-ownership="none">
  9038. <doc xml:space="preserve">a #PangoMatrix</doc>
  9039. <type name="Matrix" c:type="PangoMatrix*"/>
  9040. </instance-parameter>
  9041. <parameter name="scale_x" transfer-ownership="none">
  9042. <doc xml:space="preserve">amount to scale by in X direction</doc>
  9043. <type name="gdouble" c:type="double"/>
  9044. </parameter>
  9045. <parameter name="scale_y" transfer-ownership="none">
  9046. <doc xml:space="preserve">amount to scale by in Y direction</doc>
  9047. <type name="gdouble" c:type="double"/>
  9048. </parameter>
  9049. </parameters>
  9050. </method>
  9051. <method name="transform_distance"
  9052. c:identifier="pango_matrix_transform_distance"
  9053. version="1.16">
  9054. <doc xml:space="preserve">Transforms the distance vector (@dx,@dy) by @matrix. This is
  9055. similar to pango_matrix_transform_point() except that the translation
  9056. components of the transformation are ignored. The calculation of
  9057. the returned vector is as follows:
  9058. &lt;programlisting&gt;
  9059. dx2 = dx1 * xx + dy1 * xy;
  9060. dy2 = dx1 * yx + dy1 * yy;
  9061. &lt;/programlisting&gt;
  9062. Affine transformations are position invariant, so the same vector
  9063. always transforms to the same vector. If (@x1,@y1) transforms
  9064. to (@x2,@y2) then (@x1+@dx1,@y1+@dy1) will transform to
  9065. (@x1+@dx2,@y1+@dy2) for all values of @x1 and @x2.</doc>
  9066. <return-value transfer-ownership="none">
  9067. <type name="none" c:type="void"/>
  9068. </return-value>
  9069. <parameters>
  9070. <instance-parameter name="matrix"
  9071. transfer-ownership="none"
  9072. nullable="1"
  9073. allow-none="1">
  9074. <doc xml:space="preserve">a #PangoMatrix, or %NULL</doc>
  9075. <type name="Matrix" c:type="const PangoMatrix*"/>
  9076. </instance-parameter>
  9077. <parameter name="dx"
  9078. direction="inout"
  9079. caller-allocates="0"
  9080. transfer-ownership="full">
  9081. <doc xml:space="preserve">in/out X component of a distance vector</doc>
  9082. <type name="gdouble" c:type="double*"/>
  9083. </parameter>
  9084. <parameter name="dy"
  9085. direction="inout"
  9086. caller-allocates="0"
  9087. transfer-ownership="full">
  9088. <doc xml:space="preserve">in/out Y component of a distance vector</doc>
  9089. <type name="gdouble" c:type="double*"/>
  9090. </parameter>
  9091. </parameters>
  9092. </method>
  9093. <method name="transform_pixel_rectangle"
  9094. c:identifier="pango_matrix_transform_pixel_rectangle"
  9095. version="1.16">
  9096. <doc xml:space="preserve">First transforms the @rect using @matrix, then calculates the bounding box
  9097. of the transformed rectangle. The rectangle should be in device units
  9098. (pixels).
  9099. This function is useful for example when you want to draw a rotated
  9100. @PangoLayout to an image buffer, and want to know how large the image
  9101. should be and how much you should shift the layout when rendering.
  9102. For better accuracy, you should use pango_matrix_transform_rectangle() on
  9103. original rectangle in Pango units and convert to pixels afterward
  9104. using pango_extents_to_pixels()'s first argument.</doc>
  9105. <return-value transfer-ownership="none">
  9106. <type name="none" c:type="void"/>
  9107. </return-value>
  9108. <parameters>
  9109. <instance-parameter name="matrix"
  9110. transfer-ownership="none"
  9111. nullable="1"
  9112. allow-none="1">
  9113. <doc xml:space="preserve">a #PangoMatrix, or %NULL</doc>
  9114. <type name="Matrix" c:type="const PangoMatrix*"/>
  9115. </instance-parameter>
  9116. <parameter name="rect"
  9117. direction="inout"
  9118. caller-allocates="0"
  9119. transfer-ownership="full"
  9120. nullable="1"
  9121. allow-none="1">
  9122. <doc xml:space="preserve">in/out bounding box in device units, or %NULL</doc>
  9123. <type name="Rectangle" c:type="PangoRectangle*"/>
  9124. </parameter>
  9125. </parameters>
  9126. </method>
  9127. <method name="transform_point"
  9128. c:identifier="pango_matrix_transform_point"
  9129. version="1.16">
  9130. <doc xml:space="preserve">Transforms the point (@x, @y) by @matrix.</doc>
  9131. <return-value transfer-ownership="none">
  9132. <type name="none" c:type="void"/>
  9133. </return-value>
  9134. <parameters>
  9135. <instance-parameter name="matrix"
  9136. transfer-ownership="none"
  9137. nullable="1"
  9138. allow-none="1">
  9139. <doc xml:space="preserve">a #PangoMatrix, or %NULL</doc>
  9140. <type name="Matrix" c:type="const PangoMatrix*"/>
  9141. </instance-parameter>
  9142. <parameter name="x"
  9143. direction="inout"
  9144. caller-allocates="0"
  9145. transfer-ownership="full">
  9146. <doc xml:space="preserve">in/out X position</doc>
  9147. <type name="gdouble" c:type="double*"/>
  9148. </parameter>
  9149. <parameter name="y"
  9150. direction="inout"
  9151. caller-allocates="0"
  9152. transfer-ownership="full">
  9153. <doc xml:space="preserve">in/out Y position</doc>
  9154. <type name="gdouble" c:type="double*"/>
  9155. </parameter>
  9156. </parameters>
  9157. </method>
  9158. <method name="transform_rectangle"
  9159. c:identifier="pango_matrix_transform_rectangle"
  9160. version="1.16">
  9161. <doc xml:space="preserve">First transforms @rect using @matrix, then calculates the bounding box
  9162. of the transformed rectangle. The rectangle should be in Pango units.
  9163. This function is useful for example when you want to draw a rotated
  9164. @PangoLayout to an image buffer, and want to know how large the image
  9165. should be and how much you should shift the layout when rendering.
  9166. If you have a rectangle in device units (pixels), use
  9167. pango_matrix_transform_pixel_rectangle().
  9168. If you have the rectangle in Pango units and want to convert to
  9169. transformed pixel bounding box, it is more accurate to transform it first
  9170. (using this function) and pass the result to pango_extents_to_pixels(),
  9171. first argument, for an inclusive rounded rectangle.
  9172. However, there are valid reasons that you may want to convert
  9173. to pixels first and then transform, for example when the transformed
  9174. coordinates may overflow in Pango units (large matrix translation for
  9175. example).</doc>
  9176. <return-value transfer-ownership="none">
  9177. <type name="none" c:type="void"/>
  9178. </return-value>
  9179. <parameters>
  9180. <instance-parameter name="matrix"
  9181. transfer-ownership="none"
  9182. nullable="1"
  9183. allow-none="1">
  9184. <doc xml:space="preserve">a #PangoMatrix, or %NULL</doc>
  9185. <type name="Matrix" c:type="const PangoMatrix*"/>
  9186. </instance-parameter>
  9187. <parameter name="rect"
  9188. direction="inout"
  9189. caller-allocates="0"
  9190. transfer-ownership="full"
  9191. nullable="1"
  9192. allow-none="1">
  9193. <doc xml:space="preserve">in/out bounding box in Pango units, or %NULL</doc>
  9194. <type name="Rectangle" c:type="PangoRectangle*"/>
  9195. </parameter>
  9196. </parameters>
  9197. </method>
  9198. <method name="translate"
  9199. c:identifier="pango_matrix_translate"
  9200. version="1.6">
  9201. <doc xml:space="preserve">Changes the transformation represented by @matrix to be the
  9202. transformation given by first translating by (@tx, @ty)
  9203. then applying the original transformation.</doc>
  9204. <return-value transfer-ownership="none">
  9205. <type name="none" c:type="void"/>
  9206. </return-value>
  9207. <parameters>
  9208. <instance-parameter name="matrix" transfer-ownership="none">
  9209. <doc xml:space="preserve">a #PangoMatrix</doc>
  9210. <type name="Matrix" c:type="PangoMatrix*"/>
  9211. </instance-parameter>
  9212. <parameter name="tx" transfer-ownership="none">
  9213. <doc xml:space="preserve">amount to translate in the X direction</doc>
  9214. <type name="gdouble" c:type="double"/>
  9215. </parameter>
  9216. <parameter name="ty" transfer-ownership="none">
  9217. <doc xml:space="preserve">amount to translate in the Y direction</doc>
  9218. <type name="gdouble" c:type="double"/>
  9219. </parameter>
  9220. </parameters>
  9221. </method>
  9222. </record>
  9223. <constant name="RENDER_TYPE_NONE"
  9224. value="PangoRenderNone"
  9225. c:type="PANGO_RENDER_TYPE_NONE"
  9226. deprecated="1"
  9227. deprecated-version="1.38">
  9228. <doc xml:space="preserve">A string constant defining the render type
  9229. for engines that are not rendering-system specific.</doc>
  9230. <type name="utf8" c:type="gchar*"/>
  9231. </constant>
  9232. <record name="Rectangle" c:type="PangoRectangle">
  9233. <doc xml:space="preserve">The #PangoRectangle structure represents a rectangle. It is frequently
  9234. used to represent the logical or ink extents of a single glyph or section
  9235. of text. (See, for instance, pango_font_get_glyph_extents())</doc>
  9236. <field name="x" writable="1">
  9237. <doc xml:space="preserve">X coordinate of the left side of the rectangle.</doc>
  9238. <type name="gint" c:type="int"/>
  9239. </field>
  9240. <field name="y" writable="1">
  9241. <doc xml:space="preserve">Y coordinate of the the top side of the rectangle.</doc>
  9242. <type name="gint" c:type="int"/>
  9243. </field>
  9244. <field name="width" writable="1">
  9245. <doc xml:space="preserve">width of the rectangle.</doc>
  9246. <type name="gint" c:type="int"/>
  9247. </field>
  9248. <field name="height" writable="1">
  9249. <doc xml:space="preserve">height of the rectangle.</doc>
  9250. <type name="gint" c:type="int"/>
  9251. </field>
  9252. </record>
  9253. <enumeration name="RenderPart"
  9254. version="1.8"
  9255. glib:type-name="PangoRenderPart"
  9256. glib:get-type="pango_render_part_get_type"
  9257. c:type="PangoRenderPart">
  9258. <doc xml:space="preserve">#PangoRenderPart defines different items to render for such
  9259. purposes as setting colors.</doc>
  9260. <member name="foreground"
  9261. value="0"
  9262. c:identifier="PANGO_RENDER_PART_FOREGROUND"
  9263. glib:nick="foreground">
  9264. <doc xml:space="preserve">the text itself</doc>
  9265. </member>
  9266. <member name="background"
  9267. value="1"
  9268. c:identifier="PANGO_RENDER_PART_BACKGROUND"
  9269. glib:nick="background">
  9270. <doc xml:space="preserve">the area behind the text</doc>
  9271. </member>
  9272. <member name="underline"
  9273. value="2"
  9274. c:identifier="PANGO_RENDER_PART_UNDERLINE"
  9275. glib:nick="underline">
  9276. <doc xml:space="preserve">underlines</doc>
  9277. </member>
  9278. <member name="strikethrough"
  9279. value="3"
  9280. c:identifier="PANGO_RENDER_PART_STRIKETHROUGH"
  9281. glib:nick="strikethrough">
  9282. <doc xml:space="preserve">strikethrough lines</doc>
  9283. </member>
  9284. </enumeration>
  9285. <class name="Renderer"
  9286. c:symbol-prefix="renderer"
  9287. c:type="PangoRenderer"
  9288. version="1.8"
  9289. parent="GObject.Object"
  9290. abstract="1"
  9291. glib:type-name="PangoRenderer"
  9292. glib:get-type="pango_renderer_get_type"
  9293. glib:type-struct="RendererClass">
  9294. <doc xml:space="preserve">#PangoRenderer is a base class for objects that are used to
  9295. render Pango objects such as #PangoGlyphString and
  9296. #PangoLayout.</doc>
  9297. <virtual-method name="begin">
  9298. <return-value transfer-ownership="none">
  9299. <type name="none" c:type="void"/>
  9300. </return-value>
  9301. <parameters>
  9302. <instance-parameter name="renderer" transfer-ownership="none">
  9303. <type name="Renderer" c:type="PangoRenderer*"/>
  9304. </instance-parameter>
  9305. </parameters>
  9306. </virtual-method>
  9307. <virtual-method name="draw_error_underline"
  9308. invoker="draw_error_underline"
  9309. version="1.8">
  9310. <doc xml:space="preserve">Draw a squiggly line that approximately covers the given rectangle
  9311. in the style of an underline used to indicate a spelling error.
  9312. (The width of the underline is rounded to an integer number
  9313. of up/down segments and the resulting rectangle is centered
  9314. in the original rectangle)
  9315. This should be called while @renderer is already active. Use
  9316. pango_renderer_activate() to activate a renderer.</doc>
  9317. <return-value transfer-ownership="none">
  9318. <type name="none" c:type="void"/>
  9319. </return-value>
  9320. <parameters>
  9321. <instance-parameter name="renderer" transfer-ownership="none">
  9322. <doc xml:space="preserve">a #PangoRenderer</doc>
  9323. <type name="Renderer" c:type="PangoRenderer*"/>
  9324. </instance-parameter>
  9325. <parameter name="x" transfer-ownership="none">
  9326. <doc xml:space="preserve">X coordinate of underline, in Pango units in user coordinate system</doc>
  9327. <type name="gint" c:type="int"/>
  9328. </parameter>
  9329. <parameter name="y" transfer-ownership="none">
  9330. <doc xml:space="preserve">Y coordinate of underline, in Pango units in user coordinate system</doc>
  9331. <type name="gint" c:type="int"/>
  9332. </parameter>
  9333. <parameter name="width" transfer-ownership="none">
  9334. <doc xml:space="preserve">width of underline, in Pango units in user coordinate system</doc>
  9335. <type name="gint" c:type="int"/>
  9336. </parameter>
  9337. <parameter name="height" transfer-ownership="none">
  9338. <doc xml:space="preserve">height of underline, in Pango units in user coordinate system</doc>
  9339. <type name="gint" c:type="int"/>
  9340. </parameter>
  9341. </parameters>
  9342. </virtual-method>
  9343. <virtual-method name="draw_glyph" invoker="draw_glyph" version="1.8">
  9344. <doc xml:space="preserve">Draws a single glyph with coordinates in device space.</doc>
  9345. <return-value transfer-ownership="none">
  9346. <type name="none" c:type="void"/>
  9347. </return-value>
  9348. <parameters>
  9349. <instance-parameter name="renderer" transfer-ownership="none">
  9350. <doc xml:space="preserve">a #PangoRenderer</doc>
  9351. <type name="Renderer" c:type="PangoRenderer*"/>
  9352. </instance-parameter>
  9353. <parameter name="font" transfer-ownership="none">
  9354. <doc xml:space="preserve">a #PangoFont</doc>
  9355. <type name="Font" c:type="PangoFont*"/>
  9356. </parameter>
  9357. <parameter name="glyph" transfer-ownership="none">
  9358. <doc xml:space="preserve">the glyph index of a single glyph</doc>
  9359. <type name="Glyph" c:type="PangoGlyph"/>
  9360. </parameter>
  9361. <parameter name="x" transfer-ownership="none">
  9362. <doc xml:space="preserve">X coordinate of left edge of baseline of glyph</doc>
  9363. <type name="gdouble" c:type="double"/>
  9364. </parameter>
  9365. <parameter name="y" transfer-ownership="none">
  9366. <doc xml:space="preserve">Y coordinate of left edge of baseline of glyph</doc>
  9367. <type name="gdouble" c:type="double"/>
  9368. </parameter>
  9369. </parameters>
  9370. </virtual-method>
  9371. <virtual-method name="draw_glyph_item"
  9372. invoker="draw_glyph_item"
  9373. version="1.22">
  9374. <doc xml:space="preserve">Draws the glyphs in @glyph_item with the specified #PangoRenderer,
  9375. embedding the text associated with the glyphs in the output if the
  9376. output format supports it (PDF for example).
  9377. Note that @text is the start of the text for layout, which is then
  9378. indexed by &lt;literal&gt;@glyph_item-&gt;item-&gt;offset&lt;/literal&gt;.
  9379. If @text is %NULL, this simply calls pango_renderer_draw_glyphs().
  9380. The default implementation of this method simply falls back to
  9381. pango_renderer_draw_glyphs().</doc>
  9382. <return-value transfer-ownership="none">
  9383. <type name="none" c:type="void"/>
  9384. </return-value>
  9385. <parameters>
  9386. <instance-parameter name="renderer" transfer-ownership="none">
  9387. <doc xml:space="preserve">a #PangoRenderer</doc>
  9388. <type name="Renderer" c:type="PangoRenderer*"/>
  9389. </instance-parameter>
  9390. <parameter name="text"
  9391. transfer-ownership="none"
  9392. nullable="1"
  9393. allow-none="1">
  9394. <doc xml:space="preserve">the UTF-8 text that @glyph_item refers to, or %NULL</doc>
  9395. <type name="utf8" c:type="const char*"/>
  9396. </parameter>
  9397. <parameter name="glyph_item" transfer-ownership="none">
  9398. <doc xml:space="preserve">a #PangoGlyphItem</doc>
  9399. <type name="GlyphItem" c:type="PangoGlyphItem*"/>
  9400. </parameter>
  9401. <parameter name="x" transfer-ownership="none">
  9402. <doc xml:space="preserve">X position of left edge of baseline, in user space coordinates
  9403. in Pango units.</doc>
  9404. <type name="gint" c:type="int"/>
  9405. </parameter>
  9406. <parameter name="y" transfer-ownership="none">
  9407. <doc xml:space="preserve">Y position of left edge of baseline, in user space coordinates
  9408. in Pango units.</doc>
  9409. <type name="gint" c:type="int"/>
  9410. </parameter>
  9411. </parameters>
  9412. </virtual-method>
  9413. <virtual-method name="draw_glyphs" invoker="draw_glyphs" version="1.8">
  9414. <doc xml:space="preserve">Draws the glyphs in @glyphs with the specified #PangoRenderer.</doc>
  9415. <return-value transfer-ownership="none">
  9416. <type name="none" c:type="void"/>
  9417. </return-value>
  9418. <parameters>
  9419. <instance-parameter name="renderer" transfer-ownership="none">
  9420. <doc xml:space="preserve">a #PangoRenderer</doc>
  9421. <type name="Renderer" c:type="PangoRenderer*"/>
  9422. </instance-parameter>
  9423. <parameter name="font" transfer-ownership="none">
  9424. <doc xml:space="preserve">a #PangoFont</doc>
  9425. <type name="Font" c:type="PangoFont*"/>
  9426. </parameter>
  9427. <parameter name="glyphs" transfer-ownership="none">
  9428. <doc xml:space="preserve">a #PangoGlyphString</doc>
  9429. <type name="GlyphString" c:type="PangoGlyphString*"/>
  9430. </parameter>
  9431. <parameter name="x" transfer-ownership="none">
  9432. <doc xml:space="preserve">X position of left edge of baseline, in user space coordinates
  9433. in Pango units.</doc>
  9434. <type name="gint" c:type="int"/>
  9435. </parameter>
  9436. <parameter name="y" transfer-ownership="none">
  9437. <doc xml:space="preserve">Y position of left edge of baseline, in user space coordinates
  9438. in Pango units.</doc>
  9439. <type name="gint" c:type="int"/>
  9440. </parameter>
  9441. </parameters>
  9442. </virtual-method>
  9443. <virtual-method name="draw_rectangle"
  9444. invoker="draw_rectangle"
  9445. version="1.8">
  9446. <doc xml:space="preserve">Draws an axis-aligned rectangle in user space coordinates with the
  9447. specified #PangoRenderer.
  9448. This should be called while @renderer is already active. Use
  9449. pango_renderer_activate() to activate a renderer.</doc>
  9450. <return-value transfer-ownership="none">
  9451. <type name="none" c:type="void"/>
  9452. </return-value>
  9453. <parameters>
  9454. <instance-parameter name="renderer" transfer-ownership="none">
  9455. <doc xml:space="preserve">a #PangoRenderer</doc>
  9456. <type name="Renderer" c:type="PangoRenderer*"/>
  9457. </instance-parameter>
  9458. <parameter name="part" transfer-ownership="none">
  9459. <doc xml:space="preserve">type of object this rectangle is part of</doc>
  9460. <type name="RenderPart" c:type="PangoRenderPart"/>
  9461. </parameter>
  9462. <parameter name="x" transfer-ownership="none">
  9463. <doc xml:space="preserve">X position at which to draw rectangle, in user space coordinates in Pango units</doc>
  9464. <type name="gint" c:type="int"/>
  9465. </parameter>
  9466. <parameter name="y" transfer-ownership="none">
  9467. <doc xml:space="preserve">Y position at which to draw rectangle, in user space coordinates in Pango units</doc>
  9468. <type name="gint" c:type="int"/>
  9469. </parameter>
  9470. <parameter name="width" transfer-ownership="none">
  9471. <doc xml:space="preserve">width of rectangle in Pango units in user space coordinates</doc>
  9472. <type name="gint" c:type="int"/>
  9473. </parameter>
  9474. <parameter name="height" transfer-ownership="none">
  9475. <doc xml:space="preserve">height of rectangle in Pango units in user space coordinates</doc>
  9476. <type name="gint" c:type="int"/>
  9477. </parameter>
  9478. </parameters>
  9479. </virtual-method>
  9480. <virtual-method name="draw_shape">
  9481. <return-value transfer-ownership="none">
  9482. <type name="none" c:type="void"/>
  9483. </return-value>
  9484. <parameters>
  9485. <instance-parameter name="renderer" transfer-ownership="none">
  9486. <type name="Renderer" c:type="PangoRenderer*"/>
  9487. </instance-parameter>
  9488. <parameter name="attr" transfer-ownership="none">
  9489. <type name="AttrShape" c:type="PangoAttrShape*"/>
  9490. </parameter>
  9491. <parameter name="x" transfer-ownership="none">
  9492. <type name="gint" c:type="int"/>
  9493. </parameter>
  9494. <parameter name="y" transfer-ownership="none">
  9495. <type name="gint" c:type="int"/>
  9496. </parameter>
  9497. </parameters>
  9498. </virtual-method>
  9499. <virtual-method name="draw_trapezoid"
  9500. invoker="draw_trapezoid"
  9501. version="1.8">
  9502. <doc xml:space="preserve">Draws a trapezoid with the parallel sides aligned with the X axis
  9503. using the given #PangoRenderer; coordinates are in device space.</doc>
  9504. <return-value transfer-ownership="none">
  9505. <type name="none" c:type="void"/>
  9506. </return-value>
  9507. <parameters>
  9508. <instance-parameter name="renderer" transfer-ownership="none">
  9509. <doc xml:space="preserve">a #PangoRenderer</doc>
  9510. <type name="Renderer" c:type="PangoRenderer*"/>
  9511. </instance-parameter>
  9512. <parameter name="part" transfer-ownership="none">
  9513. <doc xml:space="preserve">type of object this trapezoid is part of</doc>
  9514. <type name="RenderPart" c:type="PangoRenderPart"/>
  9515. </parameter>
  9516. <parameter name="y1_" transfer-ownership="none">
  9517. <doc xml:space="preserve">Y coordinate of top of trapezoid</doc>
  9518. <type name="gdouble" c:type="double"/>
  9519. </parameter>
  9520. <parameter name="x11" transfer-ownership="none">
  9521. <doc xml:space="preserve">X coordinate of left end of top of trapezoid</doc>
  9522. <type name="gdouble" c:type="double"/>
  9523. </parameter>
  9524. <parameter name="x21" transfer-ownership="none">
  9525. <doc xml:space="preserve">X coordinate of right end of top of trapezoid</doc>
  9526. <type name="gdouble" c:type="double"/>
  9527. </parameter>
  9528. <parameter name="y2" transfer-ownership="none">
  9529. <doc xml:space="preserve">Y coordinate of bottom of trapezoid</doc>
  9530. <type name="gdouble" c:type="double"/>
  9531. </parameter>
  9532. <parameter name="x12" transfer-ownership="none">
  9533. <doc xml:space="preserve">X coordinate of left end of bottom of trapezoid</doc>
  9534. <type name="gdouble" c:type="double"/>
  9535. </parameter>
  9536. <parameter name="x22" transfer-ownership="none">
  9537. <doc xml:space="preserve">X coordinate of right end of bottom of trapezoid</doc>
  9538. <type name="gdouble" c:type="double"/>
  9539. </parameter>
  9540. </parameters>
  9541. </virtual-method>
  9542. <virtual-method name="end">
  9543. <return-value transfer-ownership="none">
  9544. <type name="none" c:type="void"/>
  9545. </return-value>
  9546. <parameters>
  9547. <instance-parameter name="renderer" transfer-ownership="none">
  9548. <type name="Renderer" c:type="PangoRenderer*"/>
  9549. </instance-parameter>
  9550. </parameters>
  9551. </virtual-method>
  9552. <virtual-method name="part_changed" invoker="part_changed" version="1.8">
  9553. <doc xml:space="preserve">Informs Pango that the way that the rendering is done
  9554. for @part has changed in a way that would prevent multiple
  9555. pieces being joined together into one drawing call. For
  9556. instance, if a subclass of #PangoRenderer was to add a stipple
  9557. option for drawing underlines, it needs to call
  9558. &lt;informalexample&gt;&lt;programlisting&gt;
  9559. pango_renderer_part_changed (render, PANGO_RENDER_PART_UNDERLINE);
  9560. &lt;/programlisting&gt;&lt;/informalexample&gt;
  9561. When the stipple changes or underlines with different stipples
  9562. might be joined together. Pango automatically calls this for
  9563. changes to colors. (See pango_renderer_set_color())</doc>
  9564. <return-value transfer-ownership="none">
  9565. <type name="none" c:type="void"/>
  9566. </return-value>
  9567. <parameters>
  9568. <instance-parameter name="renderer" transfer-ownership="none">
  9569. <doc xml:space="preserve">a #PangoRenderer</doc>
  9570. <type name="Renderer" c:type="PangoRenderer*"/>
  9571. </instance-parameter>
  9572. <parameter name="part" transfer-ownership="none">
  9573. <doc xml:space="preserve">the part for which rendering has changed.</doc>
  9574. <type name="RenderPart" c:type="PangoRenderPart"/>
  9575. </parameter>
  9576. </parameters>
  9577. </virtual-method>
  9578. <virtual-method name="prepare_run">
  9579. <return-value transfer-ownership="none">
  9580. <type name="none" c:type="void"/>
  9581. </return-value>
  9582. <parameters>
  9583. <instance-parameter name="renderer" transfer-ownership="none">
  9584. <type name="Renderer" c:type="PangoRenderer*"/>
  9585. </instance-parameter>
  9586. <parameter name="run" transfer-ownership="none">
  9587. <type name="LayoutRun" c:type="PangoLayoutRun*"/>
  9588. </parameter>
  9589. </parameters>
  9590. </virtual-method>
  9591. <method name="activate"
  9592. c:identifier="pango_renderer_activate"
  9593. version="1.8">
  9594. <doc xml:space="preserve">Does initial setup before rendering operations on @renderer.
  9595. pango_renderer_deactivate() should be called when done drawing.
  9596. Calls such as pango_renderer_draw_layout() automatically
  9597. activate the layout before drawing on it. Calls to
  9598. pango_renderer_activate() and pango_renderer_deactivate() can
  9599. be nested and the renderer will only be initialized and
  9600. deinitialized once.</doc>
  9601. <return-value transfer-ownership="none">
  9602. <type name="none" c:type="void"/>
  9603. </return-value>
  9604. <parameters>
  9605. <instance-parameter name="renderer" transfer-ownership="none">
  9606. <doc xml:space="preserve">a #PangoRenderer</doc>
  9607. <type name="Renderer" c:type="PangoRenderer*"/>
  9608. </instance-parameter>
  9609. </parameters>
  9610. </method>
  9611. <method name="deactivate"
  9612. c:identifier="pango_renderer_deactivate"
  9613. version="1.8">
  9614. <doc xml:space="preserve">Cleans up after rendering operations on @renderer. See
  9615. docs for pango_renderer_activate().</doc>
  9616. <return-value transfer-ownership="none">
  9617. <type name="none" c:type="void"/>
  9618. </return-value>
  9619. <parameters>
  9620. <instance-parameter name="renderer" transfer-ownership="none">
  9621. <doc xml:space="preserve">a #PangoRenderer</doc>
  9622. <type name="Renderer" c:type="PangoRenderer*"/>
  9623. </instance-parameter>
  9624. </parameters>
  9625. </method>
  9626. <method name="draw_error_underline"
  9627. c:identifier="pango_renderer_draw_error_underline"
  9628. version="1.8">
  9629. <doc xml:space="preserve">Draw a squiggly line that approximately covers the given rectangle
  9630. in the style of an underline used to indicate a spelling error.
  9631. (The width of the underline is rounded to an integer number
  9632. of up/down segments and the resulting rectangle is centered
  9633. in the original rectangle)
  9634. This should be called while @renderer is already active. Use
  9635. pango_renderer_activate() to activate a renderer.</doc>
  9636. <return-value transfer-ownership="none">
  9637. <type name="none" c:type="void"/>
  9638. </return-value>
  9639. <parameters>
  9640. <instance-parameter name="renderer" transfer-ownership="none">
  9641. <doc xml:space="preserve">a #PangoRenderer</doc>
  9642. <type name="Renderer" c:type="PangoRenderer*"/>
  9643. </instance-parameter>
  9644. <parameter name="x" transfer-ownership="none">
  9645. <doc xml:space="preserve">X coordinate of underline, in Pango units in user coordinate system</doc>
  9646. <type name="gint" c:type="int"/>
  9647. </parameter>
  9648. <parameter name="y" transfer-ownership="none">
  9649. <doc xml:space="preserve">Y coordinate of underline, in Pango units in user coordinate system</doc>
  9650. <type name="gint" c:type="int"/>
  9651. </parameter>
  9652. <parameter name="width" transfer-ownership="none">
  9653. <doc xml:space="preserve">width of underline, in Pango units in user coordinate system</doc>
  9654. <type name="gint" c:type="int"/>
  9655. </parameter>
  9656. <parameter name="height" transfer-ownership="none">
  9657. <doc xml:space="preserve">height of underline, in Pango units in user coordinate system</doc>
  9658. <type name="gint" c:type="int"/>
  9659. </parameter>
  9660. </parameters>
  9661. </method>
  9662. <method name="draw_glyph"
  9663. c:identifier="pango_renderer_draw_glyph"
  9664. version="1.8">
  9665. <doc xml:space="preserve">Draws a single glyph with coordinates in device space.</doc>
  9666. <return-value transfer-ownership="none">
  9667. <type name="none" c:type="void"/>
  9668. </return-value>
  9669. <parameters>
  9670. <instance-parameter name="renderer" transfer-ownership="none">
  9671. <doc xml:space="preserve">a #PangoRenderer</doc>
  9672. <type name="Renderer" c:type="PangoRenderer*"/>
  9673. </instance-parameter>
  9674. <parameter name="font" transfer-ownership="none">
  9675. <doc xml:space="preserve">a #PangoFont</doc>
  9676. <type name="Font" c:type="PangoFont*"/>
  9677. </parameter>
  9678. <parameter name="glyph" transfer-ownership="none">
  9679. <doc xml:space="preserve">the glyph index of a single glyph</doc>
  9680. <type name="Glyph" c:type="PangoGlyph"/>
  9681. </parameter>
  9682. <parameter name="x" transfer-ownership="none">
  9683. <doc xml:space="preserve">X coordinate of left edge of baseline of glyph</doc>
  9684. <type name="gdouble" c:type="double"/>
  9685. </parameter>
  9686. <parameter name="y" transfer-ownership="none">
  9687. <doc xml:space="preserve">Y coordinate of left edge of baseline of glyph</doc>
  9688. <type name="gdouble" c:type="double"/>
  9689. </parameter>
  9690. </parameters>
  9691. </method>
  9692. <method name="draw_glyph_item"
  9693. c:identifier="pango_renderer_draw_glyph_item"
  9694. version="1.22">
  9695. <doc xml:space="preserve">Draws the glyphs in @glyph_item with the specified #PangoRenderer,
  9696. embedding the text associated with the glyphs in the output if the
  9697. output format supports it (PDF for example).
  9698. Note that @text is the start of the text for layout, which is then
  9699. indexed by &lt;literal&gt;@glyph_item-&gt;item-&gt;offset&lt;/literal&gt;.
  9700. If @text is %NULL, this simply calls pango_renderer_draw_glyphs().
  9701. The default implementation of this method simply falls back to
  9702. pango_renderer_draw_glyphs().</doc>
  9703. <return-value transfer-ownership="none">
  9704. <type name="none" c:type="void"/>
  9705. </return-value>
  9706. <parameters>
  9707. <instance-parameter name="renderer" transfer-ownership="none">
  9708. <doc xml:space="preserve">a #PangoRenderer</doc>
  9709. <type name="Renderer" c:type="PangoRenderer*"/>
  9710. </instance-parameter>
  9711. <parameter name="text"
  9712. transfer-ownership="none"
  9713. nullable="1"
  9714. allow-none="1">
  9715. <doc xml:space="preserve">the UTF-8 text that @glyph_item refers to, or %NULL</doc>
  9716. <type name="utf8" c:type="const char*"/>
  9717. </parameter>
  9718. <parameter name="glyph_item" transfer-ownership="none">
  9719. <doc xml:space="preserve">a #PangoGlyphItem</doc>
  9720. <type name="GlyphItem" c:type="PangoGlyphItem*"/>
  9721. </parameter>
  9722. <parameter name="x" transfer-ownership="none">
  9723. <doc xml:space="preserve">X position of left edge of baseline, in user space coordinates
  9724. in Pango units.</doc>
  9725. <type name="gint" c:type="int"/>
  9726. </parameter>
  9727. <parameter name="y" transfer-ownership="none">
  9728. <doc xml:space="preserve">Y position of left edge of baseline, in user space coordinates
  9729. in Pango units.</doc>
  9730. <type name="gint" c:type="int"/>
  9731. </parameter>
  9732. </parameters>
  9733. </method>
  9734. <method name="draw_glyphs"
  9735. c:identifier="pango_renderer_draw_glyphs"
  9736. version="1.8">
  9737. <doc xml:space="preserve">Draws the glyphs in @glyphs with the specified #PangoRenderer.</doc>
  9738. <return-value transfer-ownership="none">
  9739. <type name="none" c:type="void"/>
  9740. </return-value>
  9741. <parameters>
  9742. <instance-parameter name="renderer" transfer-ownership="none">
  9743. <doc xml:space="preserve">a #PangoRenderer</doc>
  9744. <type name="Renderer" c:type="PangoRenderer*"/>
  9745. </instance-parameter>
  9746. <parameter name="font" transfer-ownership="none">
  9747. <doc xml:space="preserve">a #PangoFont</doc>
  9748. <type name="Font" c:type="PangoFont*"/>
  9749. </parameter>
  9750. <parameter name="glyphs" transfer-ownership="none">
  9751. <doc xml:space="preserve">a #PangoGlyphString</doc>
  9752. <type name="GlyphString" c:type="PangoGlyphString*"/>
  9753. </parameter>
  9754. <parameter name="x" transfer-ownership="none">
  9755. <doc xml:space="preserve">X position of left edge of baseline, in user space coordinates
  9756. in Pango units.</doc>
  9757. <type name="gint" c:type="int"/>
  9758. </parameter>
  9759. <parameter name="y" transfer-ownership="none">
  9760. <doc xml:space="preserve">Y position of left edge of baseline, in user space coordinates
  9761. in Pango units.</doc>
  9762. <type name="gint" c:type="int"/>
  9763. </parameter>
  9764. </parameters>
  9765. </method>
  9766. <method name="draw_layout"
  9767. c:identifier="pango_renderer_draw_layout"
  9768. version="1.8">
  9769. <doc xml:space="preserve">Draws @layout with the specified #PangoRenderer.</doc>
  9770. <return-value transfer-ownership="none">
  9771. <type name="none" c:type="void"/>
  9772. </return-value>
  9773. <parameters>
  9774. <instance-parameter name="renderer" transfer-ownership="none">
  9775. <doc xml:space="preserve">a #PangoRenderer</doc>
  9776. <type name="Renderer" c:type="PangoRenderer*"/>
  9777. </instance-parameter>
  9778. <parameter name="layout" transfer-ownership="none">
  9779. <doc xml:space="preserve">a #PangoLayout</doc>
  9780. <type name="Layout" c:type="PangoLayout*"/>
  9781. </parameter>
  9782. <parameter name="x" transfer-ownership="none">
  9783. <doc xml:space="preserve">X position of left edge of baseline, in user space coordinates
  9784. in Pango units.</doc>
  9785. <type name="gint" c:type="int"/>
  9786. </parameter>
  9787. <parameter name="y" transfer-ownership="none">
  9788. <doc xml:space="preserve">Y position of left edge of baseline, in user space coordinates
  9789. in Pango units.</doc>
  9790. <type name="gint" c:type="int"/>
  9791. </parameter>
  9792. </parameters>
  9793. </method>
  9794. <method name="draw_layout_line"
  9795. c:identifier="pango_renderer_draw_layout_line"
  9796. version="1.8">
  9797. <doc xml:space="preserve">Draws @line with the specified #PangoRenderer.</doc>
  9798. <return-value transfer-ownership="none">
  9799. <type name="none" c:type="void"/>
  9800. </return-value>
  9801. <parameters>
  9802. <instance-parameter name="renderer" transfer-ownership="none">
  9803. <doc xml:space="preserve">a #PangoRenderer</doc>
  9804. <type name="Renderer" c:type="PangoRenderer*"/>
  9805. </instance-parameter>
  9806. <parameter name="line" transfer-ownership="none">
  9807. <doc xml:space="preserve">a #PangoLayoutLine</doc>
  9808. <type name="LayoutLine" c:type="PangoLayoutLine*"/>
  9809. </parameter>
  9810. <parameter name="x" transfer-ownership="none">
  9811. <doc xml:space="preserve">X position of left edge of baseline, in user space coordinates
  9812. in Pango units.</doc>
  9813. <type name="gint" c:type="int"/>
  9814. </parameter>
  9815. <parameter name="y" transfer-ownership="none">
  9816. <doc xml:space="preserve">Y position of left edge of baseline, in user space coordinates
  9817. in Pango units.</doc>
  9818. <type name="gint" c:type="int"/>
  9819. </parameter>
  9820. </parameters>
  9821. </method>
  9822. <method name="draw_rectangle"
  9823. c:identifier="pango_renderer_draw_rectangle"
  9824. version="1.8">
  9825. <doc xml:space="preserve">Draws an axis-aligned rectangle in user space coordinates with the
  9826. specified #PangoRenderer.
  9827. This should be called while @renderer is already active. Use
  9828. pango_renderer_activate() to activate a renderer.</doc>
  9829. <return-value transfer-ownership="none">
  9830. <type name="none" c:type="void"/>
  9831. </return-value>
  9832. <parameters>
  9833. <instance-parameter name="renderer" transfer-ownership="none">
  9834. <doc xml:space="preserve">a #PangoRenderer</doc>
  9835. <type name="Renderer" c:type="PangoRenderer*"/>
  9836. </instance-parameter>
  9837. <parameter name="part" transfer-ownership="none">
  9838. <doc xml:space="preserve">type of object this rectangle is part of</doc>
  9839. <type name="RenderPart" c:type="PangoRenderPart"/>
  9840. </parameter>
  9841. <parameter name="x" transfer-ownership="none">
  9842. <doc xml:space="preserve">X position at which to draw rectangle, in user space coordinates in Pango units</doc>
  9843. <type name="gint" c:type="int"/>
  9844. </parameter>
  9845. <parameter name="y" transfer-ownership="none">
  9846. <doc xml:space="preserve">Y position at which to draw rectangle, in user space coordinates in Pango units</doc>
  9847. <type name="gint" c:type="int"/>
  9848. </parameter>
  9849. <parameter name="width" transfer-ownership="none">
  9850. <doc xml:space="preserve">width of rectangle in Pango units in user space coordinates</doc>
  9851. <type name="gint" c:type="int"/>
  9852. </parameter>
  9853. <parameter name="height" transfer-ownership="none">
  9854. <doc xml:space="preserve">height of rectangle in Pango units in user space coordinates</doc>
  9855. <type name="gint" c:type="int"/>
  9856. </parameter>
  9857. </parameters>
  9858. </method>
  9859. <method name="draw_trapezoid"
  9860. c:identifier="pango_renderer_draw_trapezoid"
  9861. version="1.8">
  9862. <doc xml:space="preserve">Draws a trapezoid with the parallel sides aligned with the X axis
  9863. using the given #PangoRenderer; coordinates are in device space.</doc>
  9864. <return-value transfer-ownership="none">
  9865. <type name="none" c:type="void"/>
  9866. </return-value>
  9867. <parameters>
  9868. <instance-parameter name="renderer" transfer-ownership="none">
  9869. <doc xml:space="preserve">a #PangoRenderer</doc>
  9870. <type name="Renderer" c:type="PangoRenderer*"/>
  9871. </instance-parameter>
  9872. <parameter name="part" transfer-ownership="none">
  9873. <doc xml:space="preserve">type of object this trapezoid is part of</doc>
  9874. <type name="RenderPart" c:type="PangoRenderPart"/>
  9875. </parameter>
  9876. <parameter name="y1_" transfer-ownership="none">
  9877. <doc xml:space="preserve">Y coordinate of top of trapezoid</doc>
  9878. <type name="gdouble" c:type="double"/>
  9879. </parameter>
  9880. <parameter name="x11" transfer-ownership="none">
  9881. <doc xml:space="preserve">X coordinate of left end of top of trapezoid</doc>
  9882. <type name="gdouble" c:type="double"/>
  9883. </parameter>
  9884. <parameter name="x21" transfer-ownership="none">
  9885. <doc xml:space="preserve">X coordinate of right end of top of trapezoid</doc>
  9886. <type name="gdouble" c:type="double"/>
  9887. </parameter>
  9888. <parameter name="y2" transfer-ownership="none">
  9889. <doc xml:space="preserve">Y coordinate of bottom of trapezoid</doc>
  9890. <type name="gdouble" c:type="double"/>
  9891. </parameter>
  9892. <parameter name="x12" transfer-ownership="none">
  9893. <doc xml:space="preserve">X coordinate of left end of bottom of trapezoid</doc>
  9894. <type name="gdouble" c:type="double"/>
  9895. </parameter>
  9896. <parameter name="x22" transfer-ownership="none">
  9897. <doc xml:space="preserve">X coordinate of right end of bottom of trapezoid</doc>
  9898. <type name="gdouble" c:type="double"/>
  9899. </parameter>
  9900. </parameters>
  9901. </method>
  9902. <method name="get_alpha"
  9903. c:identifier="pango_renderer_get_alpha"
  9904. version="1.38">
  9905. <doc xml:space="preserve">Gets the current alpha for the specified part.</doc>
  9906. <return-value transfer-ownership="none">
  9907. <doc xml:space="preserve">the alpha for the specified part,
  9908. or 0 if it hasn't been set and should be
  9909. inherited from the environment.</doc>
  9910. <type name="guint16" c:type="guint16"/>
  9911. </return-value>
  9912. <parameters>
  9913. <instance-parameter name="renderer" transfer-ownership="none">
  9914. <doc xml:space="preserve">a #PangoRenderer</doc>
  9915. <type name="Renderer" c:type="PangoRenderer*"/>
  9916. </instance-parameter>
  9917. <parameter name="part" transfer-ownership="none">
  9918. <doc xml:space="preserve">the part to get the alpha for</doc>
  9919. <type name="RenderPart" c:type="PangoRenderPart"/>
  9920. </parameter>
  9921. </parameters>
  9922. </method>
  9923. <method name="get_color"
  9924. c:identifier="pango_renderer_get_color"
  9925. version="1.8">
  9926. <doc xml:space="preserve">Gets the current rendering color for the specified part.</doc>
  9927. <return-value transfer-ownership="none" nullable="1">
  9928. <doc xml:space="preserve">the color for the
  9929. specified part, or %NULL if it hasn't been set and should be
  9930. inherited from the environment.</doc>
  9931. <type name="Color" c:type="PangoColor*"/>
  9932. </return-value>
  9933. <parameters>
  9934. <instance-parameter name="renderer" transfer-ownership="none">
  9935. <doc xml:space="preserve">a #PangoRenderer</doc>
  9936. <type name="Renderer" c:type="PangoRenderer*"/>
  9937. </instance-parameter>
  9938. <parameter name="part" transfer-ownership="none">
  9939. <doc xml:space="preserve">the part to get the color for</doc>
  9940. <type name="RenderPart" c:type="PangoRenderPart"/>
  9941. </parameter>
  9942. </parameters>
  9943. </method>
  9944. <method name="get_layout"
  9945. c:identifier="pango_renderer_get_layout"
  9946. version="1.20">
  9947. <doc xml:space="preserve">Gets the layout currently being rendered using @renderer.
  9948. Calling this function only makes sense from inside a subclass's
  9949. methods, like in its draw_shape&lt;!----&gt;() for example.
  9950. The returned layout should not be modified while still being
  9951. rendered.</doc>
  9952. <return-value transfer-ownership="none" nullable="1">
  9953. <doc xml:space="preserve">the layout, or %NULL if
  9954. no layout is being rendered using @renderer at this time.</doc>
  9955. <type name="Layout" c:type="PangoLayout*"/>
  9956. </return-value>
  9957. <parameters>
  9958. <instance-parameter name="renderer" transfer-ownership="none">
  9959. <doc xml:space="preserve">a #PangoRenderer</doc>
  9960. <type name="Renderer" c:type="PangoRenderer*"/>
  9961. </instance-parameter>
  9962. </parameters>
  9963. </method>
  9964. <method name="get_layout_line"
  9965. c:identifier="pango_renderer_get_layout_line"
  9966. version="1.20">
  9967. <doc xml:space="preserve">Gets the layout line currently being rendered using @renderer.
  9968. Calling this function only makes sense from inside a subclass's
  9969. methods, like in its draw_shape&lt;!----&gt;() for example.
  9970. The returned layout line should not be modified while still being
  9971. rendered.</doc>
  9972. <return-value transfer-ownership="none" nullable="1">
  9973. <doc xml:space="preserve">the layout line, or %NULL
  9974. if no layout line is being rendered using @renderer at this time.</doc>
  9975. <type name="LayoutLine" c:type="PangoLayoutLine*"/>
  9976. </return-value>
  9977. <parameters>
  9978. <instance-parameter name="renderer" transfer-ownership="none">
  9979. <doc xml:space="preserve">a #PangoRenderer</doc>
  9980. <type name="Renderer" c:type="PangoRenderer*"/>
  9981. </instance-parameter>
  9982. </parameters>
  9983. </method>
  9984. <method name="get_matrix"
  9985. c:identifier="pango_renderer_get_matrix"
  9986. version="1.8">
  9987. <doc xml:space="preserve">Gets the transformation matrix that will be applied when
  9988. rendering. See pango_renderer_set_matrix().</doc>
  9989. <return-value transfer-ownership="none" nullable="1">
  9990. <doc xml:space="preserve">the matrix, or %NULL if no matrix has
  9991. been set (which is the same as the identity matrix). The returned
  9992. matrix is owned by Pango and must not be modified or freed.</doc>
  9993. <type name="Matrix" c:type="const PangoMatrix*"/>
  9994. </return-value>
  9995. <parameters>
  9996. <instance-parameter name="renderer" transfer-ownership="none">
  9997. <doc xml:space="preserve">a #PangoRenderer</doc>
  9998. <type name="Renderer" c:type="PangoRenderer*"/>
  9999. </instance-parameter>
  10000. </parameters>
  10001. </method>
  10002. <method name="part_changed"
  10003. c:identifier="pango_renderer_part_changed"
  10004. version="1.8">
  10005. <doc xml:space="preserve">Informs Pango that the way that the rendering is done
  10006. for @part has changed in a way that would prevent multiple
  10007. pieces being joined together into one drawing call. For
  10008. instance, if a subclass of #PangoRenderer was to add a stipple
  10009. option for drawing underlines, it needs to call
  10010. &lt;informalexample&gt;&lt;programlisting&gt;
  10011. pango_renderer_part_changed (render, PANGO_RENDER_PART_UNDERLINE);
  10012. &lt;/programlisting&gt;&lt;/informalexample&gt;
  10013. When the stipple changes or underlines with different stipples
  10014. might be joined together. Pango automatically calls this for
  10015. changes to colors. (See pango_renderer_set_color())</doc>
  10016. <return-value transfer-ownership="none">
  10017. <type name="none" c:type="void"/>
  10018. </return-value>
  10019. <parameters>
  10020. <instance-parameter name="renderer" transfer-ownership="none">
  10021. <doc xml:space="preserve">a #PangoRenderer</doc>
  10022. <type name="Renderer" c:type="PangoRenderer*"/>
  10023. </instance-parameter>
  10024. <parameter name="part" transfer-ownership="none">
  10025. <doc xml:space="preserve">the part for which rendering has changed.</doc>
  10026. <type name="RenderPart" c:type="PangoRenderPart"/>
  10027. </parameter>
  10028. </parameters>
  10029. </method>
  10030. <method name="set_alpha"
  10031. c:identifier="pango_renderer_set_alpha"
  10032. version="1.38">
  10033. <doc xml:space="preserve">Sets the alpha for part of the rendering.
  10034. Note that the alpha may only be used if a color is
  10035. specified for @part as well.</doc>
  10036. <return-value transfer-ownership="none">
  10037. <type name="none" c:type="void"/>
  10038. </return-value>
  10039. <parameters>
  10040. <instance-parameter name="renderer" transfer-ownership="none">
  10041. <doc xml:space="preserve">a #PangoRenderer</doc>
  10042. <type name="Renderer" c:type="PangoRenderer*"/>
  10043. </instance-parameter>
  10044. <parameter name="part" transfer-ownership="none">
  10045. <doc xml:space="preserve">the part to set the alpha for</doc>
  10046. <type name="RenderPart" c:type="PangoRenderPart"/>
  10047. </parameter>
  10048. <parameter name="alpha" transfer-ownership="none">
  10049. <doc xml:space="preserve">an alpha value between 1 and 65536, or 0 to unset the alpha</doc>
  10050. <type name="guint16" c:type="guint16"/>
  10051. </parameter>
  10052. </parameters>
  10053. </method>
  10054. <method name="set_color"
  10055. c:identifier="pango_renderer_set_color"
  10056. version="1.8">
  10057. <doc xml:space="preserve">Sets the color for part of the rendering.
  10058. Also see pango_renderer_set_alpha().</doc>
  10059. <return-value transfer-ownership="none">
  10060. <type name="none" c:type="void"/>
  10061. </return-value>
  10062. <parameters>
  10063. <instance-parameter name="renderer" transfer-ownership="none">
  10064. <doc xml:space="preserve">a #PangoRenderer</doc>
  10065. <type name="Renderer" c:type="PangoRenderer*"/>
  10066. </instance-parameter>
  10067. <parameter name="part" transfer-ownership="none">
  10068. <doc xml:space="preserve">the part to change the color of</doc>
  10069. <type name="RenderPart" c:type="PangoRenderPart"/>
  10070. </parameter>
  10071. <parameter name="color"
  10072. transfer-ownership="none"
  10073. nullable="1"
  10074. allow-none="1">
  10075. <doc xml:space="preserve">the new color or %NULL to unset the current color</doc>
  10076. <type name="Color" c:type="const PangoColor*"/>
  10077. </parameter>
  10078. </parameters>
  10079. </method>
  10080. <method name="set_matrix"
  10081. c:identifier="pango_renderer_set_matrix"
  10082. version="1.8">
  10083. <doc xml:space="preserve">Sets the transformation matrix that will be applied when rendering.</doc>
  10084. <return-value transfer-ownership="none">
  10085. <type name="none" c:type="void"/>
  10086. </return-value>
  10087. <parameters>
  10088. <instance-parameter name="renderer" transfer-ownership="none">
  10089. <doc xml:space="preserve">a #PangoRenderer</doc>
  10090. <type name="Renderer" c:type="PangoRenderer*"/>
  10091. </instance-parameter>
  10092. <parameter name="matrix"
  10093. transfer-ownership="none"
  10094. nullable="1"
  10095. allow-none="1">
  10096. <doc xml:space="preserve">a #PangoMatrix, or %NULL to unset any existing matrix.
  10097. (No matrix set is the same as setting the identity matrix.)</doc>
  10098. <type name="Matrix" c:type="const PangoMatrix*"/>
  10099. </parameter>
  10100. </parameters>
  10101. </method>
  10102. <field name="parent_instance" readable="0" private="1">
  10103. <type name="GObject.Object" c:type="GObject"/>
  10104. </field>
  10105. <field name="underline" readable="0" private="1">
  10106. <type name="Underline" c:type="PangoUnderline"/>
  10107. </field>
  10108. <field name="strikethrough" readable="0" private="1">
  10109. <type name="gboolean" c:type="gboolean"/>
  10110. </field>
  10111. <field name="active_count" readable="0" private="1">
  10112. <type name="gint" c:type="int"/>
  10113. </field>
  10114. <field name="matrix">
  10115. <doc xml:space="preserve">the current transformation matrix for
  10116. the Renderer; may be %NULL, which should be treated the
  10117. same as the identity matrix.</doc>
  10118. <type name="Matrix" c:type="PangoMatrix*"/>
  10119. </field>
  10120. <field name="priv" readable="0" private="1">
  10121. <type name="RendererPrivate" c:type="PangoRendererPrivate*"/>
  10122. </field>
  10123. </class>
  10124. <record name="RendererClass"
  10125. c:type="PangoRendererClass"
  10126. glib:is-gtype-struct-for="Renderer"
  10127. version="1.8">
  10128. <doc xml:space="preserve">Class structure for #PangoRenderer.</doc>
  10129. <field name="parent_class" readable="0" private="1">
  10130. <type name="GObject.ObjectClass" c:type="GObjectClass"/>
  10131. </field>
  10132. <field name="draw_glyphs">
  10133. <callback name="draw_glyphs">
  10134. <return-value transfer-ownership="none">
  10135. <type name="none" c:type="void"/>
  10136. </return-value>
  10137. <parameters>
  10138. <parameter name="renderer" transfer-ownership="none">
  10139. <doc xml:space="preserve">a #PangoRenderer</doc>
  10140. <type name="Renderer" c:type="PangoRenderer*"/>
  10141. </parameter>
  10142. <parameter name="font" transfer-ownership="none">
  10143. <doc xml:space="preserve">a #PangoFont</doc>
  10144. <type name="Font" c:type="PangoFont*"/>
  10145. </parameter>
  10146. <parameter name="glyphs" transfer-ownership="none">
  10147. <doc xml:space="preserve">a #PangoGlyphString</doc>
  10148. <type name="GlyphString" c:type="PangoGlyphString*"/>
  10149. </parameter>
  10150. <parameter name="x" transfer-ownership="none">
  10151. <doc xml:space="preserve">X position of left edge of baseline, in user space coordinates
  10152. in Pango units.</doc>
  10153. <type name="gint" c:type="int"/>
  10154. </parameter>
  10155. <parameter name="y" transfer-ownership="none">
  10156. <doc xml:space="preserve">Y position of left edge of baseline, in user space coordinates
  10157. in Pango units.</doc>
  10158. <type name="gint" c:type="int"/>
  10159. </parameter>
  10160. </parameters>
  10161. </callback>
  10162. </field>
  10163. <field name="draw_rectangle">
  10164. <callback name="draw_rectangle">
  10165. <return-value transfer-ownership="none">
  10166. <type name="none" c:type="void"/>
  10167. </return-value>
  10168. <parameters>
  10169. <parameter name="renderer" transfer-ownership="none">
  10170. <doc xml:space="preserve">a #PangoRenderer</doc>
  10171. <type name="Renderer" c:type="PangoRenderer*"/>
  10172. </parameter>
  10173. <parameter name="part" transfer-ownership="none">
  10174. <doc xml:space="preserve">type of object this rectangle is part of</doc>
  10175. <type name="RenderPart" c:type="PangoRenderPart"/>
  10176. </parameter>
  10177. <parameter name="x" transfer-ownership="none">
  10178. <doc xml:space="preserve">X position at which to draw rectangle, in user space coordinates in Pango units</doc>
  10179. <type name="gint" c:type="int"/>
  10180. </parameter>
  10181. <parameter name="y" transfer-ownership="none">
  10182. <doc xml:space="preserve">Y position at which to draw rectangle, in user space coordinates in Pango units</doc>
  10183. <type name="gint" c:type="int"/>
  10184. </parameter>
  10185. <parameter name="width" transfer-ownership="none">
  10186. <doc xml:space="preserve">width of rectangle in Pango units in user space coordinates</doc>
  10187. <type name="gint" c:type="int"/>
  10188. </parameter>
  10189. <parameter name="height" transfer-ownership="none">
  10190. <doc xml:space="preserve">height of rectangle in Pango units in user space coordinates</doc>
  10191. <type name="gint" c:type="int"/>
  10192. </parameter>
  10193. </parameters>
  10194. </callback>
  10195. </field>
  10196. <field name="draw_error_underline">
  10197. <callback name="draw_error_underline">
  10198. <return-value transfer-ownership="none">
  10199. <type name="none" c:type="void"/>
  10200. </return-value>
  10201. <parameters>
  10202. <parameter name="renderer" transfer-ownership="none">
  10203. <doc xml:space="preserve">a #PangoRenderer</doc>
  10204. <type name="Renderer" c:type="PangoRenderer*"/>
  10205. </parameter>
  10206. <parameter name="x" transfer-ownership="none">
  10207. <doc xml:space="preserve">X coordinate of underline, in Pango units in user coordinate system</doc>
  10208. <type name="gint" c:type="int"/>
  10209. </parameter>
  10210. <parameter name="y" transfer-ownership="none">
  10211. <doc xml:space="preserve">Y coordinate of underline, in Pango units in user coordinate system</doc>
  10212. <type name="gint" c:type="int"/>
  10213. </parameter>
  10214. <parameter name="width" transfer-ownership="none">
  10215. <doc xml:space="preserve">width of underline, in Pango units in user coordinate system</doc>
  10216. <type name="gint" c:type="int"/>
  10217. </parameter>
  10218. <parameter name="height" transfer-ownership="none">
  10219. <doc xml:space="preserve">height of underline, in Pango units in user coordinate system</doc>
  10220. <type name="gint" c:type="int"/>
  10221. </parameter>
  10222. </parameters>
  10223. </callback>
  10224. </field>
  10225. <field name="draw_shape">
  10226. <callback name="draw_shape">
  10227. <return-value transfer-ownership="none">
  10228. <type name="none" c:type="void"/>
  10229. </return-value>
  10230. <parameters>
  10231. <parameter name="renderer" transfer-ownership="none">
  10232. <type name="Renderer" c:type="PangoRenderer*"/>
  10233. </parameter>
  10234. <parameter name="attr" transfer-ownership="none">
  10235. <type name="AttrShape" c:type="PangoAttrShape*"/>
  10236. </parameter>
  10237. <parameter name="x" transfer-ownership="none">
  10238. <type name="gint" c:type="int"/>
  10239. </parameter>
  10240. <parameter name="y" transfer-ownership="none">
  10241. <type name="gint" c:type="int"/>
  10242. </parameter>
  10243. </parameters>
  10244. </callback>
  10245. </field>
  10246. <field name="draw_trapezoid">
  10247. <callback name="draw_trapezoid">
  10248. <return-value transfer-ownership="none">
  10249. <type name="none" c:type="void"/>
  10250. </return-value>
  10251. <parameters>
  10252. <parameter name="renderer" transfer-ownership="none">
  10253. <doc xml:space="preserve">a #PangoRenderer</doc>
  10254. <type name="Renderer" c:type="PangoRenderer*"/>
  10255. </parameter>
  10256. <parameter name="part" transfer-ownership="none">
  10257. <doc xml:space="preserve">type of object this trapezoid is part of</doc>
  10258. <type name="RenderPart" c:type="PangoRenderPart"/>
  10259. </parameter>
  10260. <parameter name="y1_" transfer-ownership="none">
  10261. <doc xml:space="preserve">Y coordinate of top of trapezoid</doc>
  10262. <type name="gdouble" c:type="double"/>
  10263. </parameter>
  10264. <parameter name="x11" transfer-ownership="none">
  10265. <doc xml:space="preserve">X coordinate of left end of top of trapezoid</doc>
  10266. <type name="gdouble" c:type="double"/>
  10267. </parameter>
  10268. <parameter name="x21" transfer-ownership="none">
  10269. <doc xml:space="preserve">X coordinate of right end of top of trapezoid</doc>
  10270. <type name="gdouble" c:type="double"/>
  10271. </parameter>
  10272. <parameter name="y2" transfer-ownership="none">
  10273. <doc xml:space="preserve">Y coordinate of bottom of trapezoid</doc>
  10274. <type name="gdouble" c:type="double"/>
  10275. </parameter>
  10276. <parameter name="x12" transfer-ownership="none">
  10277. <doc xml:space="preserve">X coordinate of left end of bottom of trapezoid</doc>
  10278. <type name="gdouble" c:type="double"/>
  10279. </parameter>
  10280. <parameter name="x22" transfer-ownership="none">
  10281. <doc xml:space="preserve">X coordinate of right end of bottom of trapezoid</doc>
  10282. <type name="gdouble" c:type="double"/>
  10283. </parameter>
  10284. </parameters>
  10285. </callback>
  10286. </field>
  10287. <field name="draw_glyph">
  10288. <callback name="draw_glyph">
  10289. <return-value transfer-ownership="none">
  10290. <type name="none" c:type="void"/>
  10291. </return-value>
  10292. <parameters>
  10293. <parameter name="renderer" transfer-ownership="none">
  10294. <doc xml:space="preserve">a #PangoRenderer</doc>
  10295. <type name="Renderer" c:type="PangoRenderer*"/>
  10296. </parameter>
  10297. <parameter name="font" transfer-ownership="none">
  10298. <doc xml:space="preserve">a #PangoFont</doc>
  10299. <type name="Font" c:type="PangoFont*"/>
  10300. </parameter>
  10301. <parameter name="glyph" transfer-ownership="none">
  10302. <doc xml:space="preserve">the glyph index of a single glyph</doc>
  10303. <type name="Glyph" c:type="PangoGlyph"/>
  10304. </parameter>
  10305. <parameter name="x" transfer-ownership="none">
  10306. <doc xml:space="preserve">X coordinate of left edge of baseline of glyph</doc>
  10307. <type name="gdouble" c:type="double"/>
  10308. </parameter>
  10309. <parameter name="y" transfer-ownership="none">
  10310. <doc xml:space="preserve">Y coordinate of left edge of baseline of glyph</doc>
  10311. <type name="gdouble" c:type="double"/>
  10312. </parameter>
  10313. </parameters>
  10314. </callback>
  10315. </field>
  10316. <field name="part_changed">
  10317. <callback name="part_changed">
  10318. <return-value transfer-ownership="none">
  10319. <type name="none" c:type="void"/>
  10320. </return-value>
  10321. <parameters>
  10322. <parameter name="renderer" transfer-ownership="none">
  10323. <doc xml:space="preserve">a #PangoRenderer</doc>
  10324. <type name="Renderer" c:type="PangoRenderer*"/>
  10325. </parameter>
  10326. <parameter name="part" transfer-ownership="none">
  10327. <doc xml:space="preserve">the part for which rendering has changed.</doc>
  10328. <type name="RenderPart" c:type="PangoRenderPart"/>
  10329. </parameter>
  10330. </parameters>
  10331. </callback>
  10332. </field>
  10333. <field name="begin">
  10334. <callback name="begin">
  10335. <return-value transfer-ownership="none">
  10336. <type name="none" c:type="void"/>
  10337. </return-value>
  10338. <parameters>
  10339. <parameter name="renderer" transfer-ownership="none">
  10340. <type name="Renderer" c:type="PangoRenderer*"/>
  10341. </parameter>
  10342. </parameters>
  10343. </callback>
  10344. </field>
  10345. <field name="end">
  10346. <callback name="end">
  10347. <return-value transfer-ownership="none">
  10348. <type name="none" c:type="void"/>
  10349. </return-value>
  10350. <parameters>
  10351. <parameter name="renderer" transfer-ownership="none">
  10352. <type name="Renderer" c:type="PangoRenderer*"/>
  10353. </parameter>
  10354. </parameters>
  10355. </callback>
  10356. </field>
  10357. <field name="prepare_run">
  10358. <callback name="prepare_run">
  10359. <return-value transfer-ownership="none">
  10360. <type name="none" c:type="void"/>
  10361. </return-value>
  10362. <parameters>
  10363. <parameter name="renderer" transfer-ownership="none">
  10364. <type name="Renderer" c:type="PangoRenderer*"/>
  10365. </parameter>
  10366. <parameter name="run" transfer-ownership="none">
  10367. <type name="LayoutRun" c:type="PangoLayoutRun*"/>
  10368. </parameter>
  10369. </parameters>
  10370. </callback>
  10371. </field>
  10372. <field name="draw_glyph_item">
  10373. <callback name="draw_glyph_item">
  10374. <return-value transfer-ownership="none">
  10375. <type name="none" c:type="void"/>
  10376. </return-value>
  10377. <parameters>
  10378. <parameter name="renderer" transfer-ownership="none">
  10379. <doc xml:space="preserve">a #PangoRenderer</doc>
  10380. <type name="Renderer" c:type="PangoRenderer*"/>
  10381. </parameter>
  10382. <parameter name="text"
  10383. transfer-ownership="none"
  10384. nullable="1"
  10385. allow-none="1">
  10386. <doc xml:space="preserve">the UTF-8 text that @glyph_item refers to, or %NULL</doc>
  10387. <type name="utf8" c:type="const char*"/>
  10388. </parameter>
  10389. <parameter name="glyph_item" transfer-ownership="none">
  10390. <doc xml:space="preserve">a #PangoGlyphItem</doc>
  10391. <type name="GlyphItem" c:type="PangoGlyphItem*"/>
  10392. </parameter>
  10393. <parameter name="x" transfer-ownership="none">
  10394. <doc xml:space="preserve">X position of left edge of baseline, in user space coordinates
  10395. in Pango units.</doc>
  10396. <type name="gint" c:type="int"/>
  10397. </parameter>
  10398. <parameter name="y" transfer-ownership="none">
  10399. <doc xml:space="preserve">Y position of left edge of baseline, in user space coordinates
  10400. in Pango units.</doc>
  10401. <type name="gint" c:type="int"/>
  10402. </parameter>
  10403. </parameters>
  10404. </callback>
  10405. </field>
  10406. <field name="_pango_reserved2" introspectable="0">
  10407. <callback name="_pango_reserved2">
  10408. <return-value transfer-ownership="none">
  10409. <type name="none" c:type="void"/>
  10410. </return-value>
  10411. </callback>
  10412. </field>
  10413. <field name="_pango_reserved3" introspectable="0">
  10414. <callback name="_pango_reserved3">
  10415. <return-value transfer-ownership="none">
  10416. <type name="none" c:type="void"/>
  10417. </return-value>
  10418. </callback>
  10419. </field>
  10420. <field name="_pango_reserved4" introspectable="0">
  10421. <callback name="_pango_reserved4">
  10422. <return-value transfer-ownership="none">
  10423. <type name="none" c:type="void"/>
  10424. </return-value>
  10425. </callback>
  10426. </field>
  10427. </record>
  10428. <record name="RendererPrivate" c:type="PangoRendererPrivate" disguised="1">
  10429. </record>
  10430. <constant name="SCALE" value="1024" c:type="PANGO_SCALE">
  10431. <doc xml:space="preserve">The %PANGO_SCALE macro represents the scale between dimensions used
  10432. for Pango distances and device units. (The definition of device
  10433. units is dependent on the output device; it will typically be pixels
  10434. for a screen, and points for a printer.) %PANGO_SCALE is currently
  10435. 1024, but this may be changed in the future.
  10436. When setting font sizes, device units are always considered to be
  10437. points (as in "12 point font"), rather than pixels.</doc>
  10438. <type name="gint" c:type="gint"/>
  10439. </constant>
  10440. <enumeration name="Script"
  10441. glib:type-name="PangoScript"
  10442. glib:get-type="pango_script_get_type"
  10443. c:type="PangoScript">
  10444. <doc xml:space="preserve">The #PangoScript enumeration identifies different writing
  10445. systems. The values correspond to the names as defined in the
  10446. Unicode standard.
  10447. Note that new types may be added in the future. Applications should be ready
  10448. to handle unknown values. This enumeration is interchangeable with
  10449. #GUnicodeScript. See &lt;ulink
  10450. url="http://www.unicode.org/reports/tr24/"&gt;Unicode Standard Annex
  10451. #24: Script names&lt;/ulink&gt;.</doc>
  10452. <member name="invalid_code"
  10453. value="-1"
  10454. c:identifier="PANGO_SCRIPT_INVALID_CODE"
  10455. glib:nick="invalid-code">
  10456. <doc xml:space="preserve">a value never returned from pango_script_for_unichar()</doc>
  10457. </member>
  10458. <member name="common"
  10459. value="0"
  10460. c:identifier="PANGO_SCRIPT_COMMON"
  10461. glib:nick="common">
  10462. <doc xml:space="preserve">a character used by multiple different scripts</doc>
  10463. </member>
  10464. <member name="inherited"
  10465. value="1"
  10466. c:identifier="PANGO_SCRIPT_INHERITED"
  10467. glib:nick="inherited">
  10468. <doc xml:space="preserve">a mark glyph that takes its script from the
  10469. base glyph to which it is attached</doc>
  10470. </member>
  10471. <member name="arabic"
  10472. value="2"
  10473. c:identifier="PANGO_SCRIPT_ARABIC"
  10474. glib:nick="arabic">
  10475. <doc xml:space="preserve">Arabic</doc>
  10476. </member>
  10477. <member name="armenian"
  10478. value="3"
  10479. c:identifier="PANGO_SCRIPT_ARMENIAN"
  10480. glib:nick="armenian">
  10481. <doc xml:space="preserve">Armenian</doc>
  10482. </member>
  10483. <member name="bengali"
  10484. value="4"
  10485. c:identifier="PANGO_SCRIPT_BENGALI"
  10486. glib:nick="bengali">
  10487. <doc xml:space="preserve">Bengali</doc>
  10488. </member>
  10489. <member name="bopomofo"
  10490. value="5"
  10491. c:identifier="PANGO_SCRIPT_BOPOMOFO"
  10492. glib:nick="bopomofo">
  10493. <doc xml:space="preserve">Bopomofo</doc>
  10494. </member>
  10495. <member name="cherokee"
  10496. value="6"
  10497. c:identifier="PANGO_SCRIPT_CHEROKEE"
  10498. glib:nick="cherokee">
  10499. <doc xml:space="preserve">Cherokee</doc>
  10500. </member>
  10501. <member name="coptic"
  10502. value="7"
  10503. c:identifier="PANGO_SCRIPT_COPTIC"
  10504. glib:nick="coptic">
  10505. <doc xml:space="preserve">Coptic</doc>
  10506. </member>
  10507. <member name="cyrillic"
  10508. value="8"
  10509. c:identifier="PANGO_SCRIPT_CYRILLIC"
  10510. glib:nick="cyrillic">
  10511. <doc xml:space="preserve">Cyrillic</doc>
  10512. </member>
  10513. <member name="deseret"
  10514. value="9"
  10515. c:identifier="PANGO_SCRIPT_DESERET"
  10516. glib:nick="deseret">
  10517. <doc xml:space="preserve">Deseret</doc>
  10518. </member>
  10519. <member name="devanagari"
  10520. value="10"
  10521. c:identifier="PANGO_SCRIPT_DEVANAGARI"
  10522. glib:nick="devanagari">
  10523. <doc xml:space="preserve">Devanagari</doc>
  10524. </member>
  10525. <member name="ethiopic"
  10526. value="11"
  10527. c:identifier="PANGO_SCRIPT_ETHIOPIC"
  10528. glib:nick="ethiopic">
  10529. <doc xml:space="preserve">Ethiopic</doc>
  10530. </member>
  10531. <member name="georgian"
  10532. value="12"
  10533. c:identifier="PANGO_SCRIPT_GEORGIAN"
  10534. glib:nick="georgian">
  10535. <doc xml:space="preserve">Georgian</doc>
  10536. </member>
  10537. <member name="gothic"
  10538. value="13"
  10539. c:identifier="PANGO_SCRIPT_GOTHIC"
  10540. glib:nick="gothic">
  10541. <doc xml:space="preserve">Gothic</doc>
  10542. </member>
  10543. <member name="greek"
  10544. value="14"
  10545. c:identifier="PANGO_SCRIPT_GREEK"
  10546. glib:nick="greek">
  10547. <doc xml:space="preserve">Greek</doc>
  10548. </member>
  10549. <member name="gujarati"
  10550. value="15"
  10551. c:identifier="PANGO_SCRIPT_GUJARATI"
  10552. glib:nick="gujarati">
  10553. <doc xml:space="preserve">Gujarati</doc>
  10554. </member>
  10555. <member name="gurmukhi"
  10556. value="16"
  10557. c:identifier="PANGO_SCRIPT_GURMUKHI"
  10558. glib:nick="gurmukhi">
  10559. <doc xml:space="preserve">Gurmukhi</doc>
  10560. </member>
  10561. <member name="han"
  10562. value="17"
  10563. c:identifier="PANGO_SCRIPT_HAN"
  10564. glib:nick="han">
  10565. <doc xml:space="preserve">Han</doc>
  10566. </member>
  10567. <member name="hangul"
  10568. value="18"
  10569. c:identifier="PANGO_SCRIPT_HANGUL"
  10570. glib:nick="hangul">
  10571. <doc xml:space="preserve">Hangul</doc>
  10572. </member>
  10573. <member name="hebrew"
  10574. value="19"
  10575. c:identifier="PANGO_SCRIPT_HEBREW"
  10576. glib:nick="hebrew">
  10577. <doc xml:space="preserve">Hebrew</doc>
  10578. </member>
  10579. <member name="hiragana"
  10580. value="20"
  10581. c:identifier="PANGO_SCRIPT_HIRAGANA"
  10582. glib:nick="hiragana">
  10583. <doc xml:space="preserve">Hiragana</doc>
  10584. </member>
  10585. <member name="kannada"
  10586. value="21"
  10587. c:identifier="PANGO_SCRIPT_KANNADA"
  10588. glib:nick="kannada">
  10589. <doc xml:space="preserve">Kannada</doc>
  10590. </member>
  10591. <member name="katakana"
  10592. value="22"
  10593. c:identifier="PANGO_SCRIPT_KATAKANA"
  10594. glib:nick="katakana">
  10595. <doc xml:space="preserve">Katakana</doc>
  10596. </member>
  10597. <member name="khmer"
  10598. value="23"
  10599. c:identifier="PANGO_SCRIPT_KHMER"
  10600. glib:nick="khmer">
  10601. <doc xml:space="preserve">Khmer</doc>
  10602. </member>
  10603. <member name="lao"
  10604. value="24"
  10605. c:identifier="PANGO_SCRIPT_LAO"
  10606. glib:nick="lao">
  10607. <doc xml:space="preserve">Lao</doc>
  10608. </member>
  10609. <member name="latin"
  10610. value="25"
  10611. c:identifier="PANGO_SCRIPT_LATIN"
  10612. glib:nick="latin">
  10613. <doc xml:space="preserve">Latin</doc>
  10614. </member>
  10615. <member name="malayalam"
  10616. value="26"
  10617. c:identifier="PANGO_SCRIPT_MALAYALAM"
  10618. glib:nick="malayalam">
  10619. <doc xml:space="preserve">Malayalam</doc>
  10620. </member>
  10621. <member name="mongolian"
  10622. value="27"
  10623. c:identifier="PANGO_SCRIPT_MONGOLIAN"
  10624. glib:nick="mongolian">
  10625. <doc xml:space="preserve">Mongolian</doc>
  10626. </member>
  10627. <member name="myanmar"
  10628. value="28"
  10629. c:identifier="PANGO_SCRIPT_MYANMAR"
  10630. glib:nick="myanmar">
  10631. <doc xml:space="preserve">Myanmar</doc>
  10632. </member>
  10633. <member name="ogham"
  10634. value="29"
  10635. c:identifier="PANGO_SCRIPT_OGHAM"
  10636. glib:nick="ogham">
  10637. <doc xml:space="preserve">Ogham</doc>
  10638. </member>
  10639. <member name="old_italic"
  10640. value="30"
  10641. c:identifier="PANGO_SCRIPT_OLD_ITALIC"
  10642. glib:nick="old-italic">
  10643. <doc xml:space="preserve">Old Italic</doc>
  10644. </member>
  10645. <member name="oriya"
  10646. value="31"
  10647. c:identifier="PANGO_SCRIPT_ORIYA"
  10648. glib:nick="oriya">
  10649. <doc xml:space="preserve">Oriya</doc>
  10650. </member>
  10651. <member name="runic"
  10652. value="32"
  10653. c:identifier="PANGO_SCRIPT_RUNIC"
  10654. glib:nick="runic">
  10655. <doc xml:space="preserve">Runic</doc>
  10656. </member>
  10657. <member name="sinhala"
  10658. value="33"
  10659. c:identifier="PANGO_SCRIPT_SINHALA"
  10660. glib:nick="sinhala">
  10661. <doc xml:space="preserve">Sinhala</doc>
  10662. </member>
  10663. <member name="syriac"
  10664. value="34"
  10665. c:identifier="PANGO_SCRIPT_SYRIAC"
  10666. glib:nick="syriac">
  10667. <doc xml:space="preserve">Syriac</doc>
  10668. </member>
  10669. <member name="tamil"
  10670. value="35"
  10671. c:identifier="PANGO_SCRIPT_TAMIL"
  10672. glib:nick="tamil">
  10673. <doc xml:space="preserve">Tamil</doc>
  10674. </member>
  10675. <member name="telugu"
  10676. value="36"
  10677. c:identifier="PANGO_SCRIPT_TELUGU"
  10678. glib:nick="telugu">
  10679. <doc xml:space="preserve">Telugu</doc>
  10680. </member>
  10681. <member name="thaana"
  10682. value="37"
  10683. c:identifier="PANGO_SCRIPT_THAANA"
  10684. glib:nick="thaana">
  10685. <doc xml:space="preserve">Thaana</doc>
  10686. </member>
  10687. <member name="thai"
  10688. value="38"
  10689. c:identifier="PANGO_SCRIPT_THAI"
  10690. glib:nick="thai">
  10691. <doc xml:space="preserve">Thai</doc>
  10692. </member>
  10693. <member name="tibetan"
  10694. value="39"
  10695. c:identifier="PANGO_SCRIPT_TIBETAN"
  10696. glib:nick="tibetan">
  10697. <doc xml:space="preserve">Tibetan</doc>
  10698. </member>
  10699. <member name="canadian_aboriginal"
  10700. value="40"
  10701. c:identifier="PANGO_SCRIPT_CANADIAN_ABORIGINAL"
  10702. glib:nick="canadian-aboriginal">
  10703. <doc xml:space="preserve">Canadian Aboriginal</doc>
  10704. </member>
  10705. <member name="yi"
  10706. value="41"
  10707. c:identifier="PANGO_SCRIPT_YI"
  10708. glib:nick="yi">
  10709. <doc xml:space="preserve">Yi</doc>
  10710. </member>
  10711. <member name="tagalog"
  10712. value="42"
  10713. c:identifier="PANGO_SCRIPT_TAGALOG"
  10714. glib:nick="tagalog">
  10715. <doc xml:space="preserve">Tagalog</doc>
  10716. </member>
  10717. <member name="hanunoo"
  10718. value="43"
  10719. c:identifier="PANGO_SCRIPT_HANUNOO"
  10720. glib:nick="hanunoo">
  10721. <doc xml:space="preserve">Hanunoo</doc>
  10722. </member>
  10723. <member name="buhid"
  10724. value="44"
  10725. c:identifier="PANGO_SCRIPT_BUHID"
  10726. glib:nick="buhid">
  10727. <doc xml:space="preserve">Buhid</doc>
  10728. </member>
  10729. <member name="tagbanwa"
  10730. value="45"
  10731. c:identifier="PANGO_SCRIPT_TAGBANWA"
  10732. glib:nick="tagbanwa">
  10733. <doc xml:space="preserve">Tagbanwa</doc>
  10734. </member>
  10735. <member name="braille"
  10736. value="46"
  10737. c:identifier="PANGO_SCRIPT_BRAILLE"
  10738. glib:nick="braille">
  10739. <doc xml:space="preserve">Braille</doc>
  10740. </member>
  10741. <member name="cypriot"
  10742. value="47"
  10743. c:identifier="PANGO_SCRIPT_CYPRIOT"
  10744. glib:nick="cypriot">
  10745. <doc xml:space="preserve">Cypriot</doc>
  10746. </member>
  10747. <member name="limbu"
  10748. value="48"
  10749. c:identifier="PANGO_SCRIPT_LIMBU"
  10750. glib:nick="limbu">
  10751. <doc xml:space="preserve">Limbu</doc>
  10752. </member>
  10753. <member name="osmanya"
  10754. value="49"
  10755. c:identifier="PANGO_SCRIPT_OSMANYA"
  10756. glib:nick="osmanya">
  10757. <doc xml:space="preserve">Osmanya</doc>
  10758. </member>
  10759. <member name="shavian"
  10760. value="50"
  10761. c:identifier="PANGO_SCRIPT_SHAVIAN"
  10762. glib:nick="shavian">
  10763. <doc xml:space="preserve">Shavian</doc>
  10764. </member>
  10765. <member name="linear_b"
  10766. value="51"
  10767. c:identifier="PANGO_SCRIPT_LINEAR_B"
  10768. glib:nick="linear-b">
  10769. <doc xml:space="preserve">Linear B</doc>
  10770. </member>
  10771. <member name="tai_le"
  10772. value="52"
  10773. c:identifier="PANGO_SCRIPT_TAI_LE"
  10774. glib:nick="tai-le">
  10775. <doc xml:space="preserve">Tai Le</doc>
  10776. </member>
  10777. <member name="ugaritic"
  10778. value="53"
  10779. c:identifier="PANGO_SCRIPT_UGARITIC"
  10780. glib:nick="ugaritic">
  10781. <doc xml:space="preserve">Ugaritic</doc>
  10782. </member>
  10783. <member name="new_tai_lue"
  10784. value="54"
  10785. c:identifier="PANGO_SCRIPT_NEW_TAI_LUE"
  10786. glib:nick="new-tai-lue">
  10787. <doc xml:space="preserve">New Tai Lue. Since 1.10</doc>
  10788. </member>
  10789. <member name="buginese"
  10790. value="55"
  10791. c:identifier="PANGO_SCRIPT_BUGINESE"
  10792. glib:nick="buginese">
  10793. <doc xml:space="preserve">Buginese. Since 1.10</doc>
  10794. </member>
  10795. <member name="glagolitic"
  10796. value="56"
  10797. c:identifier="PANGO_SCRIPT_GLAGOLITIC"
  10798. glib:nick="glagolitic">
  10799. <doc xml:space="preserve">Glagolitic. Since 1.10</doc>
  10800. </member>
  10801. <member name="tifinagh"
  10802. value="57"
  10803. c:identifier="PANGO_SCRIPT_TIFINAGH"
  10804. glib:nick="tifinagh">
  10805. <doc xml:space="preserve">Tifinagh. Since 1.10</doc>
  10806. </member>
  10807. <member name="syloti_nagri"
  10808. value="58"
  10809. c:identifier="PANGO_SCRIPT_SYLOTI_NAGRI"
  10810. glib:nick="syloti-nagri">
  10811. <doc xml:space="preserve">Syloti Nagri. Since 1.10</doc>
  10812. </member>
  10813. <member name="old_persian"
  10814. value="59"
  10815. c:identifier="PANGO_SCRIPT_OLD_PERSIAN"
  10816. glib:nick="old-persian">
  10817. <doc xml:space="preserve">Old Persian. Since 1.10</doc>
  10818. </member>
  10819. <member name="kharoshthi"
  10820. value="60"
  10821. c:identifier="PANGO_SCRIPT_KHAROSHTHI"
  10822. glib:nick="kharoshthi">
  10823. <doc xml:space="preserve">Kharoshthi. Since 1.10</doc>
  10824. </member>
  10825. <member name="unknown"
  10826. value="61"
  10827. c:identifier="PANGO_SCRIPT_UNKNOWN"
  10828. glib:nick="unknown">
  10829. <doc xml:space="preserve">an unassigned code point. Since 1.14</doc>
  10830. </member>
  10831. <member name="balinese"
  10832. value="62"
  10833. c:identifier="PANGO_SCRIPT_BALINESE"
  10834. glib:nick="balinese">
  10835. <doc xml:space="preserve">Balinese. Since 1.14</doc>
  10836. </member>
  10837. <member name="cuneiform"
  10838. value="63"
  10839. c:identifier="PANGO_SCRIPT_CUNEIFORM"
  10840. glib:nick="cuneiform">
  10841. <doc xml:space="preserve">Cuneiform. Since 1.14</doc>
  10842. </member>
  10843. <member name="phoenician"
  10844. value="64"
  10845. c:identifier="PANGO_SCRIPT_PHOENICIAN"
  10846. glib:nick="phoenician">
  10847. <doc xml:space="preserve">Phoenician. Since 1.14</doc>
  10848. </member>
  10849. <member name="phags_pa"
  10850. value="65"
  10851. c:identifier="PANGO_SCRIPT_PHAGS_PA"
  10852. glib:nick="phags-pa">
  10853. <doc xml:space="preserve">Phags-pa. Since 1.14</doc>
  10854. </member>
  10855. <member name="nko"
  10856. value="66"
  10857. c:identifier="PANGO_SCRIPT_NKO"
  10858. glib:nick="nko">
  10859. <doc xml:space="preserve">N'Ko. Since 1.14</doc>
  10860. </member>
  10861. <member name="kayah_li"
  10862. value="67"
  10863. c:identifier="PANGO_SCRIPT_KAYAH_LI"
  10864. glib:nick="kayah-li">
  10865. <doc xml:space="preserve">Kayah Li. Since 1.20.1</doc>
  10866. </member>
  10867. <member name="lepcha"
  10868. value="68"
  10869. c:identifier="PANGO_SCRIPT_LEPCHA"
  10870. glib:nick="lepcha">
  10871. <doc xml:space="preserve">Lepcha. Since 1.20.1</doc>
  10872. </member>
  10873. <member name="rejang"
  10874. value="69"
  10875. c:identifier="PANGO_SCRIPT_REJANG"
  10876. glib:nick="rejang">
  10877. <doc xml:space="preserve">Rejang. Since 1.20.1</doc>
  10878. </member>
  10879. <member name="sundanese"
  10880. value="70"
  10881. c:identifier="PANGO_SCRIPT_SUNDANESE"
  10882. glib:nick="sundanese">
  10883. <doc xml:space="preserve">Sundanese. Since 1.20.1</doc>
  10884. </member>
  10885. <member name="saurashtra"
  10886. value="71"
  10887. c:identifier="PANGO_SCRIPT_SAURASHTRA"
  10888. glib:nick="saurashtra">
  10889. <doc xml:space="preserve">Saurashtra. Since 1.20.1</doc>
  10890. </member>
  10891. <member name="cham"
  10892. value="72"
  10893. c:identifier="PANGO_SCRIPT_CHAM"
  10894. glib:nick="cham">
  10895. <doc xml:space="preserve">Cham. Since 1.20.1</doc>
  10896. </member>
  10897. <member name="ol_chiki"
  10898. value="73"
  10899. c:identifier="PANGO_SCRIPT_OL_CHIKI"
  10900. glib:nick="ol-chiki">
  10901. <doc xml:space="preserve">Ol Chiki. Since 1.20.1</doc>
  10902. </member>
  10903. <member name="vai"
  10904. value="74"
  10905. c:identifier="PANGO_SCRIPT_VAI"
  10906. glib:nick="vai">
  10907. <doc xml:space="preserve">Vai. Since 1.20.1</doc>
  10908. </member>
  10909. <member name="carian"
  10910. value="75"
  10911. c:identifier="PANGO_SCRIPT_CARIAN"
  10912. glib:nick="carian">
  10913. <doc xml:space="preserve">Carian. Since 1.20.1</doc>
  10914. </member>
  10915. <member name="lycian"
  10916. value="76"
  10917. c:identifier="PANGO_SCRIPT_LYCIAN"
  10918. glib:nick="lycian">
  10919. <doc xml:space="preserve">Lycian. Since 1.20.1</doc>
  10920. </member>
  10921. <member name="lydian"
  10922. value="77"
  10923. c:identifier="PANGO_SCRIPT_LYDIAN"
  10924. glib:nick="lydian">
  10925. <doc xml:space="preserve">Lydian. Since 1.20.1</doc>
  10926. </member>
  10927. <member name="batak"
  10928. value="78"
  10929. c:identifier="PANGO_SCRIPT_BATAK"
  10930. glib:nick="batak">
  10931. <doc xml:space="preserve">Batak. Since 1.32</doc>
  10932. </member>
  10933. <member name="brahmi"
  10934. value="79"
  10935. c:identifier="PANGO_SCRIPT_BRAHMI"
  10936. glib:nick="brahmi">
  10937. <doc xml:space="preserve">Brahmi. Since 1.32</doc>
  10938. </member>
  10939. <member name="mandaic"
  10940. value="80"
  10941. c:identifier="PANGO_SCRIPT_MANDAIC"
  10942. glib:nick="mandaic">
  10943. <doc xml:space="preserve">Mandaic. Since 1.32</doc>
  10944. </member>
  10945. <member name="chakma"
  10946. value="81"
  10947. c:identifier="PANGO_SCRIPT_CHAKMA"
  10948. glib:nick="chakma">
  10949. <doc xml:space="preserve">Chakma. Since: 1.32</doc>
  10950. </member>
  10951. <member name="meroitic_cursive"
  10952. value="82"
  10953. c:identifier="PANGO_SCRIPT_MEROITIC_CURSIVE"
  10954. glib:nick="meroitic-cursive">
  10955. <doc xml:space="preserve">Meroitic Cursive. Since: 1.32</doc>
  10956. </member>
  10957. <member name="meroitic_hieroglyphs"
  10958. value="83"
  10959. c:identifier="PANGO_SCRIPT_MEROITIC_HIEROGLYPHS"
  10960. glib:nick="meroitic-hieroglyphs">
  10961. <doc xml:space="preserve">Meroitic Hieroglyphs. Since: 1.32</doc>
  10962. </member>
  10963. <member name="miao"
  10964. value="84"
  10965. c:identifier="PANGO_SCRIPT_MIAO"
  10966. glib:nick="miao">
  10967. <doc xml:space="preserve">Miao. Since: 1.32</doc>
  10968. </member>
  10969. <member name="sharada"
  10970. value="85"
  10971. c:identifier="PANGO_SCRIPT_SHARADA"
  10972. glib:nick="sharada">
  10973. <doc xml:space="preserve">Sharada. Since: 1.32</doc>
  10974. </member>
  10975. <member name="sora_sompeng"
  10976. value="86"
  10977. c:identifier="PANGO_SCRIPT_SORA_SOMPENG"
  10978. glib:nick="sora-sompeng">
  10979. <doc xml:space="preserve">Sora Sompeng. Since: 1.32</doc>
  10980. </member>
  10981. <member name="takri"
  10982. value="87"
  10983. c:identifier="PANGO_SCRIPT_TAKRI"
  10984. glib:nick="takri">
  10985. <doc xml:space="preserve">Takri. Since: 1.32</doc>
  10986. </member>
  10987. <member name="bassa_vah"
  10988. value="88"
  10989. c:identifier="PANGO_SCRIPT_BASSA_VAH"
  10990. glib:nick="bassa-vah">
  10991. <doc xml:space="preserve">Bassa. Since: 1.40</doc>
  10992. </member>
  10993. <member name="caucasian_albanian"
  10994. value="89"
  10995. c:identifier="PANGO_SCRIPT_CAUCASIAN_ALBANIAN"
  10996. glib:nick="caucasian-albanian">
  10997. <doc xml:space="preserve">Caucasian Albanian. Since: 1.40</doc>
  10998. </member>
  10999. <member name="duployan"
  11000. value="90"
  11001. c:identifier="PANGO_SCRIPT_DUPLOYAN"
  11002. glib:nick="duployan">
  11003. <doc xml:space="preserve">Duployan. Since: 1.40</doc>
  11004. </member>
  11005. <member name="elbasan"
  11006. value="91"
  11007. c:identifier="PANGO_SCRIPT_ELBASAN"
  11008. glib:nick="elbasan">
  11009. <doc xml:space="preserve">Elbasan. Since: 1.40</doc>
  11010. </member>
  11011. <member name="grantha"
  11012. value="92"
  11013. c:identifier="PANGO_SCRIPT_GRANTHA"
  11014. glib:nick="grantha">
  11015. <doc xml:space="preserve">Grantha. Since: 1.40</doc>
  11016. </member>
  11017. <member name="khojki"
  11018. value="93"
  11019. c:identifier="PANGO_SCRIPT_KHOJKI"
  11020. glib:nick="khojki">
  11021. <doc xml:space="preserve">Kjohki. Since: 1.40</doc>
  11022. </member>
  11023. <member name="khudawadi"
  11024. value="94"
  11025. c:identifier="PANGO_SCRIPT_KHUDAWADI"
  11026. glib:nick="khudawadi">
  11027. <doc xml:space="preserve">Khudawadi, Sindhi. Since: 1.40</doc>
  11028. </member>
  11029. <member name="linear_a"
  11030. value="95"
  11031. c:identifier="PANGO_SCRIPT_LINEAR_A"
  11032. glib:nick="linear-a">
  11033. <doc xml:space="preserve">Linear A. Since: 1.40</doc>
  11034. </member>
  11035. <member name="mahajani"
  11036. value="96"
  11037. c:identifier="PANGO_SCRIPT_MAHAJANI"
  11038. glib:nick="mahajani">
  11039. <doc xml:space="preserve">Mahajani. Since: 1.40</doc>
  11040. </member>
  11041. <member name="manichaean"
  11042. value="97"
  11043. c:identifier="PANGO_SCRIPT_MANICHAEAN"
  11044. glib:nick="manichaean">
  11045. <doc xml:space="preserve">Manichaean. Since: 1.40</doc>
  11046. </member>
  11047. <member name="mende_kikakui"
  11048. value="98"
  11049. c:identifier="PANGO_SCRIPT_MENDE_KIKAKUI"
  11050. glib:nick="mende-kikakui">
  11051. <doc xml:space="preserve">Mende Kikakui. Since: 1.40</doc>
  11052. </member>
  11053. <member name="modi"
  11054. value="99"
  11055. c:identifier="PANGO_SCRIPT_MODI"
  11056. glib:nick="modi">
  11057. <doc xml:space="preserve">Modi. Since: 1.40</doc>
  11058. </member>
  11059. <member name="mro"
  11060. value="100"
  11061. c:identifier="PANGO_SCRIPT_MRO"
  11062. glib:nick="mro">
  11063. <doc xml:space="preserve">Mro. Since: 1.40</doc>
  11064. </member>
  11065. <member name="nabataean"
  11066. value="101"
  11067. c:identifier="PANGO_SCRIPT_NABATAEAN"
  11068. glib:nick="nabataean">
  11069. <doc xml:space="preserve">Nabataean. Since: 1.40</doc>
  11070. </member>
  11071. <member name="old_north_arabian"
  11072. value="102"
  11073. c:identifier="PANGO_SCRIPT_OLD_NORTH_ARABIAN"
  11074. glib:nick="old-north-arabian">
  11075. <doc xml:space="preserve">Old North Arabian. Since: 1.40</doc>
  11076. </member>
  11077. <member name="old_permic"
  11078. value="103"
  11079. c:identifier="PANGO_SCRIPT_OLD_PERMIC"
  11080. glib:nick="old-permic">
  11081. <doc xml:space="preserve">Old Permic. Since: 1.40</doc>
  11082. </member>
  11083. <member name="pahawh_hmong"
  11084. value="104"
  11085. c:identifier="PANGO_SCRIPT_PAHAWH_HMONG"
  11086. glib:nick="pahawh-hmong">
  11087. <doc xml:space="preserve">Pahawh Hmong. Since: 1.40</doc>
  11088. </member>
  11089. <member name="palmyrene"
  11090. value="105"
  11091. c:identifier="PANGO_SCRIPT_PALMYRENE"
  11092. glib:nick="palmyrene">
  11093. <doc xml:space="preserve">Palmyrene. Since: 1.40</doc>
  11094. </member>
  11095. <member name="pau_cin_hau"
  11096. value="106"
  11097. c:identifier="PANGO_SCRIPT_PAU_CIN_HAU"
  11098. glib:nick="pau-cin-hau">
  11099. <doc xml:space="preserve">Pau Cin Hau. Since: 1.40</doc>
  11100. </member>
  11101. <member name="psalter_pahlavi"
  11102. value="107"
  11103. c:identifier="PANGO_SCRIPT_PSALTER_PAHLAVI"
  11104. glib:nick="psalter-pahlavi">
  11105. <doc xml:space="preserve">Psalter Pahlavi. Since: 1.40</doc>
  11106. </member>
  11107. <member name="siddham"
  11108. value="108"
  11109. c:identifier="PANGO_SCRIPT_SIDDHAM"
  11110. glib:nick="siddham">
  11111. <doc xml:space="preserve">Siddham. Since: 1.40</doc>
  11112. </member>
  11113. <member name="tirhuta"
  11114. value="109"
  11115. c:identifier="PANGO_SCRIPT_TIRHUTA"
  11116. glib:nick="tirhuta">
  11117. <doc xml:space="preserve">Tirhuta. Since: 1.40</doc>
  11118. </member>
  11119. <member name="warang_citi"
  11120. value="110"
  11121. c:identifier="PANGO_SCRIPT_WARANG_CITI"
  11122. glib:nick="warang-citi">
  11123. <doc xml:space="preserve">Warang Citi. Since: 1.40</doc>
  11124. </member>
  11125. <member name="ahom"
  11126. value="111"
  11127. c:identifier="PANGO_SCRIPT_AHOM"
  11128. glib:nick="ahom">
  11129. <doc xml:space="preserve">Ahom. Since: 1.40</doc>
  11130. </member>
  11131. <member name="anatolian_hieroglyphs"
  11132. value="112"
  11133. c:identifier="PANGO_SCRIPT_ANATOLIAN_HIEROGLYPHS"
  11134. glib:nick="anatolian-hieroglyphs">
  11135. <doc xml:space="preserve">Anatolian Hieroglyphs. Since: 1.40</doc>
  11136. </member>
  11137. <member name="hatran"
  11138. value="113"
  11139. c:identifier="PANGO_SCRIPT_HATRAN"
  11140. glib:nick="hatran">
  11141. <doc xml:space="preserve">Hatran. Since: 1.40</doc>
  11142. </member>
  11143. <member name="multani"
  11144. value="114"
  11145. c:identifier="PANGO_SCRIPT_MULTANI"
  11146. glib:nick="multani">
  11147. <doc xml:space="preserve">Multani. Since: 1.40</doc>
  11148. </member>
  11149. <member name="old_hungarian"
  11150. value="115"
  11151. c:identifier="PANGO_SCRIPT_OLD_HUNGARIAN"
  11152. glib:nick="old-hungarian">
  11153. <doc xml:space="preserve">Old Hungarian. Since: 1.40</doc>
  11154. </member>
  11155. <member name="signwriting"
  11156. value="116"
  11157. c:identifier="PANGO_SCRIPT_SIGNWRITING"
  11158. glib:nick="signwriting">
  11159. <doc xml:space="preserve">Signwriting. Since: 1.40</doc>
  11160. </member>
  11161. <function name="for_unichar"
  11162. c:identifier="pango_script_for_unichar"
  11163. version="1.4">
  11164. <doc xml:space="preserve">Looks up the #PangoScript for a particular character (as defined by
  11165. Unicode Standard Annex \#24). No check is made for @ch being a
  11166. valid Unicode character; if you pass in invalid character, the
  11167. result is undefined.
  11168. As of Pango 1.18, this function simply returns the return value of
  11169. g_unichar_get_script().</doc>
  11170. <return-value transfer-ownership="none">
  11171. <doc xml:space="preserve">the #PangoScript for the character.</doc>
  11172. <type name="Script" c:type="PangoScript"/>
  11173. </return-value>
  11174. <parameters>
  11175. <parameter name="ch" transfer-ownership="none">
  11176. <doc xml:space="preserve">a Unicode character</doc>
  11177. <type name="gunichar" c:type="gunichar"/>
  11178. </parameter>
  11179. </parameters>
  11180. </function>
  11181. <function name="get_sample_language"
  11182. c:identifier="pango_script_get_sample_language"
  11183. version="1.4">
  11184. <doc xml:space="preserve">Given a script, finds a language tag that is reasonably
  11185. representative of that script. This will usually be the
  11186. most widely spoken or used language written in that script:
  11187. for instance, the sample language for %PANGO_SCRIPT_CYRILLIC
  11188. is &lt;literal&gt;ru&lt;/literal&gt; (Russian), the sample language
  11189. for %PANGO_SCRIPT_ARABIC is &lt;literal&gt;ar&lt;/literal&gt;.
  11190. For some
  11191. scripts, no sample language will be returned because there
  11192. is no language that is sufficiently representative. The best
  11193. example of this is %PANGO_SCRIPT_HAN, where various different
  11194. variants of written Chinese, Japanese, and Korean all use
  11195. significantly different sets of Han characters and forms
  11196. of shared characters. No sample language can be provided
  11197. for many historical scripts as well.
  11198. As of 1.18, this function checks the environment variables
  11199. PANGO_LANGUAGE and LANGUAGE (checked in that order) first.
  11200. If one of them is set, it is parsed as a list of language tags
  11201. separated by colons or other separators. This function
  11202. will return the first language in the parsed list that Pango
  11203. believes may use @script for writing. This last predicate
  11204. is tested using pango_language_includes_script(). This can
  11205. be used to control Pango's font selection for non-primary
  11206. languages. For example, a PANGO_LANGUAGE enviroment variable
  11207. set to "en:fa" makes Pango choose fonts suitable for Persian (fa)
  11208. instead of Arabic (ar) when a segment of Arabic text is found
  11209. in an otherwise non-Arabic text. The same trick can be used to
  11210. choose a default language for %PANGO_SCRIPT_HAN when setting
  11211. context language is not feasible.</doc>
  11212. <return-value transfer-ownership="full" nullable="1">
  11213. <doc xml:space="preserve">a #PangoLanguage that is representative
  11214. of the script, or %NULL if no such language exists.</doc>
  11215. <type name="Language" c:type="PangoLanguage*"/>
  11216. </return-value>
  11217. <parameters>
  11218. <parameter name="script" transfer-ownership="none">
  11219. <doc xml:space="preserve">a #PangoScript</doc>
  11220. <type name="Script" c:type="PangoScript"/>
  11221. </parameter>
  11222. </parameters>
  11223. </function>
  11224. </enumeration>
  11225. <record name="ScriptForLang" c:type="PangoScriptForLang">
  11226. <field name="lang" writable="1">
  11227. <array zero-terminated="0" c:type="const char" fixed-size="7">
  11228. <type name="gchar" c:type="const char"/>
  11229. </array>
  11230. </field>
  11231. <field name="scripts" writable="1">
  11232. <array zero-terminated="0" c:type="PangoScript" fixed-size="3">
  11233. <type name="Script" c:type="PangoScript"/>
  11234. </array>
  11235. </field>
  11236. </record>
  11237. <record name="ScriptIter" c:type="PangoScriptIter" disguised="1">
  11238. <doc xml:space="preserve">A #PangoScriptIter is used to iterate through a string
  11239. and identify ranges in different scripts.</doc>
  11240. <method name="free" c:identifier="pango_script_iter_free" version="1.4">
  11241. <doc xml:space="preserve">Frees a #PangoScriptIter created with pango_script_iter_new().</doc>
  11242. <return-value transfer-ownership="none">
  11243. <type name="none" c:type="void"/>
  11244. </return-value>
  11245. <parameters>
  11246. <instance-parameter name="iter" transfer-ownership="none">
  11247. <doc xml:space="preserve">a #PangoScriptIter</doc>
  11248. <type name="ScriptIter" c:type="PangoScriptIter*"/>
  11249. </instance-parameter>
  11250. </parameters>
  11251. </method>
  11252. <method name="get_range"
  11253. c:identifier="pango_script_iter_get_range"
  11254. version="1.4">
  11255. <doc xml:space="preserve">Gets information about the range to which @iter currently points.
  11256. The range is the set of locations p where *start &lt;= p &lt; *end.
  11257. (That is, it doesn't include the character stored at *end)</doc>
  11258. <return-value transfer-ownership="none">
  11259. <type name="none" c:type="void"/>
  11260. </return-value>
  11261. <parameters>
  11262. <instance-parameter name="iter" transfer-ownership="none">
  11263. <doc xml:space="preserve">a #PangoScriptIter</doc>
  11264. <type name="ScriptIter" c:type="PangoScriptIter*"/>
  11265. </instance-parameter>
  11266. <parameter name="start"
  11267. direction="out"
  11268. caller-allocates="0"
  11269. transfer-ownership="full"
  11270. optional="1"
  11271. allow-none="1">
  11272. <doc xml:space="preserve">location to store start position of the range, or %NULL</doc>
  11273. <type name="utf8" c:type="const char**"/>
  11274. </parameter>
  11275. <parameter name="end"
  11276. direction="out"
  11277. caller-allocates="0"
  11278. transfer-ownership="full"
  11279. optional="1"
  11280. allow-none="1">
  11281. <doc xml:space="preserve">location to store end position of the range, or %NULL</doc>
  11282. <type name="utf8" c:type="const char**"/>
  11283. </parameter>
  11284. <parameter name="script"
  11285. direction="out"
  11286. caller-allocates="0"
  11287. transfer-ownership="full"
  11288. optional="1"
  11289. allow-none="1">
  11290. <doc xml:space="preserve">location to store script for range, or %NULL</doc>
  11291. <type name="Script" c:type="PangoScript*"/>
  11292. </parameter>
  11293. </parameters>
  11294. </method>
  11295. <method name="next" c:identifier="pango_script_iter_next" version="1.4">
  11296. <doc xml:space="preserve">Advances a #PangoScriptIter to the next range. If @iter
  11297. is already at the end, it is left unchanged and %FALSE
  11298. is returned.</doc>
  11299. <return-value transfer-ownership="none">
  11300. <doc xml:space="preserve">%TRUE if @iter was successfully advanced.</doc>
  11301. <type name="gboolean" c:type="gboolean"/>
  11302. </return-value>
  11303. <parameters>
  11304. <instance-parameter name="iter" transfer-ownership="none">
  11305. <doc xml:space="preserve">a #PangoScriptIter</doc>
  11306. <type name="ScriptIter" c:type="PangoScriptIter*"/>
  11307. </instance-parameter>
  11308. </parameters>
  11309. </method>
  11310. <function name="new"
  11311. c:identifier="pango_script_iter_new"
  11312. version="1.4"
  11313. introspectable="0">
  11314. <doc xml:space="preserve">Create a new #PangoScriptIter, used to break a string of
  11315. Unicode text into runs by Unicode script. No copy is made of
  11316. @text, so the caller needs to make sure it remains valid until
  11317. the iterator is freed with pango_script_iter_free().</doc>
  11318. <return-value>
  11319. <doc xml:space="preserve">the new script iterator, initialized
  11320. to point at the first range in the text, which should be
  11321. freed with pango_script_iter_free(). If the string is
  11322. empty, it will point at an empty range.</doc>
  11323. <type name="ScriptIter" c:type="PangoScriptIter*"/>
  11324. </return-value>
  11325. <parameters>
  11326. <parameter name="text" transfer-ownership="none">
  11327. <doc xml:space="preserve">a UTF-8 string</doc>
  11328. <type name="utf8" c:type="const char*"/>
  11329. </parameter>
  11330. <parameter name="length" transfer-ownership="none">
  11331. <doc xml:space="preserve">length of @text, or -1 if @text is nul-terminated.</doc>
  11332. <type name="gint" c:type="int"/>
  11333. </parameter>
  11334. </parameters>
  11335. </function>
  11336. </record>
  11337. <enumeration name="Stretch"
  11338. glib:type-name="PangoStretch"
  11339. glib:get-type="pango_stretch_get_type"
  11340. c:type="PangoStretch">
  11341. <doc xml:space="preserve">An enumeration specifying the width of the font relative to other designs
  11342. within a family.</doc>
  11343. <member name="ultra_condensed"
  11344. value="0"
  11345. c:identifier="PANGO_STRETCH_ULTRA_CONDENSED"
  11346. glib:nick="ultra-condensed">
  11347. <doc xml:space="preserve">ultra condensed width</doc>
  11348. </member>
  11349. <member name="extra_condensed"
  11350. value="1"
  11351. c:identifier="PANGO_STRETCH_EXTRA_CONDENSED"
  11352. glib:nick="extra-condensed">
  11353. <doc xml:space="preserve">extra condensed width</doc>
  11354. </member>
  11355. <member name="condensed"
  11356. value="2"
  11357. c:identifier="PANGO_STRETCH_CONDENSED"
  11358. glib:nick="condensed">
  11359. <doc xml:space="preserve">condensed width</doc>
  11360. </member>
  11361. <member name="semi_condensed"
  11362. value="3"
  11363. c:identifier="PANGO_STRETCH_SEMI_CONDENSED"
  11364. glib:nick="semi-condensed">
  11365. <doc xml:space="preserve">semi condensed width</doc>
  11366. </member>
  11367. <member name="normal"
  11368. value="4"
  11369. c:identifier="PANGO_STRETCH_NORMAL"
  11370. glib:nick="normal">
  11371. <doc xml:space="preserve">the normal width</doc>
  11372. </member>
  11373. <member name="semi_expanded"
  11374. value="5"
  11375. c:identifier="PANGO_STRETCH_SEMI_EXPANDED"
  11376. glib:nick="semi-expanded">
  11377. <doc xml:space="preserve">semi expanded width</doc>
  11378. </member>
  11379. <member name="expanded"
  11380. value="6"
  11381. c:identifier="PANGO_STRETCH_EXPANDED"
  11382. glib:nick="expanded">
  11383. <doc xml:space="preserve">expanded width</doc>
  11384. </member>
  11385. <member name="extra_expanded"
  11386. value="7"
  11387. c:identifier="PANGO_STRETCH_EXTRA_EXPANDED"
  11388. glib:nick="extra-expanded">
  11389. <doc xml:space="preserve">extra expanded width</doc>
  11390. </member>
  11391. <member name="ultra_expanded"
  11392. value="8"
  11393. c:identifier="PANGO_STRETCH_ULTRA_EXPANDED"
  11394. glib:nick="ultra-expanded">
  11395. <doc xml:space="preserve">ultra expanded width</doc>
  11396. </member>
  11397. </enumeration>
  11398. <enumeration name="Style"
  11399. glib:type-name="PangoStyle"
  11400. glib:get-type="pango_style_get_type"
  11401. c:type="PangoStyle">
  11402. <doc xml:space="preserve">An enumeration specifying the various slant styles possible for a font.</doc>
  11403. <member name="normal"
  11404. value="0"
  11405. c:identifier="PANGO_STYLE_NORMAL"
  11406. glib:nick="normal">
  11407. <doc xml:space="preserve">the font is upright.</doc>
  11408. </member>
  11409. <member name="oblique"
  11410. value="1"
  11411. c:identifier="PANGO_STYLE_OBLIQUE"
  11412. glib:nick="oblique">
  11413. <doc xml:space="preserve">the font is slanted, but in a roman style.</doc>
  11414. </member>
  11415. <member name="italic"
  11416. value="2"
  11417. c:identifier="PANGO_STYLE_ITALIC"
  11418. glib:nick="italic">
  11419. <doc xml:space="preserve">the font is slanted in an italic style.</doc>
  11420. </member>
  11421. </enumeration>
  11422. <enumeration name="TabAlign"
  11423. glib:type-name="PangoTabAlign"
  11424. glib:get-type="pango_tab_align_get_type"
  11425. c:type="PangoTabAlign">
  11426. <doc xml:space="preserve">A #PangoTabAlign specifies where a tab stop appears relative to the text.</doc>
  11427. <member name="left"
  11428. value="0"
  11429. c:identifier="PANGO_TAB_LEFT"
  11430. glib:nick="left">
  11431. <doc xml:space="preserve">the tab stop appears to the left of the text.</doc>
  11432. </member>
  11433. </enumeration>
  11434. <record name="TabArray"
  11435. c:type="PangoTabArray"
  11436. glib:type-name="PangoTabArray"
  11437. glib:get-type="pango_tab_array_get_type"
  11438. c:symbol-prefix="tab_array">
  11439. <doc xml:space="preserve">A #PangoTabArray struct contains an array
  11440. of tab stops. Each tab stop has an alignment and a position.</doc>
  11441. <constructor name="new" c:identifier="pango_tab_array_new">
  11442. <doc xml:space="preserve">Creates an array of @initial_size tab stops. Tab stops are specified in
  11443. pixel units if @positions_in_pixels is %TRUE, otherwise in Pango
  11444. units. All stops are initially at position 0.</doc>
  11445. <return-value transfer-ownership="full">
  11446. <doc xml:space="preserve">the newly allocated #PangoTabArray, which should
  11447. be freed with pango_tab_array_free().</doc>
  11448. <type name="TabArray" c:type="PangoTabArray*"/>
  11449. </return-value>
  11450. <parameters>
  11451. <parameter name="initial_size" transfer-ownership="none">
  11452. <doc xml:space="preserve">Initial number of tab stops to allocate, can be 0</doc>
  11453. <type name="gint" c:type="gint"/>
  11454. </parameter>
  11455. <parameter name="positions_in_pixels" transfer-ownership="none">
  11456. <doc xml:space="preserve">whether positions are in pixel units</doc>
  11457. <type name="gboolean" c:type="gboolean"/>
  11458. </parameter>
  11459. </parameters>
  11460. </constructor>
  11461. <constructor name="new_with_positions"
  11462. c:identifier="pango_tab_array_new_with_positions"
  11463. introspectable="0">
  11464. <doc xml:space="preserve">This is a convenience function that creates a #PangoTabArray
  11465. and allows you to specify the alignment and position of each
  11466. tab stop. You &lt;emphasis&gt;must&lt;/emphasis&gt; provide an alignment
  11467. and position for @size tab stops.</doc>
  11468. <return-value transfer-ownership="full">
  11469. <doc xml:space="preserve">the newly allocated #PangoTabArray, which should
  11470. be freed with pango_tab_array_free().</doc>
  11471. <type name="TabArray" c:type="PangoTabArray*"/>
  11472. </return-value>
  11473. <parameters>
  11474. <parameter name="size" transfer-ownership="none">
  11475. <doc xml:space="preserve">number of tab stops in the array</doc>
  11476. <type name="gint" c:type="gint"/>
  11477. </parameter>
  11478. <parameter name="positions_in_pixels" transfer-ownership="none">
  11479. <doc xml:space="preserve">whether positions are in pixel units</doc>
  11480. <type name="gboolean" c:type="gboolean"/>
  11481. </parameter>
  11482. <parameter name="first_alignment" transfer-ownership="none">
  11483. <doc xml:space="preserve">alignment of first tab stop</doc>
  11484. <type name="TabAlign" c:type="PangoTabAlign"/>
  11485. </parameter>
  11486. <parameter name="first_position" transfer-ownership="none">
  11487. <doc xml:space="preserve">position of first tab stop</doc>
  11488. <type name="gint" c:type="gint"/>
  11489. </parameter>
  11490. <parameter name="..." transfer-ownership="none">
  11491. <doc xml:space="preserve">additional alignment/position pairs</doc>
  11492. <varargs/>
  11493. </parameter>
  11494. </parameters>
  11495. </constructor>
  11496. <method name="copy" c:identifier="pango_tab_array_copy">
  11497. <doc xml:space="preserve">Copies a #PangoTabArray</doc>
  11498. <return-value transfer-ownership="full">
  11499. <doc xml:space="preserve">the newly allocated #PangoTabArray, which should
  11500. be freed with pango_tab_array_free().</doc>
  11501. <type name="TabArray" c:type="PangoTabArray*"/>
  11502. </return-value>
  11503. <parameters>
  11504. <instance-parameter name="src" transfer-ownership="none">
  11505. <doc xml:space="preserve">#PangoTabArray to copy</doc>
  11506. <type name="TabArray" c:type="PangoTabArray*"/>
  11507. </instance-parameter>
  11508. </parameters>
  11509. </method>
  11510. <method name="free" c:identifier="pango_tab_array_free">
  11511. <doc xml:space="preserve">Frees a tab array and associated resources.</doc>
  11512. <return-value transfer-ownership="none">
  11513. <type name="none" c:type="void"/>
  11514. </return-value>
  11515. <parameters>
  11516. <instance-parameter name="tab_array" transfer-ownership="none">
  11517. <doc xml:space="preserve">a #PangoTabArray</doc>
  11518. <type name="TabArray" c:type="PangoTabArray*"/>
  11519. </instance-parameter>
  11520. </parameters>
  11521. </method>
  11522. <method name="get_positions_in_pixels"
  11523. c:identifier="pango_tab_array_get_positions_in_pixels">
  11524. <doc xml:space="preserve">Returns %TRUE if the tab positions are in pixels, %FALSE if they are
  11525. in Pango units.</doc>
  11526. <return-value transfer-ownership="none">
  11527. <doc xml:space="preserve">whether positions are in pixels.</doc>
  11528. <type name="gboolean" c:type="gboolean"/>
  11529. </return-value>
  11530. <parameters>
  11531. <instance-parameter name="tab_array" transfer-ownership="none">
  11532. <doc xml:space="preserve">a #PangoTabArray</doc>
  11533. <type name="TabArray" c:type="PangoTabArray*"/>
  11534. </instance-parameter>
  11535. </parameters>
  11536. </method>
  11537. <method name="get_size" c:identifier="pango_tab_array_get_size">
  11538. <doc xml:space="preserve">Gets the number of tab stops in @tab_array.</doc>
  11539. <return-value transfer-ownership="none">
  11540. <doc xml:space="preserve">the number of tab stops in the array.</doc>
  11541. <type name="gint" c:type="gint"/>
  11542. </return-value>
  11543. <parameters>
  11544. <instance-parameter name="tab_array" transfer-ownership="none">
  11545. <doc xml:space="preserve">a #PangoTabArray</doc>
  11546. <type name="TabArray" c:type="PangoTabArray*"/>
  11547. </instance-parameter>
  11548. </parameters>
  11549. </method>
  11550. <method name="get_tab" c:identifier="pango_tab_array_get_tab">
  11551. <doc xml:space="preserve">Gets the alignment and position of a tab stop.</doc>
  11552. <return-value transfer-ownership="none">
  11553. <type name="none" c:type="void"/>
  11554. </return-value>
  11555. <parameters>
  11556. <instance-parameter name="tab_array" transfer-ownership="none">
  11557. <doc xml:space="preserve">a #PangoTabArray</doc>
  11558. <type name="TabArray" c:type="PangoTabArray*"/>
  11559. </instance-parameter>
  11560. <parameter name="tab_index" transfer-ownership="none">
  11561. <doc xml:space="preserve">tab stop index</doc>
  11562. <type name="gint" c:type="gint"/>
  11563. </parameter>
  11564. <parameter name="alignment"
  11565. direction="out"
  11566. caller-allocates="0"
  11567. transfer-ownership="full"
  11568. optional="1"
  11569. allow-none="1">
  11570. <doc xml:space="preserve">location to store alignment, or %NULL</doc>
  11571. <type name="TabAlign" c:type="PangoTabAlign*"/>
  11572. </parameter>
  11573. <parameter name="location"
  11574. direction="out"
  11575. caller-allocates="0"
  11576. transfer-ownership="full"
  11577. optional="1"
  11578. allow-none="1">
  11579. <doc xml:space="preserve">location to store tab position, or %NULL</doc>
  11580. <type name="gint" c:type="gint*"/>
  11581. </parameter>
  11582. </parameters>
  11583. </method>
  11584. <method name="get_tabs" c:identifier="pango_tab_array_get_tabs">
  11585. <doc xml:space="preserve">If non-%NULL, @alignments and @locations are filled with allocated
  11586. arrays of length pango_tab_array_get_size(). You must free the
  11587. returned array.</doc>
  11588. <return-value transfer-ownership="none">
  11589. <type name="none" c:type="void"/>
  11590. </return-value>
  11591. <parameters>
  11592. <instance-parameter name="tab_array" transfer-ownership="none">
  11593. <doc xml:space="preserve">a #PangoTabArray</doc>
  11594. <type name="TabArray" c:type="PangoTabArray*"/>
  11595. </instance-parameter>
  11596. <parameter name="alignments"
  11597. direction="out"
  11598. caller-allocates="0"
  11599. transfer-ownership="full"
  11600. optional="1"
  11601. allow-none="1">
  11602. <doc xml:space="preserve">location to store an array of tab
  11603. stop alignments, or %NULL</doc>
  11604. <type name="TabAlign" c:type="PangoTabAlign**"/>
  11605. </parameter>
  11606. <parameter name="locations"
  11607. direction="out"
  11608. caller-allocates="0"
  11609. transfer-ownership="full"
  11610. optional="1"
  11611. allow-none="1">
  11612. <doc xml:space="preserve">location to store an array
  11613. of tab positions, or %NULL</doc>
  11614. <array zero-terminated="0" c:type="gint**">
  11615. <type name="gint" c:type="gint*"/>
  11616. </array>
  11617. </parameter>
  11618. </parameters>
  11619. </method>
  11620. <method name="resize" c:identifier="pango_tab_array_resize">
  11621. <doc xml:space="preserve">Resizes a tab array. You must subsequently initialize any tabs that
  11622. were added as a result of growing the array.</doc>
  11623. <return-value transfer-ownership="none">
  11624. <type name="none" c:type="void"/>
  11625. </return-value>
  11626. <parameters>
  11627. <instance-parameter name="tab_array" transfer-ownership="none">
  11628. <doc xml:space="preserve">a #PangoTabArray</doc>
  11629. <type name="TabArray" c:type="PangoTabArray*"/>
  11630. </instance-parameter>
  11631. <parameter name="new_size" transfer-ownership="none">
  11632. <doc xml:space="preserve">new size of the array</doc>
  11633. <type name="gint" c:type="gint"/>
  11634. </parameter>
  11635. </parameters>
  11636. </method>
  11637. <method name="set_tab" c:identifier="pango_tab_array_set_tab">
  11638. <doc xml:space="preserve">Sets the alignment and location of a tab stop.
  11639. @alignment must always be #PANGO_TAB_LEFT in the current
  11640. implementation.</doc>
  11641. <return-value transfer-ownership="none">
  11642. <type name="none" c:type="void"/>
  11643. </return-value>
  11644. <parameters>
  11645. <instance-parameter name="tab_array" transfer-ownership="none">
  11646. <doc xml:space="preserve">a #PangoTabArray</doc>
  11647. <type name="TabArray" c:type="PangoTabArray*"/>
  11648. </instance-parameter>
  11649. <parameter name="tab_index" transfer-ownership="none">
  11650. <doc xml:space="preserve">the index of a tab stop</doc>
  11651. <type name="gint" c:type="gint"/>
  11652. </parameter>
  11653. <parameter name="alignment" transfer-ownership="none">
  11654. <doc xml:space="preserve">tab alignment</doc>
  11655. <type name="TabAlign" c:type="PangoTabAlign"/>
  11656. </parameter>
  11657. <parameter name="location" transfer-ownership="none">
  11658. <doc xml:space="preserve">tab location in Pango units</doc>
  11659. <type name="gint" c:type="gint"/>
  11660. </parameter>
  11661. </parameters>
  11662. </method>
  11663. </record>
  11664. <constant name="UNKNOWN_GLYPH_HEIGHT"
  11665. value="14"
  11666. c:type="PANGO_UNKNOWN_GLYPH_HEIGHT">
  11667. <type name="gint" c:type="gint"/>
  11668. </constant>
  11669. <constant name="UNKNOWN_GLYPH_WIDTH"
  11670. value="10"
  11671. c:type="PANGO_UNKNOWN_GLYPH_WIDTH">
  11672. <type name="gint" c:type="gint"/>
  11673. </constant>
  11674. <enumeration name="Underline"
  11675. glib:type-name="PangoUnderline"
  11676. glib:get-type="pango_underline_get_type"
  11677. c:type="PangoUnderline">
  11678. <doc xml:space="preserve">The #PangoUnderline enumeration is used to specify
  11679. whether text should be underlined, and if so, the type
  11680. of underlining.</doc>
  11681. <member name="none"
  11682. value="0"
  11683. c:identifier="PANGO_UNDERLINE_NONE"
  11684. glib:nick="none">
  11685. <doc xml:space="preserve">no underline should be drawn</doc>
  11686. </member>
  11687. <member name="single"
  11688. value="1"
  11689. c:identifier="PANGO_UNDERLINE_SINGLE"
  11690. glib:nick="single">
  11691. <doc xml:space="preserve">a single underline should be drawn</doc>
  11692. </member>
  11693. <member name="double"
  11694. value="2"
  11695. c:identifier="PANGO_UNDERLINE_DOUBLE"
  11696. glib:nick="double">
  11697. <doc xml:space="preserve">a double underline should be drawn</doc>
  11698. </member>
  11699. <member name="low"
  11700. value="3"
  11701. c:identifier="PANGO_UNDERLINE_LOW"
  11702. glib:nick="low">
  11703. <doc xml:space="preserve">a single underline should be drawn at a position
  11704. beneath the ink extents of the text being
  11705. underlined. This should be used only for underlining
  11706. single characters, such as for keyboard
  11707. accelerators. %PANGO_UNDERLINE_SINGLE should
  11708. be used for extended portions of text.</doc>
  11709. </member>
  11710. <member name="error"
  11711. value="4"
  11712. c:identifier="PANGO_UNDERLINE_ERROR"
  11713. glib:nick="error">
  11714. <doc xml:space="preserve">a wavy underline should be drawn below.
  11715. This underline is typically used to indicate
  11716. an error such as a possilble mispelling; in some
  11717. cases a contrasting color may automatically
  11718. be used. This type of underlining is available since Pango 1.4.</doc>
  11719. </member>
  11720. </enumeration>
  11721. <enumeration name="Variant"
  11722. glib:type-name="PangoVariant"
  11723. glib:get-type="pango_variant_get_type"
  11724. c:type="PangoVariant">
  11725. <doc xml:space="preserve">An enumeration specifying capitalization variant of the font.</doc>
  11726. <member name="normal"
  11727. value="0"
  11728. c:identifier="PANGO_VARIANT_NORMAL"
  11729. glib:nick="normal">
  11730. <doc xml:space="preserve">A normal font.</doc>
  11731. </member>
  11732. <member name="small_caps"
  11733. value="1"
  11734. c:identifier="PANGO_VARIANT_SMALL_CAPS"
  11735. glib:nick="small-caps">
  11736. <doc xml:space="preserve">A font with the lower case characters
  11737. replaced by smaller variants of the capital characters.</doc>
  11738. </member>
  11739. </enumeration>
  11740. <enumeration name="Weight"
  11741. glib:type-name="PangoWeight"
  11742. glib:get-type="pango_weight_get_type"
  11743. c:type="PangoWeight">
  11744. <doc xml:space="preserve">An enumeration specifying the weight (boldness) of a font. This is a numerical
  11745. value ranging from 100 to 1000, but there are some predefined values:</doc>
  11746. <member name="thin"
  11747. value="100"
  11748. c:identifier="PANGO_WEIGHT_THIN"
  11749. glib:nick="thin">
  11750. <doc xml:space="preserve">the thin weight (= 100; Since: 1.24)</doc>
  11751. </member>
  11752. <member name="ultralight"
  11753. value="200"
  11754. c:identifier="PANGO_WEIGHT_ULTRALIGHT"
  11755. glib:nick="ultralight">
  11756. <doc xml:space="preserve">the ultralight weight (= 200)</doc>
  11757. </member>
  11758. <member name="light"
  11759. value="300"
  11760. c:identifier="PANGO_WEIGHT_LIGHT"
  11761. glib:nick="light">
  11762. <doc xml:space="preserve">the light weight (= 300)</doc>
  11763. </member>
  11764. <member name="semilight"
  11765. value="350"
  11766. c:identifier="PANGO_WEIGHT_SEMILIGHT"
  11767. glib:nick="semilight">
  11768. <doc xml:space="preserve">the semilight weight (= 350; Since: 1.36.7)</doc>
  11769. </member>
  11770. <member name="book"
  11771. value="380"
  11772. c:identifier="PANGO_WEIGHT_BOOK"
  11773. glib:nick="book">
  11774. <doc xml:space="preserve">the book weight (= 380; Since: 1.24)</doc>
  11775. </member>
  11776. <member name="normal"
  11777. value="400"
  11778. c:identifier="PANGO_WEIGHT_NORMAL"
  11779. glib:nick="normal">
  11780. <doc xml:space="preserve">the default weight (= 400)</doc>
  11781. </member>
  11782. <member name="medium"
  11783. value="500"
  11784. c:identifier="PANGO_WEIGHT_MEDIUM"
  11785. glib:nick="medium">
  11786. <doc xml:space="preserve">the normal weight (= 500; Since: 1.24)</doc>
  11787. </member>
  11788. <member name="semibold"
  11789. value="600"
  11790. c:identifier="PANGO_WEIGHT_SEMIBOLD"
  11791. glib:nick="semibold">
  11792. <doc xml:space="preserve">the semibold weight (= 600)</doc>
  11793. </member>
  11794. <member name="bold"
  11795. value="700"
  11796. c:identifier="PANGO_WEIGHT_BOLD"
  11797. glib:nick="bold">
  11798. <doc xml:space="preserve">the bold weight (= 700)</doc>
  11799. </member>
  11800. <member name="ultrabold"
  11801. value="800"
  11802. c:identifier="PANGO_WEIGHT_ULTRABOLD"
  11803. glib:nick="ultrabold">
  11804. <doc xml:space="preserve">the ultrabold weight (= 800)</doc>
  11805. </member>
  11806. <member name="heavy"
  11807. value="900"
  11808. c:identifier="PANGO_WEIGHT_HEAVY"
  11809. glib:nick="heavy">
  11810. <doc xml:space="preserve">the heavy weight (= 900)</doc>
  11811. </member>
  11812. <member name="ultraheavy"
  11813. value="1000"
  11814. c:identifier="PANGO_WEIGHT_ULTRAHEAVY"
  11815. glib:nick="ultraheavy">
  11816. <doc xml:space="preserve">the ultraheavy weight (= 1000; Since: 1.24)</doc>
  11817. </member>
  11818. </enumeration>
  11819. <enumeration name="WrapMode"
  11820. glib:type-name="PangoWrapMode"
  11821. glib:get-type="pango_wrap_mode_get_type"
  11822. c:type="PangoWrapMode">
  11823. <doc xml:space="preserve">A #PangoWrapMode describes how to wrap the lines of a #PangoLayout to the desired width.</doc>
  11824. <member name="word"
  11825. value="0"
  11826. c:identifier="PANGO_WRAP_WORD"
  11827. glib:nick="word">
  11828. <doc xml:space="preserve">wrap lines at word boundaries.</doc>
  11829. </member>
  11830. <member name="char"
  11831. value="1"
  11832. c:identifier="PANGO_WRAP_CHAR"
  11833. glib:nick="char">
  11834. <doc xml:space="preserve">wrap lines at character boundaries.</doc>
  11835. </member>
  11836. <member name="word_char"
  11837. value="2"
  11838. c:identifier="PANGO_WRAP_WORD_CHAR"
  11839. glib:nick="word-char">
  11840. <doc xml:space="preserve">wrap lines at word boundaries, but fall back to character boundaries if there is not
  11841. enough space for a full word.</doc>
  11842. </member>
  11843. </enumeration>
  11844. <function name="attr_background_alpha_new"
  11845. c:identifier="pango_attr_background_alpha_new"
  11846. version="1.38"
  11847. introspectable="0">
  11848. <doc xml:space="preserve">Create a new background alpha attribute.</doc>
  11849. <return-value transfer-ownership="full">
  11850. <doc xml:space="preserve">the new allocated #PangoAttribute,
  11851. which should be freed with pango_attribute_destroy().</doc>
  11852. <type name="Attribute" c:type="PangoAttribute*"/>
  11853. </return-value>
  11854. <parameters>
  11855. <parameter name="alpha" transfer-ownership="none">
  11856. <doc xml:space="preserve">the alpha value, between 1 and 65536</doc>
  11857. <type name="guint16" c:type="guint16"/>
  11858. </parameter>
  11859. </parameters>
  11860. </function>
  11861. <function name="attr_background_new"
  11862. c:identifier="pango_attr_background_new"
  11863. introspectable="0">
  11864. <doc xml:space="preserve">Create a new background color attribute.</doc>
  11865. <return-value transfer-ownership="full">
  11866. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  11867. which should be freed with pango_attribute_destroy().</doc>
  11868. <type name="Attribute" c:type="PangoAttribute*"/>
  11869. </return-value>
  11870. <parameters>
  11871. <parameter name="red" transfer-ownership="none">
  11872. <doc xml:space="preserve">the red value (ranging from 0 to 65535)</doc>
  11873. <type name="guint16" c:type="guint16"/>
  11874. </parameter>
  11875. <parameter name="green" transfer-ownership="none">
  11876. <doc xml:space="preserve">the green value</doc>
  11877. <type name="guint16" c:type="guint16"/>
  11878. </parameter>
  11879. <parameter name="blue" transfer-ownership="none">
  11880. <doc xml:space="preserve">the blue value</doc>
  11881. <type name="guint16" c:type="guint16"/>
  11882. </parameter>
  11883. </parameters>
  11884. </function>
  11885. <function name="attr_fallback_new"
  11886. c:identifier="pango_attr_fallback_new"
  11887. version="1.4"
  11888. introspectable="0">
  11889. <doc xml:space="preserve">Create a new font fallback attribute.
  11890. If fallback is disabled, characters will only be used from the
  11891. closest matching font on the system. No fallback will be done to
  11892. other fonts on the system that might contain the characters in the
  11893. text.</doc>
  11894. <return-value transfer-ownership="full">
  11895. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  11896. which should be freed with pango_attribute_destroy().</doc>
  11897. <type name="Attribute" c:type="PangoAttribute*"/>
  11898. </return-value>
  11899. <parameters>
  11900. <parameter name="enable_fallback" transfer-ownership="none">
  11901. <doc xml:space="preserve">%TRUE if we should fall back on other fonts
  11902. for characters the active font is missing.</doc>
  11903. <type name="gboolean" c:type="gboolean"/>
  11904. </parameter>
  11905. </parameters>
  11906. </function>
  11907. <function name="attr_family_new"
  11908. c:identifier="pango_attr_family_new"
  11909. introspectable="0">
  11910. <doc xml:space="preserve">Create a new font family attribute.</doc>
  11911. <return-value transfer-ownership="full">
  11912. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  11913. which should be freed with pango_attribute_destroy().</doc>
  11914. <type name="Attribute" c:type="PangoAttribute*"/>
  11915. </return-value>
  11916. <parameters>
  11917. <parameter name="family" transfer-ownership="none">
  11918. <doc xml:space="preserve">the family or comma separated list of families</doc>
  11919. <type name="utf8" c:type="const char*"/>
  11920. </parameter>
  11921. </parameters>
  11922. </function>
  11923. <function name="attr_foreground_alpha_new"
  11924. c:identifier="pango_attr_foreground_alpha_new"
  11925. version="1.38"
  11926. introspectable="0">
  11927. <doc xml:space="preserve">Create a new foreground alpha attribute.</doc>
  11928. <return-value transfer-ownership="full">
  11929. <doc xml:space="preserve">the new allocated #PangoAttribute,
  11930. which should be freed with pango_attribute_destroy().</doc>
  11931. <type name="Attribute" c:type="PangoAttribute*"/>
  11932. </return-value>
  11933. <parameters>
  11934. <parameter name="alpha" transfer-ownership="none">
  11935. <doc xml:space="preserve">the alpha value, between 1 and 65536</doc>
  11936. <type name="guint16" c:type="guint16"/>
  11937. </parameter>
  11938. </parameters>
  11939. </function>
  11940. <function name="attr_foreground_new"
  11941. c:identifier="pango_attr_foreground_new"
  11942. introspectable="0">
  11943. <doc xml:space="preserve">Create a new foreground color attribute.</doc>
  11944. <return-value transfer-ownership="full">
  11945. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  11946. which should be freed with pango_attribute_destroy().</doc>
  11947. <type name="Attribute" c:type="PangoAttribute*"/>
  11948. </return-value>
  11949. <parameters>
  11950. <parameter name="red" transfer-ownership="none">
  11951. <doc xml:space="preserve">the red value (ranging from 0 to 65535)</doc>
  11952. <type name="guint16" c:type="guint16"/>
  11953. </parameter>
  11954. <parameter name="green" transfer-ownership="none">
  11955. <doc xml:space="preserve">the green value</doc>
  11956. <type name="guint16" c:type="guint16"/>
  11957. </parameter>
  11958. <parameter name="blue" transfer-ownership="none">
  11959. <doc xml:space="preserve">the blue value</doc>
  11960. <type name="guint16" c:type="guint16"/>
  11961. </parameter>
  11962. </parameters>
  11963. </function>
  11964. <function name="attr_gravity_hint_new"
  11965. c:identifier="pango_attr_gravity_hint_new"
  11966. version="1.16"
  11967. introspectable="0">
  11968. <doc xml:space="preserve">Create a new gravity hint attribute.</doc>
  11969. <return-value transfer-ownership="full">
  11970. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  11971. which should be freed with pango_attribute_destroy().</doc>
  11972. <type name="Attribute" c:type="PangoAttribute*"/>
  11973. </return-value>
  11974. <parameters>
  11975. <parameter name="hint" transfer-ownership="none">
  11976. <doc xml:space="preserve">the gravity hint value.</doc>
  11977. <type name="GravityHint" c:type="PangoGravityHint"/>
  11978. </parameter>
  11979. </parameters>
  11980. </function>
  11981. <function name="attr_gravity_new"
  11982. c:identifier="pango_attr_gravity_new"
  11983. version="1.16"
  11984. introspectable="0">
  11985. <doc xml:space="preserve">Create a new gravity attribute.</doc>
  11986. <return-value transfer-ownership="full">
  11987. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  11988. which should be freed with pango_attribute_destroy().</doc>
  11989. <type name="Attribute" c:type="PangoAttribute*"/>
  11990. </return-value>
  11991. <parameters>
  11992. <parameter name="gravity" transfer-ownership="none">
  11993. <doc xml:space="preserve">the gravity value; should not be %PANGO_GRAVITY_AUTO.</doc>
  11994. <type name="Gravity" c:type="PangoGravity"/>
  11995. </parameter>
  11996. </parameters>
  11997. </function>
  11998. <function name="attr_letter_spacing_new"
  11999. c:identifier="pango_attr_letter_spacing_new"
  12000. version="1.6"
  12001. introspectable="0">
  12002. <doc xml:space="preserve">Create a new letter-spacing attribute.</doc>
  12003. <return-value transfer-ownership="full">
  12004. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  12005. which should be freed with pango_attribute_destroy().</doc>
  12006. <type name="Attribute" c:type="PangoAttribute*"/>
  12007. </return-value>
  12008. <parameters>
  12009. <parameter name="letter_spacing" transfer-ownership="none">
  12010. <doc xml:space="preserve">amount of extra space to add between graphemes
  12011. of the text, in Pango units.</doc>
  12012. <type name="gint" c:type="int"/>
  12013. </parameter>
  12014. </parameters>
  12015. </function>
  12016. <function name="attr_rise_new"
  12017. c:identifier="pango_attr_rise_new"
  12018. introspectable="0">
  12019. <doc xml:space="preserve">Create a new baseline displacement attribute.</doc>
  12020. <return-value transfer-ownership="full">
  12021. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  12022. which should be freed with pango_attribute_destroy().</doc>
  12023. <type name="Attribute" c:type="PangoAttribute*"/>
  12024. </return-value>
  12025. <parameters>
  12026. <parameter name="rise" transfer-ownership="none">
  12027. <doc xml:space="preserve">the amount that the text should be displaced vertically,
  12028. in Pango units. Positive values displace the text upwards.</doc>
  12029. <type name="gint" c:type="int"/>
  12030. </parameter>
  12031. </parameters>
  12032. </function>
  12033. <function name="attr_scale_new"
  12034. c:identifier="pango_attr_scale_new"
  12035. introspectable="0">
  12036. <doc xml:space="preserve">Create a new font size scale attribute. The base font for the
  12037. affected text will have its size multiplied by @scale_factor.</doc>
  12038. <return-value transfer-ownership="full">
  12039. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  12040. which should be freed with pango_attribute_destroy().</doc>
  12041. <type name="Attribute" c:type="PangoAttribute*"/>
  12042. </return-value>
  12043. <parameters>
  12044. <parameter name="scale_factor" transfer-ownership="none">
  12045. <doc xml:space="preserve">factor to scale the font</doc>
  12046. <type name="gdouble" c:type="double"/>
  12047. </parameter>
  12048. </parameters>
  12049. </function>
  12050. <function name="attr_stretch_new"
  12051. c:identifier="pango_attr_stretch_new"
  12052. introspectable="0">
  12053. <doc xml:space="preserve">Create a new font stretch attribute</doc>
  12054. <return-value transfer-ownership="full">
  12055. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  12056. which should be freed with pango_attribute_destroy().</doc>
  12057. <type name="Attribute" c:type="PangoAttribute*"/>
  12058. </return-value>
  12059. <parameters>
  12060. <parameter name="stretch" transfer-ownership="none">
  12061. <doc xml:space="preserve">the stretch</doc>
  12062. <type name="Stretch" c:type="PangoStretch"/>
  12063. </parameter>
  12064. </parameters>
  12065. </function>
  12066. <function name="attr_strikethrough_color_new"
  12067. c:identifier="pango_attr_strikethrough_color_new"
  12068. version="1.8"
  12069. introspectable="0">
  12070. <doc xml:space="preserve">Create a new strikethrough color attribute. This attribute
  12071. modifies the color of strikethrough lines. If not set, strikethrough
  12072. lines will use the foreground color.</doc>
  12073. <return-value transfer-ownership="full">
  12074. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  12075. which should be freed with pango_attribute_destroy().</doc>
  12076. <type name="Attribute" c:type="PangoAttribute*"/>
  12077. </return-value>
  12078. <parameters>
  12079. <parameter name="red" transfer-ownership="none">
  12080. <doc xml:space="preserve">the red value (ranging from 0 to 65535)</doc>
  12081. <type name="guint16" c:type="guint16"/>
  12082. </parameter>
  12083. <parameter name="green" transfer-ownership="none">
  12084. <doc xml:space="preserve">the green value</doc>
  12085. <type name="guint16" c:type="guint16"/>
  12086. </parameter>
  12087. <parameter name="blue" transfer-ownership="none">
  12088. <doc xml:space="preserve">the blue value</doc>
  12089. <type name="guint16" c:type="guint16"/>
  12090. </parameter>
  12091. </parameters>
  12092. </function>
  12093. <function name="attr_strikethrough_new"
  12094. c:identifier="pango_attr_strikethrough_new"
  12095. introspectable="0">
  12096. <doc xml:space="preserve">Create a new strike-through attribute.</doc>
  12097. <return-value transfer-ownership="full">
  12098. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  12099. which should be freed with pango_attribute_destroy().</doc>
  12100. <type name="Attribute" c:type="PangoAttribute*"/>
  12101. </return-value>
  12102. <parameters>
  12103. <parameter name="strikethrough" transfer-ownership="none">
  12104. <doc xml:space="preserve">%TRUE if the text should be struck-through.</doc>
  12105. <type name="gboolean" c:type="gboolean"/>
  12106. </parameter>
  12107. </parameters>
  12108. </function>
  12109. <function name="attr_style_new"
  12110. c:identifier="pango_attr_style_new"
  12111. introspectable="0">
  12112. <doc xml:space="preserve">Create a new font slant style attribute.</doc>
  12113. <return-value transfer-ownership="full">
  12114. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  12115. which should be freed with pango_attribute_destroy().</doc>
  12116. <type name="Attribute" c:type="PangoAttribute*"/>
  12117. </return-value>
  12118. <parameters>
  12119. <parameter name="style" transfer-ownership="none">
  12120. <doc xml:space="preserve">the slant style</doc>
  12121. <type name="Style" c:type="PangoStyle"/>
  12122. </parameter>
  12123. </parameters>
  12124. </function>
  12125. <function name="attr_type_get_name"
  12126. c:identifier="pango_attr_type_get_name"
  12127. moved-to="AttrType.get_name"
  12128. version="1.22">
  12129. <doc xml:space="preserve">Fetches the attribute type name passed in when registering the type using
  12130. pango_attr_type_register().
  12131. The returned value is an interned string (see g_intern_string() for what
  12132. that means) that should not be modified or freed.</doc>
  12133. <return-value transfer-ownership="none" nullable="1">
  12134. <doc xml:space="preserve">the type ID name (which may be %NULL), or
  12135. %NULL if @type is a built-in Pango attribute type or invalid.</doc>
  12136. <type name="utf8" c:type="const char*"/>
  12137. </return-value>
  12138. <parameters>
  12139. <parameter name="type" transfer-ownership="none">
  12140. <doc xml:space="preserve">an attribute type ID to fetch the name for</doc>
  12141. <type name="AttrType" c:type="PangoAttrType"/>
  12142. </parameter>
  12143. </parameters>
  12144. </function>
  12145. <function name="attr_type_register"
  12146. c:identifier="pango_attr_type_register"
  12147. moved-to="AttrType.register">
  12148. <doc xml:space="preserve">Allocate a new attribute type ID. The attribute type name can be accessed
  12149. later by using pango_attr_type_get_name().</doc>
  12150. <return-value transfer-ownership="none">
  12151. <doc xml:space="preserve">the new type ID.</doc>
  12152. <type name="AttrType" c:type="PangoAttrType"/>
  12153. </return-value>
  12154. <parameters>
  12155. <parameter name="name" transfer-ownership="none">
  12156. <doc xml:space="preserve">an identifier for the type</doc>
  12157. <type name="utf8" c:type="const gchar*"/>
  12158. </parameter>
  12159. </parameters>
  12160. </function>
  12161. <function name="attr_underline_color_new"
  12162. c:identifier="pango_attr_underline_color_new"
  12163. version="1.8"
  12164. introspectable="0">
  12165. <doc xml:space="preserve">Create a new underline color attribute. This attribute
  12166. modifies the color of underlines. If not set, underlines
  12167. will use the foreground color.</doc>
  12168. <return-value transfer-ownership="full">
  12169. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  12170. which should be freed with pango_attribute_destroy().</doc>
  12171. <type name="Attribute" c:type="PangoAttribute*"/>
  12172. </return-value>
  12173. <parameters>
  12174. <parameter name="red" transfer-ownership="none">
  12175. <doc xml:space="preserve">the red value (ranging from 0 to 65535)</doc>
  12176. <type name="guint16" c:type="guint16"/>
  12177. </parameter>
  12178. <parameter name="green" transfer-ownership="none">
  12179. <doc xml:space="preserve">the green value</doc>
  12180. <type name="guint16" c:type="guint16"/>
  12181. </parameter>
  12182. <parameter name="blue" transfer-ownership="none">
  12183. <doc xml:space="preserve">the blue value</doc>
  12184. <type name="guint16" c:type="guint16"/>
  12185. </parameter>
  12186. </parameters>
  12187. </function>
  12188. <function name="attr_underline_new"
  12189. c:identifier="pango_attr_underline_new"
  12190. introspectable="0">
  12191. <doc xml:space="preserve">Create a new underline-style attribute.</doc>
  12192. <return-value transfer-ownership="full">
  12193. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  12194. which should be freed with pango_attribute_destroy().</doc>
  12195. <type name="Attribute" c:type="PangoAttribute*"/>
  12196. </return-value>
  12197. <parameters>
  12198. <parameter name="underline" transfer-ownership="none">
  12199. <doc xml:space="preserve">the underline style.</doc>
  12200. <type name="Underline" c:type="PangoUnderline"/>
  12201. </parameter>
  12202. </parameters>
  12203. </function>
  12204. <function name="attr_variant_new"
  12205. c:identifier="pango_attr_variant_new"
  12206. introspectable="0">
  12207. <doc xml:space="preserve">Create a new font variant attribute (normal or small caps)</doc>
  12208. <return-value transfer-ownership="full">
  12209. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  12210. which should be freed with pango_attribute_destroy().</doc>
  12211. <type name="Attribute" c:type="PangoAttribute*"/>
  12212. </return-value>
  12213. <parameters>
  12214. <parameter name="variant" transfer-ownership="none">
  12215. <doc xml:space="preserve">the variant</doc>
  12216. <type name="Variant" c:type="PangoVariant"/>
  12217. </parameter>
  12218. </parameters>
  12219. </function>
  12220. <function name="attr_weight_new"
  12221. c:identifier="pango_attr_weight_new"
  12222. introspectable="0">
  12223. <doc xml:space="preserve">Create a new font weight attribute.</doc>
  12224. <return-value transfer-ownership="full">
  12225. <doc xml:space="preserve">the newly allocated #PangoAttribute,
  12226. which should be freed with pango_attribute_destroy().</doc>
  12227. <type name="Attribute" c:type="PangoAttribute*"/>
  12228. </return-value>
  12229. <parameters>
  12230. <parameter name="weight" transfer-ownership="none">
  12231. <doc xml:space="preserve">the weight</doc>
  12232. <type name="Weight" c:type="PangoWeight"/>
  12233. </parameter>
  12234. </parameters>
  12235. </function>
  12236. <function name="bidi_type_for_unichar"
  12237. c:identifier="pango_bidi_type_for_unichar"
  12238. moved-to="BidiType.for_unichar"
  12239. version="1.22">
  12240. <doc xml:space="preserve">Determines the normative bidirectional character type of a
  12241. character, as specified in the Unicode Character Database.
  12242. A simplified version of this function is available as
  12243. pango_unichar_direction().</doc>
  12244. <return-value transfer-ownership="none">
  12245. <doc xml:space="preserve">the bidirectional character type, as used in the
  12246. Unicode bidirectional algorithm.</doc>
  12247. <type name="BidiType" c:type="PangoBidiType"/>
  12248. </return-value>
  12249. <parameters>
  12250. <parameter name="ch" transfer-ownership="none">
  12251. <doc xml:space="preserve">a Unicode character</doc>
  12252. <type name="gunichar" c:type="gunichar"/>
  12253. </parameter>
  12254. </parameters>
  12255. </function>
  12256. <function name="break" c:identifier="pango_break">
  12257. <doc xml:space="preserve">Determines possible line, word, and character breaks
  12258. for a string of Unicode text with a single analysis. For most
  12259. purposes you may want to use pango_get_log_attrs().</doc>
  12260. <return-value transfer-ownership="none">
  12261. <type name="none" c:type="void"/>
  12262. </return-value>
  12263. <parameters>
  12264. <parameter name="text" transfer-ownership="none">
  12265. <doc xml:space="preserve">the text to process</doc>
  12266. <type name="utf8" c:type="const gchar*"/>
  12267. </parameter>
  12268. <parameter name="length" transfer-ownership="none">
  12269. <doc xml:space="preserve">length of @text in bytes (may be -1 if @text is nul-terminated)</doc>
  12270. <type name="gint" c:type="int"/>
  12271. </parameter>
  12272. <parameter name="analysis" transfer-ownership="none">
  12273. <doc xml:space="preserve">#PangoAnalysis structure from pango_itemize()</doc>
  12274. <type name="Analysis" c:type="PangoAnalysis*"/>
  12275. </parameter>
  12276. <parameter name="attrs" transfer-ownership="none">
  12277. <doc xml:space="preserve">an array to store character
  12278. information in</doc>
  12279. <array length="4" zero-terminated="0" c:type="PangoLogAttr*">
  12280. <type name="LogAttr" c:type="PangoLogAttr"/>
  12281. </array>
  12282. </parameter>
  12283. <parameter name="attrs_len" transfer-ownership="none">
  12284. <doc xml:space="preserve">size of the array passed as @attrs</doc>
  12285. <type name="gint" c:type="int"/>
  12286. </parameter>
  12287. </parameters>
  12288. </function>
  12289. <function name="config_key_get"
  12290. c:identifier="pango_config_key_get"
  12291. deprecated="1"
  12292. deprecated-version="1.38">
  12293. <doc xml:space="preserve">Do not use. Does not do anything.</doc>
  12294. <return-value transfer-ownership="full">
  12295. <doc xml:space="preserve">%NULL</doc>
  12296. <type name="utf8" c:type="char*"/>
  12297. </return-value>
  12298. <parameters>
  12299. <parameter name="key" transfer-ownership="none">
  12300. <doc xml:space="preserve">Key to look up, in the form "SECTION/KEY".</doc>
  12301. <type name="utf8" c:type="const char*"/>
  12302. </parameter>
  12303. </parameters>
  12304. </function>
  12305. <function name="config_key_get_system"
  12306. c:identifier="pango_config_key_get_system"
  12307. deprecated="1"
  12308. deprecated-version="1.38">
  12309. <doc xml:space="preserve">Do not use. Does not do anything.</doc>
  12310. <return-value transfer-ownership="full">
  12311. <doc xml:space="preserve">%NULL</doc>
  12312. <type name="utf8" c:type="char*"/>
  12313. </return-value>
  12314. <parameters>
  12315. <parameter name="key" transfer-ownership="none">
  12316. <doc xml:space="preserve">Key to look up, in the form "SECTION/KEY".</doc>
  12317. <type name="utf8" c:type="const char*"/>
  12318. </parameter>
  12319. </parameters>
  12320. </function>
  12321. <function name="default_break" c:identifier="pango_default_break">
  12322. <doc xml:space="preserve">This is the default break algorithm, used if no language
  12323. engine overrides it. Normally you should use pango_break()
  12324. instead. Unlike pango_break(),
  12325. @analysis can be %NULL, but only do that if you know what
  12326. you're doing. If you need an analysis to pass to pango_break(),
  12327. you need to pango_itemize(). In most cases however you should
  12328. simply use pango_get_log_attrs().</doc>
  12329. <return-value transfer-ownership="none">
  12330. <type name="none" c:type="void"/>
  12331. </return-value>
  12332. <parameters>
  12333. <parameter name="text" transfer-ownership="none">
  12334. <doc xml:space="preserve">text to break</doc>
  12335. <type name="utf8" c:type="const gchar*"/>
  12336. </parameter>
  12337. <parameter name="length" transfer-ownership="none">
  12338. <doc xml:space="preserve">length of text in bytes (may be -1 if @text is nul-terminated)</doc>
  12339. <type name="gint" c:type="int"/>
  12340. </parameter>
  12341. <parameter name="analysis"
  12342. transfer-ownership="none"
  12343. nullable="1"
  12344. allow-none="1">
  12345. <doc xml:space="preserve">a #PangoAnalysis for the @text</doc>
  12346. <type name="Analysis" c:type="PangoAnalysis*"/>
  12347. </parameter>
  12348. <parameter name="attrs" transfer-ownership="none">
  12349. <doc xml:space="preserve">logical attributes to fill in</doc>
  12350. <type name="LogAttr" c:type="PangoLogAttr*"/>
  12351. </parameter>
  12352. <parameter name="attrs_len" transfer-ownership="none">
  12353. <doc xml:space="preserve">size of the array passed as @attrs</doc>
  12354. <type name="gint" c:type="int"/>
  12355. </parameter>
  12356. </parameters>
  12357. </function>
  12358. <function name="extents_to_pixels"
  12359. c:identifier="pango_extents_to_pixels"
  12360. version="1.16">
  12361. <doc xml:space="preserve">Converts extents from Pango units to device units, dividing by the
  12362. %PANGO_SCALE factor and performing rounding.
  12363. The @inclusive rectangle is converted by flooring the x/y coordinates and extending
  12364. width/height, such that the final rectangle completely includes the original
  12365. rectangle.
  12366. The @nearest rectangle is converted by rounding the coordinates
  12367. of the rectangle to the nearest device unit (pixel).
  12368. The rule to which argument to use is: if you want the resulting device-space
  12369. rectangle to completely contain the original rectangle, pass it in as @inclusive.
  12370. If you want two touching-but-not-overlapping rectangles stay
  12371. touching-but-not-overlapping after rounding to device units, pass them in
  12372. as @nearest.</doc>
  12373. <return-value transfer-ownership="none">
  12374. <type name="none" c:type="void"/>
  12375. </return-value>
  12376. <parameters>
  12377. <parameter name="inclusive"
  12378. transfer-ownership="none"
  12379. nullable="1"
  12380. allow-none="1">
  12381. <doc xml:space="preserve">rectangle to round to pixels inclusively, or %NULL.</doc>
  12382. <type name="Rectangle" c:type="PangoRectangle*"/>
  12383. </parameter>
  12384. <parameter name="nearest"
  12385. transfer-ownership="none"
  12386. nullable="1"
  12387. allow-none="1">
  12388. <doc xml:space="preserve">rectangle to round to nearest pixels, or %NULL.</doc>
  12389. <type name="Rectangle" c:type="PangoRectangle*"/>
  12390. </parameter>
  12391. </parameters>
  12392. </function>
  12393. <function name="find_base_dir"
  12394. c:identifier="pango_find_base_dir"
  12395. version="1.4">
  12396. <doc xml:space="preserve">Searches a string the first character that has a strong
  12397. direction, according to the Unicode bidirectional algorithm.</doc>
  12398. <return-value transfer-ownership="none">
  12399. <doc xml:space="preserve">The direction corresponding to the first strong character.
  12400. If no such character is found, then %PANGO_DIRECTION_NEUTRAL is returned.</doc>
  12401. <type name="Direction" c:type="PangoDirection"/>
  12402. </return-value>
  12403. <parameters>
  12404. <parameter name="text" transfer-ownership="none">
  12405. <doc xml:space="preserve">the text to process</doc>
  12406. <type name="utf8" c:type="const gchar*"/>
  12407. </parameter>
  12408. <parameter name="length" transfer-ownership="none">
  12409. <doc xml:space="preserve">length of @text in bytes (may be -1 if @text is nul-terminated)</doc>
  12410. <type name="gint" c:type="gint"/>
  12411. </parameter>
  12412. </parameters>
  12413. </function>
  12414. <function name="find_map"
  12415. c:identifier="pango_find_map"
  12416. introspectable="0"
  12417. deprecated="1"
  12418. deprecated-version="1.38">
  12419. <doc xml:space="preserve">Do not use. Does not do anything.</doc>
  12420. <return-value>
  12421. <doc xml:space="preserve">%NULL.</doc>
  12422. <type name="Map" c:type="PangoMap*"/>
  12423. </return-value>
  12424. <parameters>
  12425. <parameter name="language" transfer-ownership="none">
  12426. <doc xml:space="preserve">the language tag for which to find the map</doc>
  12427. <type name="Language" c:type="PangoLanguage*"/>
  12428. </parameter>
  12429. <parameter name="engine_type_id" transfer-ownership="none">
  12430. <doc xml:space="preserve">the engine type for the map to find</doc>
  12431. <type name="guint" c:type="guint"/>
  12432. </parameter>
  12433. <parameter name="render_type_id" transfer-ownership="none">
  12434. <doc xml:space="preserve">the render type for the map to find</doc>
  12435. <type name="guint" c:type="guint"/>
  12436. </parameter>
  12437. </parameters>
  12438. </function>
  12439. <function name="find_paragraph_boundary"
  12440. c:identifier="pango_find_paragraph_boundary">
  12441. <doc xml:space="preserve">Locates a paragraph boundary in @text. A boundary is caused by
  12442. delimiter characters, such as a newline, carriage return, carriage
  12443. return-newline pair, or Unicode paragraph separator character. The
  12444. index of the run of delimiters is returned in
  12445. @paragraph_delimiter_index. The index of the start of the paragraph
  12446. (index after all delimiters) is stored in @next_paragraph_start.
  12447. If no delimiters are found, both @paragraph_delimiter_index and
  12448. @next_paragraph_start are filled with the length of @text (an index one
  12449. off the end).</doc>
  12450. <return-value transfer-ownership="none">
  12451. <type name="none" c:type="void"/>
  12452. </return-value>
  12453. <parameters>
  12454. <parameter name="text" transfer-ownership="none">
  12455. <doc xml:space="preserve">UTF-8 text</doc>
  12456. <type name="utf8" c:type="const gchar*"/>
  12457. </parameter>
  12458. <parameter name="length" transfer-ownership="none">
  12459. <doc xml:space="preserve">length of @text in bytes, or -1 if nul-terminated</doc>
  12460. <type name="gint" c:type="gint"/>
  12461. </parameter>
  12462. <parameter name="paragraph_delimiter_index"
  12463. direction="out"
  12464. caller-allocates="0"
  12465. transfer-ownership="full">
  12466. <doc xml:space="preserve">return location for index of
  12467. delimiter</doc>
  12468. <type name="gint" c:type="gint*"/>
  12469. </parameter>
  12470. <parameter name="next_paragraph_start"
  12471. direction="out"
  12472. caller-allocates="0"
  12473. transfer-ownership="full">
  12474. <doc xml:space="preserve">return location for start of next
  12475. paragraph</doc>
  12476. <type name="gint" c:type="gint*"/>
  12477. </parameter>
  12478. </parameters>
  12479. </function>
  12480. <function name="font_description_from_string"
  12481. c:identifier="pango_font_description_from_string"
  12482. moved-to="FontDescription.from_string">
  12483. <doc xml:space="preserve">Creates a new font description from a string representation in the
  12484. form "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where FAMILY-LIST is a
  12485. comma separated list of families optionally terminated by a comma,
  12486. STYLE_OPTIONS is a whitespace separated list of words where each word
  12487. describes one of style, variant, weight, stretch, or gravity, and SIZE
  12488. is a decimal number (size in points) or optionally followed by the
  12489. unit modifier "px" for absolute size. Any one of the options may
  12490. be absent. If FAMILY-LIST is absent, then the family_name field of
  12491. the resulting font description will be initialized to %NULL. If
  12492. STYLE-OPTIONS is missing, then all style options will be set to the
  12493. default values. If SIZE is missing, the size in the resulting font
  12494. description will be set to 0.</doc>
  12495. <return-value transfer-ownership="full">
  12496. <doc xml:space="preserve">a new #PangoFontDescription.</doc>
  12497. <type name="FontDescription" c:type="PangoFontDescription*"/>
  12498. </return-value>
  12499. <parameters>
  12500. <parameter name="str" transfer-ownership="none">
  12501. <doc xml:space="preserve">string representation of a font description.</doc>
  12502. <type name="utf8" c:type="const char*"/>
  12503. </parameter>
  12504. </parameters>
  12505. </function>
  12506. <function name="get_lib_subdirectory"
  12507. c:identifier="pango_get_lib_subdirectory"
  12508. deprecated="1"
  12509. deprecated-version="1.38">
  12510. <doc xml:space="preserve">Returns the name of the "pango" subdirectory of LIBDIR
  12511. (which is set at compile time).</doc>
  12512. <return-value transfer-ownership="none">
  12513. <doc xml:space="preserve">the Pango lib directory. The returned string should
  12514. not be freed.</doc>
  12515. <type name="utf8" c:type="const char*"/>
  12516. </return-value>
  12517. </function>
  12518. <function name="get_log_attrs" c:identifier="pango_get_log_attrs">
  12519. <doc xml:space="preserve">Computes a #PangoLogAttr for each character in @text. The @log_attrs
  12520. array must have one #PangoLogAttr for each position in @text; if
  12521. @text contains N characters, it has N+1 positions, including the
  12522. last position at the end of the text. @text should be an entire
  12523. paragraph; logical attributes can't be computed without context
  12524. (for example you need to see spaces on either side of a word to know
  12525. the word is a word).</doc>
  12526. <return-value transfer-ownership="none">
  12527. <type name="none" c:type="void"/>
  12528. </return-value>
  12529. <parameters>
  12530. <parameter name="text" transfer-ownership="none">
  12531. <doc xml:space="preserve">text to process</doc>
  12532. <type name="utf8" c:type="const char*"/>
  12533. </parameter>
  12534. <parameter name="length" transfer-ownership="none">
  12535. <doc xml:space="preserve">length in bytes of @text</doc>
  12536. <type name="gint" c:type="int"/>
  12537. </parameter>
  12538. <parameter name="level" transfer-ownership="none">
  12539. <doc xml:space="preserve">embedding level, or -1 if unknown</doc>
  12540. <type name="gint" c:type="int"/>
  12541. </parameter>
  12542. <parameter name="language" transfer-ownership="none">
  12543. <doc xml:space="preserve">language tag</doc>
  12544. <type name="Language" c:type="PangoLanguage*"/>
  12545. </parameter>
  12546. <parameter name="log_attrs" transfer-ownership="none">
  12547. <doc xml:space="preserve">array with one #PangoLogAttr
  12548. per character in @text, plus one extra, to be filled in</doc>
  12549. <array length="5" zero-terminated="0" c:type="PangoLogAttr*">
  12550. <type name="LogAttr" c:type="PangoLogAttr"/>
  12551. </array>
  12552. </parameter>
  12553. <parameter name="attrs_len" transfer-ownership="none">
  12554. <doc xml:space="preserve">length of @log_attrs array</doc>
  12555. <type name="gint" c:type="int"/>
  12556. </parameter>
  12557. </parameters>
  12558. </function>
  12559. <function name="get_mirror_char" c:identifier="pango_get_mirror_char">
  12560. <doc xml:space="preserve">If @ch has the Unicode mirrored property and there is another Unicode
  12561. character that typically has a glyph that is the mirror image of @ch's
  12562. glyph, puts that character in the address pointed to by @mirrored_ch.
  12563. Use g_unichar_get_mirror_char() instead; the docs for that function
  12564. provide full details.</doc>
  12565. <return-value transfer-ownership="none">
  12566. <doc xml:space="preserve">%TRUE if @ch has a mirrored character and @mirrored_ch is
  12567. filled in, %FALSE otherwise</doc>
  12568. <type name="gboolean" c:type="gboolean"/>
  12569. </return-value>
  12570. <parameters>
  12571. <parameter name="ch" transfer-ownership="none">
  12572. <doc xml:space="preserve">a Unicode character</doc>
  12573. <type name="gunichar" c:type="gunichar"/>
  12574. </parameter>
  12575. <parameter name="mirrored_ch" transfer-ownership="none">
  12576. <doc xml:space="preserve">location to store the mirrored character</doc>
  12577. <type name="gunichar" c:type="gunichar*"/>
  12578. </parameter>
  12579. </parameters>
  12580. </function>
  12581. <function name="get_sysconf_subdirectory"
  12582. c:identifier="pango_get_sysconf_subdirectory"
  12583. deprecated="1"
  12584. deprecated-version="1.38">
  12585. <doc xml:space="preserve">Returns the name of the "pango" subdirectory of SYSCONFDIR
  12586. (which is set at compile time).</doc>
  12587. <return-value transfer-ownership="none">
  12588. <doc xml:space="preserve">the Pango sysconf directory. The returned string should
  12589. not be freed.</doc>
  12590. <type name="utf8" c:type="const char*"/>
  12591. </return-value>
  12592. </function>
  12593. <function name="gravity_get_for_matrix"
  12594. c:identifier="pango_gravity_get_for_matrix"
  12595. moved-to="Gravity.get_for_matrix"
  12596. version="1.16">
  12597. <doc xml:space="preserve">Finds the gravity that best matches the rotation component
  12598. in a #PangoMatrix.</doc>
  12599. <return-value transfer-ownership="none">
  12600. <doc xml:space="preserve">the gravity of @matrix, which will never be
  12601. %PANGO_GRAVITY_AUTO, or %PANGO_GRAVITY_SOUTH if @matrix is %NULL</doc>
  12602. <type name="Gravity" c:type="PangoGravity"/>
  12603. </return-value>
  12604. <parameters>
  12605. <parameter name="matrix"
  12606. transfer-ownership="none"
  12607. nullable="1"
  12608. allow-none="1">
  12609. <doc xml:space="preserve">a #PangoMatrix</doc>
  12610. <type name="Matrix" c:type="const PangoMatrix*"/>
  12611. </parameter>
  12612. </parameters>
  12613. </function>
  12614. <function name="gravity_get_for_script"
  12615. c:identifier="pango_gravity_get_for_script"
  12616. moved-to="Gravity.get_for_script"
  12617. version="1.16">
  12618. <doc xml:space="preserve">Based on the script, base gravity, and hint, returns actual gravity
  12619. to use in laying out a single #PangoItem.
  12620. If @base_gravity is %PANGO_GRAVITY_AUTO, it is first replaced with the
  12621. preferred gravity of @script. To get the preferred gravity of a script,
  12622. pass %PANGO_GRAVITY_AUTO and %PANGO_GRAVITY_HINT_STRONG in.</doc>
  12623. <return-value transfer-ownership="none">
  12624. <doc xml:space="preserve">resolved gravity suitable to use for a run of text
  12625. with @script.</doc>
  12626. <type name="Gravity" c:type="PangoGravity"/>
  12627. </return-value>
  12628. <parameters>
  12629. <parameter name="script" transfer-ownership="none">
  12630. <doc xml:space="preserve">#PangoScript to query</doc>
  12631. <type name="Script" c:type="PangoScript"/>
  12632. </parameter>
  12633. <parameter name="base_gravity" transfer-ownership="none">
  12634. <doc xml:space="preserve">base gravity of the paragraph</doc>
  12635. <type name="Gravity" c:type="PangoGravity"/>
  12636. </parameter>
  12637. <parameter name="hint" transfer-ownership="none">
  12638. <doc xml:space="preserve">orientation hint</doc>
  12639. <type name="GravityHint" c:type="PangoGravityHint"/>
  12640. </parameter>
  12641. </parameters>
  12642. </function>
  12643. <function name="gravity_get_for_script_and_width"
  12644. c:identifier="pango_gravity_get_for_script_and_width"
  12645. moved-to="Gravity.get_for_script_and_width"
  12646. version="1.26">
  12647. <doc xml:space="preserve">Based on the script, East Asian width, base gravity, and hint,
  12648. returns actual gravity to use in laying out a single character
  12649. or #PangoItem.
  12650. This function is similar to pango_gravity_get_for_script() except
  12651. that this function makes a distinction between narrow/half-width and
  12652. wide/full-width characters also. Wide/full-width characters always
  12653. stand &lt;emphasis&gt;upright&lt;/emphasis&gt;, that is, they always take the base gravity,
  12654. whereas narrow/full-width characters are always rotated in vertical
  12655. context.
  12656. If @base_gravity is %PANGO_GRAVITY_AUTO, it is first replaced with the
  12657. preferred gravity of @script.</doc>
  12658. <return-value transfer-ownership="none">
  12659. <doc xml:space="preserve">resolved gravity suitable to use for a run of text
  12660. with @script and @wide.</doc>
  12661. <type name="Gravity" c:type="PangoGravity"/>
  12662. </return-value>
  12663. <parameters>
  12664. <parameter name="script" transfer-ownership="none">
  12665. <doc xml:space="preserve">#PangoScript to query</doc>
  12666. <type name="Script" c:type="PangoScript"/>
  12667. </parameter>
  12668. <parameter name="wide" transfer-ownership="none">
  12669. <doc xml:space="preserve">%TRUE for wide characters as returned by g_unichar_iswide()</doc>
  12670. <type name="gboolean" c:type="gboolean"/>
  12671. </parameter>
  12672. <parameter name="base_gravity" transfer-ownership="none">
  12673. <doc xml:space="preserve">base gravity of the paragraph</doc>
  12674. <type name="Gravity" c:type="PangoGravity"/>
  12675. </parameter>
  12676. <parameter name="hint" transfer-ownership="none">
  12677. <doc xml:space="preserve">orientation hint</doc>
  12678. <type name="GravityHint" c:type="PangoGravityHint"/>
  12679. </parameter>
  12680. </parameters>
  12681. </function>
  12682. <function name="gravity_to_rotation"
  12683. c:identifier="pango_gravity_to_rotation"
  12684. moved-to="Gravity.to_rotation"
  12685. version="1.16">
  12686. <doc xml:space="preserve">Converts a #PangoGravity value to its natural rotation in radians.
  12687. @gravity should not be %PANGO_GRAVITY_AUTO.
  12688. Note that pango_matrix_rotate() takes angle in degrees, not radians.
  12689. So, to call pango_matrix_rotate() with the output of this function
  12690. you should multiply it by (180. / G_PI).</doc>
  12691. <return-value transfer-ownership="none">
  12692. <doc xml:space="preserve">the rotation value corresponding to @gravity.</doc>
  12693. <type name="gdouble" c:type="double"/>
  12694. </return-value>
  12695. <parameters>
  12696. <parameter name="gravity" transfer-ownership="none">
  12697. <doc xml:space="preserve">gravity to query</doc>
  12698. <type name="Gravity" c:type="PangoGravity"/>
  12699. </parameter>
  12700. </parameters>
  12701. </function>
  12702. <function name="is_zero_width"
  12703. c:identifier="pango_is_zero_width"
  12704. version="1.10">
  12705. <doc xml:space="preserve">Checks @ch to see if it is a character that should not be
  12706. normally rendered on the screen. This includes all Unicode characters
  12707. with "ZERO WIDTH" in their name, as well as &lt;firstterm&gt;bidi&lt;/firstterm&gt; formatting characters, and
  12708. a few other ones. This is totally different from g_unichar_iszerowidth()
  12709. and is at best misnamed.</doc>
  12710. <return-value transfer-ownership="none">
  12711. <doc xml:space="preserve">%TRUE if @ch is a zero-width character, %FALSE otherwise</doc>
  12712. <type name="gboolean" c:type="gboolean"/>
  12713. </return-value>
  12714. <parameters>
  12715. <parameter name="ch" transfer-ownership="none">
  12716. <doc xml:space="preserve">a Unicode character</doc>
  12717. <type name="gunichar" c:type="gunichar"/>
  12718. </parameter>
  12719. </parameters>
  12720. </function>
  12721. <function name="itemize" c:identifier="pango_itemize">
  12722. <doc xml:space="preserve">Breaks a piece of text into segments with consistent
  12723. directional level and shaping engine. Each byte of @text will
  12724. be contained in exactly one of the items in the returned list;
  12725. the generated list of items will be in logical order (the start
  12726. offsets of the items are ascending).
  12727. @cached_iter should be an iterator over @attrs currently positioned at a
  12728. range before or containing @start_index; @cached_iter will be advanced to
  12729. the range covering the position just after @start_index + @length.
  12730. (i.e. if itemizing in a loop, just keep passing in the same @cached_iter).</doc>
  12731. <return-value transfer-ownership="full">
  12732. <doc xml:space="preserve">a #GList of #PangoItem
  12733. structures. The items should be freed using pango_item_free()
  12734. probably in combination with g_list_foreach(), and the list itself
  12735. using g_list_free().</doc>
  12736. <type name="GLib.List" c:type="GList*">
  12737. <type name="Item"/>
  12738. </type>
  12739. </return-value>
  12740. <parameters>
  12741. <parameter name="context" transfer-ownership="none">
  12742. <doc xml:space="preserve">a structure holding information that affects
  12743. the itemization process.</doc>
  12744. <type name="Context" c:type="PangoContext*"/>
  12745. </parameter>
  12746. <parameter name="text" transfer-ownership="none">
  12747. <doc xml:space="preserve">the text to itemize.</doc>
  12748. <type name="utf8" c:type="const char*"/>
  12749. </parameter>
  12750. <parameter name="start_index" transfer-ownership="none">
  12751. <doc xml:space="preserve">first byte in @text to process</doc>
  12752. <type name="gint" c:type="int"/>
  12753. </parameter>
  12754. <parameter name="length" transfer-ownership="none">
  12755. <doc xml:space="preserve">the number of bytes (not characters) to process
  12756. after @start_index.
  12757. This must be &gt;= 0.</doc>
  12758. <type name="gint" c:type="int"/>
  12759. </parameter>
  12760. <parameter name="attrs" transfer-ownership="none">
  12761. <doc xml:space="preserve">the set of attributes that apply to @text.</doc>
  12762. <type name="AttrList" c:type="PangoAttrList*"/>
  12763. </parameter>
  12764. <parameter name="cached_iter"
  12765. transfer-ownership="none"
  12766. nullable="1"
  12767. allow-none="1">
  12768. <doc xml:space="preserve">Cached attribute iterator, or %NULL</doc>
  12769. <type name="AttrIterator" c:type="PangoAttrIterator*"/>
  12770. </parameter>
  12771. </parameters>
  12772. </function>
  12773. <function name="itemize_with_base_dir"
  12774. c:identifier="pango_itemize_with_base_dir"
  12775. version="1.4">
  12776. <doc xml:space="preserve">Like pango_itemize(), but the base direction to use when
  12777. computing bidirectional levels (see pango_context_set_base_dir ()),
  12778. is specified explicitly rather than gotten from the #PangoContext.</doc>
  12779. <return-value transfer-ownership="full">
  12780. <doc xml:space="preserve">a #GList of
  12781. #PangoItem structures. The items should be freed using
  12782. pango_item_free() probably in combination with
  12783. g_list_foreach(), and the list itself using g_list_free().</doc>
  12784. <type name="GLib.List" c:type="GList*">
  12785. <type name="Item"/>
  12786. </type>
  12787. </return-value>
  12788. <parameters>
  12789. <parameter name="context" transfer-ownership="none">
  12790. <doc xml:space="preserve">a structure holding information that affects
  12791. the itemization process.</doc>
  12792. <type name="Context" c:type="PangoContext*"/>
  12793. </parameter>
  12794. <parameter name="base_dir" transfer-ownership="none">
  12795. <doc xml:space="preserve">base direction to use for bidirectional processing</doc>
  12796. <type name="Direction" c:type="PangoDirection"/>
  12797. </parameter>
  12798. <parameter name="text" transfer-ownership="none">
  12799. <doc xml:space="preserve">the text to itemize.</doc>
  12800. <type name="utf8" c:type="const char*"/>
  12801. </parameter>
  12802. <parameter name="start_index" transfer-ownership="none">
  12803. <doc xml:space="preserve">first byte in @text to process</doc>
  12804. <type name="gint" c:type="int"/>
  12805. </parameter>
  12806. <parameter name="length" transfer-ownership="none">
  12807. <doc xml:space="preserve">the number of bytes (not characters) to process
  12808. after @start_index. This must be &gt;= 0.</doc>
  12809. <type name="gint" c:type="int"/>
  12810. </parameter>
  12811. <parameter name="attrs" transfer-ownership="none">
  12812. <doc xml:space="preserve">the set of attributes that apply to @text.</doc>
  12813. <type name="AttrList" c:type="PangoAttrList*"/>
  12814. </parameter>
  12815. <parameter name="cached_iter"
  12816. transfer-ownership="none"
  12817. nullable="1"
  12818. allow-none="1">
  12819. <doc xml:space="preserve">Cached attribute iterator, or %NULL</doc>
  12820. <type name="AttrIterator" c:type="PangoAttrIterator*"/>
  12821. </parameter>
  12822. </parameters>
  12823. </function>
  12824. <function name="language_from_string"
  12825. c:identifier="pango_language_from_string"
  12826. moved-to="Language.from_string">
  12827. <doc xml:space="preserve">Take a RFC-3066 format language tag as a string and convert it to a
  12828. #PangoLanguage pointer that can be efficiently copied (copy the
  12829. pointer) and compared with other language tags (compare the
  12830. pointer.)
  12831. This function first canonicalizes the string by converting it to
  12832. lowercase, mapping '_' to '-', and stripping all characters other
  12833. than letters and '-'.
  12834. Use pango_language_get_default() if you want to get the #PangoLanguage for
  12835. the current locale of the process.</doc>
  12836. <return-value transfer-ownership="none" nullable="1">
  12837. <doc xml:space="preserve">an opaque pointer to a
  12838. #PangoLanguage structure, or %NULL if @language was
  12839. %NULL. The returned pointer will be valid forever
  12840. after, and should not be freed.</doc>
  12841. <type name="Language" c:type="PangoLanguage*"/>
  12842. </return-value>
  12843. <parameters>
  12844. <parameter name="language"
  12845. transfer-ownership="none"
  12846. nullable="1"
  12847. allow-none="1">
  12848. <doc xml:space="preserve">a string representing a language tag, or %NULL</doc>
  12849. <type name="utf8" c:type="const char*"/>
  12850. </parameter>
  12851. </parameters>
  12852. </function>
  12853. <function name="language_get_default"
  12854. c:identifier="pango_language_get_default"
  12855. moved-to="Language.get_default"
  12856. version="1.16">
  12857. <doc xml:space="preserve">Returns the #PangoLanguage for the current locale of the process.
  12858. Note that this can change over the life of an application.
  12859. On Unix systems, this is the return value is derived from
  12860. &lt;literal&gt;setlocale(LC_CTYPE, NULL)&lt;/literal&gt;, and the user can
  12861. affect this through the environment variables LC_ALL, LC_CTYPE or
  12862. LANG (checked in that order). The locale string typically is in
  12863. the form lang_COUNTRY, where lang is an ISO-639 language code, and
  12864. COUNTRY is an ISO-3166 country code. For instance, sv_FI for
  12865. Swedish as written in Finland or pt_BR for Portuguese as written in
  12866. Brazil.
  12867. On Windows, the C library does not use any such environment
  12868. variables, and setting them won't affect the behavior of functions
  12869. like ctime(). The user sets the locale through the Regional Options
  12870. in the Control Panel. The C library (in the setlocale() function)
  12871. does not use country and language codes, but country and language
  12872. names spelled out in English.
  12873. However, this function does check the above environment
  12874. variables, and does return a Unix-style locale string based on
  12875. either said environment variables or the thread's current locale.
  12876. Your application should call &lt;literal&gt;setlocale(LC_ALL, "");&lt;/literal&gt;
  12877. for the user settings to take effect. Gtk+ does this in its initialization
  12878. functions automatically (by calling gtk_set_locale()).
  12879. See &lt;literal&gt;man setlocale&lt;/literal&gt; for more details.</doc>
  12880. <return-value transfer-ownership="none">
  12881. <doc xml:space="preserve">the default language as a
  12882. #PangoLanguage, must not be freed.</doc>
  12883. <type name="Language" c:type="PangoLanguage*"/>
  12884. </return-value>
  12885. </function>
  12886. <function name="log2vis_get_embedding_levels"
  12887. c:identifier="pango_log2vis_get_embedding_levels"
  12888. version="1.4">
  12889. <doc xml:space="preserve">This will return the bidirectional embedding levels of the input paragraph
  12890. as defined by the Unicode Bidirectional Algorithm available at:
  12891. http://www.unicode.org/reports/tr9/
  12892. If the input base direction is a weak direction, the direction of the
  12893. characters in the text will determine the final resolved direction.</doc>
  12894. <return-value transfer-ownership="none">
  12895. <doc xml:space="preserve">a newly allocated array of embedding levels, one item per
  12896. character (not byte), that should be freed using g_free.</doc>
  12897. <type name="guint8" c:type="guint8*"/>
  12898. </return-value>
  12899. <parameters>
  12900. <parameter name="text" transfer-ownership="none">
  12901. <doc xml:space="preserve">the text to itemize.</doc>
  12902. <type name="utf8" c:type="const gchar*"/>
  12903. </parameter>
  12904. <parameter name="length" transfer-ownership="none">
  12905. <doc xml:space="preserve">the number of bytes (not characters) to process, or -1
  12906. if @text is nul-terminated and the length should be calculated.</doc>
  12907. <type name="gint" c:type="int"/>
  12908. </parameter>
  12909. <parameter name="pbase_dir" transfer-ownership="none">
  12910. <doc xml:space="preserve">input base direction, and output resolved direction.</doc>
  12911. <type name="Direction" c:type="PangoDirection*"/>
  12912. </parameter>
  12913. </parameters>
  12914. </function>
  12915. <function name="lookup_aliases"
  12916. c:identifier="pango_lookup_aliases"
  12917. deprecated="1"
  12918. deprecated-version="1.32">
  12919. <doc xml:space="preserve">Look up all user defined aliases for the alias @fontname.
  12920. The resulting font family names will be stored in @families,
  12921. and the number of families in @n_families.</doc>
  12922. <doc-deprecated xml:space="preserve">This function is not thread-safe.</doc-deprecated>
  12923. <return-value transfer-ownership="none">
  12924. <type name="none" c:type="void"/>
  12925. </return-value>
  12926. <parameters>
  12927. <parameter name="fontname" transfer-ownership="none">
  12928. <doc xml:space="preserve">an ascii string</doc>
  12929. <type name="utf8" c:type="const char*"/>
  12930. </parameter>
  12931. <parameter name="families"
  12932. direction="out"
  12933. caller-allocates="0"
  12934. transfer-ownership="full">
  12935. <doc xml:space="preserve">will be set to an array of font family names.
  12936. this array is owned by pango and should not be freed.</doc>
  12937. <array length="2" zero-terminated="0" c:type="char***">
  12938. <type name="utf8" c:type="char**"/>
  12939. </array>
  12940. </parameter>
  12941. <parameter name="n_families"
  12942. direction="out"
  12943. caller-allocates="0"
  12944. transfer-ownership="full">
  12945. <doc xml:space="preserve">will be set to the length of the @families array.</doc>
  12946. <type name="gint" c:type="int*"/>
  12947. </parameter>
  12948. </parameters>
  12949. </function>
  12950. <function name="markup_parser_finish"
  12951. c:identifier="pango_markup_parser_finish"
  12952. version="1.31.0"
  12953. throws="1">
  12954. <doc xml:space="preserve">After feeding a pango markup parser some data with g_markup_parse_context_parse(),
  12955. use this function to get the list of pango attributes and text out of the
  12956. markup. This function will not free @context, use g_markup_parse_context_free()
  12957. to do so.</doc>
  12958. <return-value transfer-ownership="none">
  12959. <doc xml:space="preserve">%FALSE if @error is set, otherwise %TRUE</doc>
  12960. <type name="gboolean" c:type="gboolean"/>
  12961. </return-value>
  12962. <parameters>
  12963. <parameter name="context" transfer-ownership="none">
  12964. <doc xml:space="preserve">A valid parse context that was returned from pango_markup_parser_new()</doc>
  12965. <type name="GLib.MarkupParseContext" c:type="GMarkupParseContext*"/>
  12966. </parameter>
  12967. <parameter name="attr_list"
  12968. direction="out"
  12969. caller-allocates="0"
  12970. transfer-ownership="full"
  12971. optional="1"
  12972. allow-none="1">
  12973. <doc xml:space="preserve">address of return location for a #PangoAttrList, or %NULL</doc>
  12974. <type name="AttrList" c:type="PangoAttrList**"/>
  12975. </parameter>
  12976. <parameter name="text"
  12977. direction="out"
  12978. caller-allocates="0"
  12979. transfer-ownership="full"
  12980. optional="1"
  12981. allow-none="1">
  12982. <doc xml:space="preserve">address of return location for text with tags stripped, or %NULL</doc>
  12983. <type name="utf8" c:type="char**"/>
  12984. </parameter>
  12985. <parameter name="accel_char"
  12986. direction="out"
  12987. caller-allocates="0"
  12988. transfer-ownership="full"
  12989. optional="1"
  12990. allow-none="1">
  12991. <doc xml:space="preserve">address of return location for accelerator char, or %NULL</doc>
  12992. <type name="gunichar" c:type="gunichar*"/>
  12993. </parameter>
  12994. </parameters>
  12995. </function>
  12996. <function name="markup_parser_new"
  12997. c:identifier="pango_markup_parser_new"
  12998. version="1.31.0">
  12999. <doc xml:space="preserve">Parses marked-up text (see
  13000. &lt;link linkend="PangoMarkupFormat"&gt;markup format&lt;/link&gt;) to create
  13001. a plain-text string and an attribute list.
  13002. If @accel_marker is nonzero, the given character will mark the
  13003. character following it as an accelerator. For example, @accel_marker
  13004. might be an ampersand or underscore. All characters marked
  13005. as an accelerator will receive a %PANGO_UNDERLINE_LOW attribute,
  13006. and the first character so marked will be returned in @accel_char,
  13007. when calling finish(). Two @accel_marker characters following each
  13008. other produce a single literal @accel_marker character.
  13009. To feed markup to the parser, use g_markup_parse_context_parse()
  13010. on the returned #GMarkupParseContext. When done with feeding markup
  13011. to the parser, use pango_markup_parser_finish() to get the data out
  13012. of it, and then use g_markup_parse_context_free() to free it.
  13013. This function is designed for applications that read pango markup
  13014. from streams. To simply parse a string containing pango markup,
  13015. the simpler pango_parse_markup() API is recommended instead.</doc>
  13016. <return-value transfer-ownership="none">
  13017. <doc xml:space="preserve">a #GMarkupParseContext that should be
  13018. destroyed with g_markup_parse_context_free().</doc>
  13019. <type name="GLib.MarkupParseContext" c:type="GMarkupParseContext*"/>
  13020. </return-value>
  13021. <parameters>
  13022. <parameter name="accel_marker" transfer-ownership="none">
  13023. <doc xml:space="preserve">character that precedes an accelerator, or 0 for none</doc>
  13024. <type name="gunichar" c:type="gunichar"/>
  13025. </parameter>
  13026. </parameters>
  13027. </function>
  13028. <function name="module_register"
  13029. c:identifier="pango_module_register"
  13030. deprecated="1"
  13031. deprecated-version="1.38">
  13032. <doc xml:space="preserve">Do not use. Does not do anything.</doc>
  13033. <return-value transfer-ownership="none">
  13034. <type name="none" c:type="void"/>
  13035. </return-value>
  13036. <parameters>
  13037. <parameter name="module" transfer-ownership="none">
  13038. <doc xml:space="preserve">a #PangoIncludedModule</doc>
  13039. <type name="IncludedModule" c:type="PangoIncludedModule*"/>
  13040. </parameter>
  13041. </parameters>
  13042. </function>
  13043. <function name="parse_enum"
  13044. c:identifier="pango_parse_enum"
  13045. version="1.16"
  13046. deprecated="1"
  13047. deprecated-version="1.38">
  13048. <doc xml:space="preserve">Parses an enum type and stores the result in @value.
  13049. If @str does not match the nick name of any of the possible values for the
  13050. enum and is not an integer, %FALSE is returned, a warning is issued
  13051. if @warn is %TRUE, and a
  13052. string representing the list of possible values is stored in
  13053. @possible_values. The list is slash-separated, eg.
  13054. "none/start/middle/end". If failed and @possible_values is not %NULL,
  13055. returned string should be freed using g_free().</doc>
  13056. <return-value transfer-ownership="none">
  13057. <doc xml:space="preserve">%TRUE if @str was successfully parsed.</doc>
  13058. <type name="gboolean" c:type="gboolean"/>
  13059. </return-value>
  13060. <parameters>
  13061. <parameter name="type" transfer-ownership="none">
  13062. <doc xml:space="preserve">enum type to parse, eg. %PANGO_TYPE_ELLIPSIZE_MODE.</doc>
  13063. <type name="GType" c:type="GType"/>
  13064. </parameter>
  13065. <parameter name="str"
  13066. transfer-ownership="none"
  13067. nullable="1"
  13068. allow-none="1">
  13069. <doc xml:space="preserve">string to parse. May be %NULL.</doc>
  13070. <type name="utf8" c:type="const char*"/>
  13071. </parameter>
  13072. <parameter name="value"
  13073. direction="out"
  13074. caller-allocates="0"
  13075. transfer-ownership="full"
  13076. optional="1"
  13077. allow-none="1">
  13078. <doc xml:space="preserve">integer to store the result in, or %NULL.</doc>
  13079. <type name="gint" c:type="int*"/>
  13080. </parameter>
  13081. <parameter name="warn" transfer-ownership="none">
  13082. <doc xml:space="preserve">if %TRUE, issue a g_warning() on bad input.</doc>
  13083. <type name="gboolean" c:type="gboolean"/>
  13084. </parameter>
  13085. <parameter name="possible_values"
  13086. direction="out"
  13087. caller-allocates="0"
  13088. transfer-ownership="full"
  13089. optional="1"
  13090. allow-none="1">
  13091. <doc xml:space="preserve">place to store list of possible values on failure, or %NULL.</doc>
  13092. <type name="utf8" c:type="char**"/>
  13093. </parameter>
  13094. </parameters>
  13095. </function>
  13096. <function name="parse_markup" c:identifier="pango_parse_markup" throws="1">
  13097. <doc xml:space="preserve">Parses marked-up text (see
  13098. &lt;link linkend="PangoMarkupFormat"&gt;markup format&lt;/link&gt;) to create
  13099. a plain-text string and an attribute list.
  13100. If @accel_marker is nonzero, the given character will mark the
  13101. character following it as an accelerator. For example, @accel_marker
  13102. might be an ampersand or underscore. All characters marked
  13103. as an accelerator will receive a %PANGO_UNDERLINE_LOW attribute,
  13104. and the first character so marked will be returned in @accel_char.
  13105. Two @accel_marker characters following each other produce a single
  13106. literal @accel_marker character.
  13107. To parse a stream of pango markup incrementally, use pango_markup_parser_new().
  13108. If any error happens, none of the output arguments are touched except
  13109. for @error.</doc>
  13110. <return-value transfer-ownership="none">
  13111. <doc xml:space="preserve">%FALSE if @error is set, otherwise %TRUE</doc>
  13112. <type name="gboolean" c:type="gboolean"/>
  13113. </return-value>
  13114. <parameters>
  13115. <parameter name="markup_text" transfer-ownership="none">
  13116. <doc xml:space="preserve">markup to parse (see &lt;link linkend="PangoMarkupFormat"&gt;markup format&lt;/link&gt;)</doc>
  13117. <type name="utf8" c:type="const char*"/>
  13118. </parameter>
  13119. <parameter name="length" transfer-ownership="none">
  13120. <doc xml:space="preserve">length of @markup_text, or -1 if nul-terminated</doc>
  13121. <type name="gint" c:type="int"/>
  13122. </parameter>
  13123. <parameter name="accel_marker" transfer-ownership="none">
  13124. <doc xml:space="preserve">character that precedes an accelerator, or 0 for none</doc>
  13125. <type name="gunichar" c:type="gunichar"/>
  13126. </parameter>
  13127. <parameter name="attr_list"
  13128. direction="out"
  13129. caller-allocates="0"
  13130. transfer-ownership="full"
  13131. optional="1"
  13132. allow-none="1">
  13133. <doc xml:space="preserve">address of return location for a #PangoAttrList, or %NULL</doc>
  13134. <type name="AttrList" c:type="PangoAttrList**"/>
  13135. </parameter>
  13136. <parameter name="text"
  13137. direction="out"
  13138. caller-allocates="0"
  13139. transfer-ownership="full"
  13140. optional="1"
  13141. allow-none="1">
  13142. <doc xml:space="preserve">address of return location for text with tags stripped, or %NULL</doc>
  13143. <type name="utf8" c:type="char**"/>
  13144. </parameter>
  13145. <parameter name="accel_char"
  13146. direction="out"
  13147. caller-allocates="0"
  13148. transfer-ownership="full"
  13149. optional="1"
  13150. allow-none="1">
  13151. <doc xml:space="preserve">address of return location for accelerator char, or %NULL</doc>
  13152. <type name="gunichar" c:type="gunichar*"/>
  13153. </parameter>
  13154. </parameters>
  13155. </function>
  13156. <function name="parse_stretch" c:identifier="pango_parse_stretch">
  13157. <doc xml:space="preserve">Parses a font stretch. The allowed values are
  13158. "ultra_condensed", "extra_condensed", "condensed",
  13159. "semi_condensed", "normal", "semi_expanded", "expanded",
  13160. "extra_expanded" and "ultra_expanded". Case variations are
  13161. ignored and the '_' characters may be omitted.</doc>
  13162. <return-value transfer-ownership="none">
  13163. <doc xml:space="preserve">%TRUE if @str was successfully parsed.</doc>
  13164. <type name="gboolean" c:type="gboolean"/>
  13165. </return-value>
  13166. <parameters>
  13167. <parameter name="str" transfer-ownership="none">
  13168. <doc xml:space="preserve">a string to parse.</doc>
  13169. <type name="utf8" c:type="const char*"/>
  13170. </parameter>
  13171. <parameter name="stretch"
  13172. direction="out"
  13173. caller-allocates="1"
  13174. transfer-ownership="none">
  13175. <doc xml:space="preserve">a #PangoStretch to store the
  13176. result in.</doc>
  13177. <type name="Stretch" c:type="PangoStretch*"/>
  13178. </parameter>
  13179. <parameter name="warn" transfer-ownership="none">
  13180. <doc xml:space="preserve">if %TRUE, issue a g_warning() on bad input.</doc>
  13181. <type name="gboolean" c:type="gboolean"/>
  13182. </parameter>
  13183. </parameters>
  13184. </function>
  13185. <function name="parse_style" c:identifier="pango_parse_style">
  13186. <doc xml:space="preserve">Parses a font style. The allowed values are "normal",
  13187. "italic" and "oblique", case variations being
  13188. ignored.</doc>
  13189. <return-value transfer-ownership="none">
  13190. <doc xml:space="preserve">%TRUE if @str was successfully parsed.</doc>
  13191. <type name="gboolean" c:type="gboolean"/>
  13192. </return-value>
  13193. <parameters>
  13194. <parameter name="str" transfer-ownership="none">
  13195. <doc xml:space="preserve">a string to parse.</doc>
  13196. <type name="utf8" c:type="const char*"/>
  13197. </parameter>
  13198. <parameter name="style"
  13199. direction="out"
  13200. caller-allocates="1"
  13201. transfer-ownership="none">
  13202. <doc xml:space="preserve">a #PangoStyle to store the result
  13203. in.</doc>
  13204. <type name="Style" c:type="PangoStyle*"/>
  13205. </parameter>
  13206. <parameter name="warn" transfer-ownership="none">
  13207. <doc xml:space="preserve">if %TRUE, issue a g_warning() on bad input.</doc>
  13208. <type name="gboolean" c:type="gboolean"/>
  13209. </parameter>
  13210. </parameters>
  13211. </function>
  13212. <function name="parse_variant" c:identifier="pango_parse_variant">
  13213. <doc xml:space="preserve">Parses a font variant. The allowed values are "normal"
  13214. and "smallcaps" or "small_caps", case variations being
  13215. ignored.</doc>
  13216. <return-value transfer-ownership="none">
  13217. <doc xml:space="preserve">%TRUE if @str was successfully parsed.</doc>
  13218. <type name="gboolean" c:type="gboolean"/>
  13219. </return-value>
  13220. <parameters>
  13221. <parameter name="str" transfer-ownership="none">
  13222. <doc xml:space="preserve">a string to parse.</doc>
  13223. <type name="utf8" c:type="const char*"/>
  13224. </parameter>
  13225. <parameter name="variant"
  13226. direction="out"
  13227. caller-allocates="1"
  13228. transfer-ownership="none">
  13229. <doc xml:space="preserve">a #PangoVariant to store the
  13230. result in.</doc>
  13231. <type name="Variant" c:type="PangoVariant*"/>
  13232. </parameter>
  13233. <parameter name="warn" transfer-ownership="none">
  13234. <doc xml:space="preserve">if %TRUE, issue a g_warning() on bad input.</doc>
  13235. <type name="gboolean" c:type="gboolean"/>
  13236. </parameter>
  13237. </parameters>
  13238. </function>
  13239. <function name="parse_weight" c:identifier="pango_parse_weight">
  13240. <doc xml:space="preserve">Parses a font weight. The allowed values are "heavy",
  13241. "ultrabold", "bold", "normal", "light", "ultraleight"
  13242. and integers. Case variations are ignored.</doc>
  13243. <return-value transfer-ownership="none">
  13244. <doc xml:space="preserve">%TRUE if @str was successfully parsed.</doc>
  13245. <type name="gboolean" c:type="gboolean"/>
  13246. </return-value>
  13247. <parameters>
  13248. <parameter name="str" transfer-ownership="none">
  13249. <doc xml:space="preserve">a string to parse.</doc>
  13250. <type name="utf8" c:type="const char*"/>
  13251. </parameter>
  13252. <parameter name="weight"
  13253. direction="out"
  13254. caller-allocates="1"
  13255. transfer-ownership="none">
  13256. <doc xml:space="preserve">a #PangoWeight to store the result
  13257. in.</doc>
  13258. <type name="Weight" c:type="PangoWeight*"/>
  13259. </parameter>
  13260. <parameter name="warn" transfer-ownership="none">
  13261. <doc xml:space="preserve">if %TRUE, issue a g_warning() on bad input.</doc>
  13262. <type name="gboolean" c:type="gboolean"/>
  13263. </parameter>
  13264. </parameters>
  13265. </function>
  13266. <function name="quantize_line_geometry"
  13267. c:identifier="pango_quantize_line_geometry"
  13268. version="1.12">
  13269. <doc xml:space="preserve">Quantizes the thickness and position of a line, typically an
  13270. underline or strikethrough, to whole device pixels, that is integer
  13271. multiples of %PANGO_SCALE. The purpose of this function is to avoid
  13272. such lines looking blurry.
  13273. Care is taken to make sure @thickness is at least one pixel when this
  13274. function returns, but returned @position may become zero as a result
  13275. of rounding.</doc>
  13276. <return-value transfer-ownership="none">
  13277. <type name="none" c:type="void"/>
  13278. </return-value>
  13279. <parameters>
  13280. <parameter name="thickness"
  13281. direction="inout"
  13282. caller-allocates="0"
  13283. transfer-ownership="full">
  13284. <doc xml:space="preserve">pointer to the thickness of a line, in Pango units</doc>
  13285. <type name="gint" c:type="int*"/>
  13286. </parameter>
  13287. <parameter name="position"
  13288. direction="inout"
  13289. caller-allocates="0"
  13290. transfer-ownership="full">
  13291. <doc xml:space="preserve">corresponding position</doc>
  13292. <type name="gint" c:type="int*"/>
  13293. </parameter>
  13294. </parameters>
  13295. </function>
  13296. <function name="read_line"
  13297. c:identifier="pango_read_line"
  13298. deprecated="1"
  13299. deprecated-version="1.38">
  13300. <doc xml:space="preserve">Reads an entire line from a file into a buffer. Lines may
  13301. be delimited with '\n', '\r', '\n\r', or '\r\n'. The delimiter
  13302. is not written into the buffer. Text after a '#' character is treated as
  13303. a comment and skipped. '\' can be used to escape a # character.
  13304. '\' proceeding a line delimiter combines adjacent lines. A '\' proceeding
  13305. any other character is ignored and written into the output buffer
  13306. unmodified.</doc>
  13307. <return-value transfer-ownership="none">
  13308. <doc xml:space="preserve">0 if the stream was already at an %EOF character, otherwise
  13309. the number of lines read (this is useful for maintaining
  13310. a line number counter which doesn't combine lines with '\')</doc>
  13311. <type name="gint" c:type="gint"/>
  13312. </return-value>
  13313. <parameters>
  13314. <parameter name="stream"
  13315. transfer-ownership="none"
  13316. nullable="1"
  13317. allow-none="1">
  13318. <doc xml:space="preserve">a stdio stream</doc>
  13319. <type name="gpointer" c:type="FILE*"/>
  13320. </parameter>
  13321. <parameter name="str"
  13322. direction="out"
  13323. caller-allocates="1"
  13324. transfer-ownership="none">
  13325. <doc xml:space="preserve">#GString buffer into which to write the result</doc>
  13326. <type name="GLib.String" c:type="GString*"/>
  13327. </parameter>
  13328. </parameters>
  13329. </function>
  13330. <function name="reorder_items" c:identifier="pango_reorder_items">
  13331. <doc xml:space="preserve">From a list of items in logical order and the associated
  13332. directional levels, produce a list in visual order.
  13333. The original list is unmodified.</doc>
  13334. <return-value transfer-ownership="full">
  13335. <doc xml:space="preserve">a #GList
  13336. of #PangoItem structures in visual order.
  13337. (Please open a bug if you use this function.
  13338. It is not a particularly convenient interface, and the code
  13339. is duplicated elsewhere in Pango for that reason.)</doc>
  13340. <type name="GLib.List" c:type="GList*">
  13341. <type name="Item"/>
  13342. </type>
  13343. </return-value>
  13344. <parameters>
  13345. <parameter name="logical_items" transfer-ownership="none">
  13346. <doc xml:space="preserve">a #GList of #PangoItem in logical order.</doc>
  13347. <type name="GLib.List" c:type="GList*">
  13348. <type name="Item"/>
  13349. </type>
  13350. </parameter>
  13351. </parameters>
  13352. </function>
  13353. <function name="scan_int"
  13354. c:identifier="pango_scan_int"
  13355. deprecated="1"
  13356. deprecated-version="1.38">
  13357. <doc xml:space="preserve">Scans an integer.
  13358. Leading white space is skipped.</doc>
  13359. <return-value transfer-ownership="none">
  13360. <doc xml:space="preserve">%FALSE if a parse error occurred.</doc>
  13361. <type name="gboolean" c:type="gboolean"/>
  13362. </return-value>
  13363. <parameters>
  13364. <parameter name="pos"
  13365. direction="inout"
  13366. caller-allocates="0"
  13367. transfer-ownership="full">
  13368. <doc xml:space="preserve">in/out string position</doc>
  13369. <type name="utf8" c:type="const char**"/>
  13370. </parameter>
  13371. <parameter name="out"
  13372. direction="out"
  13373. caller-allocates="0"
  13374. transfer-ownership="full">
  13375. <doc xml:space="preserve">an int into which to write the result</doc>
  13376. <type name="gint" c:type="int*"/>
  13377. </parameter>
  13378. </parameters>
  13379. </function>
  13380. <function name="scan_string"
  13381. c:identifier="pango_scan_string"
  13382. deprecated="1"
  13383. deprecated-version="1.38">
  13384. <doc xml:space="preserve">Scans a string into a #GString buffer. The string may either
  13385. be a sequence of non-white-space characters, or a quoted
  13386. string with '"'. Instead a quoted string, '\"' represents
  13387. a literal quote. Leading white space outside of quotes is skipped.</doc>
  13388. <return-value transfer-ownership="none">
  13389. <doc xml:space="preserve">%FALSE if a parse error occurred.</doc>
  13390. <type name="gboolean" c:type="gboolean"/>
  13391. </return-value>
  13392. <parameters>
  13393. <parameter name="pos"
  13394. direction="inout"
  13395. caller-allocates="0"
  13396. transfer-ownership="full">
  13397. <doc xml:space="preserve">in/out string position</doc>
  13398. <type name="utf8" c:type="const char**"/>
  13399. </parameter>
  13400. <parameter name="out"
  13401. direction="out"
  13402. caller-allocates="1"
  13403. transfer-ownership="none">
  13404. <doc xml:space="preserve">a #GString into which to write the result</doc>
  13405. <type name="GLib.String" c:type="GString*"/>
  13406. </parameter>
  13407. </parameters>
  13408. </function>
  13409. <function name="scan_word"
  13410. c:identifier="pango_scan_word"
  13411. deprecated="1"
  13412. deprecated-version="1.38">
  13413. <doc xml:space="preserve">Scans a word into a #GString buffer. A word consists
  13414. of [A-Za-z_] followed by zero or more [A-Za-z_0-9]
  13415. Leading white space is skipped.</doc>
  13416. <return-value transfer-ownership="none">
  13417. <doc xml:space="preserve">%FALSE if a parse error occurred.</doc>
  13418. <type name="gboolean" c:type="gboolean"/>
  13419. </return-value>
  13420. <parameters>
  13421. <parameter name="pos"
  13422. direction="inout"
  13423. caller-allocates="0"
  13424. transfer-ownership="full">
  13425. <doc xml:space="preserve">in/out string position</doc>
  13426. <type name="utf8" c:type="const char**"/>
  13427. </parameter>
  13428. <parameter name="out"
  13429. direction="out"
  13430. caller-allocates="1"
  13431. transfer-ownership="none">
  13432. <doc xml:space="preserve">a #GString into which to write the result</doc>
  13433. <type name="GLib.String" c:type="GString*"/>
  13434. </parameter>
  13435. </parameters>
  13436. </function>
  13437. <function name="script_for_unichar"
  13438. c:identifier="pango_script_for_unichar"
  13439. moved-to="Script.for_unichar"
  13440. version="1.4">
  13441. <doc xml:space="preserve">Looks up the #PangoScript for a particular character (as defined by
  13442. Unicode Standard Annex \#24). No check is made for @ch being a
  13443. valid Unicode character; if you pass in invalid character, the
  13444. result is undefined.
  13445. As of Pango 1.18, this function simply returns the return value of
  13446. g_unichar_get_script().</doc>
  13447. <return-value transfer-ownership="none">
  13448. <doc xml:space="preserve">the #PangoScript for the character.</doc>
  13449. <type name="Script" c:type="PangoScript"/>
  13450. </return-value>
  13451. <parameters>
  13452. <parameter name="ch" transfer-ownership="none">
  13453. <doc xml:space="preserve">a Unicode character</doc>
  13454. <type name="gunichar" c:type="gunichar"/>
  13455. </parameter>
  13456. </parameters>
  13457. </function>
  13458. <function name="script_get_sample_language"
  13459. c:identifier="pango_script_get_sample_language"
  13460. moved-to="Script.get_sample_language"
  13461. version="1.4">
  13462. <doc xml:space="preserve">Given a script, finds a language tag that is reasonably
  13463. representative of that script. This will usually be the
  13464. most widely spoken or used language written in that script:
  13465. for instance, the sample language for %PANGO_SCRIPT_CYRILLIC
  13466. is &lt;literal&gt;ru&lt;/literal&gt; (Russian), the sample language
  13467. for %PANGO_SCRIPT_ARABIC is &lt;literal&gt;ar&lt;/literal&gt;.
  13468. For some
  13469. scripts, no sample language will be returned because there
  13470. is no language that is sufficiently representative. The best
  13471. example of this is %PANGO_SCRIPT_HAN, where various different
  13472. variants of written Chinese, Japanese, and Korean all use
  13473. significantly different sets of Han characters and forms
  13474. of shared characters. No sample language can be provided
  13475. for many historical scripts as well.
  13476. As of 1.18, this function checks the environment variables
  13477. PANGO_LANGUAGE and LANGUAGE (checked in that order) first.
  13478. If one of them is set, it is parsed as a list of language tags
  13479. separated by colons or other separators. This function
  13480. will return the first language in the parsed list that Pango
  13481. believes may use @script for writing. This last predicate
  13482. is tested using pango_language_includes_script(). This can
  13483. be used to control Pango's font selection for non-primary
  13484. languages. For example, a PANGO_LANGUAGE enviroment variable
  13485. set to "en:fa" makes Pango choose fonts suitable for Persian (fa)
  13486. instead of Arabic (ar) when a segment of Arabic text is found
  13487. in an otherwise non-Arabic text. The same trick can be used to
  13488. choose a default language for %PANGO_SCRIPT_HAN when setting
  13489. context language is not feasible.</doc>
  13490. <return-value transfer-ownership="full" nullable="1">
  13491. <doc xml:space="preserve">a #PangoLanguage that is representative
  13492. of the script, or %NULL if no such language exists.</doc>
  13493. <type name="Language" c:type="PangoLanguage*"/>
  13494. </return-value>
  13495. <parameters>
  13496. <parameter name="script" transfer-ownership="none">
  13497. <doc xml:space="preserve">a #PangoScript</doc>
  13498. <type name="Script" c:type="PangoScript"/>
  13499. </parameter>
  13500. </parameters>
  13501. </function>
  13502. <function name="shape" c:identifier="pango_shape">
  13503. <doc xml:space="preserve">Given a segment of text and the corresponding
  13504. #PangoAnalysis structure returned from pango_itemize(),
  13505. convert the characters into glyphs. You may also pass
  13506. in only a substring of the item from pango_itemize().
  13507. It is recommended that you use pango_shape_full() instead, since
  13508. that API allows for shaping interaction happening across text item
  13509. boundaries.</doc>
  13510. <return-value transfer-ownership="none">
  13511. <type name="none" c:type="void"/>
  13512. </return-value>
  13513. <parameters>
  13514. <parameter name="text" transfer-ownership="none">
  13515. <doc xml:space="preserve">the text to process</doc>
  13516. <type name="utf8" c:type="const gchar*"/>
  13517. </parameter>
  13518. <parameter name="length" transfer-ownership="none">
  13519. <doc xml:space="preserve">the length (in bytes) of @text</doc>
  13520. <type name="gint" c:type="gint"/>
  13521. </parameter>
  13522. <parameter name="analysis" transfer-ownership="none">
  13523. <doc xml:space="preserve">#PangoAnalysis structure from pango_itemize()</doc>
  13524. <type name="Analysis" c:type="const PangoAnalysis*"/>
  13525. </parameter>
  13526. <parameter name="glyphs" transfer-ownership="none">
  13527. <doc xml:space="preserve">glyph string in which to store results</doc>
  13528. <type name="GlyphString" c:type="PangoGlyphString*"/>
  13529. </parameter>
  13530. </parameters>
  13531. </function>
  13532. <function name="shape_full" c:identifier="pango_shape_full" version="1.32">
  13533. <doc xml:space="preserve">Given a segment of text and the corresponding
  13534. #PangoAnalysis structure returned from pango_itemize(),
  13535. convert the characters into glyphs. You may also pass
  13536. in only a substring of the item from pango_itemize().
  13537. This is similar to pango_shape(), except it also can optionally take
  13538. the full paragraph text as input, which will then be used to perform
  13539. certain cross-item shaping interactions. If you have access to the broader
  13540. text of which @item_text is part of, provide the broader text as
  13541. @paragraph_text. If @paragraph_text is %NULL, item text is used instead.</doc>
  13542. <return-value transfer-ownership="none">
  13543. <type name="none" c:type="void"/>
  13544. </return-value>
  13545. <parameters>
  13546. <parameter name="item_text" transfer-ownership="none">
  13547. <doc xml:space="preserve">valid UTF-8 text to shape.</doc>
  13548. <type name="utf8" c:type="const gchar*"/>
  13549. </parameter>
  13550. <parameter name="item_length" transfer-ownership="none">
  13551. <doc xml:space="preserve">the length (in bytes) of @item_text. -1 means nul-terminated text.</doc>
  13552. <type name="gint" c:type="gint"/>
  13553. </parameter>
  13554. <parameter name="paragraph_text"
  13555. transfer-ownership="none"
  13556. nullable="1"
  13557. allow-none="1">
  13558. <doc xml:space="preserve">text of the paragraph (see details). May be %NULL.</doc>
  13559. <type name="utf8" c:type="const gchar*"/>
  13560. </parameter>
  13561. <parameter name="paragraph_length" transfer-ownership="none">
  13562. <doc xml:space="preserve">the length (in bytes) of @paragraph_text. -1 means nul-terminated text.</doc>
  13563. <type name="gint" c:type="gint"/>
  13564. </parameter>
  13565. <parameter name="analysis" transfer-ownership="none">
  13566. <doc xml:space="preserve">#PangoAnalysis structure from pango_itemize().</doc>
  13567. <type name="Analysis" c:type="const PangoAnalysis*"/>
  13568. </parameter>
  13569. <parameter name="glyphs" transfer-ownership="none">
  13570. <doc xml:space="preserve">glyph string in which to store results.</doc>
  13571. <type name="GlyphString" c:type="PangoGlyphString*"/>
  13572. </parameter>
  13573. </parameters>
  13574. </function>
  13575. <function name="skip_space"
  13576. c:identifier="pango_skip_space"
  13577. deprecated="1"
  13578. deprecated-version="1.38">
  13579. <doc xml:space="preserve">Skips 0 or more characters of white space.</doc>
  13580. <return-value transfer-ownership="none">
  13581. <doc xml:space="preserve">%FALSE if skipping the white space leaves
  13582. the position at a '\0' character.</doc>
  13583. <type name="gboolean" c:type="gboolean"/>
  13584. </return-value>
  13585. <parameters>
  13586. <parameter name="pos"
  13587. direction="inout"
  13588. caller-allocates="0"
  13589. transfer-ownership="full">
  13590. <doc xml:space="preserve">in/out string position</doc>
  13591. <type name="utf8" c:type="const char**"/>
  13592. </parameter>
  13593. </parameters>
  13594. </function>
  13595. <function name="split_file_list"
  13596. c:identifier="pango_split_file_list"
  13597. deprecated="1"
  13598. deprecated-version="1.38">
  13599. <doc xml:space="preserve">Splits a %G_SEARCHPATH_SEPARATOR-separated list of files, stripping
  13600. white space and substituting ~/ with $HOME/.</doc>
  13601. <return-value transfer-ownership="full">
  13602. <doc xml:space="preserve">a list of
  13603. strings to be freed with g_strfreev()</doc>
  13604. <array c:type="char**">
  13605. <type name="utf8"/>
  13606. </array>
  13607. </return-value>
  13608. <parameters>
  13609. <parameter name="str" transfer-ownership="none">
  13610. <doc xml:space="preserve">a %G_SEARCHPATH_SEPARATOR separated list of filenames</doc>
  13611. <type name="utf8" c:type="const char*"/>
  13612. </parameter>
  13613. </parameters>
  13614. </function>
  13615. <function name="trim_string"
  13616. c:identifier="pango_trim_string"
  13617. deprecated="1"
  13618. deprecated-version="1.38">
  13619. <doc xml:space="preserve">Trims leading and trailing whitespace from a string.</doc>
  13620. <return-value transfer-ownership="full">
  13621. <doc xml:space="preserve">A newly-allocated string that must be freed with g_free()</doc>
  13622. <type name="utf8" c:type="char*"/>
  13623. </return-value>
  13624. <parameters>
  13625. <parameter name="str" transfer-ownership="none">
  13626. <doc xml:space="preserve">a string</doc>
  13627. <type name="utf8" c:type="const char*"/>
  13628. </parameter>
  13629. </parameters>
  13630. </function>
  13631. <function name="unichar_direction" c:identifier="pango_unichar_direction">
  13632. <doc xml:space="preserve">Determines the inherent direction of a character; either
  13633. %PANGO_DIRECTION_LTR, %PANGO_DIRECTION_RTL, or
  13634. %PANGO_DIRECTION_NEUTRAL.
  13635. This function is useful to categorize characters into left-to-right
  13636. letters, right-to-left letters, and everything else. If full
  13637. Unicode bidirectional type of a character is needed,
  13638. pango_bidi_type_for_unichar() can be used instead.</doc>
  13639. <return-value transfer-ownership="none">
  13640. <doc xml:space="preserve">the direction of the character.</doc>
  13641. <type name="Direction" c:type="PangoDirection"/>
  13642. </return-value>
  13643. <parameters>
  13644. <parameter name="ch" transfer-ownership="none">
  13645. <doc xml:space="preserve">a Unicode character</doc>
  13646. <type name="gunichar" c:type="gunichar"/>
  13647. </parameter>
  13648. </parameters>
  13649. </function>
  13650. <function name="units_from_double"
  13651. c:identifier="pango_units_from_double"
  13652. version="1.16">
  13653. <doc xml:space="preserve">Converts a floating-point number to Pango units: multiplies
  13654. it by %PANGO_SCALE and rounds to nearest integer.</doc>
  13655. <return-value transfer-ownership="none">
  13656. <doc xml:space="preserve">the value in Pango units.</doc>
  13657. <type name="gint" c:type="int"/>
  13658. </return-value>
  13659. <parameters>
  13660. <parameter name="d" transfer-ownership="none">
  13661. <doc xml:space="preserve">double floating-point value</doc>
  13662. <type name="gdouble" c:type="double"/>
  13663. </parameter>
  13664. </parameters>
  13665. </function>
  13666. <function name="units_to_double"
  13667. c:identifier="pango_units_to_double"
  13668. version="1.16">
  13669. <doc xml:space="preserve">Converts a number in Pango units to floating-point: divides
  13670. it by %PANGO_SCALE.</doc>
  13671. <return-value transfer-ownership="none">
  13672. <doc xml:space="preserve">the double value.</doc>
  13673. <type name="gdouble" c:type="double"/>
  13674. </return-value>
  13675. <parameters>
  13676. <parameter name="i" transfer-ownership="none">
  13677. <doc xml:space="preserve">value in Pango units</doc>
  13678. <type name="gint" c:type="int"/>
  13679. </parameter>
  13680. </parameters>
  13681. </function>
  13682. <function name="version" c:identifier="pango_version" version="1.16">
  13683. <doc xml:space="preserve">This is similar to the macro %PANGO_VERSION except that
  13684. it returns the encoded version of Pango available at run-time,
  13685. as opposed to the version available at compile-time.
  13686. A version number can be encoded into an integer using
  13687. PANGO_VERSION_ENCODE().</doc>
  13688. <return-value transfer-ownership="none">
  13689. <doc xml:space="preserve">The encoded version of Pango library
  13690. available at run time.</doc>
  13691. <type name="gint" c:type="int"/>
  13692. </return-value>
  13693. </function>
  13694. <function name="version_check"
  13695. c:identifier="pango_version_check"
  13696. version="1.16">
  13697. <doc xml:space="preserve">Checks that the Pango library in use is compatible with the
  13698. given version. Generally you would pass in the constants
  13699. %PANGO_VERSION_MAJOR, %PANGO_VERSION_MINOR, %PANGO_VERSION_MICRO
  13700. as the three arguments to this function; that produces
  13701. a check that the library in use at run-time is compatible with
  13702. the version of Pango the application or module was compiled against.
  13703. Compatibility is defined by two things: first the version
  13704. of the running library is newer than the version
  13705. @required_major.required_minor.@required_micro. Second
  13706. the running library must be binary compatible with the
  13707. version @required_major.required_minor.@required_micro
  13708. (same major version.)
  13709. For compile-time version checking use PANGO_VERSION_CHECK().</doc>
  13710. <return-value transfer-ownership="none" nullable="1">
  13711. <doc xml:space="preserve">%NULL if the Pango library is compatible
  13712. with the given version, or a string describing the version
  13713. mismatch. The returned string is owned by Pango and should not
  13714. be modified or freed.</doc>
  13715. <type name="utf8" c:type="const char*"/>
  13716. </return-value>
  13717. <parameters>
  13718. <parameter name="required_major" transfer-ownership="none">
  13719. <doc xml:space="preserve">the required major version.</doc>
  13720. <type name="gint" c:type="int"/>
  13721. </parameter>
  13722. <parameter name="required_minor" transfer-ownership="none">
  13723. <doc xml:space="preserve">the required minor version.</doc>
  13724. <type name="gint" c:type="int"/>
  13725. </parameter>
  13726. <parameter name="required_micro" transfer-ownership="none">
  13727. <doc xml:space="preserve">the required major version.</doc>
  13728. <type name="gint" c:type="int"/>
  13729. </parameter>
  13730. </parameters>
  13731. </function>
  13732. <function name="version_string"
  13733. c:identifier="pango_version_string"
  13734. version="1.16">
  13735. <doc xml:space="preserve">This is similar to the macro %PANGO_VERSION_STRING except that
  13736. it returns the version of Pango available at run-time, as opposed to
  13737. the version available at compile-time.</doc>
  13738. <return-value transfer-ownership="none">
  13739. <doc xml:space="preserve">A string containing the version of Pango library
  13740. available at run time.
  13741. The returned string is owned by Pango and should not be modified
  13742. or freed.</doc>
  13743. <type name="utf8" c:type="const char*"/>
  13744. </return-value>
  13745. </function>
  13746. </namespace>
  13747. </repository>