class_displayserver.rst 591 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/DisplayServer.xml.
  6. .. _class_DisplayServer:
  7. DisplayServer
  8. =============
  9. **Inherits:** :ref:`Object<class_Object>`
  10. A server interface for low-level window management.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. **DisplayServer** handles everything related to window management. It is separated from :ref:`OS<class_OS>` as a single operating system may support multiple display servers.
  15. \ **Headless mode:** Starting the engine with the ``--headless`` :doc:`command line argument <../tutorials/editor/command_line_tutorial>` disables all rendering and window management functions. Most functions from **DisplayServer** will return dummy values in this case.
  16. .. rst-class:: classref-reftable-group
  17. Methods
  18. -------
  19. .. table::
  20. :widths: auto
  21. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`RID<class_RID>` | :ref:`accessibility_create_element<class_DisplayServer_method_accessibility_create_element>`\ (\ window_id\: :ref:`int<class_int>`, role\: :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>`\ ) |
  23. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`RID<class_RID>` | :ref:`accessibility_create_sub_element<class_DisplayServer_method_accessibility_create_sub_element>`\ (\ parent_rid\: :ref:`RID<class_RID>`, role\: :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>`, insert_pos\: :ref:`int<class_int>` = -1\ ) |
  25. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`RID<class_RID>` | :ref:`accessibility_create_sub_text_edit_elements<class_DisplayServer_method_accessibility_create_sub_text_edit_elements>`\ (\ parent_rid\: :ref:`RID<class_RID>`, shaped_text\: :ref:`RID<class_RID>`, min_height\: :ref:`float<class_float>`, insert_pos\: :ref:`int<class_int>` = -1\ ) |
  27. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`Variant<class_Variant>` | :ref:`accessibility_element_get_meta<class_DisplayServer_method_accessibility_element_get_meta>`\ (\ id\: :ref:`RID<class_RID>`\ ) |const| |
  29. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | |void| | :ref:`accessibility_element_set_meta<class_DisplayServer_method_accessibility_element_set_meta>`\ (\ id\: :ref:`RID<class_RID>`, meta\: :ref:`Variant<class_Variant>`\ ) |
  31. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | |void| | :ref:`accessibility_free_element<class_DisplayServer_method_accessibility_free_element>`\ (\ id\: :ref:`RID<class_RID>`\ ) |
  33. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`RID<class_RID>` | :ref:`accessibility_get_window_root<class_DisplayServer_method_accessibility_get_window_root>`\ (\ window_id\: :ref:`int<class_int>`\ ) |const| |
  35. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | :ref:`bool<class_bool>` | :ref:`accessibility_has_element<class_DisplayServer_method_accessibility_has_element>`\ (\ id\: :ref:`RID<class_RID>`\ ) |const| |
  37. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | :ref:`int<class_int>` | :ref:`accessibility_screen_reader_active<class_DisplayServer_method_accessibility_screen_reader_active>`\ (\ ) |const| |
  39. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | |void| | :ref:`accessibility_set_window_focused<class_DisplayServer_method_accessibility_set_window_focused>`\ (\ window_id\: :ref:`int<class_int>`, focused\: :ref:`bool<class_bool>`\ ) |
  41. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | |void| | :ref:`accessibility_set_window_rect<class_DisplayServer_method_accessibility_set_window_rect>`\ (\ window_id\: :ref:`int<class_int>`, rect_out\: :ref:`Rect2<class_Rect2>`, rect_in\: :ref:`Rect2<class_Rect2>`\ ) |
  43. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | :ref:`int<class_int>` | :ref:`accessibility_should_increase_contrast<class_DisplayServer_method_accessibility_should_increase_contrast>`\ (\ ) |const| |
  45. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | :ref:`int<class_int>` | :ref:`accessibility_should_reduce_animation<class_DisplayServer_method_accessibility_should_reduce_animation>`\ (\ ) |const| |
  47. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | :ref:`int<class_int>` | :ref:`accessibility_should_reduce_transparency<class_DisplayServer_method_accessibility_should_reduce_transparency>`\ (\ ) |const| |
  49. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  50. | |void| | :ref:`accessibility_update_add_action<class_DisplayServer_method_accessibility_update_add_action>`\ (\ id\: :ref:`RID<class_RID>`, action\: :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>`, callable\: :ref:`Callable<class_Callable>`\ ) |
  51. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  52. | |void| | :ref:`accessibility_update_add_child<class_DisplayServer_method_accessibility_update_add_child>`\ (\ id\: :ref:`RID<class_RID>`, child_id\: :ref:`RID<class_RID>`\ ) |
  53. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  54. | |void| | :ref:`accessibility_update_add_custom_action<class_DisplayServer_method_accessibility_update_add_custom_action>`\ (\ id\: :ref:`RID<class_RID>`, action_id\: :ref:`int<class_int>`, action_description\: :ref:`String<class_String>`\ ) |
  55. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  56. | |void| | :ref:`accessibility_update_add_related_controls<class_DisplayServer_method_accessibility_update_add_related_controls>`\ (\ id\: :ref:`RID<class_RID>`, related_id\: :ref:`RID<class_RID>`\ ) |
  57. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  58. | |void| | :ref:`accessibility_update_add_related_described_by<class_DisplayServer_method_accessibility_update_add_related_described_by>`\ (\ id\: :ref:`RID<class_RID>`, related_id\: :ref:`RID<class_RID>`\ ) |
  59. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  60. | |void| | :ref:`accessibility_update_add_related_details<class_DisplayServer_method_accessibility_update_add_related_details>`\ (\ id\: :ref:`RID<class_RID>`, related_id\: :ref:`RID<class_RID>`\ ) |
  61. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  62. | |void| | :ref:`accessibility_update_add_related_flow_to<class_DisplayServer_method_accessibility_update_add_related_flow_to>`\ (\ id\: :ref:`RID<class_RID>`, related_id\: :ref:`RID<class_RID>`\ ) |
  63. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  64. | |void| | :ref:`accessibility_update_add_related_labeled_by<class_DisplayServer_method_accessibility_update_add_related_labeled_by>`\ (\ id\: :ref:`RID<class_RID>`, related_id\: :ref:`RID<class_RID>`\ ) |
  65. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  66. | |void| | :ref:`accessibility_update_add_related_radio_group<class_DisplayServer_method_accessibility_update_add_related_radio_group>`\ (\ id\: :ref:`RID<class_RID>`, related_id\: :ref:`RID<class_RID>`\ ) |
  67. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  68. | |void| | :ref:`accessibility_update_set_active_descendant<class_DisplayServer_method_accessibility_update_set_active_descendant>`\ (\ id\: :ref:`RID<class_RID>`, other_id\: :ref:`RID<class_RID>`\ ) |
  69. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  70. | |void| | :ref:`accessibility_update_set_background_color<class_DisplayServer_method_accessibility_update_set_background_color>`\ (\ id\: :ref:`RID<class_RID>`, color\: :ref:`Color<class_Color>`\ ) |
  71. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  72. | |void| | :ref:`accessibility_update_set_bounds<class_DisplayServer_method_accessibility_update_set_bounds>`\ (\ id\: :ref:`RID<class_RID>`, p_rect\: :ref:`Rect2<class_Rect2>`\ ) |
  73. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  74. | |void| | :ref:`accessibility_update_set_checked<class_DisplayServer_method_accessibility_update_set_checked>`\ (\ id\: :ref:`RID<class_RID>`, checekd\: :ref:`bool<class_bool>`\ ) |
  75. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  76. | |void| | :ref:`accessibility_update_set_classname<class_DisplayServer_method_accessibility_update_set_classname>`\ (\ id\: :ref:`RID<class_RID>`, classname\: :ref:`String<class_String>`\ ) |
  77. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  78. | |void| | :ref:`accessibility_update_set_color_value<class_DisplayServer_method_accessibility_update_set_color_value>`\ (\ id\: :ref:`RID<class_RID>`, color\: :ref:`Color<class_Color>`\ ) |
  79. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  80. | |void| | :ref:`accessibility_update_set_description<class_DisplayServer_method_accessibility_update_set_description>`\ (\ id\: :ref:`RID<class_RID>`, description\: :ref:`String<class_String>`\ ) |
  81. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  82. | |void| | :ref:`accessibility_update_set_error_message<class_DisplayServer_method_accessibility_update_set_error_message>`\ (\ id\: :ref:`RID<class_RID>`, other_id\: :ref:`RID<class_RID>`\ ) |
  83. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  84. | |void| | :ref:`accessibility_update_set_extra_info<class_DisplayServer_method_accessibility_update_set_extra_info>`\ (\ id\: :ref:`RID<class_RID>`, name\: :ref:`String<class_String>`\ ) |
  85. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  86. | |void| | :ref:`accessibility_update_set_flag<class_DisplayServer_method_accessibility_update_set_flag>`\ (\ id\: :ref:`RID<class_RID>`, flag\: :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>`, value\: :ref:`bool<class_bool>`\ ) |
  87. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  88. | |void| | :ref:`accessibility_update_set_focus<class_DisplayServer_method_accessibility_update_set_focus>`\ (\ id\: :ref:`RID<class_RID>`\ ) |
  89. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  90. | |void| | :ref:`accessibility_update_set_foreground_color<class_DisplayServer_method_accessibility_update_set_foreground_color>`\ (\ id\: :ref:`RID<class_RID>`, color\: :ref:`Color<class_Color>`\ ) |
  91. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  92. | |void| | :ref:`accessibility_update_set_in_page_link_target<class_DisplayServer_method_accessibility_update_set_in_page_link_target>`\ (\ id\: :ref:`RID<class_RID>`, other_id\: :ref:`RID<class_RID>`\ ) |
  93. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  94. | |void| | :ref:`accessibility_update_set_language<class_DisplayServer_method_accessibility_update_set_language>`\ (\ id\: :ref:`RID<class_RID>`, language\: :ref:`String<class_String>`\ ) |
  95. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  96. | |void| | :ref:`accessibility_update_set_list_item_count<class_DisplayServer_method_accessibility_update_set_list_item_count>`\ (\ id\: :ref:`RID<class_RID>`, size\: :ref:`int<class_int>`\ ) |
  97. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  98. | |void| | :ref:`accessibility_update_set_list_item_expanded<class_DisplayServer_method_accessibility_update_set_list_item_expanded>`\ (\ id\: :ref:`RID<class_RID>`, expanded\: :ref:`bool<class_bool>`\ ) |
  99. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  100. | |void| | :ref:`accessibility_update_set_list_item_index<class_DisplayServer_method_accessibility_update_set_list_item_index>`\ (\ id\: :ref:`RID<class_RID>`, index\: :ref:`int<class_int>`\ ) |
  101. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  102. | |void| | :ref:`accessibility_update_set_list_item_level<class_DisplayServer_method_accessibility_update_set_list_item_level>`\ (\ id\: :ref:`RID<class_RID>`, level\: :ref:`int<class_int>`\ ) |
  103. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  104. | |void| | :ref:`accessibility_update_set_list_item_selected<class_DisplayServer_method_accessibility_update_set_list_item_selected>`\ (\ id\: :ref:`RID<class_RID>`, selected\: :ref:`bool<class_bool>`\ ) |
  105. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  106. | |void| | :ref:`accessibility_update_set_list_orientation<class_DisplayServer_method_accessibility_update_set_list_orientation>`\ (\ id\: :ref:`RID<class_RID>`, vertical\: :ref:`bool<class_bool>`\ ) |
  107. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  108. | |void| | :ref:`accessibility_update_set_live<class_DisplayServer_method_accessibility_update_set_live>`\ (\ id\: :ref:`RID<class_RID>`, live\: :ref:`AccessibilityLiveMode<enum_DisplayServer_AccessibilityLiveMode>`\ ) |
  109. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  110. | |void| | :ref:`accessibility_update_set_member_of<class_DisplayServer_method_accessibility_update_set_member_of>`\ (\ id\: :ref:`RID<class_RID>`, group_id\: :ref:`RID<class_RID>`\ ) |
  111. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  112. | |void| | :ref:`accessibility_update_set_name<class_DisplayServer_method_accessibility_update_set_name>`\ (\ id\: :ref:`RID<class_RID>`, name\: :ref:`String<class_String>`\ ) |
  113. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  114. | |void| | :ref:`accessibility_update_set_next_on_line<class_DisplayServer_method_accessibility_update_set_next_on_line>`\ (\ id\: :ref:`RID<class_RID>`, other_id\: :ref:`RID<class_RID>`\ ) |
  115. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  116. | |void| | :ref:`accessibility_update_set_num_jump<class_DisplayServer_method_accessibility_update_set_num_jump>`\ (\ id\: :ref:`RID<class_RID>`, jump\: :ref:`float<class_float>`\ ) |
  117. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  118. | |void| | :ref:`accessibility_update_set_num_range<class_DisplayServer_method_accessibility_update_set_num_range>`\ (\ id\: :ref:`RID<class_RID>`, min\: :ref:`float<class_float>`, max\: :ref:`float<class_float>`\ ) |
  119. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  120. | |void| | :ref:`accessibility_update_set_num_step<class_DisplayServer_method_accessibility_update_set_num_step>`\ (\ id\: :ref:`RID<class_RID>`, step\: :ref:`float<class_float>`\ ) |
  121. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  122. | |void| | :ref:`accessibility_update_set_num_value<class_DisplayServer_method_accessibility_update_set_num_value>`\ (\ id\: :ref:`RID<class_RID>`, position\: :ref:`float<class_float>`\ ) |
  123. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  124. | |void| | :ref:`accessibility_update_set_placeholder<class_DisplayServer_method_accessibility_update_set_placeholder>`\ (\ id\: :ref:`RID<class_RID>`, placeholder\: :ref:`String<class_String>`\ ) |
  125. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  126. | |void| | :ref:`accessibility_update_set_popup_type<class_DisplayServer_method_accessibility_update_set_popup_type>`\ (\ id\: :ref:`RID<class_RID>`, popup\: :ref:`AccessibilityPopupType<enum_DisplayServer_AccessibilityPopupType>`\ ) |
  127. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  128. | |void| | :ref:`accessibility_update_set_previous_on_line<class_DisplayServer_method_accessibility_update_set_previous_on_line>`\ (\ id\: :ref:`RID<class_RID>`, other_id\: :ref:`RID<class_RID>`\ ) |
  129. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  130. | |void| | :ref:`accessibility_update_set_role<class_DisplayServer_method_accessibility_update_set_role>`\ (\ id\: :ref:`RID<class_RID>`, role\: :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>`\ ) |
  131. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  132. | |void| | :ref:`accessibility_update_set_role_description<class_DisplayServer_method_accessibility_update_set_role_description>`\ (\ id\: :ref:`RID<class_RID>`, description\: :ref:`String<class_String>`\ ) |
  133. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  134. | |void| | :ref:`accessibility_update_set_scroll_x<class_DisplayServer_method_accessibility_update_set_scroll_x>`\ (\ id\: :ref:`RID<class_RID>`, position\: :ref:`float<class_float>`\ ) |
  135. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  136. | |void| | :ref:`accessibility_update_set_scroll_x_range<class_DisplayServer_method_accessibility_update_set_scroll_x_range>`\ (\ id\: :ref:`RID<class_RID>`, min\: :ref:`float<class_float>`, max\: :ref:`float<class_float>`\ ) |
  137. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  138. | |void| | :ref:`accessibility_update_set_scroll_y<class_DisplayServer_method_accessibility_update_set_scroll_y>`\ (\ id\: :ref:`RID<class_RID>`, position\: :ref:`float<class_float>`\ ) |
  139. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  140. | |void| | :ref:`accessibility_update_set_scroll_y_range<class_DisplayServer_method_accessibility_update_set_scroll_y_range>`\ (\ id\: :ref:`RID<class_RID>`, min\: :ref:`float<class_float>`, max\: :ref:`float<class_float>`\ ) |
  141. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  142. | |void| | :ref:`accessibility_update_set_shortcut<class_DisplayServer_method_accessibility_update_set_shortcut>`\ (\ id\: :ref:`RID<class_RID>`, shortcut\: :ref:`String<class_String>`\ ) |
  143. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  144. | |void| | :ref:`accessibility_update_set_state_description<class_DisplayServer_method_accessibility_update_set_state_description>`\ (\ id\: :ref:`RID<class_RID>`, description\: :ref:`String<class_String>`\ ) |
  145. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  146. | |void| | :ref:`accessibility_update_set_table_cell_position<class_DisplayServer_method_accessibility_update_set_table_cell_position>`\ (\ id\: :ref:`RID<class_RID>`, row_index\: :ref:`int<class_int>`, column_index\: :ref:`int<class_int>`\ ) |
  147. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  148. | |void| | :ref:`accessibility_update_set_table_cell_span<class_DisplayServer_method_accessibility_update_set_table_cell_span>`\ (\ id\: :ref:`RID<class_RID>`, row_span\: :ref:`int<class_int>`, column_span\: :ref:`int<class_int>`\ ) |
  149. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  150. | |void| | :ref:`accessibility_update_set_table_column_count<class_DisplayServer_method_accessibility_update_set_table_column_count>`\ (\ id\: :ref:`RID<class_RID>`, count\: :ref:`int<class_int>`\ ) |
  151. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  152. | |void| | :ref:`accessibility_update_set_table_column_index<class_DisplayServer_method_accessibility_update_set_table_column_index>`\ (\ id\: :ref:`RID<class_RID>`, index\: :ref:`int<class_int>`\ ) |
  153. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  154. | |void| | :ref:`accessibility_update_set_table_row_count<class_DisplayServer_method_accessibility_update_set_table_row_count>`\ (\ id\: :ref:`RID<class_RID>`, count\: :ref:`int<class_int>`\ ) |
  155. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  156. | |void| | :ref:`accessibility_update_set_table_row_index<class_DisplayServer_method_accessibility_update_set_table_row_index>`\ (\ id\: :ref:`RID<class_RID>`, index\: :ref:`int<class_int>`\ ) |
  157. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  158. | |void| | :ref:`accessibility_update_set_text_align<class_DisplayServer_method_accessibility_update_set_text_align>`\ (\ id\: :ref:`RID<class_RID>`, align\: :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>`\ ) |
  159. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  160. | |void| | :ref:`accessibility_update_set_text_decorations<class_DisplayServer_method_accessibility_update_set_text_decorations>`\ (\ id\: :ref:`RID<class_RID>`, underline\: :ref:`bool<class_bool>`, strikethrough\: :ref:`bool<class_bool>`, overline\: :ref:`bool<class_bool>`\ ) |
  161. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  162. | |void| | :ref:`accessibility_update_set_text_orientation<class_DisplayServer_method_accessibility_update_set_text_orientation>`\ (\ id\: :ref:`RID<class_RID>`, vertical\: :ref:`bool<class_bool>`\ ) |
  163. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  164. | |void| | :ref:`accessibility_update_set_text_selection<class_DisplayServer_method_accessibility_update_set_text_selection>`\ (\ id\: :ref:`RID<class_RID>`, text_start_id\: :ref:`RID<class_RID>`, start_char\: :ref:`int<class_int>`, text_end_id\: :ref:`RID<class_RID>`, end_char\: :ref:`int<class_int>`\ ) |
  165. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  166. | |void| | :ref:`accessibility_update_set_tooltip<class_DisplayServer_method_accessibility_update_set_tooltip>`\ (\ id\: :ref:`RID<class_RID>`, tooltip\: :ref:`String<class_String>`\ ) |
  167. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  168. | |void| | :ref:`accessibility_update_set_transform<class_DisplayServer_method_accessibility_update_set_transform>`\ (\ id\: :ref:`RID<class_RID>`, transform\: :ref:`Transform2D<class_Transform2D>`\ ) |
  169. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  170. | |void| | :ref:`accessibility_update_set_url<class_DisplayServer_method_accessibility_update_set_url>`\ (\ id\: :ref:`RID<class_RID>`, url\: :ref:`String<class_String>`\ ) |
  171. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  172. | |void| | :ref:`accessibility_update_set_value<class_DisplayServer_method_accessibility_update_set_value>`\ (\ id\: :ref:`RID<class_RID>`, value\: :ref:`String<class_String>`\ ) |
  173. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  174. | |void| | :ref:`beep<class_DisplayServer_method_beep>`\ (\ ) |const| |
  175. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  176. | :ref:`String<class_String>` | :ref:`clipboard_get<class_DisplayServer_method_clipboard_get>`\ (\ ) |const| |
  177. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  178. | :ref:`Image<class_Image>` | :ref:`clipboard_get_image<class_DisplayServer_method_clipboard_get_image>`\ (\ ) |const| |
  179. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  180. | :ref:`String<class_String>` | :ref:`clipboard_get_primary<class_DisplayServer_method_clipboard_get_primary>`\ (\ ) |const| |
  181. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  182. | :ref:`bool<class_bool>` | :ref:`clipboard_has<class_DisplayServer_method_clipboard_has>`\ (\ ) |const| |
  183. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  184. | :ref:`bool<class_bool>` | :ref:`clipboard_has_image<class_DisplayServer_method_clipboard_has_image>`\ (\ ) |const| |
  185. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  186. | |void| | :ref:`clipboard_set<class_DisplayServer_method_clipboard_set>`\ (\ clipboard\: :ref:`String<class_String>`\ ) |
  187. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  188. | |void| | :ref:`clipboard_set_primary<class_DisplayServer_method_clipboard_set_primary>`\ (\ clipboard_primary\: :ref:`String<class_String>`\ ) |
  189. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  190. | :ref:`bool<class_bool>` | :ref:`color_picker<class_DisplayServer_method_color_picker>`\ (\ callback\: :ref:`Callable<class_Callable>`\ ) |
  191. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  192. | :ref:`int<class_int>` | :ref:`create_status_indicator<class_DisplayServer_method_create_status_indicator>`\ (\ icon\: :ref:`Texture2D<class_Texture2D>`, tooltip\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>`\ ) |
  193. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  194. | :ref:`CursorShape<enum_DisplayServer_CursorShape>` | :ref:`cursor_get_shape<class_DisplayServer_method_cursor_get_shape>`\ (\ ) |const| |
  195. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  196. | |void| | :ref:`cursor_set_custom_image<class_DisplayServer_method_cursor_set_custom_image>`\ (\ cursor\: :ref:`Resource<class_Resource>`, shape\: :ref:`CursorShape<enum_DisplayServer_CursorShape>` = 0, hotspot\: :ref:`Vector2<class_Vector2>` = Vector2(0, 0)\ ) |
  197. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  198. | |void| | :ref:`cursor_set_shape<class_DisplayServer_method_cursor_set_shape>`\ (\ shape\: :ref:`CursorShape<enum_DisplayServer_CursorShape>`\ ) |
  199. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  200. | |void| | :ref:`delete_status_indicator<class_DisplayServer_method_delete_status_indicator>`\ (\ id\: :ref:`int<class_int>`\ ) |
  201. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  202. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`dialog_input_text<class_DisplayServer_method_dialog_input_text>`\ (\ title\: :ref:`String<class_String>`, description\: :ref:`String<class_String>`, existing_text\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>`\ ) |
  203. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  204. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`dialog_show<class_DisplayServer_method_dialog_show>`\ (\ title\: :ref:`String<class_String>`, description\: :ref:`String<class_String>`, buttons\: :ref:`PackedStringArray<class_PackedStringArray>`, callback\: :ref:`Callable<class_Callable>`\ ) |
  205. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  206. | |void| | :ref:`enable_for_stealing_focus<class_DisplayServer_method_enable_for_stealing_focus>`\ (\ process_id\: :ref:`int<class_int>`\ ) |
  207. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  208. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`file_dialog_show<class_DisplayServer_method_file_dialog_show>`\ (\ title\: :ref:`String<class_String>`, current_directory\: :ref:`String<class_String>`, filename\: :ref:`String<class_String>`, show_hidden\: :ref:`bool<class_bool>`, mode\: :ref:`FileDialogMode<enum_DisplayServer_FileDialogMode>`, filters\: :ref:`PackedStringArray<class_PackedStringArray>`, callback\: :ref:`Callable<class_Callable>`, parent_window_id\: :ref:`int<class_int>` = 0\ ) |
  209. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  210. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`file_dialog_with_options_show<class_DisplayServer_method_file_dialog_with_options_show>`\ (\ title\: :ref:`String<class_String>`, current_directory\: :ref:`String<class_String>`, root\: :ref:`String<class_String>`, filename\: :ref:`String<class_String>`, show_hidden\: :ref:`bool<class_bool>`, mode\: :ref:`FileDialogMode<enum_DisplayServer_FileDialogMode>`, filters\: :ref:`PackedStringArray<class_PackedStringArray>`, options\: :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\], callback\: :ref:`Callable<class_Callable>`, parent_window_id\: :ref:`int<class_int>` = 0\ ) |
  211. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  212. | |void| | :ref:`force_process_and_drop_events<class_DisplayServer_method_force_process_and_drop_events>`\ (\ ) |
  213. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  214. | :ref:`Color<class_Color>` | :ref:`get_accent_color<class_DisplayServer_method_get_accent_color>`\ (\ ) |const| |
  215. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  216. | :ref:`Color<class_Color>` | :ref:`get_base_color<class_DisplayServer_method_get_base_color>`\ (\ ) |const| |
  217. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  218. | :ref:`Array<class_Array>`\[:ref:`Rect2<class_Rect2>`\] | :ref:`get_display_cutouts<class_DisplayServer_method_get_display_cutouts>`\ (\ ) |const| |
  219. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  220. | :ref:`Rect2i<class_Rect2i>` | :ref:`get_display_safe_area<class_DisplayServer_method_get_display_safe_area>`\ (\ ) |const| |
  221. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  222. | :ref:`int<class_int>` | :ref:`get_keyboard_focus_screen<class_DisplayServer_method_get_keyboard_focus_screen>`\ (\ ) |const| |
  223. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  224. | :ref:`String<class_String>` | :ref:`get_name<class_DisplayServer_method_get_name>`\ (\ ) |const| |
  225. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  226. | :ref:`int<class_int>` | :ref:`get_primary_screen<class_DisplayServer_method_get_primary_screen>`\ (\ ) |const| |
  227. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  228. | :ref:`int<class_int>` | :ref:`get_screen_count<class_DisplayServer_method_get_screen_count>`\ (\ ) |const| |
  229. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  230. | :ref:`int<class_int>` | :ref:`get_screen_from_rect<class_DisplayServer_method_get_screen_from_rect>`\ (\ rect\: :ref:`Rect2<class_Rect2>`\ ) |const| |
  231. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  232. | :ref:`bool<class_bool>` | :ref:`get_swap_cancel_ok<class_DisplayServer_method_get_swap_cancel_ok>`\ (\ ) |
  233. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  234. | :ref:`int<class_int>` | :ref:`get_window_at_screen_position<class_DisplayServer_method_get_window_at_screen_position>`\ (\ position\: :ref:`Vector2i<class_Vector2i>`\ ) |const| |
  235. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  236. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`get_window_list<class_DisplayServer_method_get_window_list>`\ (\ ) |const| |
  237. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  238. | :ref:`int<class_int>` | :ref:`global_menu_add_check_item<class_DisplayServer_method_global_menu_add_check_item>`\ (\ menu_root\: :ref:`String<class_String>`, label\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>` = Callable(), key_callback\: :ref:`Callable<class_Callable>` = Callable(), tag\: :ref:`Variant<class_Variant>` = null, accelerator\: :ref:`Key<enum_@GlobalScope_Key>` = 0, index\: :ref:`int<class_int>` = -1\ ) |
  239. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  240. | :ref:`int<class_int>` | :ref:`global_menu_add_icon_check_item<class_DisplayServer_method_global_menu_add_icon_check_item>`\ (\ menu_root\: :ref:`String<class_String>`, icon\: :ref:`Texture2D<class_Texture2D>`, label\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>` = Callable(), key_callback\: :ref:`Callable<class_Callable>` = Callable(), tag\: :ref:`Variant<class_Variant>` = null, accelerator\: :ref:`Key<enum_@GlobalScope_Key>` = 0, index\: :ref:`int<class_int>` = -1\ ) |
  241. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  242. | :ref:`int<class_int>` | :ref:`global_menu_add_icon_item<class_DisplayServer_method_global_menu_add_icon_item>`\ (\ menu_root\: :ref:`String<class_String>`, icon\: :ref:`Texture2D<class_Texture2D>`, label\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>` = Callable(), key_callback\: :ref:`Callable<class_Callable>` = Callable(), tag\: :ref:`Variant<class_Variant>` = null, accelerator\: :ref:`Key<enum_@GlobalScope_Key>` = 0, index\: :ref:`int<class_int>` = -1\ ) |
  243. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  244. | :ref:`int<class_int>` | :ref:`global_menu_add_icon_radio_check_item<class_DisplayServer_method_global_menu_add_icon_radio_check_item>`\ (\ menu_root\: :ref:`String<class_String>`, icon\: :ref:`Texture2D<class_Texture2D>`, label\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>` = Callable(), key_callback\: :ref:`Callable<class_Callable>` = Callable(), tag\: :ref:`Variant<class_Variant>` = null, accelerator\: :ref:`Key<enum_@GlobalScope_Key>` = 0, index\: :ref:`int<class_int>` = -1\ ) |
  245. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  246. | :ref:`int<class_int>` | :ref:`global_menu_add_item<class_DisplayServer_method_global_menu_add_item>`\ (\ menu_root\: :ref:`String<class_String>`, label\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>` = Callable(), key_callback\: :ref:`Callable<class_Callable>` = Callable(), tag\: :ref:`Variant<class_Variant>` = null, accelerator\: :ref:`Key<enum_@GlobalScope_Key>` = 0, index\: :ref:`int<class_int>` = -1\ ) |
  247. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  248. | :ref:`int<class_int>` | :ref:`global_menu_add_multistate_item<class_DisplayServer_method_global_menu_add_multistate_item>`\ (\ menu_root\: :ref:`String<class_String>`, label\: :ref:`String<class_String>`, max_states\: :ref:`int<class_int>`, default_state\: :ref:`int<class_int>`, callback\: :ref:`Callable<class_Callable>` = Callable(), key_callback\: :ref:`Callable<class_Callable>` = Callable(), tag\: :ref:`Variant<class_Variant>` = null, accelerator\: :ref:`Key<enum_@GlobalScope_Key>` = 0, index\: :ref:`int<class_int>` = -1\ ) |
  249. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  250. | :ref:`int<class_int>` | :ref:`global_menu_add_radio_check_item<class_DisplayServer_method_global_menu_add_radio_check_item>`\ (\ menu_root\: :ref:`String<class_String>`, label\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>` = Callable(), key_callback\: :ref:`Callable<class_Callable>` = Callable(), tag\: :ref:`Variant<class_Variant>` = null, accelerator\: :ref:`Key<enum_@GlobalScope_Key>` = 0, index\: :ref:`int<class_int>` = -1\ ) |
  251. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  252. | :ref:`int<class_int>` | :ref:`global_menu_add_separator<class_DisplayServer_method_global_menu_add_separator>`\ (\ menu_root\: :ref:`String<class_String>`, index\: :ref:`int<class_int>` = -1\ ) |
  253. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  254. | :ref:`int<class_int>` | :ref:`global_menu_add_submenu_item<class_DisplayServer_method_global_menu_add_submenu_item>`\ (\ menu_root\: :ref:`String<class_String>`, label\: :ref:`String<class_String>`, submenu\: :ref:`String<class_String>`, index\: :ref:`int<class_int>` = -1\ ) |
  255. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  256. | |void| | :ref:`global_menu_clear<class_DisplayServer_method_global_menu_clear>`\ (\ menu_root\: :ref:`String<class_String>`\ ) |
  257. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  258. | :ref:`Key<enum_@GlobalScope_Key>` | :ref:`global_menu_get_item_accelerator<class_DisplayServer_method_global_menu_get_item_accelerator>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  259. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  260. | :ref:`Callable<class_Callable>` | :ref:`global_menu_get_item_callback<class_DisplayServer_method_global_menu_get_item_callback>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  261. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  262. | :ref:`int<class_int>` | :ref:`global_menu_get_item_count<class_DisplayServer_method_global_menu_get_item_count>`\ (\ menu_root\: :ref:`String<class_String>`\ ) |const| |
  263. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  264. | :ref:`Texture2D<class_Texture2D>` | :ref:`global_menu_get_item_icon<class_DisplayServer_method_global_menu_get_item_icon>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  265. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  266. | :ref:`int<class_int>` | :ref:`global_menu_get_item_indentation_level<class_DisplayServer_method_global_menu_get_item_indentation_level>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  267. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  268. | :ref:`int<class_int>` | :ref:`global_menu_get_item_index_from_tag<class_DisplayServer_method_global_menu_get_item_index_from_tag>`\ (\ menu_root\: :ref:`String<class_String>`, tag\: :ref:`Variant<class_Variant>`\ ) |const| |
  269. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  270. | :ref:`int<class_int>` | :ref:`global_menu_get_item_index_from_text<class_DisplayServer_method_global_menu_get_item_index_from_text>`\ (\ menu_root\: :ref:`String<class_String>`, text\: :ref:`String<class_String>`\ ) |const| |
  271. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  272. | :ref:`Callable<class_Callable>` | :ref:`global_menu_get_item_key_callback<class_DisplayServer_method_global_menu_get_item_key_callback>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  273. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  274. | :ref:`int<class_int>` | :ref:`global_menu_get_item_max_states<class_DisplayServer_method_global_menu_get_item_max_states>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  275. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  276. | :ref:`int<class_int>` | :ref:`global_menu_get_item_state<class_DisplayServer_method_global_menu_get_item_state>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  277. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  278. | :ref:`String<class_String>` | :ref:`global_menu_get_item_submenu<class_DisplayServer_method_global_menu_get_item_submenu>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  279. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  280. | :ref:`Variant<class_Variant>` | :ref:`global_menu_get_item_tag<class_DisplayServer_method_global_menu_get_item_tag>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  281. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  282. | :ref:`String<class_String>` | :ref:`global_menu_get_item_text<class_DisplayServer_method_global_menu_get_item_text>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  283. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  284. | :ref:`String<class_String>` | :ref:`global_menu_get_item_tooltip<class_DisplayServer_method_global_menu_get_item_tooltip>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  285. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  286. | :ref:`Dictionary<class_Dictionary>` | :ref:`global_menu_get_system_menu_roots<class_DisplayServer_method_global_menu_get_system_menu_roots>`\ (\ ) |const| |
  287. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  288. | :ref:`bool<class_bool>` | :ref:`global_menu_is_item_checkable<class_DisplayServer_method_global_menu_is_item_checkable>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  289. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  290. | :ref:`bool<class_bool>` | :ref:`global_menu_is_item_checked<class_DisplayServer_method_global_menu_is_item_checked>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  291. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  292. | :ref:`bool<class_bool>` | :ref:`global_menu_is_item_disabled<class_DisplayServer_method_global_menu_is_item_disabled>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  293. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  294. | :ref:`bool<class_bool>` | :ref:`global_menu_is_item_hidden<class_DisplayServer_method_global_menu_is_item_hidden>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  295. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  296. | :ref:`bool<class_bool>` | :ref:`global_menu_is_item_radio_checkable<class_DisplayServer_method_global_menu_is_item_radio_checkable>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| |
  297. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  298. | |void| | :ref:`global_menu_remove_item<class_DisplayServer_method_global_menu_remove_item>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |
  299. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  300. | |void| | :ref:`global_menu_set_item_accelerator<class_DisplayServer_method_global_menu_set_item_accelerator>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, keycode\: :ref:`Key<enum_@GlobalScope_Key>`\ ) |
  301. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  302. | |void| | :ref:`global_menu_set_item_callback<class_DisplayServer_method_global_menu_set_item_callback>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, callback\: :ref:`Callable<class_Callable>`\ ) |
  303. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  304. | |void| | :ref:`global_menu_set_item_checkable<class_DisplayServer_method_global_menu_set_item_checkable>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, checkable\: :ref:`bool<class_bool>`\ ) |
  305. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  306. | |void| | :ref:`global_menu_set_item_checked<class_DisplayServer_method_global_menu_set_item_checked>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, checked\: :ref:`bool<class_bool>`\ ) |
  307. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  308. | |void| | :ref:`global_menu_set_item_disabled<class_DisplayServer_method_global_menu_set_item_disabled>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, disabled\: :ref:`bool<class_bool>`\ ) |
  309. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  310. | |void| | :ref:`global_menu_set_item_hidden<class_DisplayServer_method_global_menu_set_item_hidden>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, hidden\: :ref:`bool<class_bool>`\ ) |
  311. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  312. | |void| | :ref:`global_menu_set_item_hover_callbacks<class_DisplayServer_method_global_menu_set_item_hover_callbacks>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, callback\: :ref:`Callable<class_Callable>`\ ) |
  313. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  314. | |void| | :ref:`global_menu_set_item_icon<class_DisplayServer_method_global_menu_set_item_icon>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, icon\: :ref:`Texture2D<class_Texture2D>`\ ) |
  315. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  316. | |void| | :ref:`global_menu_set_item_indentation_level<class_DisplayServer_method_global_menu_set_item_indentation_level>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, level\: :ref:`int<class_int>`\ ) |
  317. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  318. | |void| | :ref:`global_menu_set_item_key_callback<class_DisplayServer_method_global_menu_set_item_key_callback>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, key_callback\: :ref:`Callable<class_Callable>`\ ) |
  319. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  320. | |void| | :ref:`global_menu_set_item_max_states<class_DisplayServer_method_global_menu_set_item_max_states>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, max_states\: :ref:`int<class_int>`\ ) |
  321. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  322. | |void| | :ref:`global_menu_set_item_radio_checkable<class_DisplayServer_method_global_menu_set_item_radio_checkable>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, checkable\: :ref:`bool<class_bool>`\ ) |
  323. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  324. | |void| | :ref:`global_menu_set_item_state<class_DisplayServer_method_global_menu_set_item_state>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, state\: :ref:`int<class_int>`\ ) |
  325. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  326. | |void| | :ref:`global_menu_set_item_submenu<class_DisplayServer_method_global_menu_set_item_submenu>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, submenu\: :ref:`String<class_String>`\ ) |
  327. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  328. | |void| | :ref:`global_menu_set_item_tag<class_DisplayServer_method_global_menu_set_item_tag>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, tag\: :ref:`Variant<class_Variant>`\ ) |
  329. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  330. | |void| | :ref:`global_menu_set_item_text<class_DisplayServer_method_global_menu_set_item_text>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, text\: :ref:`String<class_String>`\ ) |
  331. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  332. | |void| | :ref:`global_menu_set_item_tooltip<class_DisplayServer_method_global_menu_set_item_tooltip>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, tooltip\: :ref:`String<class_String>`\ ) |
  333. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  334. | |void| | :ref:`global_menu_set_popup_callbacks<class_DisplayServer_method_global_menu_set_popup_callbacks>`\ (\ menu_root\: :ref:`String<class_String>`, open_callback\: :ref:`Callable<class_Callable>`, close_callback\: :ref:`Callable<class_Callable>`\ ) |
  335. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  336. | :ref:`bool<class_bool>` | :ref:`has_additional_outputs<class_DisplayServer_method_has_additional_outputs>`\ (\ ) |const| |
  337. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  338. | :ref:`bool<class_bool>` | :ref:`has_feature<class_DisplayServer_method_has_feature>`\ (\ feature\: :ref:`Feature<enum_DisplayServer_Feature>`\ ) |const| |
  339. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  340. | :ref:`bool<class_bool>` | :ref:`has_hardware_keyboard<class_DisplayServer_method_has_hardware_keyboard>`\ (\ ) |const| |
  341. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  342. | |void| | :ref:`help_set_search_callbacks<class_DisplayServer_method_help_set_search_callbacks>`\ (\ search_callback\: :ref:`Callable<class_Callable>`, action_callback\: :ref:`Callable<class_Callable>`\ ) |
  343. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  344. | :ref:`Vector2i<class_Vector2i>` | :ref:`ime_get_selection<class_DisplayServer_method_ime_get_selection>`\ (\ ) |const| |
  345. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  346. | :ref:`String<class_String>` | :ref:`ime_get_text<class_DisplayServer_method_ime_get_text>`\ (\ ) |const| |
  347. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  348. | :ref:`bool<class_bool>` | :ref:`is_dark_mode<class_DisplayServer_method_is_dark_mode>`\ (\ ) |const| |
  349. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  350. | :ref:`bool<class_bool>` | :ref:`is_dark_mode_supported<class_DisplayServer_method_is_dark_mode_supported>`\ (\ ) |const| |
  351. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  352. | :ref:`bool<class_bool>` | :ref:`is_touchscreen_available<class_DisplayServer_method_is_touchscreen_available>`\ (\ ) |const| |
  353. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  354. | :ref:`bool<class_bool>` | :ref:`is_window_transparency_available<class_DisplayServer_method_is_window_transparency_available>`\ (\ ) |const| |
  355. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  356. | :ref:`int<class_int>` | :ref:`keyboard_get_current_layout<class_DisplayServer_method_keyboard_get_current_layout>`\ (\ ) |const| |
  357. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  358. | :ref:`Key<enum_@GlobalScope_Key>` | :ref:`keyboard_get_keycode_from_physical<class_DisplayServer_method_keyboard_get_keycode_from_physical>`\ (\ keycode\: :ref:`Key<enum_@GlobalScope_Key>`\ ) |const| |
  359. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  360. | :ref:`Key<enum_@GlobalScope_Key>` | :ref:`keyboard_get_label_from_physical<class_DisplayServer_method_keyboard_get_label_from_physical>`\ (\ keycode\: :ref:`Key<enum_@GlobalScope_Key>`\ ) |const| |
  361. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  362. | :ref:`int<class_int>` | :ref:`keyboard_get_layout_count<class_DisplayServer_method_keyboard_get_layout_count>`\ (\ ) |const| |
  363. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  364. | :ref:`String<class_String>` | :ref:`keyboard_get_layout_language<class_DisplayServer_method_keyboard_get_layout_language>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  365. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  366. | :ref:`String<class_String>` | :ref:`keyboard_get_layout_name<class_DisplayServer_method_keyboard_get_layout_name>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  367. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  368. | |void| | :ref:`keyboard_set_current_layout<class_DisplayServer_method_keyboard_set_current_layout>`\ (\ index\: :ref:`int<class_int>`\ ) |
  369. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  370. | |bitfield|\[:ref:`MouseButtonMask<enum_@GlobalScope_MouseButtonMask>`\] | :ref:`mouse_get_button_state<class_DisplayServer_method_mouse_get_button_state>`\ (\ ) |const| |
  371. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  372. | :ref:`MouseMode<enum_DisplayServer_MouseMode>` | :ref:`mouse_get_mode<class_DisplayServer_method_mouse_get_mode>`\ (\ ) |const| |
  373. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  374. | :ref:`Vector2i<class_Vector2i>` | :ref:`mouse_get_position<class_DisplayServer_method_mouse_get_position>`\ (\ ) |const| |
  375. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  376. | |void| | :ref:`mouse_set_mode<class_DisplayServer_method_mouse_set_mode>`\ (\ mouse_mode\: :ref:`MouseMode<enum_DisplayServer_MouseMode>`\ ) |
  377. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  378. | |void| | :ref:`process_events<class_DisplayServer_method_process_events>`\ (\ ) |
  379. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  380. | |void| | :ref:`register_additional_output<class_DisplayServer_method_register_additional_output>`\ (\ object\: :ref:`Object<class_Object>`\ ) |
  381. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  382. | :ref:`int<class_int>` | :ref:`screen_get_dpi<class_DisplayServer_method_screen_get_dpi>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
  383. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  384. | :ref:`Image<class_Image>` | :ref:`screen_get_image<class_DisplayServer_method_screen_get_image>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
  385. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  386. | :ref:`Image<class_Image>` | :ref:`screen_get_image_rect<class_DisplayServer_method_screen_get_image_rect>`\ (\ rect\: :ref:`Rect2i<class_Rect2i>`\ ) |const| |
  387. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  388. | :ref:`float<class_float>` | :ref:`screen_get_max_scale<class_DisplayServer_method_screen_get_max_scale>`\ (\ ) |const| |
  389. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  390. | :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` | :ref:`screen_get_orientation<class_DisplayServer_method_screen_get_orientation>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
  391. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  392. | :ref:`Color<class_Color>` | :ref:`screen_get_pixel<class_DisplayServer_method_screen_get_pixel>`\ (\ position\: :ref:`Vector2i<class_Vector2i>`\ ) |const| |
  393. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  394. | :ref:`Vector2i<class_Vector2i>` | :ref:`screen_get_position<class_DisplayServer_method_screen_get_position>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
  395. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  396. | :ref:`float<class_float>` | :ref:`screen_get_refresh_rate<class_DisplayServer_method_screen_get_refresh_rate>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
  397. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  398. | :ref:`float<class_float>` | :ref:`screen_get_scale<class_DisplayServer_method_screen_get_scale>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
  399. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  400. | :ref:`Vector2i<class_Vector2i>` | :ref:`screen_get_size<class_DisplayServer_method_screen_get_size>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
  401. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  402. | :ref:`Rect2i<class_Rect2i>` | :ref:`screen_get_usable_rect<class_DisplayServer_method_screen_get_usable_rect>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
  403. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  404. | :ref:`bool<class_bool>` | :ref:`screen_is_kept_on<class_DisplayServer_method_screen_is_kept_on>`\ (\ ) |const| |
  405. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  406. | |void| | :ref:`screen_set_keep_on<class_DisplayServer_method_screen_set_keep_on>`\ (\ enable\: :ref:`bool<class_bool>`\ ) |
  407. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  408. | |void| | :ref:`screen_set_orientation<class_DisplayServer_method_screen_set_orientation>`\ (\ orientation\: :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>`, screen\: :ref:`int<class_int>` = -1\ ) |
  409. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  410. | |void| | :ref:`set_hardware_keyboard_connection_change_callback<class_DisplayServer_method_set_hardware_keyboard_connection_change_callback>`\ (\ callable\: :ref:`Callable<class_Callable>`\ ) |
  411. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  412. | |void| | :ref:`set_icon<class_DisplayServer_method_set_icon>`\ (\ image\: :ref:`Image<class_Image>`\ ) |
  413. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  414. | |void| | :ref:`set_native_icon<class_DisplayServer_method_set_native_icon>`\ (\ filename\: :ref:`String<class_String>`\ ) |
  415. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  416. | |void| | :ref:`set_system_theme_change_callback<class_DisplayServer_method_set_system_theme_change_callback>`\ (\ callable\: :ref:`Callable<class_Callable>`\ ) |
  417. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  418. | |void| | :ref:`show_emoji_and_symbol_picker<class_DisplayServer_method_show_emoji_and_symbol_picker>`\ (\ ) |const| |
  419. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  420. | :ref:`Rect2<class_Rect2>` | :ref:`status_indicator_get_rect<class_DisplayServer_method_status_indicator_get_rect>`\ (\ id\: :ref:`int<class_int>`\ ) |const| |
  421. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  422. | |void| | :ref:`status_indicator_set_callback<class_DisplayServer_method_status_indicator_set_callback>`\ (\ id\: :ref:`int<class_int>`, callback\: :ref:`Callable<class_Callable>`\ ) |
  423. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  424. | |void| | :ref:`status_indicator_set_icon<class_DisplayServer_method_status_indicator_set_icon>`\ (\ id\: :ref:`int<class_int>`, icon\: :ref:`Texture2D<class_Texture2D>`\ ) |
  425. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  426. | |void| | :ref:`status_indicator_set_menu<class_DisplayServer_method_status_indicator_set_menu>`\ (\ id\: :ref:`int<class_int>`, menu_rid\: :ref:`RID<class_RID>`\ ) |
  427. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  428. | |void| | :ref:`status_indicator_set_tooltip<class_DisplayServer_method_status_indicator_set_tooltip>`\ (\ id\: :ref:`int<class_int>`, tooltip\: :ref:`String<class_String>`\ ) |
  429. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  430. | :ref:`String<class_String>` | :ref:`tablet_get_current_driver<class_DisplayServer_method_tablet_get_current_driver>`\ (\ ) |const| |
  431. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  432. | :ref:`int<class_int>` | :ref:`tablet_get_driver_count<class_DisplayServer_method_tablet_get_driver_count>`\ (\ ) |const| |
  433. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  434. | :ref:`String<class_String>` | :ref:`tablet_get_driver_name<class_DisplayServer_method_tablet_get_driver_name>`\ (\ idx\: :ref:`int<class_int>`\ ) |const| |
  435. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  436. | |void| | :ref:`tablet_set_current_driver<class_DisplayServer_method_tablet_set_current_driver>`\ (\ name\: :ref:`String<class_String>`\ ) |
  437. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  438. | :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] | :ref:`tts_get_voices<class_DisplayServer_method_tts_get_voices>`\ (\ ) |const| |
  439. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  440. | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`tts_get_voices_for_language<class_DisplayServer_method_tts_get_voices_for_language>`\ (\ language\: :ref:`String<class_String>`\ ) |const| |
  441. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  442. | :ref:`bool<class_bool>` | :ref:`tts_is_paused<class_DisplayServer_method_tts_is_paused>`\ (\ ) |const| |
  443. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  444. | :ref:`bool<class_bool>` | :ref:`tts_is_speaking<class_DisplayServer_method_tts_is_speaking>`\ (\ ) |const| |
  445. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  446. | |void| | :ref:`tts_pause<class_DisplayServer_method_tts_pause>`\ (\ ) |
  447. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  448. | |void| | :ref:`tts_resume<class_DisplayServer_method_tts_resume>`\ (\ ) |
  449. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  450. | |void| | :ref:`tts_set_utterance_callback<class_DisplayServer_method_tts_set_utterance_callback>`\ (\ event\: :ref:`TTSUtteranceEvent<enum_DisplayServer_TTSUtteranceEvent>`, callable\: :ref:`Callable<class_Callable>`\ ) |
  451. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  452. | |void| | :ref:`tts_speak<class_DisplayServer_method_tts_speak>`\ (\ text\: :ref:`String<class_String>`, voice\: :ref:`String<class_String>`, volume\: :ref:`int<class_int>` = 50, pitch\: :ref:`float<class_float>` = 1.0, rate\: :ref:`float<class_float>` = 1.0, utterance_id\: :ref:`int<class_int>` = 0, interrupt\: :ref:`bool<class_bool>` = false\ ) |
  453. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  454. | |void| | :ref:`tts_stop<class_DisplayServer_method_tts_stop>`\ (\ ) |
  455. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  456. | |void| | :ref:`unregister_additional_output<class_DisplayServer_method_unregister_additional_output>`\ (\ object\: :ref:`Object<class_Object>`\ ) |
  457. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  458. | :ref:`int<class_int>` | :ref:`virtual_keyboard_get_height<class_DisplayServer_method_virtual_keyboard_get_height>`\ (\ ) |const| |
  459. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  460. | |void| | :ref:`virtual_keyboard_hide<class_DisplayServer_method_virtual_keyboard_hide>`\ (\ ) |
  461. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  462. | |void| | :ref:`virtual_keyboard_show<class_DisplayServer_method_virtual_keyboard_show>`\ (\ existing_text\: :ref:`String<class_String>`, position\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), type\: :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` = 0, max_length\: :ref:`int<class_int>` = -1, cursor_start\: :ref:`int<class_int>` = -1, cursor_end\: :ref:`int<class_int>` = -1\ ) |
  463. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  464. | |void| | :ref:`warp_mouse<class_DisplayServer_method_warp_mouse>`\ (\ position\: :ref:`Vector2i<class_Vector2i>`\ ) |
  465. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  466. | :ref:`bool<class_bool>` | :ref:`window_can_draw<class_DisplayServer_method_window_can_draw>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  467. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  468. | :ref:`int<class_int>` | :ref:`window_get_active_popup<class_DisplayServer_method_window_get_active_popup>`\ (\ ) |const| |
  469. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  470. | :ref:`int<class_int>` | :ref:`window_get_attached_instance_id<class_DisplayServer_method_window_get_attached_instance_id>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  471. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  472. | :ref:`int<class_int>` | :ref:`window_get_current_screen<class_DisplayServer_method_window_get_current_screen>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  473. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  474. | :ref:`bool<class_bool>` | :ref:`window_get_flag<class_DisplayServer_method_window_get_flag>`\ (\ flag\: :ref:`WindowFlags<enum_DisplayServer_WindowFlags>`, window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  475. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  476. | :ref:`Vector2i<class_Vector2i>` | :ref:`window_get_max_size<class_DisplayServer_method_window_get_max_size>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  477. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  478. | :ref:`Vector2i<class_Vector2i>` | :ref:`window_get_min_size<class_DisplayServer_method_window_get_min_size>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  479. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  480. | :ref:`WindowMode<enum_DisplayServer_WindowMode>` | :ref:`window_get_mode<class_DisplayServer_method_window_get_mode>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  481. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  482. | :ref:`int<class_int>` | :ref:`window_get_native_handle<class_DisplayServer_method_window_get_native_handle>`\ (\ handle_type\: :ref:`HandleType<enum_DisplayServer_HandleType>`, window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  483. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  484. | :ref:`Rect2i<class_Rect2i>` | :ref:`window_get_popup_safe_rect<class_DisplayServer_method_window_get_popup_safe_rect>`\ (\ window\: :ref:`int<class_int>`\ ) |const| |
  485. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  486. | :ref:`Vector2i<class_Vector2i>` | :ref:`window_get_position<class_DisplayServer_method_window_get_position>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  487. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  488. | :ref:`Vector2i<class_Vector2i>` | :ref:`window_get_position_with_decorations<class_DisplayServer_method_window_get_position_with_decorations>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  489. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  490. | :ref:`Vector3i<class_Vector3i>` | :ref:`window_get_safe_title_margins<class_DisplayServer_method_window_get_safe_title_margins>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  491. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  492. | :ref:`Vector2i<class_Vector2i>` | :ref:`window_get_size<class_DisplayServer_method_window_get_size>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  493. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  494. | :ref:`Vector2i<class_Vector2i>` | :ref:`window_get_size_with_decorations<class_DisplayServer_method_window_get_size_with_decorations>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  495. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  496. | :ref:`Vector2i<class_Vector2i>` | :ref:`window_get_title_size<class_DisplayServer_method_window_get_title_size>`\ (\ title\: :ref:`String<class_String>`, window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  497. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  498. | :ref:`VSyncMode<enum_DisplayServer_VSyncMode>` | :ref:`window_get_vsync_mode<class_DisplayServer_method_window_get_vsync_mode>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  499. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  500. | :ref:`bool<class_bool>` | :ref:`window_is_focused<class_DisplayServer_method_window_is_focused>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  501. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  502. | :ref:`bool<class_bool>` | :ref:`window_is_maximize_allowed<class_DisplayServer_method_window_is_maximize_allowed>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
  503. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  504. | :ref:`bool<class_bool>` | :ref:`window_maximize_on_title_dbl_click<class_DisplayServer_method_window_maximize_on_title_dbl_click>`\ (\ ) |const| |
  505. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  506. | :ref:`bool<class_bool>` | :ref:`window_minimize_on_title_dbl_click<class_DisplayServer_method_window_minimize_on_title_dbl_click>`\ (\ ) |const| |
  507. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  508. | |void| | :ref:`window_move_to_foreground<class_DisplayServer_method_window_move_to_foreground>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |
  509. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  510. | |void| | :ref:`window_request_attention<class_DisplayServer_method_window_request_attention>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |
  511. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  512. | |void| | :ref:`window_set_current_screen<class_DisplayServer_method_window_set_current_screen>`\ (\ screen\: :ref:`int<class_int>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  513. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  514. | |void| | :ref:`window_set_drop_files_callback<class_DisplayServer_method_window_set_drop_files_callback>`\ (\ callback\: :ref:`Callable<class_Callable>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  515. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  516. | |void| | :ref:`window_set_exclusive<class_DisplayServer_method_window_set_exclusive>`\ (\ window_id\: :ref:`int<class_int>`, exclusive\: :ref:`bool<class_bool>`\ ) |
  517. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  518. | |void| | :ref:`window_set_flag<class_DisplayServer_method_window_set_flag>`\ (\ flag\: :ref:`WindowFlags<enum_DisplayServer_WindowFlags>`, enabled\: :ref:`bool<class_bool>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  519. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  520. | |void| | :ref:`window_set_ime_active<class_DisplayServer_method_window_set_ime_active>`\ (\ active\: :ref:`bool<class_bool>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  521. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  522. | |void| | :ref:`window_set_ime_position<class_DisplayServer_method_window_set_ime_position>`\ (\ position\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  523. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  524. | |void| | :ref:`window_set_input_event_callback<class_DisplayServer_method_window_set_input_event_callback>`\ (\ callback\: :ref:`Callable<class_Callable>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  525. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  526. | |void| | :ref:`window_set_input_text_callback<class_DisplayServer_method_window_set_input_text_callback>`\ (\ callback\: :ref:`Callable<class_Callable>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  527. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  528. | |void| | :ref:`window_set_max_size<class_DisplayServer_method_window_set_max_size>`\ (\ max_size\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  529. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  530. | |void| | :ref:`window_set_min_size<class_DisplayServer_method_window_set_min_size>`\ (\ min_size\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  531. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  532. | |void| | :ref:`window_set_mode<class_DisplayServer_method_window_set_mode>`\ (\ mode\: :ref:`WindowMode<enum_DisplayServer_WindowMode>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  533. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  534. | |void| | :ref:`window_set_mouse_passthrough<class_DisplayServer_method_window_set_mouse_passthrough>`\ (\ region\: :ref:`PackedVector2Array<class_PackedVector2Array>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  535. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  536. | |void| | :ref:`window_set_popup_safe_rect<class_DisplayServer_method_window_set_popup_safe_rect>`\ (\ window\: :ref:`int<class_int>`, rect\: :ref:`Rect2i<class_Rect2i>`\ ) |
  537. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  538. | |void| | :ref:`window_set_position<class_DisplayServer_method_window_set_position>`\ (\ position\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  539. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  540. | |void| | :ref:`window_set_rect_changed_callback<class_DisplayServer_method_window_set_rect_changed_callback>`\ (\ callback\: :ref:`Callable<class_Callable>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  541. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  542. | |void| | :ref:`window_set_size<class_DisplayServer_method_window_set_size>`\ (\ size\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  543. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  544. | |void| | :ref:`window_set_title<class_DisplayServer_method_window_set_title>`\ (\ title\: :ref:`String<class_String>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  545. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  546. | |void| | :ref:`window_set_transient<class_DisplayServer_method_window_set_transient>`\ (\ window_id\: :ref:`int<class_int>`, parent_window_id\: :ref:`int<class_int>`\ ) |
  547. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  548. | |void| | :ref:`window_set_vsync_mode<class_DisplayServer_method_window_set_vsync_mode>`\ (\ vsync_mode\: :ref:`VSyncMode<enum_DisplayServer_VSyncMode>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  549. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  550. | |void| | :ref:`window_set_window_buttons_offset<class_DisplayServer_method_window_set_window_buttons_offset>`\ (\ offset\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  551. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  552. | |void| | :ref:`window_set_window_event_callback<class_DisplayServer_method_window_set_window_event_callback>`\ (\ callback\: :ref:`Callable<class_Callable>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  553. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  554. | |void| | :ref:`window_start_drag<class_DisplayServer_method_window_start_drag>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |
  555. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  556. | |void| | :ref:`window_start_resize<class_DisplayServer_method_window_start_resize>`\ (\ edge\: :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>`, window_id\: :ref:`int<class_int>` = 0\ ) |
  557. +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  558. .. rst-class:: classref-section-separator
  559. ----
  560. .. rst-class:: classref-descriptions-group
  561. Enumerations
  562. ------------
  563. .. _enum_DisplayServer_Feature:
  564. .. rst-class:: classref-enumeration
  565. enum **Feature**: :ref:`๐Ÿ”—<enum_DisplayServer_Feature>`
  566. .. _class_DisplayServer_constant_FEATURE_GLOBAL_MENU:
  567. .. rst-class:: classref-enumeration-constant
  568. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_GLOBAL_MENU** = ``0``
  569. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  570. Display server supports global menu. This allows the application to display its menu items in the operating system's top bar. **macOS**
  571. .. _class_DisplayServer_constant_FEATURE_SUBWINDOWS:
  572. .. rst-class:: classref-enumeration-constant
  573. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_SUBWINDOWS** = ``1``
  574. Display server supports multiple windows that can be moved outside of the main window. **Windows, macOS, Linux (X11)**
  575. .. _class_DisplayServer_constant_FEATURE_TOUCHSCREEN:
  576. .. rst-class:: classref-enumeration-constant
  577. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_TOUCHSCREEN** = ``2``
  578. Display server supports touchscreen input. **Windows, Linux (X11), Android, iOS, Web**
  579. .. _class_DisplayServer_constant_FEATURE_MOUSE:
  580. .. rst-class:: classref-enumeration-constant
  581. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_MOUSE** = ``3``
  582. Display server supports mouse input. **Windows, macOS, Linux (X11/Wayland), Android, Web**
  583. .. _class_DisplayServer_constant_FEATURE_MOUSE_WARP:
  584. .. rst-class:: classref-enumeration-constant
  585. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_MOUSE_WARP** = ``4``
  586. Display server supports warping mouse coordinates to keep the mouse cursor constrained within an area, but looping when one of the edges is reached. **Windows, macOS, Linux (X11/Wayland)**
  587. .. _class_DisplayServer_constant_FEATURE_CLIPBOARD:
  588. .. rst-class:: classref-enumeration-constant
  589. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_CLIPBOARD** = ``5``
  590. Display server supports setting and getting clipboard data. See also :ref:`FEATURE_CLIPBOARD_PRIMARY<class_DisplayServer_constant_FEATURE_CLIPBOARD_PRIMARY>`. **Windows, macOS, Linux (X11/Wayland), Android, iOS, Web**
  591. .. _class_DisplayServer_constant_FEATURE_VIRTUAL_KEYBOARD:
  592. .. rst-class:: classref-enumeration-constant
  593. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_VIRTUAL_KEYBOARD** = ``6``
  594. Display server supports popping up a virtual keyboard when requested to input text without a physical keyboard. **Android, iOS, Web**
  595. .. _class_DisplayServer_constant_FEATURE_CURSOR_SHAPE:
  596. .. rst-class:: classref-enumeration-constant
  597. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_CURSOR_SHAPE** = ``7``
  598. Display server supports setting the mouse cursor shape to be different from the default. **Windows, macOS, Linux (X11/Wayland), Android, Web**
  599. .. _class_DisplayServer_constant_FEATURE_CUSTOM_CURSOR_SHAPE:
  600. .. rst-class:: classref-enumeration-constant
  601. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_CUSTOM_CURSOR_SHAPE** = ``8``
  602. Display server supports setting the mouse cursor shape to a custom image. **Windows, macOS, Linux (X11/Wayland), Web**
  603. .. _class_DisplayServer_constant_FEATURE_NATIVE_DIALOG:
  604. .. rst-class:: classref-enumeration-constant
  605. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_DIALOG** = ``9``
  606. Display server supports spawning text dialogs using the operating system's native look-and-feel. See :ref:`dialog_show()<class_DisplayServer_method_dialog_show>`. **Windows, macOS**
  607. .. _class_DisplayServer_constant_FEATURE_IME:
  608. .. rst-class:: classref-enumeration-constant
  609. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_IME** = ``10``
  610. Display server supports `Input Method Editor <https://en.wikipedia.org/wiki/Input_method>`__, which is commonly used for inputting Chinese/Japanese/Korean text. This is handled by the operating system, rather than by Godot. **Windows, macOS, Linux (X11)**
  611. .. _class_DisplayServer_constant_FEATURE_WINDOW_TRANSPARENCY:
  612. .. rst-class:: classref-enumeration-constant
  613. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_WINDOW_TRANSPARENCY** = ``11``
  614. Display server supports windows can use per-pixel transparency to make windows behind them partially or fully visible. **Windows, macOS, Linux (X11/Wayland), Android**
  615. .. _class_DisplayServer_constant_FEATURE_HIDPI:
  616. .. rst-class:: classref-enumeration-constant
  617. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_HIDPI** = ``12``
  618. Display server supports querying the operating system's display scale factor. This allows automatically detecting the hiDPI display *reliably*, instead of guessing based on the screen resolution and the display's reported DPI (which might be unreliable due to broken monitor EDID). **Windows, Linux (Wayland), macOS**
  619. .. _class_DisplayServer_constant_FEATURE_ICON:
  620. .. rst-class:: classref-enumeration-constant
  621. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_ICON** = ``13``
  622. Display server supports changing the window icon (usually displayed in the top-left corner). **Windows, macOS, Linux (X11)**
  623. .. _class_DisplayServer_constant_FEATURE_NATIVE_ICON:
  624. .. rst-class:: classref-enumeration-constant
  625. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_ICON** = ``14``
  626. Display server supports changing the window icon (usually displayed in the top-left corner). **Windows, macOS**
  627. .. _class_DisplayServer_constant_FEATURE_ORIENTATION:
  628. .. rst-class:: classref-enumeration-constant
  629. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_ORIENTATION** = ``15``
  630. Display server supports changing the screen orientation. **Android, iOS**
  631. .. _class_DisplayServer_constant_FEATURE_SWAP_BUFFERS:
  632. .. rst-class:: classref-enumeration-constant
  633. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_SWAP_BUFFERS** = ``16``
  634. Display server supports V-Sync status can be changed from the default (which is forced to be enabled platforms not supporting this feature). **Windows, macOS, Linux (X11/Wayland)**
  635. .. _class_DisplayServer_constant_FEATURE_CLIPBOARD_PRIMARY:
  636. .. rst-class:: classref-enumeration-constant
  637. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_CLIPBOARD_PRIMARY** = ``18``
  638. Display server supports Primary clipboard can be used. This is a different clipboard from :ref:`FEATURE_CLIPBOARD<class_DisplayServer_constant_FEATURE_CLIPBOARD>`. **Linux (X11/Wayland)**
  639. .. _class_DisplayServer_constant_FEATURE_TEXT_TO_SPEECH:
  640. .. rst-class:: classref-enumeration-constant
  641. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_TEXT_TO_SPEECH** = ``19``
  642. Display server supports text-to-speech. See ``tts_*`` methods. **Windows, macOS, Linux (X11/Wayland), Android, iOS, Web**
  643. .. _class_DisplayServer_constant_FEATURE_EXTEND_TO_TITLE:
  644. .. rst-class:: classref-enumeration-constant
  645. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_EXTEND_TO_TITLE** = ``20``
  646. Display server supports expanding window content to the title. See :ref:`WINDOW_FLAG_EXTEND_TO_TITLE<class_DisplayServer_constant_WINDOW_FLAG_EXTEND_TO_TITLE>`. **macOS**
  647. .. _class_DisplayServer_constant_FEATURE_SCREEN_CAPTURE:
  648. .. rst-class:: classref-enumeration-constant
  649. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_SCREEN_CAPTURE** = ``21``
  650. Display server supports reading screen pixels. See :ref:`screen_get_pixel()<class_DisplayServer_method_screen_get_pixel>`.
  651. .. _class_DisplayServer_constant_FEATURE_STATUS_INDICATOR:
  652. .. rst-class:: classref-enumeration-constant
  653. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_STATUS_INDICATOR** = ``22``
  654. Display server supports application status indicators.
  655. .. _class_DisplayServer_constant_FEATURE_NATIVE_HELP:
  656. .. rst-class:: classref-enumeration-constant
  657. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_HELP** = ``23``
  658. Display server supports native help system search callbacks. See :ref:`help_set_search_callbacks()<class_DisplayServer_method_help_set_search_callbacks>`.
  659. .. _class_DisplayServer_constant_FEATURE_NATIVE_DIALOG_INPUT:
  660. .. rst-class:: classref-enumeration-constant
  661. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_DIALOG_INPUT** = ``24``
  662. Display server supports spawning text input dialogs using the operating system's native look-and-feel. See :ref:`dialog_input_text()<class_DisplayServer_method_dialog_input_text>`. **Windows, macOS**
  663. .. _class_DisplayServer_constant_FEATURE_NATIVE_DIALOG_FILE:
  664. .. rst-class:: classref-enumeration-constant
  665. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_DIALOG_FILE** = ``25``
  666. Display server supports spawning dialogs for selecting files or directories using the operating system's native look-and-feel. See :ref:`file_dialog_show()<class_DisplayServer_method_file_dialog_show>`. **Windows, macOS, Linux (X11/Wayland), Android**
  667. .. _class_DisplayServer_constant_FEATURE_NATIVE_DIALOG_FILE_EXTRA:
  668. .. rst-class:: classref-enumeration-constant
  669. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_DIALOG_FILE_EXTRA** = ``26``
  670. The display server supports all features of :ref:`FEATURE_NATIVE_DIALOG_FILE<class_DisplayServer_constant_FEATURE_NATIVE_DIALOG_FILE>`, with the added functionality of Options and native dialog file access to ``res://`` and ``user://`` paths. See :ref:`file_dialog_show()<class_DisplayServer_method_file_dialog_show>` and :ref:`file_dialog_with_options_show()<class_DisplayServer_method_file_dialog_with_options_show>`. **Windows, macOS, Linux (X11/Wayland)**
  671. .. _class_DisplayServer_constant_FEATURE_WINDOW_DRAG:
  672. .. rst-class:: classref-enumeration-constant
  673. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_WINDOW_DRAG** = ``27``
  674. The display server supports initiating window drag and resize operations on demand. See :ref:`window_start_drag()<class_DisplayServer_method_window_start_drag>` and :ref:`window_start_resize()<class_DisplayServer_method_window_start_resize>`.
  675. .. _class_DisplayServer_constant_FEATURE_SCREEN_EXCLUDE_FROM_CAPTURE:
  676. .. rst-class:: classref-enumeration-constant
  677. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_SCREEN_EXCLUDE_FROM_CAPTURE** = ``28``
  678. Display server supports :ref:`WINDOW_FLAG_EXCLUDE_FROM_CAPTURE<class_DisplayServer_constant_WINDOW_FLAG_EXCLUDE_FROM_CAPTURE>` window flag.
  679. .. _class_DisplayServer_constant_FEATURE_WINDOW_EMBEDDING:
  680. .. rst-class:: classref-enumeration-constant
  681. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_WINDOW_EMBEDDING** = ``29``
  682. Display server supports embedding a window from another process. **Windows, Linux (X11)**
  683. .. _class_DisplayServer_constant_FEATURE_NATIVE_DIALOG_FILE_MIME:
  684. .. rst-class:: classref-enumeration-constant
  685. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_DIALOG_FILE_MIME** = ``30``
  686. Native file selection dialog supports MIME types as filters.
  687. .. _class_DisplayServer_constant_FEATURE_EMOJI_AND_SYMBOL_PICKER:
  688. .. rst-class:: classref-enumeration-constant
  689. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_EMOJI_AND_SYMBOL_PICKER** = ``31``
  690. Display server supports system emoji and symbol picker. **Windows, macOS**
  691. .. _class_DisplayServer_constant_FEATURE_NATIVE_COLOR_PICKER:
  692. .. rst-class:: classref-enumeration-constant
  693. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_COLOR_PICKER** = ``32``
  694. Display server supports native color picker. **Linux (X11/Wayland)**
  695. .. _class_DisplayServer_constant_FEATURE_SELF_FITTING_WINDOWS:
  696. .. rst-class:: classref-enumeration-constant
  697. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_SELF_FITTING_WINDOWS** = ``33``
  698. Display server automatically fits popups according to the screen boundaries. Window nodes should not attempt to do that themselves.
  699. .. _class_DisplayServer_constant_FEATURE_ACCESSIBILITY_SCREEN_READER:
  700. .. rst-class:: classref-enumeration-constant
  701. :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_ACCESSIBILITY_SCREEN_READER** = ``34``
  702. Display server supports interaction with screen reader or Braille display. **Linux (X11/Wayland), macOS, Windows**
  703. .. rst-class:: classref-item-separator
  704. ----
  705. .. _enum_DisplayServer_AccessibilityRole:
  706. .. rst-class:: classref-enumeration
  707. enum **AccessibilityRole**: :ref:`๐Ÿ”—<enum_DisplayServer_AccessibilityRole>`
  708. .. _class_DisplayServer_constant_ROLE_UNKNOWN:
  709. .. rst-class:: classref-enumeration-constant
  710. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_UNKNOWN** = ``0``
  711. Unknown or custom role.
  712. .. _class_DisplayServer_constant_ROLE_DEFAULT_BUTTON:
  713. .. rst-class:: classref-enumeration-constant
  714. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_DEFAULT_BUTTON** = ``1``
  715. Default dialog button element.
  716. .. _class_DisplayServer_constant_ROLE_AUDIO:
  717. .. rst-class:: classref-enumeration-constant
  718. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_AUDIO** = ``2``
  719. Audio player element.
  720. .. _class_DisplayServer_constant_ROLE_VIDEO:
  721. .. rst-class:: classref-enumeration-constant
  722. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_VIDEO** = ``3``
  723. Video player element.
  724. .. _class_DisplayServer_constant_ROLE_STATIC_TEXT:
  725. .. rst-class:: classref-enumeration-constant
  726. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_STATIC_TEXT** = ``4``
  727. Non-editable text label.
  728. .. _class_DisplayServer_constant_ROLE_CONTAINER:
  729. .. rst-class:: classref-enumeration-constant
  730. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_CONTAINER** = ``5``
  731. Container element. Elements with this role are used for internal structure and ignored by screen readers.
  732. .. _class_DisplayServer_constant_ROLE_PANEL:
  733. .. rst-class:: classref-enumeration-constant
  734. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_PANEL** = ``6``
  735. Panel container element.
  736. .. _class_DisplayServer_constant_ROLE_BUTTON:
  737. .. rst-class:: classref-enumeration-constant
  738. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_BUTTON** = ``7``
  739. Button element.
  740. .. _class_DisplayServer_constant_ROLE_LINK:
  741. .. rst-class:: classref-enumeration-constant
  742. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_LINK** = ``8``
  743. Link element.
  744. .. _class_DisplayServer_constant_ROLE_CHECK_BOX:
  745. .. rst-class:: classref-enumeration-constant
  746. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_CHECK_BOX** = ``9``
  747. Check box element.
  748. .. _class_DisplayServer_constant_ROLE_RADIO_BUTTON:
  749. .. rst-class:: classref-enumeration-constant
  750. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_RADIO_BUTTON** = ``10``
  751. Radio button element.
  752. .. _class_DisplayServer_constant_ROLE_CHECK_BUTTON:
  753. .. rst-class:: classref-enumeration-constant
  754. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_CHECK_BUTTON** = ``11``
  755. Check button element.
  756. .. _class_DisplayServer_constant_ROLE_SCROLL_BAR:
  757. .. rst-class:: classref-enumeration-constant
  758. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_SCROLL_BAR** = ``12``
  759. Scroll bar element.
  760. .. _class_DisplayServer_constant_ROLE_SCROLL_VIEW:
  761. .. rst-class:: classref-enumeration-constant
  762. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_SCROLL_VIEW** = ``13``
  763. Scroll container element.
  764. .. _class_DisplayServer_constant_ROLE_SPLITTER:
  765. .. rst-class:: classref-enumeration-constant
  766. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_SPLITTER** = ``14``
  767. Container splitter handle element.
  768. .. _class_DisplayServer_constant_ROLE_SLIDER:
  769. .. rst-class:: classref-enumeration-constant
  770. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_SLIDER** = ``15``
  771. Slider element.
  772. .. _class_DisplayServer_constant_ROLE_SPIN_BUTTON:
  773. .. rst-class:: classref-enumeration-constant
  774. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_SPIN_BUTTON** = ``16``
  775. Spin box element.
  776. .. _class_DisplayServer_constant_ROLE_PROGRESS_INDICATOR:
  777. .. rst-class:: classref-enumeration-constant
  778. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_PROGRESS_INDICATOR** = ``17``
  779. Progress indicator element.
  780. .. _class_DisplayServer_constant_ROLE_TEXT_FIELD:
  781. .. rst-class:: classref-enumeration-constant
  782. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TEXT_FIELD** = ``18``
  783. Editable text field element.
  784. .. _class_DisplayServer_constant_ROLE_MULTILINE_TEXT_FIELD:
  785. .. rst-class:: classref-enumeration-constant
  786. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_MULTILINE_TEXT_FIELD** = ``19``
  787. Multiline editable text field element.
  788. .. _class_DisplayServer_constant_ROLE_COLOR_PICKER:
  789. .. rst-class:: classref-enumeration-constant
  790. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_COLOR_PICKER** = ``20``
  791. Color picker element.
  792. .. _class_DisplayServer_constant_ROLE_TABLE:
  793. .. rst-class:: classref-enumeration-constant
  794. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TABLE** = ``21``
  795. Table element.
  796. .. _class_DisplayServer_constant_ROLE_CELL:
  797. .. rst-class:: classref-enumeration-constant
  798. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_CELL** = ``22``
  799. Table/tree cell element.
  800. .. _class_DisplayServer_constant_ROLE_ROW:
  801. .. rst-class:: classref-enumeration-constant
  802. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_ROW** = ``23``
  803. Table/tree row element.
  804. .. _class_DisplayServer_constant_ROLE_ROW_GROUP:
  805. .. rst-class:: classref-enumeration-constant
  806. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_ROW_GROUP** = ``24``
  807. Table/tree row group element.
  808. .. _class_DisplayServer_constant_ROLE_ROW_HEADER:
  809. .. rst-class:: classref-enumeration-constant
  810. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_ROW_HEADER** = ``25``
  811. Table/tree row header element.
  812. .. _class_DisplayServer_constant_ROLE_COLUMN_HEADER:
  813. .. rst-class:: classref-enumeration-constant
  814. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_COLUMN_HEADER** = ``26``
  815. Table/tree column header element.
  816. .. _class_DisplayServer_constant_ROLE_TREE:
  817. .. rst-class:: classref-enumeration-constant
  818. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TREE** = ``27``
  819. Tree view element.
  820. .. _class_DisplayServer_constant_ROLE_TREE_ITEM:
  821. .. rst-class:: classref-enumeration-constant
  822. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TREE_ITEM** = ``28``
  823. Tree view item element.
  824. .. _class_DisplayServer_constant_ROLE_LIST:
  825. .. rst-class:: classref-enumeration-constant
  826. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_LIST** = ``29``
  827. List element.
  828. .. _class_DisplayServer_constant_ROLE_LIST_ITEM:
  829. .. rst-class:: classref-enumeration-constant
  830. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_LIST_ITEM** = ``30``
  831. List item element.
  832. .. _class_DisplayServer_constant_ROLE_LIST_BOX:
  833. .. rst-class:: classref-enumeration-constant
  834. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_LIST_BOX** = ``31``
  835. List view element.
  836. .. _class_DisplayServer_constant_ROLE_LIST_BOX_OPTION:
  837. .. rst-class:: classref-enumeration-constant
  838. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_LIST_BOX_OPTION** = ``32``
  839. List view item element.
  840. .. _class_DisplayServer_constant_ROLE_TAB_BAR:
  841. .. rst-class:: classref-enumeration-constant
  842. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TAB_BAR** = ``33``
  843. Tab bar element.
  844. .. _class_DisplayServer_constant_ROLE_TAB:
  845. .. rst-class:: classref-enumeration-constant
  846. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TAB** = ``34``
  847. Tab bar item element.
  848. .. _class_DisplayServer_constant_ROLE_TAB_PANEL:
  849. .. rst-class:: classref-enumeration-constant
  850. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TAB_PANEL** = ``35``
  851. Tab panel element.
  852. .. _class_DisplayServer_constant_ROLE_MENU_BAR:
  853. .. rst-class:: classref-enumeration-constant
  854. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_MENU_BAR** = ``36``
  855. Menu bar element.
  856. .. _class_DisplayServer_constant_ROLE_MENU:
  857. .. rst-class:: classref-enumeration-constant
  858. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_MENU** = ``37``
  859. Popup menu element.
  860. .. _class_DisplayServer_constant_ROLE_MENU_ITEM:
  861. .. rst-class:: classref-enumeration-constant
  862. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_MENU_ITEM** = ``38``
  863. Popup menu item element.
  864. .. _class_DisplayServer_constant_ROLE_MENU_ITEM_CHECK_BOX:
  865. .. rst-class:: classref-enumeration-constant
  866. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_MENU_ITEM_CHECK_BOX** = ``39``
  867. Popup menu check button item element.
  868. .. _class_DisplayServer_constant_ROLE_MENU_ITEM_RADIO:
  869. .. rst-class:: classref-enumeration-constant
  870. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_MENU_ITEM_RADIO** = ``40``
  871. Popup menu radio button item element.
  872. .. _class_DisplayServer_constant_ROLE_IMAGE:
  873. .. rst-class:: classref-enumeration-constant
  874. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_IMAGE** = ``41``
  875. Image element.
  876. .. _class_DisplayServer_constant_ROLE_WINDOW:
  877. .. rst-class:: classref-enumeration-constant
  878. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_WINDOW** = ``42``
  879. Window element.
  880. .. _class_DisplayServer_constant_ROLE_TITLE_BAR:
  881. .. rst-class:: classref-enumeration-constant
  882. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TITLE_BAR** = ``43``
  883. Embedded window title bar element.
  884. .. _class_DisplayServer_constant_ROLE_DIALOG:
  885. .. rst-class:: classref-enumeration-constant
  886. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_DIALOG** = ``44``
  887. Dialog window element.
  888. .. _class_DisplayServer_constant_ROLE_TOOLTIP:
  889. .. rst-class:: classref-enumeration-constant
  890. :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TOOLTIP** = ``45``
  891. Tooltip element.
  892. .. rst-class:: classref-item-separator
  893. ----
  894. .. _enum_DisplayServer_AccessibilityPopupType:
  895. .. rst-class:: classref-enumeration
  896. enum **AccessibilityPopupType**: :ref:`๐Ÿ”—<enum_DisplayServer_AccessibilityPopupType>`
  897. .. _class_DisplayServer_constant_POPUP_MENU:
  898. .. rst-class:: classref-enumeration-constant
  899. :ref:`AccessibilityPopupType<enum_DisplayServer_AccessibilityPopupType>` **POPUP_MENU** = ``0``
  900. Popup menu.
  901. .. _class_DisplayServer_constant_POPUP_LIST:
  902. .. rst-class:: classref-enumeration-constant
  903. :ref:`AccessibilityPopupType<enum_DisplayServer_AccessibilityPopupType>` **POPUP_LIST** = ``1``
  904. Popup list.
  905. .. _class_DisplayServer_constant_POPUP_TREE:
  906. .. rst-class:: classref-enumeration-constant
  907. :ref:`AccessibilityPopupType<enum_DisplayServer_AccessibilityPopupType>` **POPUP_TREE** = ``2``
  908. Popup tree view.
  909. .. _class_DisplayServer_constant_POPUP_DIALOG:
  910. .. rst-class:: classref-enumeration-constant
  911. :ref:`AccessibilityPopupType<enum_DisplayServer_AccessibilityPopupType>` **POPUP_DIALOG** = ``3``
  912. Popup dialog.
  913. .. rst-class:: classref-item-separator
  914. ----
  915. .. _enum_DisplayServer_AccessibilityFlags:
  916. .. rst-class:: classref-enumeration
  917. enum **AccessibilityFlags**: :ref:`๐Ÿ”—<enum_DisplayServer_AccessibilityFlags>`
  918. .. _class_DisplayServer_constant_FLAG_HIDDEN:
  919. .. rst-class:: classref-enumeration-constant
  920. :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_HIDDEN** = ``0``
  921. Element is hidden for accessibility tools.
  922. .. _class_DisplayServer_constant_FLAG_MULTISELECTABLE:
  923. .. rst-class:: classref-enumeration-constant
  924. :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_MULTISELECTABLE** = ``1``
  925. Element is support multiple item selection.
  926. .. _class_DisplayServer_constant_FLAG_REQUIRED:
  927. .. rst-class:: classref-enumeration-constant
  928. :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_REQUIRED** = ``2``
  929. Element require user input.
  930. .. _class_DisplayServer_constant_FLAG_VISITED:
  931. .. rst-class:: classref-enumeration-constant
  932. :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_VISITED** = ``3``
  933. Element is a visited link.
  934. .. _class_DisplayServer_constant_FLAG_BUSY:
  935. .. rst-class:: classref-enumeration-constant
  936. :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_BUSY** = ``4``
  937. Element content is not ready (e.g. loading).
  938. .. _class_DisplayServer_constant_FLAG_MODAL:
  939. .. rst-class:: classref-enumeration-constant
  940. :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_MODAL** = ``5``
  941. Element is modal window.
  942. .. _class_DisplayServer_constant_FLAG_TOUCH_PASSTHROUGH:
  943. .. rst-class:: classref-enumeration-constant
  944. :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_TOUCH_PASSTHROUGH** = ``6``
  945. Element allows touches to be passed through when a screen reader is in touch exploration mode.
  946. .. _class_DisplayServer_constant_FLAG_READONLY:
  947. .. rst-class:: classref-enumeration-constant
  948. :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_READONLY** = ``7``
  949. Element is text field with selectable but read-only text.
  950. .. _class_DisplayServer_constant_FLAG_DISABLED:
  951. .. rst-class:: classref-enumeration-constant
  952. :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_DISABLED** = ``8``
  953. Element is disabled.
  954. .. _class_DisplayServer_constant_FLAG_CLIPS_CHILDREN:
  955. .. rst-class:: classref-enumeration-constant
  956. :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_CLIPS_CHILDREN** = ``9``
  957. Element clips children.
  958. .. rst-class:: classref-item-separator
  959. ----
  960. .. _enum_DisplayServer_AccessibilityAction:
  961. .. rst-class:: classref-enumeration
  962. enum **AccessibilityAction**: :ref:`๐Ÿ”—<enum_DisplayServer_AccessibilityAction>`
  963. .. _class_DisplayServer_constant_ACTION_CLICK:
  964. .. rst-class:: classref-enumeration-constant
  965. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_CLICK** = ``0``
  966. Single click action, callback argument is not set.
  967. .. _class_DisplayServer_constant_ACTION_FOCUS:
  968. .. rst-class:: classref-enumeration-constant
  969. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_FOCUS** = ``1``
  970. Focus action, callback argument is not set.
  971. .. _class_DisplayServer_constant_ACTION_BLUR:
  972. .. rst-class:: classref-enumeration-constant
  973. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_BLUR** = ``2``
  974. Blur action, callback argument is not set.
  975. .. _class_DisplayServer_constant_ACTION_COLLAPSE:
  976. .. rst-class:: classref-enumeration-constant
  977. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_COLLAPSE** = ``3``
  978. Collapse action, callback argument is not set.
  979. .. _class_DisplayServer_constant_ACTION_EXPAND:
  980. .. rst-class:: classref-enumeration-constant
  981. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_EXPAND** = ``4``
  982. Expand action, callback argument is not set.
  983. .. _class_DisplayServer_constant_ACTION_DECREMENT:
  984. .. rst-class:: classref-enumeration-constant
  985. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_DECREMENT** = ``5``
  986. Decrement action, callback argument is not set.
  987. .. _class_DisplayServer_constant_ACTION_INCREMENT:
  988. .. rst-class:: classref-enumeration-constant
  989. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_INCREMENT** = ``6``
  990. Increment action, callback argument is not set.
  991. .. _class_DisplayServer_constant_ACTION_HIDE_TOOLTIP:
  992. .. rst-class:: classref-enumeration-constant
  993. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_HIDE_TOOLTIP** = ``7``
  994. Hide tooltip action, callback argument is not set.
  995. .. _class_DisplayServer_constant_ACTION_SHOW_TOOLTIP:
  996. .. rst-class:: classref-enumeration-constant
  997. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SHOW_TOOLTIP** = ``8``
  998. Show tooltip action, callback argument is not set.
  999. .. _class_DisplayServer_constant_ACTION_SET_TEXT_SELECTION:
  1000. .. rst-class:: classref-enumeration-constant
  1001. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SET_TEXT_SELECTION** = ``9``
  1002. Set text selection action, callback argument is set to :ref:`Dictionary<class_Dictionary>` with the following keys:
  1003. - ``"start_element"`` accessibility element of the selection start.
  1004. - ``"start_char"`` character offset relative to the accessibility element of the selection start.
  1005. - ``"end_element"`` accessibility element of the selection end.
  1006. - ``"end_char"`` character offset relative to the accessibility element of the selection end.
  1007. .. _class_DisplayServer_constant_ACTION_REPLACE_SELECTED_TEXT:
  1008. .. rst-class:: classref-enumeration-constant
  1009. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_REPLACE_SELECTED_TEXT** = ``10``
  1010. Replace text action, callback argument is set to :ref:`String<class_String>` with the replacement text.
  1011. .. _class_DisplayServer_constant_ACTION_SCROLL_BACKWARD:
  1012. .. rst-class:: classref-enumeration-constant
  1013. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_BACKWARD** = ``11``
  1014. Scroll backward action, callback argument is not set.
  1015. .. _class_DisplayServer_constant_ACTION_SCROLL_DOWN:
  1016. .. rst-class:: classref-enumeration-constant
  1017. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_DOWN** = ``12``
  1018. Scroll down action, callback argument is not set.
  1019. .. _class_DisplayServer_constant_ACTION_SCROLL_FORWARD:
  1020. .. rst-class:: classref-enumeration-constant
  1021. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_FORWARD** = ``13``
  1022. Scroll forward action, callback argument is not set.
  1023. .. _class_DisplayServer_constant_ACTION_SCROLL_LEFT:
  1024. .. rst-class:: classref-enumeration-constant
  1025. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_LEFT** = ``14``
  1026. Scroll left action, callback argument is not set.
  1027. .. _class_DisplayServer_constant_ACTION_SCROLL_RIGHT:
  1028. .. rst-class:: classref-enumeration-constant
  1029. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_RIGHT** = ``15``
  1030. Scroll right action, callback argument is not set.
  1031. .. _class_DisplayServer_constant_ACTION_SCROLL_UP:
  1032. .. rst-class:: classref-enumeration-constant
  1033. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_UP** = ``16``
  1034. Scroll up action, callback argument is not set.
  1035. .. _class_DisplayServer_constant_ACTION_SCROLL_INTO_VIEW:
  1036. .. rst-class:: classref-enumeration-constant
  1037. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_INTO_VIEW** = ``17``
  1038. Scroll into view action, callback argument is not set.
  1039. .. _class_DisplayServer_constant_ACTION_SCROLL_TO_POINT:
  1040. .. rst-class:: classref-enumeration-constant
  1041. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_TO_POINT** = ``18``
  1042. Scroll to point action, callback argument is set to :ref:`Vector2<class_Vector2>` with the relative point coordinates.
  1043. .. _class_DisplayServer_constant_ACTION_SET_SCROLL_OFFSET:
  1044. .. rst-class:: classref-enumeration-constant
  1045. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SET_SCROLL_OFFSET** = ``19``
  1046. Set scroll offset action, callback argument is set to :ref:`Vector2<class_Vector2>` with the scroll offset.
  1047. .. _class_DisplayServer_constant_ACTION_SET_VALUE:
  1048. .. rst-class:: classref-enumeration-constant
  1049. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SET_VALUE** = ``20``
  1050. Set value action, callback argument is set to :ref:`String<class_String>` or number with the new value.
  1051. .. _class_DisplayServer_constant_ACTION_SHOW_CONTEXT_MENU:
  1052. .. rst-class:: classref-enumeration-constant
  1053. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SHOW_CONTEXT_MENU** = ``21``
  1054. Show context menu action, callback argument is not set.
  1055. .. _class_DisplayServer_constant_ACTION_CUSTOM:
  1056. .. rst-class:: classref-enumeration-constant
  1057. :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_CUSTOM** = ``22``
  1058. Custom action, callback argument is set to the integer action ID.
  1059. .. rst-class:: classref-item-separator
  1060. ----
  1061. .. _enum_DisplayServer_AccessibilityLiveMode:
  1062. .. rst-class:: classref-enumeration
  1063. enum **AccessibilityLiveMode**: :ref:`๐Ÿ”—<enum_DisplayServer_AccessibilityLiveMode>`
  1064. .. _class_DisplayServer_constant_LIVE_OFF:
  1065. .. rst-class:: classref-enumeration-constant
  1066. :ref:`AccessibilityLiveMode<enum_DisplayServer_AccessibilityLiveMode>` **LIVE_OFF** = ``0``
  1067. Indicates that updates to the live region should not be presented.
  1068. .. _class_DisplayServer_constant_LIVE_POLITE:
  1069. .. rst-class:: classref-enumeration-constant
  1070. :ref:`AccessibilityLiveMode<enum_DisplayServer_AccessibilityLiveMode>` **LIVE_POLITE** = ``1``
  1071. Indicates that updates to the live region should be presented at the next opportunity (for example at the end of speaking the current sentence).
  1072. .. _class_DisplayServer_constant_LIVE_ASSERTIVE:
  1073. .. rst-class:: classref-enumeration-constant
  1074. :ref:`AccessibilityLiveMode<enum_DisplayServer_AccessibilityLiveMode>` **LIVE_ASSERTIVE** = ``2``
  1075. Indicates that updates to the live region have the highest priority and should be presented immediately.
  1076. .. rst-class:: classref-item-separator
  1077. ----
  1078. .. _enum_DisplayServer_MouseMode:
  1079. .. rst-class:: classref-enumeration
  1080. enum **MouseMode**: :ref:`๐Ÿ”—<enum_DisplayServer_MouseMode>`
  1081. .. _class_DisplayServer_constant_MOUSE_MODE_VISIBLE:
  1082. .. rst-class:: classref-enumeration-constant
  1083. :ref:`MouseMode<enum_DisplayServer_MouseMode>` **MOUSE_MODE_VISIBLE** = ``0``
  1084. Makes the mouse cursor visible if it is hidden.
  1085. .. _class_DisplayServer_constant_MOUSE_MODE_HIDDEN:
  1086. .. rst-class:: classref-enumeration-constant
  1087. :ref:`MouseMode<enum_DisplayServer_MouseMode>` **MOUSE_MODE_HIDDEN** = ``1``
  1088. Makes the mouse cursor hidden if it is visible.
  1089. .. _class_DisplayServer_constant_MOUSE_MODE_CAPTURED:
  1090. .. rst-class:: classref-enumeration-constant
  1091. :ref:`MouseMode<enum_DisplayServer_MouseMode>` **MOUSE_MODE_CAPTURED** = ``2``
  1092. Captures the mouse. The mouse will be hidden and its position locked at the center of the window manager's window.
  1093. \ **Note:** If you want to process the mouse's movement in this mode, you need to use :ref:`InputEventMouseMotion.relative<class_InputEventMouseMotion_property_relative>`.
  1094. .. _class_DisplayServer_constant_MOUSE_MODE_CONFINED:
  1095. .. rst-class:: classref-enumeration-constant
  1096. :ref:`MouseMode<enum_DisplayServer_MouseMode>` **MOUSE_MODE_CONFINED** = ``3``
  1097. Confines the mouse cursor to the game window, and make it visible.
  1098. .. _class_DisplayServer_constant_MOUSE_MODE_CONFINED_HIDDEN:
  1099. .. rst-class:: classref-enumeration-constant
  1100. :ref:`MouseMode<enum_DisplayServer_MouseMode>` **MOUSE_MODE_CONFINED_HIDDEN** = ``4``
  1101. Confines the mouse cursor to the game window, and make it hidden.
  1102. .. _class_DisplayServer_constant_MOUSE_MODE_MAX:
  1103. .. rst-class:: classref-enumeration-constant
  1104. :ref:`MouseMode<enum_DisplayServer_MouseMode>` **MOUSE_MODE_MAX** = ``5``
  1105. Max value of the :ref:`MouseMode<enum_DisplayServer_MouseMode>`.
  1106. .. rst-class:: classref-item-separator
  1107. ----
  1108. .. _enum_DisplayServer_ScreenOrientation:
  1109. .. rst-class:: classref-enumeration
  1110. enum **ScreenOrientation**: :ref:`๐Ÿ”—<enum_DisplayServer_ScreenOrientation>`
  1111. .. _class_DisplayServer_constant_SCREEN_LANDSCAPE:
  1112. .. rst-class:: classref-enumeration-constant
  1113. :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **SCREEN_LANDSCAPE** = ``0``
  1114. Default landscape orientation.
  1115. .. _class_DisplayServer_constant_SCREEN_PORTRAIT:
  1116. .. rst-class:: classref-enumeration-constant
  1117. :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **SCREEN_PORTRAIT** = ``1``
  1118. Default portrait orientation.
  1119. .. _class_DisplayServer_constant_SCREEN_REVERSE_LANDSCAPE:
  1120. .. rst-class:: classref-enumeration-constant
  1121. :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **SCREEN_REVERSE_LANDSCAPE** = ``2``
  1122. Reverse landscape orientation (upside down).
  1123. .. _class_DisplayServer_constant_SCREEN_REVERSE_PORTRAIT:
  1124. .. rst-class:: classref-enumeration-constant
  1125. :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **SCREEN_REVERSE_PORTRAIT** = ``3``
  1126. Reverse portrait orientation (upside down).
  1127. .. _class_DisplayServer_constant_SCREEN_SENSOR_LANDSCAPE:
  1128. .. rst-class:: classref-enumeration-constant
  1129. :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **SCREEN_SENSOR_LANDSCAPE** = ``4``
  1130. Automatic landscape orientation (default or reverse depending on sensor).
  1131. .. _class_DisplayServer_constant_SCREEN_SENSOR_PORTRAIT:
  1132. .. rst-class:: classref-enumeration-constant
  1133. :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **SCREEN_SENSOR_PORTRAIT** = ``5``
  1134. Automatic portrait orientation (default or reverse depending on sensor).
  1135. .. _class_DisplayServer_constant_SCREEN_SENSOR:
  1136. .. rst-class:: classref-enumeration-constant
  1137. :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **SCREEN_SENSOR** = ``6``
  1138. Automatic landscape or portrait orientation (default or reverse depending on sensor).
  1139. .. rst-class:: classref-item-separator
  1140. ----
  1141. .. _enum_DisplayServer_VirtualKeyboardType:
  1142. .. rst-class:: classref-enumeration
  1143. enum **VirtualKeyboardType**: :ref:`๐Ÿ”—<enum_DisplayServer_VirtualKeyboardType>`
  1144. .. _class_DisplayServer_constant_KEYBOARD_TYPE_DEFAULT:
  1145. .. rst-class:: classref-enumeration-constant
  1146. :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_DEFAULT** = ``0``
  1147. Default text virtual keyboard.
  1148. .. _class_DisplayServer_constant_KEYBOARD_TYPE_MULTILINE:
  1149. .. rst-class:: classref-enumeration-constant
  1150. :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_MULTILINE** = ``1``
  1151. Multiline virtual keyboard.
  1152. .. _class_DisplayServer_constant_KEYBOARD_TYPE_NUMBER:
  1153. .. rst-class:: classref-enumeration-constant
  1154. :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_NUMBER** = ``2``
  1155. Virtual number keypad, useful for PIN entry.
  1156. .. _class_DisplayServer_constant_KEYBOARD_TYPE_NUMBER_DECIMAL:
  1157. .. rst-class:: classref-enumeration-constant
  1158. :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_NUMBER_DECIMAL** = ``3``
  1159. Virtual number keypad, useful for entering fractional numbers.
  1160. .. _class_DisplayServer_constant_KEYBOARD_TYPE_PHONE:
  1161. .. rst-class:: classref-enumeration-constant
  1162. :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_PHONE** = ``4``
  1163. Virtual phone number keypad.
  1164. .. _class_DisplayServer_constant_KEYBOARD_TYPE_EMAIL_ADDRESS:
  1165. .. rst-class:: classref-enumeration-constant
  1166. :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_EMAIL_ADDRESS** = ``5``
  1167. Virtual keyboard with additional keys to assist with typing email addresses.
  1168. .. _class_DisplayServer_constant_KEYBOARD_TYPE_PASSWORD:
  1169. .. rst-class:: classref-enumeration-constant
  1170. :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_PASSWORD** = ``6``
  1171. Virtual keyboard for entering a password. On most platforms, this should disable autocomplete and autocapitalization.
  1172. \ **Note:** This is not supported on Web. Instead, this behaves identically to :ref:`KEYBOARD_TYPE_DEFAULT<class_DisplayServer_constant_KEYBOARD_TYPE_DEFAULT>`.
  1173. .. _class_DisplayServer_constant_KEYBOARD_TYPE_URL:
  1174. .. rst-class:: classref-enumeration-constant
  1175. :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_URL** = ``7``
  1176. Virtual keyboard with additional keys to assist with typing URLs.
  1177. .. rst-class:: classref-item-separator
  1178. ----
  1179. .. _enum_DisplayServer_CursorShape:
  1180. .. rst-class:: classref-enumeration
  1181. enum **CursorShape**: :ref:`๐Ÿ”—<enum_DisplayServer_CursorShape>`
  1182. .. _class_DisplayServer_constant_CURSOR_ARROW:
  1183. .. rst-class:: classref-enumeration-constant
  1184. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_ARROW** = ``0``
  1185. Arrow cursor shape. This is the default when not pointing anything that overrides the mouse cursor, such as a :ref:`LineEdit<class_LineEdit>` or :ref:`TextEdit<class_TextEdit>`.
  1186. .. _class_DisplayServer_constant_CURSOR_IBEAM:
  1187. .. rst-class:: classref-enumeration-constant
  1188. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_IBEAM** = ``1``
  1189. I-beam cursor shape. This is used by default when hovering a control that accepts text input, such as :ref:`LineEdit<class_LineEdit>` or :ref:`TextEdit<class_TextEdit>`.
  1190. .. _class_DisplayServer_constant_CURSOR_POINTING_HAND:
  1191. .. rst-class:: classref-enumeration-constant
  1192. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_POINTING_HAND** = ``2``
  1193. Pointing hand cursor shape. This is used by default when hovering a :ref:`LinkButton<class_LinkButton>` or a URL tag in a :ref:`RichTextLabel<class_RichTextLabel>`.
  1194. .. _class_DisplayServer_constant_CURSOR_CROSS:
  1195. .. rst-class:: classref-enumeration-constant
  1196. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_CROSS** = ``3``
  1197. Crosshair cursor. This is intended to be displayed when the user needs precise aim over an element, such as a rectangle selection tool or a color picker.
  1198. .. _class_DisplayServer_constant_CURSOR_WAIT:
  1199. .. rst-class:: classref-enumeration-constant
  1200. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_WAIT** = ``4``
  1201. Wait cursor. On most cursor themes, this displays a spinning icon *besides* the arrow. Intended to be used for non-blocking operations (when the user can do something else at the moment). See also :ref:`CURSOR_BUSY<class_DisplayServer_constant_CURSOR_BUSY>`.
  1202. .. _class_DisplayServer_constant_CURSOR_BUSY:
  1203. .. rst-class:: classref-enumeration-constant
  1204. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_BUSY** = ``5``
  1205. Wait cursor. On most cursor themes, this *replaces* the arrow with a spinning icon. Intended to be used for blocking operations (when the user can't do anything else at the moment). See also :ref:`CURSOR_WAIT<class_DisplayServer_constant_CURSOR_WAIT>`.
  1206. .. _class_DisplayServer_constant_CURSOR_DRAG:
  1207. .. rst-class:: classref-enumeration-constant
  1208. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_DRAG** = ``6``
  1209. Dragging hand cursor. This is displayed during drag-and-drop operations. See also :ref:`CURSOR_CAN_DROP<class_DisplayServer_constant_CURSOR_CAN_DROP>`.
  1210. .. _class_DisplayServer_constant_CURSOR_CAN_DROP:
  1211. .. rst-class:: classref-enumeration-constant
  1212. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_CAN_DROP** = ``7``
  1213. "Can drop" cursor. This is displayed during drag-and-drop operations if hovering over a :ref:`Control<class_Control>` that can accept the drag-and-drop event. On most cursor themes, this displays a dragging hand with an arrow symbol besides it. See also :ref:`CURSOR_DRAG<class_DisplayServer_constant_CURSOR_DRAG>`.
  1214. .. _class_DisplayServer_constant_CURSOR_FORBIDDEN:
  1215. .. rst-class:: classref-enumeration-constant
  1216. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_FORBIDDEN** = ``8``
  1217. Forbidden cursor. This is displayed during drag-and-drop operations if the hovered :ref:`Control<class_Control>` can't accept the drag-and-drop event.
  1218. .. _class_DisplayServer_constant_CURSOR_VSIZE:
  1219. .. rst-class:: classref-enumeration-constant
  1220. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_VSIZE** = ``9``
  1221. Vertical resize cursor. Intended to be displayed when the hovered :ref:`Control<class_Control>` can be vertically resized using the mouse. See also :ref:`CURSOR_VSPLIT<class_DisplayServer_constant_CURSOR_VSPLIT>`.
  1222. .. _class_DisplayServer_constant_CURSOR_HSIZE:
  1223. .. rst-class:: classref-enumeration-constant
  1224. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_HSIZE** = ``10``
  1225. Horizontal resize cursor. Intended to be displayed when the hovered :ref:`Control<class_Control>` can be horizontally resized using the mouse. See also :ref:`CURSOR_HSPLIT<class_DisplayServer_constant_CURSOR_HSPLIT>`.
  1226. .. _class_DisplayServer_constant_CURSOR_BDIAGSIZE:
  1227. .. rst-class:: classref-enumeration-constant
  1228. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_BDIAGSIZE** = ``11``
  1229. Secondary diagonal resize cursor (top-right/bottom-left). Intended to be displayed when the hovered :ref:`Control<class_Control>` can be resized on both axes at once using the mouse.
  1230. .. _class_DisplayServer_constant_CURSOR_FDIAGSIZE:
  1231. .. rst-class:: classref-enumeration-constant
  1232. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_FDIAGSIZE** = ``12``
  1233. Main diagonal resize cursor (top-left/bottom-right). Intended to be displayed when the hovered :ref:`Control<class_Control>` can be resized on both axes at once using the mouse.
  1234. .. _class_DisplayServer_constant_CURSOR_MOVE:
  1235. .. rst-class:: classref-enumeration-constant
  1236. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_MOVE** = ``13``
  1237. Move cursor. Intended to be displayed when the hovered :ref:`Control<class_Control>` can be moved using the mouse.
  1238. .. _class_DisplayServer_constant_CURSOR_VSPLIT:
  1239. .. rst-class:: classref-enumeration-constant
  1240. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_VSPLIT** = ``14``
  1241. Vertical split cursor. This is displayed when hovering a :ref:`Control<class_Control>` with splits that can be vertically resized using the mouse, such as :ref:`VSplitContainer<class_VSplitContainer>`. On some cursor themes, this cursor may have the same appearance as :ref:`CURSOR_VSIZE<class_DisplayServer_constant_CURSOR_VSIZE>`.
  1242. .. _class_DisplayServer_constant_CURSOR_HSPLIT:
  1243. .. rst-class:: classref-enumeration-constant
  1244. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_HSPLIT** = ``15``
  1245. Horizontal split cursor. This is displayed when hovering a :ref:`Control<class_Control>` with splits that can be horizontally resized using the mouse, such as :ref:`HSplitContainer<class_HSplitContainer>`. On some cursor themes, this cursor may have the same appearance as :ref:`CURSOR_HSIZE<class_DisplayServer_constant_CURSOR_HSIZE>`.
  1246. .. _class_DisplayServer_constant_CURSOR_HELP:
  1247. .. rst-class:: classref-enumeration-constant
  1248. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_HELP** = ``16``
  1249. Help cursor. On most cursor themes, this displays a question mark icon instead of the mouse cursor. Intended to be used when the user has requested help on the next element that will be clicked.
  1250. .. _class_DisplayServer_constant_CURSOR_MAX:
  1251. .. rst-class:: classref-enumeration-constant
  1252. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_MAX** = ``17``
  1253. Represents the size of the :ref:`CursorShape<enum_DisplayServer_CursorShape>` enum.
  1254. .. rst-class:: classref-item-separator
  1255. ----
  1256. .. _enum_DisplayServer_FileDialogMode:
  1257. .. rst-class:: classref-enumeration
  1258. enum **FileDialogMode**: :ref:`๐Ÿ”—<enum_DisplayServer_FileDialogMode>`
  1259. .. _class_DisplayServer_constant_FILE_DIALOG_MODE_OPEN_FILE:
  1260. .. rst-class:: classref-enumeration-constant
  1261. :ref:`FileDialogMode<enum_DisplayServer_FileDialogMode>` **FILE_DIALOG_MODE_OPEN_FILE** = ``0``
  1262. The native file dialog allows selecting one, and only one file.
  1263. .. _class_DisplayServer_constant_FILE_DIALOG_MODE_OPEN_FILES:
  1264. .. rst-class:: classref-enumeration-constant
  1265. :ref:`FileDialogMode<enum_DisplayServer_FileDialogMode>` **FILE_DIALOG_MODE_OPEN_FILES** = ``1``
  1266. The native file dialog allows selecting multiple files.
  1267. .. _class_DisplayServer_constant_FILE_DIALOG_MODE_OPEN_DIR:
  1268. .. rst-class:: classref-enumeration-constant
  1269. :ref:`FileDialogMode<enum_DisplayServer_FileDialogMode>` **FILE_DIALOG_MODE_OPEN_DIR** = ``2``
  1270. The native file dialog only allows selecting a directory, disallowing the selection of any file.
  1271. .. _class_DisplayServer_constant_FILE_DIALOG_MODE_OPEN_ANY:
  1272. .. rst-class:: classref-enumeration-constant
  1273. :ref:`FileDialogMode<enum_DisplayServer_FileDialogMode>` **FILE_DIALOG_MODE_OPEN_ANY** = ``3``
  1274. The native file dialog allows selecting one file or directory.
  1275. .. _class_DisplayServer_constant_FILE_DIALOG_MODE_SAVE_FILE:
  1276. .. rst-class:: classref-enumeration-constant
  1277. :ref:`FileDialogMode<enum_DisplayServer_FileDialogMode>` **FILE_DIALOG_MODE_SAVE_FILE** = ``4``
  1278. The native file dialog will warn when a file exists.
  1279. .. rst-class:: classref-item-separator
  1280. ----
  1281. .. _enum_DisplayServer_WindowMode:
  1282. .. rst-class:: classref-enumeration
  1283. enum **WindowMode**: :ref:`๐Ÿ”—<enum_DisplayServer_WindowMode>`
  1284. .. _class_DisplayServer_constant_WINDOW_MODE_WINDOWED:
  1285. .. rst-class:: classref-enumeration-constant
  1286. :ref:`WindowMode<enum_DisplayServer_WindowMode>` **WINDOW_MODE_WINDOWED** = ``0``
  1287. Windowed mode, i.e. :ref:`Window<class_Window>` doesn't occupy the whole screen (unless set to the size of the screen).
  1288. .. _class_DisplayServer_constant_WINDOW_MODE_MINIMIZED:
  1289. .. rst-class:: classref-enumeration-constant
  1290. :ref:`WindowMode<enum_DisplayServer_WindowMode>` **WINDOW_MODE_MINIMIZED** = ``1``
  1291. Minimized window mode, i.e. :ref:`Window<class_Window>` is not visible and available on window manager's window list. Normally happens when the minimize button is pressed.
  1292. .. _class_DisplayServer_constant_WINDOW_MODE_MAXIMIZED:
  1293. .. rst-class:: classref-enumeration-constant
  1294. :ref:`WindowMode<enum_DisplayServer_WindowMode>` **WINDOW_MODE_MAXIMIZED** = ``2``
  1295. Maximized window mode, i.e. :ref:`Window<class_Window>` will occupy whole screen area except task bar and still display its borders. Normally happens when the maximize button is pressed.
  1296. .. _class_DisplayServer_constant_WINDOW_MODE_FULLSCREEN:
  1297. .. rst-class:: classref-enumeration-constant
  1298. :ref:`WindowMode<enum_DisplayServer_WindowMode>` **WINDOW_MODE_FULLSCREEN** = ``3``
  1299. Full screen mode with full multi-window support.
  1300. Full screen window covers the entire display area of a screen and has no decorations. The display's video mode is not changed.
  1301. \ **On Android:** This enables immersive mode.
  1302. \ **On macOS:** A new desktop is used to display the running project.
  1303. \ **Note:** Regardless of the platform, enabling full screen will change the window size to match the monitor's size. Therefore, make sure your project supports :doc:`multiple resolutions <../tutorials/rendering/multiple_resolutions>` when enabling full screen mode.
  1304. .. _class_DisplayServer_constant_WINDOW_MODE_EXCLUSIVE_FULLSCREEN:
  1305. .. rst-class:: classref-enumeration-constant
  1306. :ref:`WindowMode<enum_DisplayServer_WindowMode>` **WINDOW_MODE_EXCLUSIVE_FULLSCREEN** = ``4``
  1307. A single window full screen mode. This mode has less overhead, but only one window can be open on a given screen at a time (opening a child window or application switching will trigger a full screen transition).
  1308. Full screen window covers the entire display area of a screen and has no border or decorations. The display's video mode is not changed.
  1309. \ **Note:** This mode might not work with screen recording software.
  1310. \ **On Android:** This enables immersive mode.
  1311. \ **On Windows:** Depending on video driver, full screen transition might cause screens to go black for a moment.
  1312. \ **On macOS:** A new desktop is used to display the running project. Exclusive full screen mode prevents Dock and Menu from showing up when the mouse pointer is hovering the edge of the screen.
  1313. \ **On Linux (X11):** Exclusive full screen mode bypasses compositor.
  1314. \ **On Linux (Wayland):** Equivalent to :ref:`WINDOW_MODE_FULLSCREEN<class_DisplayServer_constant_WINDOW_MODE_FULLSCREEN>`.
  1315. \ **Note:** Regardless of the platform, enabling full screen will change the window size to match the monitor's size. Therefore, make sure your project supports :doc:`multiple resolutions <../tutorials/rendering/multiple_resolutions>` when enabling full screen mode.
  1316. .. rst-class:: classref-item-separator
  1317. ----
  1318. .. _enum_DisplayServer_WindowFlags:
  1319. .. rst-class:: classref-enumeration
  1320. enum **WindowFlags**: :ref:`๐Ÿ”—<enum_DisplayServer_WindowFlags>`
  1321. .. _class_DisplayServer_constant_WINDOW_FLAG_RESIZE_DISABLED:
  1322. .. rst-class:: classref-enumeration-constant
  1323. :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_RESIZE_DISABLED** = ``0``
  1324. The window can't be resized by dragging its resize grip. It's still possible to resize the window using :ref:`window_set_size()<class_DisplayServer_method_window_set_size>`. This flag is ignored for full screen windows.
  1325. .. _class_DisplayServer_constant_WINDOW_FLAG_BORDERLESS:
  1326. .. rst-class:: classref-enumeration-constant
  1327. :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_BORDERLESS** = ``1``
  1328. The window do not have native title bar and other decorations. This flag is ignored for full-screen windows.
  1329. .. _class_DisplayServer_constant_WINDOW_FLAG_ALWAYS_ON_TOP:
  1330. .. rst-class:: classref-enumeration-constant
  1331. :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_ALWAYS_ON_TOP** = ``2``
  1332. The window is floating on top of all other windows. This flag is ignored for full-screen windows.
  1333. .. _class_DisplayServer_constant_WINDOW_FLAG_TRANSPARENT:
  1334. .. rst-class:: classref-enumeration-constant
  1335. :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_TRANSPARENT** = ``3``
  1336. The window background can be transparent.
  1337. \ **Note:** This flag has no effect if :ref:`is_window_transparency_available()<class_DisplayServer_method_is_window_transparency_available>` returns ``false``.
  1338. \ **Note:** Transparency support is implemented on Android, Linux (X11/Wayland), macOS, and Windows, but availability might vary depending on GPU driver, display manager, and compositor capabilities.
  1339. .. _class_DisplayServer_constant_WINDOW_FLAG_NO_FOCUS:
  1340. .. rst-class:: classref-enumeration-constant
  1341. :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_NO_FOCUS** = ``4``
  1342. The window can't be focused. No-focus window will ignore all input, except mouse clicks.
  1343. .. _class_DisplayServer_constant_WINDOW_FLAG_POPUP:
  1344. .. rst-class:: classref-enumeration-constant
  1345. :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_POPUP** = ``5``
  1346. Window is part of menu or :ref:`OptionButton<class_OptionButton>` dropdown. This flag can't be changed when the window is visible. An active popup window will exclusively receive all input, without stealing focus from its parent. Popup windows are automatically closed when uses click outside it, or when an application is switched. Popup window must have transient parent set (see :ref:`window_set_transient()<class_DisplayServer_method_window_set_transient>`).
  1347. .. _class_DisplayServer_constant_WINDOW_FLAG_EXTEND_TO_TITLE:
  1348. .. rst-class:: classref-enumeration-constant
  1349. :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_EXTEND_TO_TITLE** = ``6``
  1350. Window content is expanded to the full size of the window. Unlike borderless window, the frame is left intact and can be used to resize the window, title bar is transparent, but have minimize/maximize/close buttons.
  1351. Use :ref:`window_set_window_buttons_offset()<class_DisplayServer_method_window_set_window_buttons_offset>` to adjust minimize/maximize/close buttons offset.
  1352. Use :ref:`window_get_safe_title_margins()<class_DisplayServer_method_window_get_safe_title_margins>` to determine area under the title bar that is not covered by decorations.
  1353. \ **Note:** This flag is implemented only on macOS.
  1354. .. _class_DisplayServer_constant_WINDOW_FLAG_MOUSE_PASSTHROUGH:
  1355. .. rst-class:: classref-enumeration-constant
  1356. :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_MOUSE_PASSTHROUGH** = ``7``
  1357. All mouse events are passed to the underlying window of the same application.
  1358. .. _class_DisplayServer_constant_WINDOW_FLAG_SHARP_CORNERS:
  1359. .. rst-class:: classref-enumeration-constant
  1360. :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_SHARP_CORNERS** = ``8``
  1361. Window style is overridden, forcing sharp corners.
  1362. \ **Note:** This flag is implemented only on Windows (11).
  1363. .. _class_DisplayServer_constant_WINDOW_FLAG_EXCLUDE_FROM_CAPTURE:
  1364. .. rst-class:: classref-enumeration-constant
  1365. :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_EXCLUDE_FROM_CAPTURE** = ``9``
  1366. Window is excluded from screenshots taken by :ref:`screen_get_image()<class_DisplayServer_method_screen_get_image>`, :ref:`screen_get_image_rect()<class_DisplayServer_method_screen_get_image_rect>`, and :ref:`screen_get_pixel()<class_DisplayServer_method_screen_get_pixel>`.
  1367. \ **Note:** This flag is implemented on macOS and Windows.
  1368. \ **Note:** Setting this flag will prevent standard screenshot methods from capturing a window image, but does **NOT** guarantee that other apps won't be able to capture an image. It should not be used as a DRM or security measure.
  1369. .. _class_DisplayServer_constant_WINDOW_FLAG_POPUP_WM_HINT:
  1370. .. rst-class:: classref-enumeration-constant
  1371. :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_POPUP_WM_HINT** = ``10``
  1372. Signals the window manager that this window is supposed to be an implementation-defined "popup" (usually a floating, borderless, untileable and immovable child window).
  1373. .. _class_DisplayServer_constant_WINDOW_FLAG_MINIMIZE_DISABLED:
  1374. .. rst-class:: classref-enumeration-constant
  1375. :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_MINIMIZE_DISABLED** = ``11``
  1376. Window minimize button is disabled.
  1377. \ **Note:** This flag is implemented on macOS and Windows.
  1378. .. _class_DisplayServer_constant_WINDOW_FLAG_MAXIMIZE_DISABLED:
  1379. .. rst-class:: classref-enumeration-constant
  1380. :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_MAXIMIZE_DISABLED** = ``12``
  1381. Window maximize button is disabled.
  1382. \ **Note:** This flag is implemented on macOS and Windows.
  1383. .. _class_DisplayServer_constant_WINDOW_FLAG_MAX:
  1384. .. rst-class:: classref-enumeration-constant
  1385. :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_MAX** = ``13``
  1386. Max value of the :ref:`WindowFlags<enum_DisplayServer_WindowFlags>`.
  1387. .. rst-class:: classref-item-separator
  1388. ----
  1389. .. _enum_DisplayServer_WindowEvent:
  1390. .. rst-class:: classref-enumeration
  1391. enum **WindowEvent**: :ref:`๐Ÿ”—<enum_DisplayServer_WindowEvent>`
  1392. .. _class_DisplayServer_constant_WINDOW_EVENT_MOUSE_ENTER:
  1393. .. rst-class:: classref-enumeration-constant
  1394. :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_MOUSE_ENTER** = ``0``
  1395. Sent when the mouse pointer enters the window.
  1396. .. _class_DisplayServer_constant_WINDOW_EVENT_MOUSE_EXIT:
  1397. .. rst-class:: classref-enumeration-constant
  1398. :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_MOUSE_EXIT** = ``1``
  1399. Sent when the mouse pointer exits the window.
  1400. .. _class_DisplayServer_constant_WINDOW_EVENT_FOCUS_IN:
  1401. .. rst-class:: classref-enumeration-constant
  1402. :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_FOCUS_IN** = ``2``
  1403. Sent when the window grabs focus.
  1404. .. _class_DisplayServer_constant_WINDOW_EVENT_FOCUS_OUT:
  1405. .. rst-class:: classref-enumeration-constant
  1406. :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_FOCUS_OUT** = ``3``
  1407. Sent when the window loses focus.
  1408. .. _class_DisplayServer_constant_WINDOW_EVENT_CLOSE_REQUEST:
  1409. .. rst-class:: classref-enumeration-constant
  1410. :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_CLOSE_REQUEST** = ``4``
  1411. Sent when the user has attempted to close the window (e.g. close button is pressed).
  1412. .. _class_DisplayServer_constant_WINDOW_EVENT_GO_BACK_REQUEST:
  1413. .. rst-class:: classref-enumeration-constant
  1414. :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_GO_BACK_REQUEST** = ``5``
  1415. Sent when the device "Back" button is pressed.
  1416. \ **Note:** This event is implemented only on Android.
  1417. .. _class_DisplayServer_constant_WINDOW_EVENT_DPI_CHANGE:
  1418. .. rst-class:: classref-enumeration-constant
  1419. :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_DPI_CHANGE** = ``6``
  1420. Sent when the window is moved to the display with different DPI, or display DPI is changed.
  1421. \ **Note:** This flag is implemented only on macOS and Linux (Wayland).
  1422. .. _class_DisplayServer_constant_WINDOW_EVENT_TITLEBAR_CHANGE:
  1423. .. rst-class:: classref-enumeration-constant
  1424. :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_TITLEBAR_CHANGE** = ``7``
  1425. Sent when the window title bar decoration is changed (e.g. :ref:`WINDOW_FLAG_EXTEND_TO_TITLE<class_DisplayServer_constant_WINDOW_FLAG_EXTEND_TO_TITLE>` is set or window entered/exited full screen mode).
  1426. \ **Note:** This flag is implemented only on macOS.
  1427. .. _class_DisplayServer_constant_WINDOW_EVENT_FORCE_CLOSE:
  1428. .. rst-class:: classref-enumeration-constant
  1429. :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_FORCE_CLOSE** = ``8``
  1430. Sent when the window has been forcibly closed by the Display Server. The window shall immediately hide and clean any internal rendering references.
  1431. \ **Note:** This flag is implemented only on Linux (Wayland).
  1432. .. rst-class:: classref-item-separator
  1433. ----
  1434. .. _enum_DisplayServer_WindowResizeEdge:
  1435. .. rst-class:: classref-enumeration
  1436. enum **WindowResizeEdge**: :ref:`๐Ÿ”—<enum_DisplayServer_WindowResizeEdge>`
  1437. .. _class_DisplayServer_constant_WINDOW_EDGE_TOP_LEFT:
  1438. .. rst-class:: classref-enumeration-constant
  1439. :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_TOP_LEFT** = ``0``
  1440. Top-left edge of a window.
  1441. .. _class_DisplayServer_constant_WINDOW_EDGE_TOP:
  1442. .. rst-class:: classref-enumeration-constant
  1443. :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_TOP** = ``1``
  1444. Top edge of a window.
  1445. .. _class_DisplayServer_constant_WINDOW_EDGE_TOP_RIGHT:
  1446. .. rst-class:: classref-enumeration-constant
  1447. :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_TOP_RIGHT** = ``2``
  1448. Top-right edge of a window.
  1449. .. _class_DisplayServer_constant_WINDOW_EDGE_LEFT:
  1450. .. rst-class:: classref-enumeration-constant
  1451. :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_LEFT** = ``3``
  1452. Left edge of a window.
  1453. .. _class_DisplayServer_constant_WINDOW_EDGE_RIGHT:
  1454. .. rst-class:: classref-enumeration-constant
  1455. :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_RIGHT** = ``4``
  1456. Right edge of a window.
  1457. .. _class_DisplayServer_constant_WINDOW_EDGE_BOTTOM_LEFT:
  1458. .. rst-class:: classref-enumeration-constant
  1459. :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_BOTTOM_LEFT** = ``5``
  1460. Bottom-left edge of a window.
  1461. .. _class_DisplayServer_constant_WINDOW_EDGE_BOTTOM:
  1462. .. rst-class:: classref-enumeration-constant
  1463. :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_BOTTOM** = ``6``
  1464. Bottom edge of a window.
  1465. .. _class_DisplayServer_constant_WINDOW_EDGE_BOTTOM_RIGHT:
  1466. .. rst-class:: classref-enumeration-constant
  1467. :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_BOTTOM_RIGHT** = ``7``
  1468. Bottom-right edge of a window.
  1469. .. _class_DisplayServer_constant_WINDOW_EDGE_MAX:
  1470. .. rst-class:: classref-enumeration-constant
  1471. :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_MAX** = ``8``
  1472. Represents the size of the :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` enum.
  1473. .. rst-class:: classref-item-separator
  1474. ----
  1475. .. _enum_DisplayServer_VSyncMode:
  1476. .. rst-class:: classref-enumeration
  1477. enum **VSyncMode**: :ref:`๐Ÿ”—<enum_DisplayServer_VSyncMode>`
  1478. .. _class_DisplayServer_constant_VSYNC_DISABLED:
  1479. .. rst-class:: classref-enumeration-constant
  1480. :ref:`VSyncMode<enum_DisplayServer_VSyncMode>` **VSYNC_DISABLED** = ``0``
  1481. No vertical synchronization, which means the engine will display frames as fast as possible (tearing may be visible). Framerate is unlimited (regardless of :ref:`Engine.max_fps<class_Engine_property_max_fps>`).
  1482. .. _class_DisplayServer_constant_VSYNC_ENABLED:
  1483. .. rst-class:: classref-enumeration-constant
  1484. :ref:`VSyncMode<enum_DisplayServer_VSyncMode>` **VSYNC_ENABLED** = ``1``
  1485. Default vertical synchronization mode, the image is displayed only on vertical blanking intervals (no tearing is visible). Framerate is limited by the monitor refresh rate (regardless of :ref:`Engine.max_fps<class_Engine_property_max_fps>`).
  1486. .. _class_DisplayServer_constant_VSYNC_ADAPTIVE:
  1487. .. rst-class:: classref-enumeration-constant
  1488. :ref:`VSyncMode<enum_DisplayServer_VSyncMode>` **VSYNC_ADAPTIVE** = ``2``
  1489. Behaves like :ref:`VSYNC_DISABLED<class_DisplayServer_constant_VSYNC_DISABLED>` when the framerate drops below the screen's refresh rate to reduce stuttering (tearing may be visible). Otherwise, vertical synchronization is enabled to avoid tearing. Framerate is limited by the monitor refresh rate (regardless of :ref:`Engine.max_fps<class_Engine_property_max_fps>`). Behaves like :ref:`VSYNC_ENABLED<class_DisplayServer_constant_VSYNC_ENABLED>` when using the Compatibility rendering method.
  1490. .. _class_DisplayServer_constant_VSYNC_MAILBOX:
  1491. .. rst-class:: classref-enumeration-constant
  1492. :ref:`VSyncMode<enum_DisplayServer_VSyncMode>` **VSYNC_MAILBOX** = ``3``
  1493. Displays the most recent image in the queue on vertical blanking intervals, while rendering to the other images (no tearing is visible). Framerate is unlimited (regardless of :ref:`Engine.max_fps<class_Engine_property_max_fps>`).
  1494. Although not guaranteed, the images can be rendered as fast as possible, which may reduce input lag (also called "Fast" V-Sync mode). :ref:`VSYNC_MAILBOX<class_DisplayServer_constant_VSYNC_MAILBOX>` works best when at least twice as many frames as the display refresh rate are rendered. Behaves like :ref:`VSYNC_ENABLED<class_DisplayServer_constant_VSYNC_ENABLED>` when using the Compatibility rendering method.
  1495. .. rst-class:: classref-item-separator
  1496. ----
  1497. .. _enum_DisplayServer_HandleType:
  1498. .. rst-class:: classref-enumeration
  1499. enum **HandleType**: :ref:`๐Ÿ”—<enum_DisplayServer_HandleType>`
  1500. .. _class_DisplayServer_constant_DISPLAY_HANDLE:
  1501. .. rst-class:: classref-enumeration-constant
  1502. :ref:`HandleType<enum_DisplayServer_HandleType>` **DISPLAY_HANDLE** = ``0``
  1503. Display handle:
  1504. - Linux (X11): ``X11::Display*`` for the display.
  1505. - Linux (Wayland): ``wl_display`` for the display.
  1506. - Android: ``EGLDisplay`` for the display.
  1507. .. _class_DisplayServer_constant_WINDOW_HANDLE:
  1508. .. rst-class:: classref-enumeration-constant
  1509. :ref:`HandleType<enum_DisplayServer_HandleType>` **WINDOW_HANDLE** = ``1``
  1510. Window handle:
  1511. - Windows: ``HWND`` for the window.
  1512. - Linux (X11): ``X11::Window*`` for the window.
  1513. - Linux (Wayland): ``wl_surface`` for the window.
  1514. - macOS: ``NSWindow*`` for the window.
  1515. - iOS: ``UIViewController*`` for the view controller.
  1516. - Android: ``jObject`` for the activity.
  1517. .. _class_DisplayServer_constant_WINDOW_VIEW:
  1518. .. rst-class:: classref-enumeration-constant
  1519. :ref:`HandleType<enum_DisplayServer_HandleType>` **WINDOW_VIEW** = ``2``
  1520. Window view:
  1521. - Windows: ``HDC`` for the window (only with the Compatibility renderer).
  1522. - macOS: ``NSView*`` for the window main view.
  1523. - iOS: ``UIView*`` for the window main view.
  1524. .. _class_DisplayServer_constant_OPENGL_CONTEXT:
  1525. .. rst-class:: classref-enumeration-constant
  1526. :ref:`HandleType<enum_DisplayServer_HandleType>` **OPENGL_CONTEXT** = ``3``
  1527. OpenGL context (only with the Compatibility renderer):
  1528. - Windows: ``HGLRC`` for the window (native GL), or ``EGLContext`` for the window (ANGLE).
  1529. - Linux (X11): ``GLXContext*`` for the window.
  1530. - Linux (Wayland): ``EGLContext`` for the window.
  1531. - macOS: ``NSOpenGLContext*`` for the window (native GL), or ``EGLContext`` for the window (ANGLE).
  1532. - Android: ``EGLContext`` for the window.
  1533. .. _class_DisplayServer_constant_EGL_DISPLAY:
  1534. .. rst-class:: classref-enumeration-constant
  1535. :ref:`HandleType<enum_DisplayServer_HandleType>` **EGL_DISPLAY** = ``4``
  1536. - Windows: ``EGLDisplay`` for the window (ANGLE).
  1537. - macOS: ``EGLDisplay`` for the window (ANGLE).
  1538. - Linux (Wayland): ``EGLDisplay`` for the window.
  1539. .. _class_DisplayServer_constant_EGL_CONFIG:
  1540. .. rst-class:: classref-enumeration-constant
  1541. :ref:`HandleType<enum_DisplayServer_HandleType>` **EGL_CONFIG** = ``5``
  1542. - Windows: ``EGLConfig`` for the window (ANGLE).
  1543. - macOS: ``EGLConfig`` for the window (ANGLE).
  1544. - Linux (Wayland): ``EGLConfig`` for the window.
  1545. .. rst-class:: classref-item-separator
  1546. ----
  1547. .. _enum_DisplayServer_TTSUtteranceEvent:
  1548. .. rst-class:: classref-enumeration
  1549. enum **TTSUtteranceEvent**: :ref:`๐Ÿ”—<enum_DisplayServer_TTSUtteranceEvent>`
  1550. .. _class_DisplayServer_constant_TTS_UTTERANCE_STARTED:
  1551. .. rst-class:: classref-enumeration-constant
  1552. :ref:`TTSUtteranceEvent<enum_DisplayServer_TTSUtteranceEvent>` **TTS_UTTERANCE_STARTED** = ``0``
  1553. Utterance has begun to be spoken.
  1554. .. _class_DisplayServer_constant_TTS_UTTERANCE_ENDED:
  1555. .. rst-class:: classref-enumeration-constant
  1556. :ref:`TTSUtteranceEvent<enum_DisplayServer_TTSUtteranceEvent>` **TTS_UTTERANCE_ENDED** = ``1``
  1557. Utterance was successfully finished.
  1558. .. _class_DisplayServer_constant_TTS_UTTERANCE_CANCELED:
  1559. .. rst-class:: classref-enumeration-constant
  1560. :ref:`TTSUtteranceEvent<enum_DisplayServer_TTSUtteranceEvent>` **TTS_UTTERANCE_CANCELED** = ``2``
  1561. Utterance was canceled, or TTS service was unable to process it.
  1562. .. _class_DisplayServer_constant_TTS_UTTERANCE_BOUNDARY:
  1563. .. rst-class:: classref-enumeration-constant
  1564. :ref:`TTSUtteranceEvent<enum_DisplayServer_TTSUtteranceEvent>` **TTS_UTTERANCE_BOUNDARY** = ``3``
  1565. Utterance reached a word or sentence boundary.
  1566. .. rst-class:: classref-section-separator
  1567. ----
  1568. .. rst-class:: classref-descriptions-group
  1569. Constants
  1570. ---------
  1571. .. _class_DisplayServer_constant_INVALID_SCREEN:
  1572. .. rst-class:: classref-constant
  1573. **INVALID_SCREEN** = ``-1`` :ref:`๐Ÿ”—<class_DisplayServer_constant_INVALID_SCREEN>`
  1574. The ID that refers to a screen that does not exist. This is returned by some **DisplayServer** methods if no screen matches the requested result.
  1575. .. _class_DisplayServer_constant_SCREEN_WITH_MOUSE_FOCUS:
  1576. .. rst-class:: classref-constant
  1577. **SCREEN_WITH_MOUSE_FOCUS** = ``-4`` :ref:`๐Ÿ”—<class_DisplayServer_constant_SCREEN_WITH_MOUSE_FOCUS>`
  1578. Represents the screen containing the mouse pointer.
  1579. \ **Note:** On Android, iOS, Web, and Linux (Wayland), this constant always represents the screen at index ``0``.
  1580. .. _class_DisplayServer_constant_SCREEN_WITH_KEYBOARD_FOCUS:
  1581. .. rst-class:: classref-constant
  1582. **SCREEN_WITH_KEYBOARD_FOCUS** = ``-3`` :ref:`๐Ÿ”—<class_DisplayServer_constant_SCREEN_WITH_KEYBOARD_FOCUS>`
  1583. Represents the screen containing the window with the keyboard focus.
  1584. \ **Note:** On Android, iOS, Web, and Linux (Wayland), this constant always represents the screen at index ``0``.
  1585. .. _class_DisplayServer_constant_SCREEN_PRIMARY:
  1586. .. rst-class:: classref-constant
  1587. **SCREEN_PRIMARY** = ``-2`` :ref:`๐Ÿ”—<class_DisplayServer_constant_SCREEN_PRIMARY>`
  1588. Represents the primary screen.
  1589. \ **Note:** On Android, iOS, Web, and Linux (Wayland), this constant always represents the screen at index ``0``.
  1590. .. _class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW:
  1591. .. rst-class:: classref-constant
  1592. **SCREEN_OF_MAIN_WINDOW** = ``-1`` :ref:`๐Ÿ”—<class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW>`
  1593. Represents the screen where the main window is located. This is usually the default value in functions that allow specifying one of several screens.
  1594. \ **Note:** On Android, iOS, Web, and Linux (Wayland), this constant always represents the screen at index ``0``.
  1595. .. _class_DisplayServer_constant_MAIN_WINDOW_ID:
  1596. .. rst-class:: classref-constant
  1597. **MAIN_WINDOW_ID** = ``0`` :ref:`๐Ÿ”—<class_DisplayServer_constant_MAIN_WINDOW_ID>`
  1598. The ID of the main window spawned by the engine, which can be passed to methods expecting a ``window_id``.
  1599. .. _class_DisplayServer_constant_INVALID_WINDOW_ID:
  1600. .. rst-class:: classref-constant
  1601. **INVALID_WINDOW_ID** = ``-1`` :ref:`๐Ÿ”—<class_DisplayServer_constant_INVALID_WINDOW_ID>`
  1602. The ID that refers to a nonexistent window. This is returned by some **DisplayServer** methods if no window matches the requested result.
  1603. .. _class_DisplayServer_constant_INVALID_INDICATOR_ID:
  1604. .. rst-class:: classref-constant
  1605. **INVALID_INDICATOR_ID** = ``-1`` :ref:`๐Ÿ”—<class_DisplayServer_constant_INVALID_INDICATOR_ID>`
  1606. The ID that refers to a nonexistent application status indicator.
  1607. .. rst-class:: classref-section-separator
  1608. ----
  1609. .. rst-class:: classref-descriptions-group
  1610. Method Descriptions
  1611. -------------------
  1612. .. _class_DisplayServer_method_accessibility_create_element:
  1613. .. rst-class:: classref-method
  1614. :ref:`RID<class_RID>` **accessibility_create_element**\ (\ window_id\: :ref:`int<class_int>`, role\: :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_create_element>`
  1615. Creates a new, empty accessibility element resource.
  1616. \ **Note:** An accessibility element is created and freed automatically for each :ref:`Node<class_Node>`. In general, this function should not be called manually.
  1617. .. rst-class:: classref-item-separator
  1618. ----
  1619. .. _class_DisplayServer_method_accessibility_create_sub_element:
  1620. .. rst-class:: classref-method
  1621. :ref:`RID<class_RID>` **accessibility_create_sub_element**\ (\ parent_rid\: :ref:`RID<class_RID>`, role\: :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>`, insert_pos\: :ref:`int<class_int>` = -1\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_create_sub_element>`
  1622. Creates a new, empty accessibility sub-element resource. Sub-elements can be used to provide accessibility information for objects which are not :ref:`Node<class_Node>`\ s, such as list items, table cells, or menu items. Sub-elements are freed automatically when the parent element is freed, or can be freed early using the :ref:`accessibility_free_element()<class_DisplayServer_method_accessibility_free_element>` method.
  1623. .. rst-class:: classref-item-separator
  1624. ----
  1625. .. _class_DisplayServer_method_accessibility_create_sub_text_edit_elements:
  1626. .. rst-class:: classref-method
  1627. :ref:`RID<class_RID>` **accessibility_create_sub_text_edit_elements**\ (\ parent_rid\: :ref:`RID<class_RID>`, shaped_text\: :ref:`RID<class_RID>`, min_height\: :ref:`float<class_float>`, insert_pos\: :ref:`int<class_int>` = -1\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_create_sub_text_edit_elements>`
  1628. Creates a new, empty accessibility sub-element from the shaped text buffer. Sub-elements are freed automatically when the parent element is freed, or can be freed early using the :ref:`accessibility_free_element()<class_DisplayServer_method_accessibility_free_element>` method.
  1629. .. rst-class:: classref-item-separator
  1630. ----
  1631. .. _class_DisplayServer_method_accessibility_element_get_meta:
  1632. .. rst-class:: classref-method
  1633. :ref:`Variant<class_Variant>` **accessibility_element_get_meta**\ (\ id\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_element_get_meta>`
  1634. Returns the metadata of the accessibility element.
  1635. .. rst-class:: classref-item-separator
  1636. ----
  1637. .. _class_DisplayServer_method_accessibility_element_set_meta:
  1638. .. rst-class:: classref-method
  1639. |void| **accessibility_element_set_meta**\ (\ id\: :ref:`RID<class_RID>`, meta\: :ref:`Variant<class_Variant>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_element_set_meta>`
  1640. Sets the metadata of the accessibility element.
  1641. .. rst-class:: classref-item-separator
  1642. ----
  1643. .. _class_DisplayServer_method_accessibility_free_element:
  1644. .. rst-class:: classref-method
  1645. |void| **accessibility_free_element**\ (\ id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_free_element>`
  1646. Frees an object created by :ref:`accessibility_create_element()<class_DisplayServer_method_accessibility_create_element>`, :ref:`accessibility_create_sub_element()<class_DisplayServer_method_accessibility_create_sub_element>`, or :ref:`accessibility_create_sub_text_edit_elements()<class_DisplayServer_method_accessibility_create_sub_text_edit_elements>`.
  1647. .. rst-class:: classref-item-separator
  1648. ----
  1649. .. _class_DisplayServer_method_accessibility_get_window_root:
  1650. .. rst-class:: classref-method
  1651. :ref:`RID<class_RID>` **accessibility_get_window_root**\ (\ window_id\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_get_window_root>`
  1652. Returns the main accessibility element of the OS native window.
  1653. .. rst-class:: classref-item-separator
  1654. ----
  1655. .. _class_DisplayServer_method_accessibility_has_element:
  1656. .. rst-class:: classref-method
  1657. :ref:`bool<class_bool>` **accessibility_has_element**\ (\ id\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_has_element>`
  1658. Returns ``true`` if ``id`` is a valid accessibility element.
  1659. .. rst-class:: classref-item-separator
  1660. ----
  1661. .. _class_DisplayServer_method_accessibility_screen_reader_active:
  1662. .. rst-class:: classref-method
  1663. :ref:`int<class_int>` **accessibility_screen_reader_active**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_screen_reader_active>`
  1664. Returns ``1`` if a screen reader, Braille display or other assistive app is active, ``0`` otherwise. Returns ``-1`` if status is unknown.
  1665. \ **Note:** This method is implemented on Linux, macOS, and Windows.
  1666. \ **Note:** Accessibility debugging tools, such as Accessibility Insights for Windows, macOS Accessibility Inspector, or AT-SPI Browser do not count as assistive apps and will not affect this value. To test your app with these tools, set :ref:`ProjectSettings.accessibility/general/accessibility_support<class_ProjectSettings_property_accessibility/general/accessibility_support>` to ``1``.
  1667. .. rst-class:: classref-item-separator
  1668. ----
  1669. .. _class_DisplayServer_method_accessibility_set_window_focused:
  1670. .. rst-class:: classref-method
  1671. |void| **accessibility_set_window_focused**\ (\ window_id\: :ref:`int<class_int>`, focused\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_set_window_focused>`
  1672. Sets the window focused state for assistive apps.
  1673. \ **Note:** This method is implemented on Linux, macOS, and Windows.
  1674. \ **Note:** Advanced users only! :ref:`Window<class_Window>` objects call this method automatically.
  1675. .. rst-class:: classref-item-separator
  1676. ----
  1677. .. _class_DisplayServer_method_accessibility_set_window_rect:
  1678. .. rst-class:: classref-method
  1679. |void| **accessibility_set_window_rect**\ (\ window_id\: :ref:`int<class_int>`, rect_out\: :ref:`Rect2<class_Rect2>`, rect_in\: :ref:`Rect2<class_Rect2>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_set_window_rect>`
  1680. Sets window outer (with decorations) and inner (without decorations) bounds for assistive apps.
  1681. \ **Note:** This method is implemented on Linux, macOS, and Windows.
  1682. \ **Note:** Advanced users only! :ref:`Window<class_Window>` objects call this method automatically.
  1683. .. rst-class:: classref-item-separator
  1684. ----
  1685. .. _class_DisplayServer_method_accessibility_should_increase_contrast:
  1686. .. rst-class:: classref-method
  1687. :ref:`int<class_int>` **accessibility_should_increase_contrast**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_should_increase_contrast>`
  1688. Returns ``1`` if a high-contrast user interface theme should be used, ``0`` otherwise. Returns ``-1`` if status is unknown.
  1689. \ **Note:** This method is implemented on Linux (X11/Wayland, GNOME), macOS, and Windows.
  1690. .. rst-class:: classref-item-separator
  1691. ----
  1692. .. _class_DisplayServer_method_accessibility_should_reduce_animation:
  1693. .. rst-class:: classref-method
  1694. :ref:`int<class_int>` **accessibility_should_reduce_animation**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_should_reduce_animation>`
  1695. Returns ``1`` if flashing, blinking, and other moving content that can cause seizures in users with photosensitive epilepsy should be disabled, ``0`` otherwise. Returns ``-1`` if status is unknown.
  1696. \ **Note:** This method is implemented on macOS and Windows.
  1697. .. rst-class:: classref-item-separator
  1698. ----
  1699. .. _class_DisplayServer_method_accessibility_should_reduce_transparency:
  1700. .. rst-class:: classref-method
  1701. :ref:`int<class_int>` **accessibility_should_reduce_transparency**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_should_reduce_transparency>`
  1702. Returns ``1`` if background images, transparency, and other features that can reduce the contrast between the foreground and background should be disabled, ``0`` otherwise. Returns ``-1`` if status is unknown.
  1703. \ **Note:** This method is implemented on macOS and Windows.
  1704. .. rst-class:: classref-item-separator
  1705. ----
  1706. .. _class_DisplayServer_method_accessibility_update_add_action:
  1707. .. rst-class:: classref-method
  1708. |void| **accessibility_update_add_action**\ (\ id\: :ref:`RID<class_RID>`, action\: :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>`, callable\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_add_action>`
  1709. Adds a callback for the accessibility action (action which can be performed by using a special screen reader command or buttons on the Braille display), and marks this action as supported. The action callback receives one :ref:`Variant<class_Variant>` argument, which value depends on action type.
  1710. .. rst-class:: classref-item-separator
  1711. ----
  1712. .. _class_DisplayServer_method_accessibility_update_add_child:
  1713. .. rst-class:: classref-method
  1714. |void| **accessibility_update_add_child**\ (\ id\: :ref:`RID<class_RID>`, child_id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_add_child>`
  1715. Adds a child accessibility element.
  1716. \ **Note:** :ref:`Node<class_Node>` children and sub-elements are added to the child list automatically.
  1717. .. rst-class:: classref-item-separator
  1718. ----
  1719. .. _class_DisplayServer_method_accessibility_update_add_custom_action:
  1720. .. rst-class:: classref-method
  1721. |void| **accessibility_update_add_custom_action**\ (\ id\: :ref:`RID<class_RID>`, action_id\: :ref:`int<class_int>`, action_description\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_add_custom_action>`
  1722. Adds support for a custom accessibility action. ``action_id`` is passed as an argument to the callback of :ref:`ACTION_CUSTOM<class_DisplayServer_constant_ACTION_CUSTOM>` action.
  1723. .. rst-class:: classref-item-separator
  1724. ----
  1725. .. _class_DisplayServer_method_accessibility_update_add_related_controls:
  1726. .. rst-class:: classref-method
  1727. |void| **accessibility_update_add_related_controls**\ (\ id\: :ref:`RID<class_RID>`, related_id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_add_related_controls>`
  1728. Adds an element that is controlled by this element.
  1729. .. rst-class:: classref-item-separator
  1730. ----
  1731. .. _class_DisplayServer_method_accessibility_update_add_related_described_by:
  1732. .. rst-class:: classref-method
  1733. |void| **accessibility_update_add_related_described_by**\ (\ id\: :ref:`RID<class_RID>`, related_id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_add_related_described_by>`
  1734. Adds an element that describes this element.
  1735. .. rst-class:: classref-item-separator
  1736. ----
  1737. .. _class_DisplayServer_method_accessibility_update_add_related_details:
  1738. .. rst-class:: classref-method
  1739. |void| **accessibility_update_add_related_details**\ (\ id\: :ref:`RID<class_RID>`, related_id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_add_related_details>`
  1740. Adds an element that details this element.
  1741. .. rst-class:: classref-item-separator
  1742. ----
  1743. .. _class_DisplayServer_method_accessibility_update_add_related_flow_to:
  1744. .. rst-class:: classref-method
  1745. |void| **accessibility_update_add_related_flow_to**\ (\ id\: :ref:`RID<class_RID>`, related_id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_add_related_flow_to>`
  1746. Adds an element that this element flow into.
  1747. .. rst-class:: classref-item-separator
  1748. ----
  1749. .. _class_DisplayServer_method_accessibility_update_add_related_labeled_by:
  1750. .. rst-class:: classref-method
  1751. |void| **accessibility_update_add_related_labeled_by**\ (\ id\: :ref:`RID<class_RID>`, related_id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_add_related_labeled_by>`
  1752. Adds an element that labels this element.
  1753. .. rst-class:: classref-item-separator
  1754. ----
  1755. .. _class_DisplayServer_method_accessibility_update_add_related_radio_group:
  1756. .. rst-class:: classref-method
  1757. |void| **accessibility_update_add_related_radio_group**\ (\ id\: :ref:`RID<class_RID>`, related_id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_add_related_radio_group>`
  1758. Adds an element that is part of the same radio group.
  1759. \ **Note:** This method should be called on each element of the group, using all other elements as ``related_id``.
  1760. .. rst-class:: classref-item-separator
  1761. ----
  1762. .. _class_DisplayServer_method_accessibility_update_set_active_descendant:
  1763. .. rst-class:: classref-method
  1764. |void| **accessibility_update_set_active_descendant**\ (\ id\: :ref:`RID<class_RID>`, other_id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_active_descendant>`
  1765. Adds an element that is an active descendant of this element.
  1766. .. rst-class:: classref-item-separator
  1767. ----
  1768. .. _class_DisplayServer_method_accessibility_update_set_background_color:
  1769. .. rst-class:: classref-method
  1770. |void| **accessibility_update_set_background_color**\ (\ id\: :ref:`RID<class_RID>`, color\: :ref:`Color<class_Color>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_background_color>`
  1771. Sets element background color.
  1772. .. rst-class:: classref-item-separator
  1773. ----
  1774. .. _class_DisplayServer_method_accessibility_update_set_bounds:
  1775. .. rst-class:: classref-method
  1776. |void| **accessibility_update_set_bounds**\ (\ id\: :ref:`RID<class_RID>`, p_rect\: :ref:`Rect2<class_Rect2>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_bounds>`
  1777. Sets element bounding box, relative to the node position.
  1778. .. rst-class:: classref-item-separator
  1779. ----
  1780. .. _class_DisplayServer_method_accessibility_update_set_checked:
  1781. .. rst-class:: classref-method
  1782. |void| **accessibility_update_set_checked**\ (\ id\: :ref:`RID<class_RID>`, checekd\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_checked>`
  1783. Sets element checked state.
  1784. .. rst-class:: classref-item-separator
  1785. ----
  1786. .. _class_DisplayServer_method_accessibility_update_set_classname:
  1787. .. rst-class:: classref-method
  1788. |void| **accessibility_update_set_classname**\ (\ id\: :ref:`RID<class_RID>`, classname\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_classname>`
  1789. Sets element class name.
  1790. .. rst-class:: classref-item-separator
  1791. ----
  1792. .. _class_DisplayServer_method_accessibility_update_set_color_value:
  1793. .. rst-class:: classref-method
  1794. |void| **accessibility_update_set_color_value**\ (\ id\: :ref:`RID<class_RID>`, color\: :ref:`Color<class_Color>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_color_value>`
  1795. Sets element color value.
  1796. .. rst-class:: classref-item-separator
  1797. ----
  1798. .. _class_DisplayServer_method_accessibility_update_set_description:
  1799. .. rst-class:: classref-method
  1800. |void| **accessibility_update_set_description**\ (\ id\: :ref:`RID<class_RID>`, description\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_description>`
  1801. Sets element accessibility description.
  1802. .. rst-class:: classref-item-separator
  1803. ----
  1804. .. _class_DisplayServer_method_accessibility_update_set_error_message:
  1805. .. rst-class:: classref-method
  1806. |void| **accessibility_update_set_error_message**\ (\ id\: :ref:`RID<class_RID>`, other_id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_error_message>`
  1807. Sets an element which contains an error message for this element.
  1808. .. rst-class:: classref-item-separator
  1809. ----
  1810. .. _class_DisplayServer_method_accessibility_update_set_extra_info:
  1811. .. rst-class:: classref-method
  1812. |void| **accessibility_update_set_extra_info**\ (\ id\: :ref:`RID<class_RID>`, name\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_extra_info>`
  1813. Sets element accessibility extra information added to the element name.
  1814. .. rst-class:: classref-item-separator
  1815. ----
  1816. .. _class_DisplayServer_method_accessibility_update_set_flag:
  1817. .. rst-class:: classref-method
  1818. |void| **accessibility_update_set_flag**\ (\ id\: :ref:`RID<class_RID>`, flag\: :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>`, value\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_flag>`
  1819. Sets element flag.
  1820. .. rst-class:: classref-item-separator
  1821. ----
  1822. .. _class_DisplayServer_method_accessibility_update_set_focus:
  1823. .. rst-class:: classref-method
  1824. |void| **accessibility_update_set_focus**\ (\ id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_focus>`
  1825. Sets currently focused element.
  1826. .. rst-class:: classref-item-separator
  1827. ----
  1828. .. _class_DisplayServer_method_accessibility_update_set_foreground_color:
  1829. .. rst-class:: classref-method
  1830. |void| **accessibility_update_set_foreground_color**\ (\ id\: :ref:`RID<class_RID>`, color\: :ref:`Color<class_Color>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_foreground_color>`
  1831. Sets element foreground color.
  1832. .. rst-class:: classref-item-separator
  1833. ----
  1834. .. _class_DisplayServer_method_accessibility_update_set_in_page_link_target:
  1835. .. rst-class:: classref-method
  1836. |void| **accessibility_update_set_in_page_link_target**\ (\ id\: :ref:`RID<class_RID>`, other_id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_in_page_link_target>`
  1837. Sets target element for the link.
  1838. .. rst-class:: classref-item-separator
  1839. ----
  1840. .. _class_DisplayServer_method_accessibility_update_set_language:
  1841. .. rst-class:: classref-method
  1842. |void| **accessibility_update_set_language**\ (\ id\: :ref:`RID<class_RID>`, language\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_language>`
  1843. Sets element text language.
  1844. .. rst-class:: classref-item-separator
  1845. ----
  1846. .. _class_DisplayServer_method_accessibility_update_set_list_item_count:
  1847. .. rst-class:: classref-method
  1848. |void| **accessibility_update_set_list_item_count**\ (\ id\: :ref:`RID<class_RID>`, size\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_list_item_count>`
  1849. Sets number of items in the list.
  1850. .. rst-class:: classref-item-separator
  1851. ----
  1852. .. _class_DisplayServer_method_accessibility_update_set_list_item_expanded:
  1853. .. rst-class:: classref-method
  1854. |void| **accessibility_update_set_list_item_expanded**\ (\ id\: :ref:`RID<class_RID>`, expanded\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_list_item_expanded>`
  1855. Sets list/tree item expanded status.
  1856. .. rst-class:: classref-item-separator
  1857. ----
  1858. .. _class_DisplayServer_method_accessibility_update_set_list_item_index:
  1859. .. rst-class:: classref-method
  1860. |void| **accessibility_update_set_list_item_index**\ (\ id\: :ref:`RID<class_RID>`, index\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_list_item_index>`
  1861. Sets the position of the element in the list.
  1862. .. rst-class:: classref-item-separator
  1863. ----
  1864. .. _class_DisplayServer_method_accessibility_update_set_list_item_level:
  1865. .. rst-class:: classref-method
  1866. |void| **accessibility_update_set_list_item_level**\ (\ id\: :ref:`RID<class_RID>`, level\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_list_item_level>`
  1867. Sets the hierarchical level of the element in the list.
  1868. .. rst-class:: classref-item-separator
  1869. ----
  1870. .. _class_DisplayServer_method_accessibility_update_set_list_item_selected:
  1871. .. rst-class:: classref-method
  1872. |void| **accessibility_update_set_list_item_selected**\ (\ id\: :ref:`RID<class_RID>`, selected\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_list_item_selected>`
  1873. Sets list/tree item selected status.
  1874. .. rst-class:: classref-item-separator
  1875. ----
  1876. .. _class_DisplayServer_method_accessibility_update_set_list_orientation:
  1877. .. rst-class:: classref-method
  1878. |void| **accessibility_update_set_list_orientation**\ (\ id\: :ref:`RID<class_RID>`, vertical\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_list_orientation>`
  1879. Sets the orientation of the list elements.
  1880. .. rst-class:: classref-item-separator
  1881. ----
  1882. .. _class_DisplayServer_method_accessibility_update_set_live:
  1883. .. rst-class:: classref-method
  1884. |void| **accessibility_update_set_live**\ (\ id\: :ref:`RID<class_RID>`, live\: :ref:`AccessibilityLiveMode<enum_DisplayServer_AccessibilityLiveMode>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_live>`
  1885. Sets the priority of the live region updates.
  1886. .. rst-class:: classref-item-separator
  1887. ----
  1888. .. _class_DisplayServer_method_accessibility_update_set_member_of:
  1889. .. rst-class:: classref-method
  1890. |void| **accessibility_update_set_member_of**\ (\ id\: :ref:`RID<class_RID>`, group_id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_member_of>`
  1891. Sets the element to be a member of the group.
  1892. .. rst-class:: classref-item-separator
  1893. ----
  1894. .. _class_DisplayServer_method_accessibility_update_set_name:
  1895. .. rst-class:: classref-method
  1896. |void| **accessibility_update_set_name**\ (\ id\: :ref:`RID<class_RID>`, name\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_name>`
  1897. Sets element accessibility name.
  1898. .. rst-class:: classref-item-separator
  1899. ----
  1900. .. _class_DisplayServer_method_accessibility_update_set_next_on_line:
  1901. .. rst-class:: classref-method
  1902. |void| **accessibility_update_set_next_on_line**\ (\ id\: :ref:`RID<class_RID>`, other_id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_next_on_line>`
  1903. Sets next element on the line.
  1904. .. rst-class:: classref-item-separator
  1905. ----
  1906. .. _class_DisplayServer_method_accessibility_update_set_num_jump:
  1907. .. rst-class:: classref-method
  1908. |void| **accessibility_update_set_num_jump**\ (\ id\: :ref:`RID<class_RID>`, jump\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_num_jump>`
  1909. Sets numeric value jump.
  1910. .. rst-class:: classref-item-separator
  1911. ----
  1912. .. _class_DisplayServer_method_accessibility_update_set_num_range:
  1913. .. rst-class:: classref-method
  1914. |void| **accessibility_update_set_num_range**\ (\ id\: :ref:`RID<class_RID>`, min\: :ref:`float<class_float>`, max\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_num_range>`
  1915. Sets numeric value range.
  1916. .. rst-class:: classref-item-separator
  1917. ----
  1918. .. _class_DisplayServer_method_accessibility_update_set_num_step:
  1919. .. rst-class:: classref-method
  1920. |void| **accessibility_update_set_num_step**\ (\ id\: :ref:`RID<class_RID>`, step\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_num_step>`
  1921. Sets numeric value step.
  1922. .. rst-class:: classref-item-separator
  1923. ----
  1924. .. _class_DisplayServer_method_accessibility_update_set_num_value:
  1925. .. rst-class:: classref-method
  1926. |void| **accessibility_update_set_num_value**\ (\ id\: :ref:`RID<class_RID>`, position\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_num_value>`
  1927. Sets numeric value.
  1928. .. rst-class:: classref-item-separator
  1929. ----
  1930. .. _class_DisplayServer_method_accessibility_update_set_placeholder:
  1931. .. rst-class:: classref-method
  1932. |void| **accessibility_update_set_placeholder**\ (\ id\: :ref:`RID<class_RID>`, placeholder\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_placeholder>`
  1933. Sets placeholder text.
  1934. .. rst-class:: classref-item-separator
  1935. ----
  1936. .. _class_DisplayServer_method_accessibility_update_set_popup_type:
  1937. .. rst-class:: classref-method
  1938. |void| **accessibility_update_set_popup_type**\ (\ id\: :ref:`RID<class_RID>`, popup\: :ref:`AccessibilityPopupType<enum_DisplayServer_AccessibilityPopupType>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_popup_type>`
  1939. Sets popup type for popup buttons.
  1940. .. rst-class:: classref-item-separator
  1941. ----
  1942. .. _class_DisplayServer_method_accessibility_update_set_previous_on_line:
  1943. .. rst-class:: classref-method
  1944. |void| **accessibility_update_set_previous_on_line**\ (\ id\: :ref:`RID<class_RID>`, other_id\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_previous_on_line>`
  1945. Sets previous element on the line.
  1946. .. rst-class:: classref-item-separator
  1947. ----
  1948. .. _class_DisplayServer_method_accessibility_update_set_role:
  1949. .. rst-class:: classref-method
  1950. |void| **accessibility_update_set_role**\ (\ id\: :ref:`RID<class_RID>`, role\: :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_role>`
  1951. Sets element accessibility role.
  1952. .. rst-class:: classref-item-separator
  1953. ----
  1954. .. _class_DisplayServer_method_accessibility_update_set_role_description:
  1955. .. rst-class:: classref-method
  1956. |void| **accessibility_update_set_role_description**\ (\ id\: :ref:`RID<class_RID>`, description\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_role_description>`
  1957. Sets element accessibility role description text.
  1958. .. rst-class:: classref-item-separator
  1959. ----
  1960. .. _class_DisplayServer_method_accessibility_update_set_scroll_x:
  1961. .. rst-class:: classref-method
  1962. |void| **accessibility_update_set_scroll_x**\ (\ id\: :ref:`RID<class_RID>`, position\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_scroll_x>`
  1963. Sets scroll bar x position.
  1964. .. rst-class:: classref-item-separator
  1965. ----
  1966. .. _class_DisplayServer_method_accessibility_update_set_scroll_x_range:
  1967. .. rst-class:: classref-method
  1968. |void| **accessibility_update_set_scroll_x_range**\ (\ id\: :ref:`RID<class_RID>`, min\: :ref:`float<class_float>`, max\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_scroll_x_range>`
  1969. Sets scroll bar x range.
  1970. .. rst-class:: classref-item-separator
  1971. ----
  1972. .. _class_DisplayServer_method_accessibility_update_set_scroll_y:
  1973. .. rst-class:: classref-method
  1974. |void| **accessibility_update_set_scroll_y**\ (\ id\: :ref:`RID<class_RID>`, position\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_scroll_y>`
  1975. Sets scroll bar y position.
  1976. .. rst-class:: classref-item-separator
  1977. ----
  1978. .. _class_DisplayServer_method_accessibility_update_set_scroll_y_range:
  1979. .. rst-class:: classref-method
  1980. |void| **accessibility_update_set_scroll_y_range**\ (\ id\: :ref:`RID<class_RID>`, min\: :ref:`float<class_float>`, max\: :ref:`float<class_float>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_scroll_y_range>`
  1981. Sets scroll bar y range.
  1982. .. rst-class:: classref-item-separator
  1983. ----
  1984. .. _class_DisplayServer_method_accessibility_update_set_shortcut:
  1985. .. rst-class:: classref-method
  1986. |void| **accessibility_update_set_shortcut**\ (\ id\: :ref:`RID<class_RID>`, shortcut\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_shortcut>`
  1987. Sets the list of keyboard shortcuts used by element.
  1988. .. rst-class:: classref-item-separator
  1989. ----
  1990. .. _class_DisplayServer_method_accessibility_update_set_state_description:
  1991. .. rst-class:: classref-method
  1992. |void| **accessibility_update_set_state_description**\ (\ id\: :ref:`RID<class_RID>`, description\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_state_description>`
  1993. Sets human-readable description of the current checked state.
  1994. .. rst-class:: classref-item-separator
  1995. ----
  1996. .. _class_DisplayServer_method_accessibility_update_set_table_cell_position:
  1997. .. rst-class:: classref-method
  1998. |void| **accessibility_update_set_table_cell_position**\ (\ id\: :ref:`RID<class_RID>`, row_index\: :ref:`int<class_int>`, column_index\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_table_cell_position>`
  1999. Sets cell position in the table.
  2000. .. rst-class:: classref-item-separator
  2001. ----
  2002. .. _class_DisplayServer_method_accessibility_update_set_table_cell_span:
  2003. .. rst-class:: classref-method
  2004. |void| **accessibility_update_set_table_cell_span**\ (\ id\: :ref:`RID<class_RID>`, row_span\: :ref:`int<class_int>`, column_span\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_table_cell_span>`
  2005. Sets cell row/column span.
  2006. .. rst-class:: classref-item-separator
  2007. ----
  2008. .. _class_DisplayServer_method_accessibility_update_set_table_column_count:
  2009. .. rst-class:: classref-method
  2010. |void| **accessibility_update_set_table_column_count**\ (\ id\: :ref:`RID<class_RID>`, count\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_table_column_count>`
  2011. Sets number of columns in the table.
  2012. .. rst-class:: classref-item-separator
  2013. ----
  2014. .. _class_DisplayServer_method_accessibility_update_set_table_column_index:
  2015. .. rst-class:: classref-method
  2016. |void| **accessibility_update_set_table_column_index**\ (\ id\: :ref:`RID<class_RID>`, index\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_table_column_index>`
  2017. Sets position of the column.
  2018. .. rst-class:: classref-item-separator
  2019. ----
  2020. .. _class_DisplayServer_method_accessibility_update_set_table_row_count:
  2021. .. rst-class:: classref-method
  2022. |void| **accessibility_update_set_table_row_count**\ (\ id\: :ref:`RID<class_RID>`, count\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_table_row_count>`
  2023. Sets number of rows in the table.
  2024. .. rst-class:: classref-item-separator
  2025. ----
  2026. .. _class_DisplayServer_method_accessibility_update_set_table_row_index:
  2027. .. rst-class:: classref-method
  2028. |void| **accessibility_update_set_table_row_index**\ (\ id\: :ref:`RID<class_RID>`, index\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_table_row_index>`
  2029. Sets position of the row in the table.
  2030. .. rst-class:: classref-item-separator
  2031. ----
  2032. .. _class_DisplayServer_method_accessibility_update_set_text_align:
  2033. .. rst-class:: classref-method
  2034. |void| **accessibility_update_set_text_align**\ (\ id\: :ref:`RID<class_RID>`, align\: :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_text_align>`
  2035. Sets element text alignment.
  2036. .. rst-class:: classref-item-separator
  2037. ----
  2038. .. _class_DisplayServer_method_accessibility_update_set_text_decorations:
  2039. .. rst-class:: classref-method
  2040. |void| **accessibility_update_set_text_decorations**\ (\ id\: :ref:`RID<class_RID>`, underline\: :ref:`bool<class_bool>`, strikethrough\: :ref:`bool<class_bool>`, overline\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_text_decorations>`
  2041. Sets text underline/overline/strikethrough.
  2042. .. rst-class:: classref-item-separator
  2043. ----
  2044. .. _class_DisplayServer_method_accessibility_update_set_text_orientation:
  2045. .. rst-class:: classref-method
  2046. |void| **accessibility_update_set_text_orientation**\ (\ id\: :ref:`RID<class_RID>`, vertical\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_text_orientation>`
  2047. Sets text orientation.
  2048. .. rst-class:: classref-item-separator
  2049. ----
  2050. .. _class_DisplayServer_method_accessibility_update_set_text_selection:
  2051. .. rst-class:: classref-method
  2052. |void| **accessibility_update_set_text_selection**\ (\ id\: :ref:`RID<class_RID>`, text_start_id\: :ref:`RID<class_RID>`, start_char\: :ref:`int<class_int>`, text_end_id\: :ref:`RID<class_RID>`, end_char\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_text_selection>`
  2053. Sets text selection to the text field. ``text_start_id`` and ``text_end_id`` should be elements created by :ref:`accessibility_create_sub_text_edit_elements()<class_DisplayServer_method_accessibility_create_sub_text_edit_elements>`. Character offsets are relative to the corresponding element.
  2054. .. rst-class:: classref-item-separator
  2055. ----
  2056. .. _class_DisplayServer_method_accessibility_update_set_tooltip:
  2057. .. rst-class:: classref-method
  2058. |void| **accessibility_update_set_tooltip**\ (\ id\: :ref:`RID<class_RID>`, tooltip\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_tooltip>`
  2059. Sets tooltip text.
  2060. .. rst-class:: classref-item-separator
  2061. ----
  2062. .. _class_DisplayServer_method_accessibility_update_set_transform:
  2063. .. rst-class:: classref-method
  2064. |void| **accessibility_update_set_transform**\ (\ id\: :ref:`RID<class_RID>`, transform\: :ref:`Transform2D<class_Transform2D>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_transform>`
  2065. Sets element 2D transform.
  2066. .. rst-class:: classref-item-separator
  2067. ----
  2068. .. _class_DisplayServer_method_accessibility_update_set_url:
  2069. .. rst-class:: classref-method
  2070. |void| **accessibility_update_set_url**\ (\ id\: :ref:`RID<class_RID>`, url\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_url>`
  2071. Sets link URL.
  2072. .. rst-class:: classref-item-separator
  2073. ----
  2074. .. _class_DisplayServer_method_accessibility_update_set_value:
  2075. .. rst-class:: classref-method
  2076. |void| **accessibility_update_set_value**\ (\ id\: :ref:`RID<class_RID>`, value\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_accessibility_update_set_value>`
  2077. Sets element text value.
  2078. .. rst-class:: classref-item-separator
  2079. ----
  2080. .. _class_DisplayServer_method_beep:
  2081. .. rst-class:: classref-method
  2082. |void| **beep**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_beep>`
  2083. Plays the beep sound from the operative system, if possible. Because it comes from the OS, the beep sound will be audible even if the application is muted. It may also be disabled for the entire OS by the user.
  2084. \ **Note:** This method is implemented on macOS, Linux (X11/Wayland), and Windows.
  2085. .. rst-class:: classref-item-separator
  2086. ----
  2087. .. _class_DisplayServer_method_clipboard_get:
  2088. .. rst-class:: classref-method
  2089. :ref:`String<class_String>` **clipboard_get**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_clipboard_get>`
  2090. Returns the user's clipboard as a string if possible.
  2091. .. rst-class:: classref-item-separator
  2092. ----
  2093. .. _class_DisplayServer_method_clipboard_get_image:
  2094. .. rst-class:: classref-method
  2095. :ref:`Image<class_Image>` **clipboard_get_image**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_clipboard_get_image>`
  2096. Returns the user's clipboard as an image if possible.
  2097. \ **Note:** This method uses the copied pixel data, e.g. from an image editing software or a web browser, not an image file copied from file explorer.
  2098. .. rst-class:: classref-item-separator
  2099. ----
  2100. .. _class_DisplayServer_method_clipboard_get_primary:
  2101. .. rst-class:: classref-method
  2102. :ref:`String<class_String>` **clipboard_get_primary**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_clipboard_get_primary>`
  2103. Returns the user's `primary <https://unix.stackexchange.com/questions/139191/whats-the-difference-between-primary-selection-and-clipboard-buffer>`__ clipboard as a string if possible. This is the clipboard that is set when the user selects text in any application, rather than when pressing :kbd:`Ctrl + C`. The clipboard data can then be pasted by clicking the middle mouse button in any application that supports the primary clipboard mechanism.
  2104. \ **Note:** This method is only implemented on Linux (X11/Wayland).
  2105. .. rst-class:: classref-item-separator
  2106. ----
  2107. .. _class_DisplayServer_method_clipboard_has:
  2108. .. rst-class:: classref-method
  2109. :ref:`bool<class_bool>` **clipboard_has**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_clipboard_has>`
  2110. Returns ``true`` if there is a text content on the user's clipboard.
  2111. .. rst-class:: classref-item-separator
  2112. ----
  2113. .. _class_DisplayServer_method_clipboard_has_image:
  2114. .. rst-class:: classref-method
  2115. :ref:`bool<class_bool>` **clipboard_has_image**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_clipboard_has_image>`
  2116. Returns ``true`` if there is an image content on the user's clipboard.
  2117. .. rst-class:: classref-item-separator
  2118. ----
  2119. .. _class_DisplayServer_method_clipboard_set:
  2120. .. rst-class:: classref-method
  2121. |void| **clipboard_set**\ (\ clipboard\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_clipboard_set>`
  2122. Sets the user's clipboard content to the given string.
  2123. .. rst-class:: classref-item-separator
  2124. ----
  2125. .. _class_DisplayServer_method_clipboard_set_primary:
  2126. .. rst-class:: classref-method
  2127. |void| **clipboard_set_primary**\ (\ clipboard_primary\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_clipboard_set_primary>`
  2128. Sets the user's `primary <https://unix.stackexchange.com/questions/139191/whats-the-difference-between-primary-selection-and-clipboard-buffer>`__ clipboard content to the given string. This is the clipboard that is set when the user selects text in any application, rather than when pressing :kbd:`Ctrl + C`. The clipboard data can then be pasted by clicking the middle mouse button in any application that supports the primary clipboard mechanism.
  2129. \ **Note:** This method is only implemented on Linux (X11/Wayland).
  2130. .. rst-class:: classref-item-separator
  2131. ----
  2132. .. _class_DisplayServer_method_color_picker:
  2133. .. rst-class:: classref-method
  2134. :ref:`bool<class_bool>` **color_picker**\ (\ callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_color_picker>`
  2135. Displays OS native color picker.
  2136. Callbacks have the following arguments: ``status: bool, color: Color``.
  2137. \ **Note:** This method is implemented if the display server has the :ref:`FEATURE_NATIVE_COLOR_PICKER<class_DisplayServer_constant_FEATURE_NATIVE_COLOR_PICKER>` feature.
  2138. \ **Note:** This method is only implemented on Linux (X11/Wayland).
  2139. .. rst-class:: classref-item-separator
  2140. ----
  2141. .. _class_DisplayServer_method_create_status_indicator:
  2142. .. rst-class:: classref-method
  2143. :ref:`int<class_int>` **create_status_indicator**\ (\ icon\: :ref:`Texture2D<class_Texture2D>`, tooltip\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_create_status_indicator>`
  2144. Creates a new application status indicator with the specified icon, tooltip, and activation callback.
  2145. \ ``callback`` should take two arguments: the pressed mouse button (one of the :ref:`MouseButton<enum_@GlobalScope_MouseButton>` constants) and the click position in screen coordinates (a :ref:`Vector2i<class_Vector2i>`).
  2146. .. rst-class:: classref-item-separator
  2147. ----
  2148. .. _class_DisplayServer_method_cursor_get_shape:
  2149. .. rst-class:: classref-method
  2150. :ref:`CursorShape<enum_DisplayServer_CursorShape>` **cursor_get_shape**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_cursor_get_shape>`
  2151. Returns the default mouse cursor shape set by :ref:`cursor_set_shape()<class_DisplayServer_method_cursor_set_shape>`.
  2152. .. rst-class:: classref-item-separator
  2153. ----
  2154. .. _class_DisplayServer_method_cursor_set_custom_image:
  2155. .. rst-class:: classref-method
  2156. |void| **cursor_set_custom_image**\ (\ cursor\: :ref:`Resource<class_Resource>`, shape\: :ref:`CursorShape<enum_DisplayServer_CursorShape>` = 0, hotspot\: :ref:`Vector2<class_Vector2>` = Vector2(0, 0)\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_cursor_set_custom_image>`
  2157. Sets a custom mouse cursor image for the given ``shape``. This means the user's operating system and mouse cursor theme will no longer influence the mouse cursor's appearance.
  2158. \ ``cursor`` can be either a :ref:`Texture2D<class_Texture2D>` or an :ref:`Image<class_Image>`, and it should not be larger than 256ร—256 to display correctly. Optionally, ``hotspot`` can be set to offset the image's position relative to the click point. By default, ``hotspot`` is set to the top-left corner of the image. See also :ref:`cursor_set_shape()<class_DisplayServer_method_cursor_set_shape>`.
  2159. .. rst-class:: classref-item-separator
  2160. ----
  2161. .. _class_DisplayServer_method_cursor_set_shape:
  2162. .. rst-class:: classref-method
  2163. |void| **cursor_set_shape**\ (\ shape\: :ref:`CursorShape<enum_DisplayServer_CursorShape>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_cursor_set_shape>`
  2164. Sets the default mouse cursor shape. The cursor's appearance will vary depending on the user's operating system and mouse cursor theme. See also :ref:`cursor_get_shape()<class_DisplayServer_method_cursor_get_shape>` and :ref:`cursor_set_custom_image()<class_DisplayServer_method_cursor_set_custom_image>`.
  2165. .. rst-class:: classref-item-separator
  2166. ----
  2167. .. _class_DisplayServer_method_delete_status_indicator:
  2168. .. rst-class:: classref-method
  2169. |void| **delete_status_indicator**\ (\ id\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_delete_status_indicator>`
  2170. Removes the application status indicator.
  2171. .. rst-class:: classref-item-separator
  2172. ----
  2173. .. _class_DisplayServer_method_dialog_input_text:
  2174. .. rst-class:: classref-method
  2175. :ref:`Error<enum_@GlobalScope_Error>` **dialog_input_text**\ (\ title\: :ref:`String<class_String>`, description\: :ref:`String<class_String>`, existing_text\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_dialog_input_text>`
  2176. Shows a text input dialog which uses the operating system's native look-and-feel. ``callback`` should accept a single :ref:`String<class_String>` parameter which contains the text field's contents.
  2177. \ **Note:** This method is implemented if the display server has the :ref:`FEATURE_NATIVE_DIALOG_INPUT<class_DisplayServer_constant_FEATURE_NATIVE_DIALOG_INPUT>` feature. Supported platforms include macOS, Windows, and Android.
  2178. .. rst-class:: classref-item-separator
  2179. ----
  2180. .. _class_DisplayServer_method_dialog_show:
  2181. .. rst-class:: classref-method
  2182. :ref:`Error<enum_@GlobalScope_Error>` **dialog_show**\ (\ title\: :ref:`String<class_String>`, description\: :ref:`String<class_String>`, buttons\: :ref:`PackedStringArray<class_PackedStringArray>`, callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_dialog_show>`
  2183. Shows a text dialog which uses the operating system's native look-and-feel. ``callback`` should accept a single :ref:`int<class_int>` parameter which corresponds to the index of the pressed button.
  2184. \ **Note:** This method is implemented if the display server has the :ref:`FEATURE_NATIVE_DIALOG<class_DisplayServer_constant_FEATURE_NATIVE_DIALOG>` feature. Supported platforms include macOS, Windows, and Android.
  2185. .. rst-class:: classref-item-separator
  2186. ----
  2187. .. _class_DisplayServer_method_enable_for_stealing_focus:
  2188. .. rst-class:: classref-method
  2189. |void| **enable_for_stealing_focus**\ (\ process_id\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_enable_for_stealing_focus>`
  2190. Allows the ``process_id`` PID to steal focus from this window. In other words, this disables the operating system's focus stealing protection for the specified PID.
  2191. \ **Note:** This method is implemented only on Windows.
  2192. .. rst-class:: classref-item-separator
  2193. ----
  2194. .. _class_DisplayServer_method_file_dialog_show:
  2195. .. rst-class:: classref-method
  2196. :ref:`Error<enum_@GlobalScope_Error>` **file_dialog_show**\ (\ title\: :ref:`String<class_String>`, current_directory\: :ref:`String<class_String>`, filename\: :ref:`String<class_String>`, show_hidden\: :ref:`bool<class_bool>`, mode\: :ref:`FileDialogMode<enum_DisplayServer_FileDialogMode>`, filters\: :ref:`PackedStringArray<class_PackedStringArray>`, callback\: :ref:`Callable<class_Callable>`, parent_window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_file_dialog_show>`
  2197. Displays OS native dialog for selecting files or directories in the file system.
  2198. Each filter string in the ``filters`` array should be formatted like this: ``*.png,*.jpg,*.jpeg;Image Files;image/png,image/jpeg``. The description text of the filter is optional and can be omitted. It is recommended to set both file extension and MIME type. See also :ref:`FileDialog.filters<class_FileDialog_property_filters>`.
  2199. Callbacks have the following arguments: ``status: bool, selected_paths: PackedStringArray, selected_filter_index: int``. **On Android,** the third callback argument (``selected_filter_index``) is always ``0``.
  2200. \ **Note:** This method is implemented if the display server has the :ref:`FEATURE_NATIVE_DIALOG_FILE<class_DisplayServer_constant_FEATURE_NATIVE_DIALOG_FILE>` feature. Supported platforms include Linux (X11/Wayland), Windows, macOS, and Android (API level 29+).
  2201. \ **Note:** ``current_directory`` might be ignored.
  2202. \ **Note:** Embedded file dialog and Windows file dialog support only file extensions, while Android, Linux, and macOS file dialogs also support MIME types.
  2203. \ **Note:** On Android and Linux, ``show_hidden`` is ignored.
  2204. \ **Note:** On Android and macOS, native file dialogs have no title.
  2205. \ **Note:** On macOS, sandboxed apps will save security-scoped bookmarks to retain access to the opened folders across multiple sessions. Use :ref:`OS.get_granted_permissions()<class_OS_method_get_granted_permissions>` to get a list of saved bookmarks.
  2206. .. rst-class:: classref-item-separator
  2207. ----
  2208. .. _class_DisplayServer_method_file_dialog_with_options_show:
  2209. .. rst-class:: classref-method
  2210. :ref:`Error<enum_@GlobalScope_Error>` **file_dialog_with_options_show**\ (\ title\: :ref:`String<class_String>`, current_directory\: :ref:`String<class_String>`, root\: :ref:`String<class_String>`, filename\: :ref:`String<class_String>`, show_hidden\: :ref:`bool<class_bool>`, mode\: :ref:`FileDialogMode<enum_DisplayServer_FileDialogMode>`, filters\: :ref:`PackedStringArray<class_PackedStringArray>`, options\: :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\], callback\: :ref:`Callable<class_Callable>`, parent_window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_file_dialog_with_options_show>`
  2211. Displays OS native dialog for selecting files or directories in the file system with additional user selectable options.
  2212. Each filter string in the ``filters`` array should be formatted like this: ``*.png,*.jpg,*.jpeg;Image Files;image/png,image/jpeg``. The description text of the filter is optional and can be omitted. It is recommended to set both file extension and MIME type. See also :ref:`FileDialog.filters<class_FileDialog_property_filters>`.
  2213. \ ``options`` is array of :ref:`Dictionary<class_Dictionary>`\ s with the following keys:
  2214. - ``"name"`` - option's name :ref:`String<class_String>`.
  2215. - ``"values"`` - :ref:`PackedStringArray<class_PackedStringArray>` of values. If empty, boolean option (check box) is used.
  2216. - ``"default"`` - default selected option index (:ref:`int<class_int>`) or default boolean value (:ref:`bool<class_bool>`).
  2217. Callbacks have the following arguments: ``status: bool, selected_paths: PackedStringArray, selected_filter_index: int, selected_option: Dictionary``.
  2218. \ **Note:** This method is implemented if the display server has the :ref:`FEATURE_NATIVE_DIALOG_FILE_EXTRA<class_DisplayServer_constant_FEATURE_NATIVE_DIALOG_FILE_EXTRA>` feature. Supported platforms include Linux (X11/Wayland), Windows, and macOS.
  2219. \ **Note:** ``current_directory`` might be ignored.
  2220. \ **Note:** Embedded file dialog and Windows file dialog support only file extensions, while Android, Linux, and macOS file dialogs also support MIME types.
  2221. \ **Note:** On Linux (X11), ``show_hidden`` is ignored.
  2222. \ **Note:** On macOS, native file dialogs have no title.
  2223. \ **Note:** On macOS, sandboxed apps will save security-scoped bookmarks to retain access to the opened folders across multiple sessions. Use :ref:`OS.get_granted_permissions()<class_OS_method_get_granted_permissions>` to get a list of saved bookmarks.
  2224. .. rst-class:: classref-item-separator
  2225. ----
  2226. .. _class_DisplayServer_method_force_process_and_drop_events:
  2227. .. rst-class:: classref-method
  2228. |void| **force_process_and_drop_events**\ (\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_force_process_and_drop_events>`
  2229. Forces window manager processing while ignoring all :ref:`InputEvent<class_InputEvent>`\ s. See also :ref:`process_events()<class_DisplayServer_method_process_events>`.
  2230. \ **Note:** This method is implemented on Windows and macOS.
  2231. .. rst-class:: classref-item-separator
  2232. ----
  2233. .. _class_DisplayServer_method_get_accent_color:
  2234. .. rst-class:: classref-method
  2235. :ref:`Color<class_Color>` **get_accent_color**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_get_accent_color>`
  2236. Returns OS theme accent color. Returns ``Color(0, 0, 0, 0)``, if accent color is unknown.
  2237. \ **Note:** This method is implemented on macOS, Windows, Android, and Linux (X11/Wayland).
  2238. .. rst-class:: classref-item-separator
  2239. ----
  2240. .. _class_DisplayServer_method_get_base_color:
  2241. .. rst-class:: classref-method
  2242. :ref:`Color<class_Color>` **get_base_color**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_get_base_color>`
  2243. Returns the OS theme base color (default control background). Returns ``Color(0, 0, 0, 0)`` if the base color is unknown.
  2244. \ **Note:** This method is implemented on macOS, Windows, and Android.
  2245. .. rst-class:: classref-item-separator
  2246. ----
  2247. .. _class_DisplayServer_method_get_display_cutouts:
  2248. .. rst-class:: classref-method
  2249. :ref:`Array<class_Array>`\[:ref:`Rect2<class_Rect2>`\] **get_display_cutouts**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_get_display_cutouts>`
  2250. Returns an :ref:`Array<class_Array>` of :ref:`Rect2<class_Rect2>`, each of which is the bounding rectangle for a display cutout or notch. These are non-functional areas on edge-to-edge screens used by cameras and sensors. Returns an empty array if the device does not have cutouts. See also :ref:`get_display_safe_area()<class_DisplayServer_method_get_display_safe_area>`.
  2251. \ **Note:** Currently only implemented on Android. Other platforms will return an empty array even if they do have display cutouts or notches.
  2252. .. rst-class:: classref-item-separator
  2253. ----
  2254. .. _class_DisplayServer_method_get_display_safe_area:
  2255. .. rst-class:: classref-method
  2256. :ref:`Rect2i<class_Rect2i>` **get_display_safe_area**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_get_display_safe_area>`
  2257. Returns the unobscured area of the display where interactive controls should be rendered. See also :ref:`get_display_cutouts()<class_DisplayServer_method_get_display_cutouts>`.
  2258. \ **Note:** Currently only implemented on Android and iOS. On other platforms, ``screen_get_usable_rect(SCREEN_OF_MAIN_WINDOW)`` will be returned as a fallback. See also :ref:`screen_get_usable_rect()<class_DisplayServer_method_screen_get_usable_rect>`.
  2259. .. rst-class:: classref-item-separator
  2260. ----
  2261. .. _class_DisplayServer_method_get_keyboard_focus_screen:
  2262. .. rst-class:: classref-method
  2263. :ref:`int<class_int>` **get_keyboard_focus_screen**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_get_keyboard_focus_screen>`
  2264. Returns the index of the screen containing the window with the keyboard focus, or the primary screen if there's no focused window.
  2265. \ **Note:** This method is implemented on Linux/X11, macOS, and Windows. On other platforms, this method always returns the primary screen.
  2266. .. rst-class:: classref-item-separator
  2267. ----
  2268. .. _class_DisplayServer_method_get_name:
  2269. .. rst-class:: classref-method
  2270. :ref:`String<class_String>` **get_name**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_get_name>`
  2271. Returns the name of the **DisplayServer** currently in use. Most operating systems only have a single **DisplayServer**, but Linux has access to more than one **DisplayServer** (currently X11 and Wayland).
  2272. The names of built-in display servers are ``Windows``, ``macOS``, ``X11`` (Linux), ``Wayland`` (Linux), ``Android``, ``iOS``, ``web`` (HTML5), and ``headless`` (when started with the ``--headless`` :doc:`command line argument <../tutorials/editor/command_line_tutorial>`).
  2273. .. rst-class:: classref-item-separator
  2274. ----
  2275. .. _class_DisplayServer_method_get_primary_screen:
  2276. .. rst-class:: classref-method
  2277. :ref:`int<class_int>` **get_primary_screen**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_get_primary_screen>`
  2278. Returns index of the primary screen.
  2279. \ **Note:** This method is implemented on Linux/X11, macOS, and Windows. On other platforms, this method always returns ``0``.
  2280. .. rst-class:: classref-item-separator
  2281. ----
  2282. .. _class_DisplayServer_method_get_screen_count:
  2283. .. rst-class:: classref-method
  2284. :ref:`int<class_int>` **get_screen_count**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_get_screen_count>`
  2285. Returns the number of displays available.
  2286. \ **Note:** This method is implemented on Linux (X11 and Wayland), macOS, and Windows. On other platforms, this method always returns ``1``.
  2287. .. rst-class:: classref-item-separator
  2288. ----
  2289. .. _class_DisplayServer_method_get_screen_from_rect:
  2290. .. rst-class:: classref-method
  2291. :ref:`int<class_int>` **get_screen_from_rect**\ (\ rect\: :ref:`Rect2<class_Rect2>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_get_screen_from_rect>`
  2292. Returns the index of the screen that overlaps the most with the given rectangle. Returns :ref:`INVALID_SCREEN<class_DisplayServer_constant_INVALID_SCREEN>` if the rectangle doesn't overlap with any screen or has no area.
  2293. .. rst-class:: classref-item-separator
  2294. ----
  2295. .. _class_DisplayServer_method_get_swap_cancel_ok:
  2296. .. rst-class:: classref-method
  2297. :ref:`bool<class_bool>` **get_swap_cancel_ok**\ (\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_get_swap_cancel_ok>`
  2298. Returns ``true`` if positions of **OK** and **Cancel** buttons are swapped in dialogs. This is enabled by default on Windows to follow interface conventions, and be toggled by changing :ref:`ProjectSettings.gui/common/swap_cancel_ok<class_ProjectSettings_property_gui/common/swap_cancel_ok>`.
  2299. \ **Note:** This doesn't affect native dialogs such as the ones spawned by :ref:`dialog_show()<class_DisplayServer_method_dialog_show>`.
  2300. .. rst-class:: classref-item-separator
  2301. ----
  2302. .. _class_DisplayServer_method_get_window_at_screen_position:
  2303. .. rst-class:: classref-method
  2304. :ref:`int<class_int>` **get_window_at_screen_position**\ (\ position\: :ref:`Vector2i<class_Vector2i>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_get_window_at_screen_position>`
  2305. Returns the ID of the window at the specified screen ``position`` (in pixels). On multi-monitor setups, the screen position is relative to the virtual desktop area. On multi-monitor setups with different screen resolutions or orientations, the origin may be located outside any display like this:
  2306. .. code:: text
  2307. * (0, 0) +-------+
  2308. | |
  2309. +-------------+ | |
  2310. | | | |
  2311. | | | |
  2312. +-------------+ +-------+
  2313. .. rst-class:: classref-item-separator
  2314. ----
  2315. .. _class_DisplayServer_method_get_window_list:
  2316. .. rst-class:: classref-method
  2317. :ref:`PackedInt32Array<class_PackedInt32Array>` **get_window_list**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_get_window_list>`
  2318. Returns the list of Godot window IDs belonging to this process.
  2319. \ **Note:** Native dialogs are not included in this list.
  2320. .. rst-class:: classref-item-separator
  2321. ----
  2322. .. _class_DisplayServer_method_global_menu_add_check_item:
  2323. .. rst-class:: classref-method
  2324. :ref:`int<class_int>` **global_menu_add_check_item**\ (\ menu_root\: :ref:`String<class_String>`, label\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>` = Callable(), key_callback\: :ref:`Callable<class_Callable>` = Callable(), tag\: :ref:`Variant<class_Variant>` = null, accelerator\: :ref:`Key<enum_@GlobalScope_Key>` = 0, index\: :ref:`int<class_int>` = -1\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_add_check_item>`
  2325. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2326. Adds a new checkable item with text ``label`` to the global menu with ID ``menu_root``.
  2327. Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
  2328. An ``accelerator`` can optionally be defined, which is a keyboard shortcut that can be pressed to trigger the menu button even if it's not currently open. The ``accelerator`` is generally a combination of :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>`\ s and :ref:`Key<enum_@GlobalScope_Key>`\ s using bitwise OR such as ``KEY_MASK_CTRL | KEY_A`` (:kbd:`Ctrl + A`).
  2329. \ **Note:** The ``callback`` and ``key_callback`` Callables need to accept exactly one Variant parameter, the parameter passed to the Callables will be the value passed to ``tag``.
  2330. \ **Note:** This method is implemented only on macOS.
  2331. \ **Supported system menu IDs:**\
  2332. .. code:: text
  2333. "_main" - Main menu (macOS).
  2334. "_dock" - Dock popup menu (macOS).
  2335. "_apple" - Apple menu (macOS, custom items added before "Services").
  2336. "_window" - Window menu (macOS, custom items added after "Bring All to Front").
  2337. "_help" - Help menu (macOS).
  2338. .. rst-class:: classref-item-separator
  2339. ----
  2340. .. _class_DisplayServer_method_global_menu_add_icon_check_item:
  2341. .. rst-class:: classref-method
  2342. :ref:`int<class_int>` **global_menu_add_icon_check_item**\ (\ menu_root\: :ref:`String<class_String>`, icon\: :ref:`Texture2D<class_Texture2D>`, label\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>` = Callable(), key_callback\: :ref:`Callable<class_Callable>` = Callable(), tag\: :ref:`Variant<class_Variant>` = null, accelerator\: :ref:`Key<enum_@GlobalScope_Key>` = 0, index\: :ref:`int<class_int>` = -1\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_add_icon_check_item>`
  2343. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2344. Adds a new checkable item with text ``label`` and icon ``icon`` to the global menu with ID ``menu_root``.
  2345. Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
  2346. An ``accelerator`` can optionally be defined, which is a keyboard shortcut that can be pressed to trigger the menu button even if it's not currently open. The ``accelerator`` is generally a combination of :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>`\ s and :ref:`Key<enum_@GlobalScope_Key>`\ s using bitwise OR such as ``KEY_MASK_CTRL | KEY_A`` (:kbd:`Ctrl + A`).
  2347. \ **Note:** The ``callback`` and ``key_callback`` Callables need to accept exactly one Variant parameter, the parameter passed to the Callables will be the value passed to ``tag``.
  2348. \ **Note:** This method is implemented only on macOS.
  2349. \ **Supported system menu IDs:**\
  2350. .. code:: text
  2351. "_main" - Main menu (macOS).
  2352. "_dock" - Dock popup menu (macOS).
  2353. "_apple" - Apple menu (macOS, custom items added before "Services").
  2354. "_window" - Window menu (macOS, custom items added after "Bring All to Front").
  2355. "_help" - Help menu (macOS).
  2356. .. rst-class:: classref-item-separator
  2357. ----
  2358. .. _class_DisplayServer_method_global_menu_add_icon_item:
  2359. .. rst-class:: classref-method
  2360. :ref:`int<class_int>` **global_menu_add_icon_item**\ (\ menu_root\: :ref:`String<class_String>`, icon\: :ref:`Texture2D<class_Texture2D>`, label\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>` = Callable(), key_callback\: :ref:`Callable<class_Callable>` = Callable(), tag\: :ref:`Variant<class_Variant>` = null, accelerator\: :ref:`Key<enum_@GlobalScope_Key>` = 0, index\: :ref:`int<class_int>` = -1\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_add_icon_item>`
  2361. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2362. Adds a new item with text ``label`` and icon ``icon`` to the global menu with ID ``menu_root``.
  2363. Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
  2364. An ``accelerator`` can optionally be defined, which is a keyboard shortcut that can be pressed to trigger the menu button even if it's not currently open. The ``accelerator`` is generally a combination of :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>`\ s and :ref:`Key<enum_@GlobalScope_Key>`\ s using bitwise OR such as ``KEY_MASK_CTRL | KEY_A`` (:kbd:`Ctrl + A`).
  2365. \ **Note:** The ``callback`` and ``key_callback`` Callables need to accept exactly one Variant parameter, the parameter passed to the Callables will be the value passed to ``tag``.
  2366. \ **Note:** This method is implemented only on macOS.
  2367. \ **Supported system menu IDs:**\
  2368. .. code:: text
  2369. "_main" - Main menu (macOS).
  2370. "_dock" - Dock popup menu (macOS).
  2371. "_apple" - Apple menu (macOS, custom items added before "Services").
  2372. "_window" - Window menu (macOS, custom items added after "Bring All to Front").
  2373. "_help" - Help menu (macOS).
  2374. .. rst-class:: classref-item-separator
  2375. ----
  2376. .. _class_DisplayServer_method_global_menu_add_icon_radio_check_item:
  2377. .. rst-class:: classref-method
  2378. :ref:`int<class_int>` **global_menu_add_icon_radio_check_item**\ (\ menu_root\: :ref:`String<class_String>`, icon\: :ref:`Texture2D<class_Texture2D>`, label\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>` = Callable(), key_callback\: :ref:`Callable<class_Callable>` = Callable(), tag\: :ref:`Variant<class_Variant>` = null, accelerator\: :ref:`Key<enum_@GlobalScope_Key>` = 0, index\: :ref:`int<class_int>` = -1\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_add_icon_radio_check_item>`
  2379. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2380. Adds a new radio-checkable item with text ``label`` and icon ``icon`` to the global menu with ID ``menu_root``.
  2381. Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
  2382. An ``accelerator`` can optionally be defined, which is a keyboard shortcut that can be pressed to trigger the menu button even if it's not currently open. The ``accelerator`` is generally a combination of :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>`\ s and :ref:`Key<enum_@GlobalScope_Key>`\ s using bitwise OR such as ``KEY_MASK_CTRL | KEY_A`` (:kbd:`Ctrl + A`).
  2383. \ **Note:** Radio-checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See :ref:`global_menu_set_item_checked()<class_DisplayServer_method_global_menu_set_item_checked>` for more info on how to control it.
  2384. \ **Note:** The ``callback`` and ``key_callback`` Callables need to accept exactly one Variant parameter, the parameter passed to the Callables will be the value passed to ``tag``.
  2385. \ **Note:** This method is implemented only on macOS.
  2386. \ **Supported system menu IDs:**\
  2387. .. code:: text
  2388. "_main" - Main menu (macOS).
  2389. "_dock" - Dock popup menu (macOS).
  2390. "_apple" - Apple menu (macOS, custom items added before "Services").
  2391. "_window" - Window menu (macOS, custom items added after "Bring All to Front").
  2392. "_help" - Help menu (macOS).
  2393. .. rst-class:: classref-item-separator
  2394. ----
  2395. .. _class_DisplayServer_method_global_menu_add_item:
  2396. .. rst-class:: classref-method
  2397. :ref:`int<class_int>` **global_menu_add_item**\ (\ menu_root\: :ref:`String<class_String>`, label\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>` = Callable(), key_callback\: :ref:`Callable<class_Callable>` = Callable(), tag\: :ref:`Variant<class_Variant>` = null, accelerator\: :ref:`Key<enum_@GlobalScope_Key>` = 0, index\: :ref:`int<class_int>` = -1\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_add_item>`
  2398. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2399. Adds a new item with text ``label`` to the global menu with ID ``menu_root``.
  2400. Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
  2401. An ``accelerator`` can optionally be defined, which is a keyboard shortcut that can be pressed to trigger the menu button even if it's not currently open. The ``accelerator`` is generally a combination of :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>`\ s and :ref:`Key<enum_@GlobalScope_Key>`\ s using bitwise OR such as ``KEY_MASK_CTRL | KEY_A`` (:kbd:`Ctrl + A`).
  2402. \ **Note:** The ``callback`` and ``key_callback`` Callables need to accept exactly one Variant parameter, the parameter passed to the Callables will be the value passed to ``tag``.
  2403. \ **Note:** This method is implemented only on macOS.
  2404. \ **Supported system menu IDs:**\
  2405. .. code:: text
  2406. "_main" - Main menu (macOS).
  2407. "_dock" - Dock popup menu (macOS).
  2408. "_apple" - Apple menu (macOS, custom items added before "Services").
  2409. "_window" - Window menu (macOS, custom items added after "Bring All to Front").
  2410. "_help" - Help menu (macOS).
  2411. .. rst-class:: classref-item-separator
  2412. ----
  2413. .. _class_DisplayServer_method_global_menu_add_multistate_item:
  2414. .. rst-class:: classref-method
  2415. :ref:`int<class_int>` **global_menu_add_multistate_item**\ (\ menu_root\: :ref:`String<class_String>`, label\: :ref:`String<class_String>`, max_states\: :ref:`int<class_int>`, default_state\: :ref:`int<class_int>`, callback\: :ref:`Callable<class_Callable>` = Callable(), key_callback\: :ref:`Callable<class_Callable>` = Callable(), tag\: :ref:`Variant<class_Variant>` = null, accelerator\: :ref:`Key<enum_@GlobalScope_Key>` = 0, index\: :ref:`int<class_int>` = -1\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_add_multistate_item>`
  2416. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2417. Adds a new item with text ``label`` to the global menu with ID ``menu_root``.
  2418. Contrarily to normal binary items, multistate items can have more than two states, as defined by ``max_states``. Each press or activate of the item will increase the state by one. The default value is defined by ``default_state``.
  2419. Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
  2420. An ``accelerator`` can optionally be defined, which is a keyboard shortcut that can be pressed to trigger the menu button even if it's not currently open. The ``accelerator`` is generally a combination of :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>`\ s and :ref:`Key<enum_@GlobalScope_Key>`\ s using bitwise OR such as ``KEY_MASK_CTRL | KEY_A`` (:kbd:`Ctrl + A`).
  2421. \ **Note:** By default, there's no indication of the current item state, it should be changed manually.
  2422. \ **Note:** The ``callback`` and ``key_callback`` Callables need to accept exactly one Variant parameter, the parameter passed to the Callables will be the value passed to ``tag``.
  2423. \ **Note:** This method is implemented only on macOS.
  2424. \ **Supported system menu IDs:**\
  2425. .. code:: text
  2426. "_main" - Main menu (macOS).
  2427. "_dock" - Dock popup menu (macOS).
  2428. "_apple" - Apple menu (macOS, custom items added before "Services").
  2429. "_window" - Window menu (macOS, custom items added after "Bring All to Front").
  2430. "_help" - Help menu (macOS).
  2431. .. rst-class:: classref-item-separator
  2432. ----
  2433. .. _class_DisplayServer_method_global_menu_add_radio_check_item:
  2434. .. rst-class:: classref-method
  2435. :ref:`int<class_int>` **global_menu_add_radio_check_item**\ (\ menu_root\: :ref:`String<class_String>`, label\: :ref:`String<class_String>`, callback\: :ref:`Callable<class_Callable>` = Callable(), key_callback\: :ref:`Callable<class_Callable>` = Callable(), tag\: :ref:`Variant<class_Variant>` = null, accelerator\: :ref:`Key<enum_@GlobalScope_Key>` = 0, index\: :ref:`int<class_int>` = -1\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_add_radio_check_item>`
  2436. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2437. Adds a new radio-checkable item with text ``label`` to the global menu with ID ``menu_root``.
  2438. Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
  2439. An ``accelerator`` can optionally be defined, which is a keyboard shortcut that can be pressed to trigger the menu button even if it's not currently open. The ``accelerator`` is generally a combination of :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>`\ s and :ref:`Key<enum_@GlobalScope_Key>`\ s using bitwise OR such as ``KEY_MASK_CTRL | KEY_A`` (:kbd:`Ctrl + A`).
  2440. \ **Note:** Radio-checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See :ref:`global_menu_set_item_checked()<class_DisplayServer_method_global_menu_set_item_checked>` for more info on how to control it.
  2441. \ **Note:** The ``callback`` and ``key_callback`` Callables need to accept exactly one Variant parameter, the parameter passed to the Callables will be the value passed to ``tag``.
  2442. \ **Note:** This method is implemented only on macOS.
  2443. \ **Supported system menu IDs:**\
  2444. .. code:: text
  2445. "_main" - Main menu (macOS).
  2446. "_dock" - Dock popup menu (macOS).
  2447. "_apple" - Apple menu (macOS, custom items added before "Services").
  2448. "_window" - Window menu (macOS, custom items added after "Bring All to Front").
  2449. "_help" - Help menu (macOS).
  2450. .. rst-class:: classref-item-separator
  2451. ----
  2452. .. _class_DisplayServer_method_global_menu_add_separator:
  2453. .. rst-class:: classref-method
  2454. :ref:`int<class_int>` **global_menu_add_separator**\ (\ menu_root\: :ref:`String<class_String>`, index\: :ref:`int<class_int>` = -1\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_add_separator>`
  2455. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2456. Adds a separator between items to the global menu with ID ``menu_root``. Separators also occupy an index.
  2457. Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
  2458. \ **Note:** This method is implemented only on macOS.
  2459. \ **Supported system menu IDs:**\
  2460. .. code:: text
  2461. "_main" - Main menu (macOS).
  2462. "_dock" - Dock popup menu (macOS).
  2463. "_apple" - Apple menu (macOS, custom items added before "Services").
  2464. "_window" - Window menu (macOS, custom items added after "Bring All to Front").
  2465. "_help" - Help menu (macOS).
  2466. .. rst-class:: classref-item-separator
  2467. ----
  2468. .. _class_DisplayServer_method_global_menu_add_submenu_item:
  2469. .. rst-class:: classref-method
  2470. :ref:`int<class_int>` **global_menu_add_submenu_item**\ (\ menu_root\: :ref:`String<class_String>`, label\: :ref:`String<class_String>`, submenu\: :ref:`String<class_String>`, index\: :ref:`int<class_int>` = -1\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_add_submenu_item>`
  2471. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2472. Adds an item that will act as a submenu of the global menu ``menu_root``. The ``submenu`` argument is the ID of the global menu root that will be shown when the item is clicked.
  2473. Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
  2474. \ **Note:** This method is implemented only on macOS.
  2475. \ **Supported system menu IDs:**\
  2476. .. code:: text
  2477. "_main" - Main menu (macOS).
  2478. "_dock" - Dock popup menu (macOS).
  2479. "_apple" - Apple menu (macOS, custom items added before "Services").
  2480. "_window" - Window menu (macOS, custom items added after "Bring All to Front").
  2481. "_help" - Help menu (macOS).
  2482. .. rst-class:: classref-item-separator
  2483. ----
  2484. .. _class_DisplayServer_method_global_menu_clear:
  2485. .. rst-class:: classref-method
  2486. |void| **global_menu_clear**\ (\ menu_root\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_clear>`
  2487. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2488. Removes all items from the global menu with ID ``menu_root``.
  2489. \ **Note:** This method is implemented only on macOS.
  2490. \ **Supported system menu IDs:**\
  2491. .. code:: text
  2492. "_main" - Main menu (macOS).
  2493. "_dock" - Dock popup menu (macOS).
  2494. "_apple" - Apple menu (macOS, custom items added before "Services").
  2495. "_window" - Window menu (macOS, custom items added after "Bring All to Front").
  2496. "_help" - Help menu (macOS).
  2497. .. rst-class:: classref-item-separator
  2498. ----
  2499. .. _class_DisplayServer_method_global_menu_get_item_accelerator:
  2500. .. rst-class:: classref-method
  2501. :ref:`Key<enum_@GlobalScope_Key>` **global_menu_get_item_accelerator**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_item_accelerator>`
  2502. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2503. Returns the accelerator of the item at index ``idx``. Accelerators are special combinations of keys that activate the item, no matter which control is focused.
  2504. \ **Note:** This method is implemented only on macOS.
  2505. .. rst-class:: classref-item-separator
  2506. ----
  2507. .. _class_DisplayServer_method_global_menu_get_item_callback:
  2508. .. rst-class:: classref-method
  2509. :ref:`Callable<class_Callable>` **global_menu_get_item_callback**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_item_callback>`
  2510. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2511. Returns the callback of the item at index ``idx``.
  2512. \ **Note:** This method is implemented only on macOS.
  2513. .. rst-class:: classref-item-separator
  2514. ----
  2515. .. _class_DisplayServer_method_global_menu_get_item_count:
  2516. .. rst-class:: classref-method
  2517. :ref:`int<class_int>` **global_menu_get_item_count**\ (\ menu_root\: :ref:`String<class_String>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_item_count>`
  2518. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2519. Returns number of items in the global menu with ID ``menu_root``.
  2520. \ **Note:** This method is implemented only on macOS.
  2521. .. rst-class:: classref-item-separator
  2522. ----
  2523. .. _class_DisplayServer_method_global_menu_get_item_icon:
  2524. .. rst-class:: classref-method
  2525. :ref:`Texture2D<class_Texture2D>` **global_menu_get_item_icon**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_item_icon>`
  2526. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2527. Returns the icon of the item at index ``idx``.
  2528. \ **Note:** This method is implemented only on macOS.
  2529. .. rst-class:: classref-item-separator
  2530. ----
  2531. .. _class_DisplayServer_method_global_menu_get_item_indentation_level:
  2532. .. rst-class:: classref-method
  2533. :ref:`int<class_int>` **global_menu_get_item_indentation_level**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_item_indentation_level>`
  2534. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2535. Returns the horizontal offset of the item at the given ``idx``.
  2536. \ **Note:** This method is implemented only on macOS.
  2537. .. rst-class:: classref-item-separator
  2538. ----
  2539. .. _class_DisplayServer_method_global_menu_get_item_index_from_tag:
  2540. .. rst-class:: classref-method
  2541. :ref:`int<class_int>` **global_menu_get_item_index_from_tag**\ (\ menu_root\: :ref:`String<class_String>`, tag\: :ref:`Variant<class_Variant>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_item_index_from_tag>`
  2542. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2543. Returns the index of the item with the specified ``tag``. Indices are automatically assigned to each item by the engine, and cannot be set manually.
  2544. \ **Note:** This method is implemented only on macOS.
  2545. .. rst-class:: classref-item-separator
  2546. ----
  2547. .. _class_DisplayServer_method_global_menu_get_item_index_from_text:
  2548. .. rst-class:: classref-method
  2549. :ref:`int<class_int>` **global_menu_get_item_index_from_text**\ (\ menu_root\: :ref:`String<class_String>`, text\: :ref:`String<class_String>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_item_index_from_text>`
  2550. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2551. Returns the index of the item with the specified ``text``. Indices are automatically assigned to each item by the engine, and cannot be set manually.
  2552. \ **Note:** This method is implemented only on macOS.
  2553. .. rst-class:: classref-item-separator
  2554. ----
  2555. .. _class_DisplayServer_method_global_menu_get_item_key_callback:
  2556. .. rst-class:: classref-method
  2557. :ref:`Callable<class_Callable>` **global_menu_get_item_key_callback**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_item_key_callback>`
  2558. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2559. Returns the callback of the item accelerator at index ``idx``.
  2560. \ **Note:** This method is implemented only on macOS.
  2561. .. rst-class:: classref-item-separator
  2562. ----
  2563. .. _class_DisplayServer_method_global_menu_get_item_max_states:
  2564. .. rst-class:: classref-method
  2565. :ref:`int<class_int>` **global_menu_get_item_max_states**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_item_max_states>`
  2566. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2567. Returns number of states of a multistate item. See :ref:`global_menu_add_multistate_item()<class_DisplayServer_method_global_menu_add_multistate_item>` for details.
  2568. \ **Note:** This method is implemented only on macOS.
  2569. .. rst-class:: classref-item-separator
  2570. ----
  2571. .. _class_DisplayServer_method_global_menu_get_item_state:
  2572. .. rst-class:: classref-method
  2573. :ref:`int<class_int>` **global_menu_get_item_state**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_item_state>`
  2574. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2575. Returns the state of a multistate item. See :ref:`global_menu_add_multistate_item()<class_DisplayServer_method_global_menu_add_multistate_item>` for details.
  2576. \ **Note:** This method is implemented only on macOS.
  2577. .. rst-class:: classref-item-separator
  2578. ----
  2579. .. _class_DisplayServer_method_global_menu_get_item_submenu:
  2580. .. rst-class:: classref-method
  2581. :ref:`String<class_String>` **global_menu_get_item_submenu**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_item_submenu>`
  2582. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2583. Returns the submenu ID of the item at index ``idx``. See :ref:`global_menu_add_submenu_item()<class_DisplayServer_method_global_menu_add_submenu_item>` for more info on how to add a submenu.
  2584. \ **Note:** This method is implemented only on macOS.
  2585. .. rst-class:: classref-item-separator
  2586. ----
  2587. .. _class_DisplayServer_method_global_menu_get_item_tag:
  2588. .. rst-class:: classref-method
  2589. :ref:`Variant<class_Variant>` **global_menu_get_item_tag**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_item_tag>`
  2590. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2591. Returns the metadata of the specified item, which might be of any type. You can set it with :ref:`global_menu_set_item_tag()<class_DisplayServer_method_global_menu_set_item_tag>`, which provides a simple way of assigning context data to items.
  2592. \ **Note:** This method is implemented only on macOS.
  2593. .. rst-class:: classref-item-separator
  2594. ----
  2595. .. _class_DisplayServer_method_global_menu_get_item_text:
  2596. .. rst-class:: classref-method
  2597. :ref:`String<class_String>` **global_menu_get_item_text**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_item_text>`
  2598. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2599. Returns the text of the item at index ``idx``.
  2600. \ **Note:** This method is implemented only on macOS.
  2601. .. rst-class:: classref-item-separator
  2602. ----
  2603. .. _class_DisplayServer_method_global_menu_get_item_tooltip:
  2604. .. rst-class:: classref-method
  2605. :ref:`String<class_String>` **global_menu_get_item_tooltip**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_item_tooltip>`
  2606. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2607. Returns the tooltip associated with the specified index ``idx``.
  2608. \ **Note:** This method is implemented only on macOS.
  2609. .. rst-class:: classref-item-separator
  2610. ----
  2611. .. _class_DisplayServer_method_global_menu_get_system_menu_roots:
  2612. .. rst-class:: classref-method
  2613. :ref:`Dictionary<class_Dictionary>` **global_menu_get_system_menu_roots**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_get_system_menu_roots>`
  2614. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2615. Returns Dictionary of supported system menu IDs and names.
  2616. \ **Note:** This method is implemented only on macOS.
  2617. .. rst-class:: classref-item-separator
  2618. ----
  2619. .. _class_DisplayServer_method_global_menu_is_item_checkable:
  2620. .. rst-class:: classref-method
  2621. :ref:`bool<class_bool>` **global_menu_is_item_checkable**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_is_item_checkable>`
  2622. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2623. Returns ``true`` if the item at index ``idx`` is checkable in some way, i.e. if it has a checkbox or radio button.
  2624. \ **Note:** This method is implemented only on macOS.
  2625. .. rst-class:: classref-item-separator
  2626. ----
  2627. .. _class_DisplayServer_method_global_menu_is_item_checked:
  2628. .. rst-class:: classref-method
  2629. :ref:`bool<class_bool>` **global_menu_is_item_checked**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_is_item_checked>`
  2630. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2631. Returns ``true`` if the item at index ``idx`` is checked.
  2632. \ **Note:** This method is implemented only on macOS.
  2633. .. rst-class:: classref-item-separator
  2634. ----
  2635. .. _class_DisplayServer_method_global_menu_is_item_disabled:
  2636. .. rst-class:: classref-method
  2637. :ref:`bool<class_bool>` **global_menu_is_item_disabled**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_is_item_disabled>`
  2638. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2639. Returns ``true`` if the item at index ``idx`` is disabled. When it is disabled it can't be selected, or its action invoked.
  2640. See :ref:`global_menu_set_item_disabled()<class_DisplayServer_method_global_menu_set_item_disabled>` for more info on how to disable an item.
  2641. \ **Note:** This method is implemented only on macOS.
  2642. .. rst-class:: classref-item-separator
  2643. ----
  2644. .. _class_DisplayServer_method_global_menu_is_item_hidden:
  2645. .. rst-class:: classref-method
  2646. :ref:`bool<class_bool>` **global_menu_is_item_hidden**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_is_item_hidden>`
  2647. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2648. Returns ``true`` if the item at index ``idx`` is hidden.
  2649. See :ref:`global_menu_set_item_hidden()<class_DisplayServer_method_global_menu_set_item_hidden>` for more info on how to hide an item.
  2650. \ **Note:** This method is implemented only on macOS.
  2651. .. rst-class:: classref-item-separator
  2652. ----
  2653. .. _class_DisplayServer_method_global_menu_is_item_radio_checkable:
  2654. .. rst-class:: classref-method
  2655. :ref:`bool<class_bool>` **global_menu_is_item_radio_checkable**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_is_item_radio_checkable>`
  2656. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2657. Returns ``true`` if the item at index ``idx`` has radio button-style checkability.
  2658. \ **Note:** This is purely cosmetic; you must add the logic for checking/unchecking items in radio groups.
  2659. \ **Note:** This method is implemented only on macOS.
  2660. .. rst-class:: classref-item-separator
  2661. ----
  2662. .. _class_DisplayServer_method_global_menu_remove_item:
  2663. .. rst-class:: classref-method
  2664. |void| **global_menu_remove_item**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_remove_item>`
  2665. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2666. Removes the item at index ``idx`` from the global menu ``menu_root``.
  2667. \ **Note:** The indices of items after the removed item will be shifted by one.
  2668. \ **Note:** This method is implemented only on macOS.
  2669. .. rst-class:: classref-item-separator
  2670. ----
  2671. .. _class_DisplayServer_method_global_menu_set_item_accelerator:
  2672. .. rst-class:: classref-method
  2673. |void| **global_menu_set_item_accelerator**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, keycode\: :ref:`Key<enum_@GlobalScope_Key>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_accelerator>`
  2674. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2675. Sets the accelerator of the item at index ``idx``. ``keycode`` can be a single :ref:`Key<enum_@GlobalScope_Key>`, or a combination of :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>`\ s and :ref:`Key<enum_@GlobalScope_Key>`\ s using bitwise OR such as ``KEY_MASK_CTRL | KEY_A`` (:kbd:`Ctrl + A`).
  2676. \ **Note:** This method is implemented only on macOS.
  2677. .. rst-class:: classref-item-separator
  2678. ----
  2679. .. _class_DisplayServer_method_global_menu_set_item_callback:
  2680. .. rst-class:: classref-method
  2681. |void| **global_menu_set_item_callback**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_callback>`
  2682. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2683. Sets the callback of the item at index ``idx``. Callback is emitted when an item is pressed.
  2684. \ **Note:** The ``callback`` Callable needs to accept exactly one Variant parameter, the parameter passed to the Callable will be the value passed to the ``tag`` parameter when the menu item was created.
  2685. \ **Note:** This method is implemented only on macOS.
  2686. .. rst-class:: classref-item-separator
  2687. ----
  2688. .. _class_DisplayServer_method_global_menu_set_item_checkable:
  2689. .. rst-class:: classref-method
  2690. |void| **global_menu_set_item_checkable**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, checkable\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_checkable>`
  2691. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2692. Sets whether the item at index ``idx`` has a checkbox. If ``false``, sets the type of the item to plain text.
  2693. \ **Note:** This method is implemented only on macOS.
  2694. .. rst-class:: classref-item-separator
  2695. ----
  2696. .. _class_DisplayServer_method_global_menu_set_item_checked:
  2697. .. rst-class:: classref-method
  2698. |void| **global_menu_set_item_checked**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, checked\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_checked>`
  2699. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2700. Sets the checkstate status of the item at index ``idx``.
  2701. \ **Note:** This method is implemented only on macOS.
  2702. .. rst-class:: classref-item-separator
  2703. ----
  2704. .. _class_DisplayServer_method_global_menu_set_item_disabled:
  2705. .. rst-class:: classref-method
  2706. |void| **global_menu_set_item_disabled**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, disabled\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_disabled>`
  2707. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2708. Enables/disables the item at index ``idx``. When it is disabled, it can't be selected and its action can't be invoked.
  2709. \ **Note:** This method is implemented only on macOS.
  2710. .. rst-class:: classref-item-separator
  2711. ----
  2712. .. _class_DisplayServer_method_global_menu_set_item_hidden:
  2713. .. rst-class:: classref-method
  2714. |void| **global_menu_set_item_hidden**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, hidden\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_hidden>`
  2715. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2716. Hides/shows the item at index ``idx``. When it is hidden, an item does not appear in a menu and its action cannot be invoked.
  2717. \ **Note:** This method is implemented only on macOS.
  2718. .. rst-class:: classref-item-separator
  2719. ----
  2720. .. _class_DisplayServer_method_global_menu_set_item_hover_callbacks:
  2721. .. rst-class:: classref-method
  2722. |void| **global_menu_set_item_hover_callbacks**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_hover_callbacks>`
  2723. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2724. Sets the callback of the item at index ``idx``. The callback is emitted when an item is hovered.
  2725. \ **Note:** The ``callback`` Callable needs to accept exactly one Variant parameter, the parameter passed to the Callable will be the value passed to the ``tag`` parameter when the menu item was created.
  2726. \ **Note:** This method is implemented only on macOS.
  2727. .. rst-class:: classref-item-separator
  2728. ----
  2729. .. _class_DisplayServer_method_global_menu_set_item_icon:
  2730. .. rst-class:: classref-method
  2731. |void| **global_menu_set_item_icon**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, icon\: :ref:`Texture2D<class_Texture2D>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_icon>`
  2732. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2733. Replaces the :ref:`Texture2D<class_Texture2D>` icon of the specified ``idx``.
  2734. \ **Note:** This method is implemented only on macOS.
  2735. \ **Note:** This method is not supported by macOS "_dock" menu items.
  2736. .. rst-class:: classref-item-separator
  2737. ----
  2738. .. _class_DisplayServer_method_global_menu_set_item_indentation_level:
  2739. .. rst-class:: classref-method
  2740. |void| **global_menu_set_item_indentation_level**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, level\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_indentation_level>`
  2741. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2742. Sets the horizontal offset of the item at the given ``idx``.
  2743. \ **Note:** This method is implemented only on macOS.
  2744. .. rst-class:: classref-item-separator
  2745. ----
  2746. .. _class_DisplayServer_method_global_menu_set_item_key_callback:
  2747. .. rst-class:: classref-method
  2748. |void| **global_menu_set_item_key_callback**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, key_callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_key_callback>`
  2749. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2750. Sets the callback of the item at index ``idx``. Callback is emitted when its accelerator is activated.
  2751. \ **Note:** The ``key_callback`` Callable needs to accept exactly one Variant parameter, the parameter passed to the Callable will be the value passed to the ``tag`` parameter when the menu item was created.
  2752. \ **Note:** This method is implemented only on macOS.
  2753. .. rst-class:: classref-item-separator
  2754. ----
  2755. .. _class_DisplayServer_method_global_menu_set_item_max_states:
  2756. .. rst-class:: classref-method
  2757. |void| **global_menu_set_item_max_states**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, max_states\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_max_states>`
  2758. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2759. Sets number of state of a multistate item. See :ref:`global_menu_add_multistate_item()<class_DisplayServer_method_global_menu_add_multistate_item>` for details.
  2760. \ **Note:** This method is implemented only on macOS.
  2761. .. rst-class:: classref-item-separator
  2762. ----
  2763. .. _class_DisplayServer_method_global_menu_set_item_radio_checkable:
  2764. .. rst-class:: classref-method
  2765. |void| **global_menu_set_item_radio_checkable**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, checkable\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_radio_checkable>`
  2766. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2767. Sets the type of the item at the specified index ``idx`` to radio button. If ``false``, sets the type of the item to plain text.
  2768. \ **Note:** This is purely cosmetic; you must add the logic for checking/unchecking items in radio groups.
  2769. \ **Note:** This method is implemented only on macOS.
  2770. .. rst-class:: classref-item-separator
  2771. ----
  2772. .. _class_DisplayServer_method_global_menu_set_item_state:
  2773. .. rst-class:: classref-method
  2774. |void| **global_menu_set_item_state**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, state\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_state>`
  2775. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2776. Sets the state of a multistate item. See :ref:`global_menu_add_multistate_item()<class_DisplayServer_method_global_menu_add_multistate_item>` for details.
  2777. \ **Note:** This method is implemented only on macOS.
  2778. .. rst-class:: classref-item-separator
  2779. ----
  2780. .. _class_DisplayServer_method_global_menu_set_item_submenu:
  2781. .. rst-class:: classref-method
  2782. |void| **global_menu_set_item_submenu**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, submenu\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_submenu>`
  2783. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2784. Sets the submenu of the item at index ``idx``. The submenu is the ID of a global menu root that would be shown when the item is clicked.
  2785. \ **Note:** This method is implemented only on macOS.
  2786. .. rst-class:: classref-item-separator
  2787. ----
  2788. .. _class_DisplayServer_method_global_menu_set_item_tag:
  2789. .. rst-class:: classref-method
  2790. |void| **global_menu_set_item_tag**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, tag\: :ref:`Variant<class_Variant>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_tag>`
  2791. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2792. Sets the metadata of an item, which may be of any type. You can later get it with :ref:`global_menu_get_item_tag()<class_DisplayServer_method_global_menu_get_item_tag>`, which provides a simple way of assigning context data to items.
  2793. \ **Note:** This method is implemented only on macOS.
  2794. .. rst-class:: classref-item-separator
  2795. ----
  2796. .. _class_DisplayServer_method_global_menu_set_item_text:
  2797. .. rst-class:: classref-method
  2798. |void| **global_menu_set_item_text**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, text\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_text>`
  2799. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2800. Sets the text of the item at index ``idx``.
  2801. \ **Note:** This method is implemented only on macOS.
  2802. .. rst-class:: classref-item-separator
  2803. ----
  2804. .. _class_DisplayServer_method_global_menu_set_item_tooltip:
  2805. .. rst-class:: classref-method
  2806. |void| **global_menu_set_item_tooltip**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`, tooltip\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_item_tooltip>`
  2807. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2808. Sets the :ref:`String<class_String>` tooltip of the item at the specified index ``idx``.
  2809. \ **Note:** This method is implemented only on macOS.
  2810. .. rst-class:: classref-item-separator
  2811. ----
  2812. .. _class_DisplayServer_method_global_menu_set_popup_callbacks:
  2813. .. rst-class:: classref-method
  2814. |void| **global_menu_set_popup_callbacks**\ (\ menu_root\: :ref:`String<class_String>`, open_callback\: :ref:`Callable<class_Callable>`, close_callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_global_menu_set_popup_callbacks>`
  2815. **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
  2816. Registers callables to emit when the menu is respectively about to show or closed. Callback methods should have zero arguments.
  2817. .. rst-class:: classref-item-separator
  2818. ----
  2819. .. _class_DisplayServer_method_has_additional_outputs:
  2820. .. rst-class:: classref-method
  2821. :ref:`bool<class_bool>` **has_additional_outputs**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_has_additional_outputs>`
  2822. Returns ``true`` if any additional outputs have been registered via :ref:`register_additional_output()<class_DisplayServer_method_register_additional_output>`.
  2823. .. rst-class:: classref-item-separator
  2824. ----
  2825. .. _class_DisplayServer_method_has_feature:
  2826. .. rst-class:: classref-method
  2827. :ref:`bool<class_bool>` **has_feature**\ (\ feature\: :ref:`Feature<enum_DisplayServer_Feature>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_has_feature>`
  2828. Returns ``true`` if the specified ``feature`` is supported by the current **DisplayServer**, ``false`` otherwise.
  2829. .. rst-class:: classref-item-separator
  2830. ----
  2831. .. _class_DisplayServer_method_has_hardware_keyboard:
  2832. .. rst-class:: classref-method
  2833. :ref:`bool<class_bool>` **has_hardware_keyboard**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_has_hardware_keyboard>`
  2834. Returns ``true`` if a hardware keyboard is connected.
  2835. \ **Note:** This method is implemented on Android and iOS. On other platforms, this method always returns ``true``.
  2836. .. rst-class:: classref-item-separator
  2837. ----
  2838. .. _class_DisplayServer_method_help_set_search_callbacks:
  2839. .. rst-class:: classref-method
  2840. |void| **help_set_search_callbacks**\ (\ search_callback\: :ref:`Callable<class_Callable>`, action_callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_help_set_search_callbacks>`
  2841. Sets native help system search callbacks.
  2842. \ ``search_callback`` has the following arguments: ``String search_string, int result_limit`` and return a :ref:`Dictionary<class_Dictionary>` with "key, display name" pairs for the search results. Called when the user enters search terms in the ``Help`` menu.
  2843. \ ``action_callback`` has the following arguments: ``String key``. Called when the user selects a search result in the ``Help`` menu.
  2844. \ **Note:** This method is implemented only on macOS.
  2845. .. rst-class:: classref-item-separator
  2846. ----
  2847. .. _class_DisplayServer_method_ime_get_selection:
  2848. .. rst-class:: classref-method
  2849. :ref:`Vector2i<class_Vector2i>` **ime_get_selection**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_ime_get_selection>`
  2850. Returns the text selection in the `Input Method Editor <https://en.wikipedia.org/wiki/Input_method>`__ composition string, with the :ref:`Vector2i<class_Vector2i>`'s ``x`` component being the caret position and ``y`` being the length of the selection.
  2851. \ **Note:** This method is implemented only on macOS.
  2852. .. rst-class:: classref-item-separator
  2853. ----
  2854. .. _class_DisplayServer_method_ime_get_text:
  2855. .. rst-class:: classref-method
  2856. :ref:`String<class_String>` **ime_get_text**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_ime_get_text>`
  2857. Returns the composition string contained within the `Input Method Editor <https://en.wikipedia.org/wiki/Input_method>`__ window.
  2858. \ **Note:** This method is implemented only on macOS.
  2859. .. rst-class:: classref-item-separator
  2860. ----
  2861. .. _class_DisplayServer_method_is_dark_mode:
  2862. .. rst-class:: classref-method
  2863. :ref:`bool<class_bool>` **is_dark_mode**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_is_dark_mode>`
  2864. Returns ``true`` if OS is using dark mode.
  2865. \ **Note:** This method is implemented on Android, iOS, macOS, Windows, and Linux (X11/Wayland).
  2866. .. rst-class:: classref-item-separator
  2867. ----
  2868. .. _class_DisplayServer_method_is_dark_mode_supported:
  2869. .. rst-class:: classref-method
  2870. :ref:`bool<class_bool>` **is_dark_mode_supported**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_is_dark_mode_supported>`
  2871. Returns ``true`` if OS supports dark mode.
  2872. \ **Note:** This method is implemented on Android, iOS, macOS, Windows, and Linux (X11/Wayland).
  2873. .. rst-class:: classref-item-separator
  2874. ----
  2875. .. _class_DisplayServer_method_is_touchscreen_available:
  2876. .. rst-class:: classref-method
  2877. :ref:`bool<class_bool>` **is_touchscreen_available**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_is_touchscreen_available>`
  2878. Returns ``true`` if touch events are available (Android or iOS), the capability is detected on the Web platform or if :ref:`ProjectSettings.input_devices/pointing/emulate_touch_from_mouse<class_ProjectSettings_property_input_devices/pointing/emulate_touch_from_mouse>` is ``true``.
  2879. .. rst-class:: classref-item-separator
  2880. ----
  2881. .. _class_DisplayServer_method_is_window_transparency_available:
  2882. .. rst-class:: classref-method
  2883. :ref:`bool<class_bool>` **is_window_transparency_available**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_is_window_transparency_available>`
  2884. Returns ``true`` if the window background can be made transparent. This method returns ``false`` if :ref:`ProjectSettings.display/window/per_pixel_transparency/allowed<class_ProjectSettings_property_display/window/per_pixel_transparency/allowed>` is set to ``false``, or if transparency is not supported by the renderer or OS compositor.
  2885. .. rst-class:: classref-item-separator
  2886. ----
  2887. .. _class_DisplayServer_method_keyboard_get_current_layout:
  2888. .. rst-class:: classref-method
  2889. :ref:`int<class_int>` **keyboard_get_current_layout**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_keyboard_get_current_layout>`
  2890. Returns active keyboard layout index.
  2891. \ **Note:** This method is implemented on Linux (X11/Wayland), macOS, and Windows.
  2892. .. rst-class:: classref-item-separator
  2893. ----
  2894. .. _class_DisplayServer_method_keyboard_get_keycode_from_physical:
  2895. .. rst-class:: classref-method
  2896. :ref:`Key<enum_@GlobalScope_Key>` **keyboard_get_keycode_from_physical**\ (\ keycode\: :ref:`Key<enum_@GlobalScope_Key>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_keyboard_get_keycode_from_physical>`
  2897. Converts a physical (US QWERTY) ``keycode`` to one in the active keyboard layout.
  2898. \ **Note:** This method is implemented on Linux (X11/Wayland), macOS and Windows.
  2899. .. rst-class:: classref-item-separator
  2900. ----
  2901. .. _class_DisplayServer_method_keyboard_get_label_from_physical:
  2902. .. rst-class:: classref-method
  2903. :ref:`Key<enum_@GlobalScope_Key>` **keyboard_get_label_from_physical**\ (\ keycode\: :ref:`Key<enum_@GlobalScope_Key>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_keyboard_get_label_from_physical>`
  2904. Converts a physical (US QWERTY) ``keycode`` to localized label printed on the key in the active keyboard layout.
  2905. \ **Note:** This method is implemented on Linux (X11/Wayland), macOS and Windows.
  2906. .. rst-class:: classref-item-separator
  2907. ----
  2908. .. _class_DisplayServer_method_keyboard_get_layout_count:
  2909. .. rst-class:: classref-method
  2910. :ref:`int<class_int>` **keyboard_get_layout_count**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_keyboard_get_layout_count>`
  2911. Returns the number of keyboard layouts.
  2912. \ **Note:** This method is implemented on Linux (X11/Wayland), macOS and Windows.
  2913. .. rst-class:: classref-item-separator
  2914. ----
  2915. .. _class_DisplayServer_method_keyboard_get_layout_language:
  2916. .. rst-class:: classref-method
  2917. :ref:`String<class_String>` **keyboard_get_layout_language**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_keyboard_get_layout_language>`
  2918. Returns the ISO-639/BCP-47 language code of the keyboard layout at position ``index``.
  2919. \ **Note:** This method is implemented on Linux (X11/Wayland), macOS and Windows.
  2920. .. rst-class:: classref-item-separator
  2921. ----
  2922. .. _class_DisplayServer_method_keyboard_get_layout_name:
  2923. .. rst-class:: classref-method
  2924. :ref:`String<class_String>` **keyboard_get_layout_name**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_keyboard_get_layout_name>`
  2925. Returns the localized name of the keyboard layout at position ``index``.
  2926. \ **Note:** This method is implemented on Linux (X11/Wayland), macOS and Windows.
  2927. .. rst-class:: classref-item-separator
  2928. ----
  2929. .. _class_DisplayServer_method_keyboard_set_current_layout:
  2930. .. rst-class:: classref-method
  2931. |void| **keyboard_set_current_layout**\ (\ index\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_keyboard_set_current_layout>`
  2932. Sets the active keyboard layout.
  2933. \ **Note:** This method is implemented on Linux (X11/Wayland), macOS and Windows.
  2934. .. rst-class:: classref-item-separator
  2935. ----
  2936. .. _class_DisplayServer_method_mouse_get_button_state:
  2937. .. rst-class:: classref-method
  2938. |bitfield|\[:ref:`MouseButtonMask<enum_@GlobalScope_MouseButtonMask>`\] **mouse_get_button_state**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_mouse_get_button_state>`
  2939. Returns the current state of mouse buttons (whether each button is pressed) as a bitmask. If multiple mouse buttons are pressed at the same time, the bits are added together. Equivalent to :ref:`Input.get_mouse_button_mask()<class_Input_method_get_mouse_button_mask>`.
  2940. .. rst-class:: classref-item-separator
  2941. ----
  2942. .. _class_DisplayServer_method_mouse_get_mode:
  2943. .. rst-class:: classref-method
  2944. :ref:`MouseMode<enum_DisplayServer_MouseMode>` **mouse_get_mode**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_mouse_get_mode>`
  2945. Returns the current mouse mode. See also :ref:`mouse_set_mode()<class_DisplayServer_method_mouse_set_mode>`.
  2946. .. rst-class:: classref-item-separator
  2947. ----
  2948. .. _class_DisplayServer_method_mouse_get_position:
  2949. .. rst-class:: classref-method
  2950. :ref:`Vector2i<class_Vector2i>` **mouse_get_position**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_mouse_get_position>`
  2951. Returns the mouse cursor's current position in screen coordinates.
  2952. .. rst-class:: classref-item-separator
  2953. ----
  2954. .. _class_DisplayServer_method_mouse_set_mode:
  2955. .. rst-class:: classref-method
  2956. |void| **mouse_set_mode**\ (\ mouse_mode\: :ref:`MouseMode<enum_DisplayServer_MouseMode>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_mouse_set_mode>`
  2957. Sets the current mouse mode. See also :ref:`mouse_get_mode()<class_DisplayServer_method_mouse_get_mode>`.
  2958. .. rst-class:: classref-item-separator
  2959. ----
  2960. .. _class_DisplayServer_method_process_events:
  2961. .. rst-class:: classref-method
  2962. |void| **process_events**\ (\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_process_events>`
  2963. Perform window manager processing, including input flushing. See also :ref:`force_process_and_drop_events()<class_DisplayServer_method_force_process_and_drop_events>`, :ref:`Input.flush_buffered_events()<class_Input_method_flush_buffered_events>` and :ref:`Input.use_accumulated_input<class_Input_property_use_accumulated_input>`.
  2964. .. rst-class:: classref-item-separator
  2965. ----
  2966. .. _class_DisplayServer_method_register_additional_output:
  2967. .. rst-class:: classref-method
  2968. |void| **register_additional_output**\ (\ object\: :ref:`Object<class_Object>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_register_additional_output>`
  2969. Registers an :ref:`Object<class_Object>` which represents an additional output that will be rendered too, beyond normal windows. The :ref:`Object<class_Object>` is only used as an identifier, which can be later passed to :ref:`unregister_additional_output()<class_DisplayServer_method_unregister_additional_output>`.
  2970. This can be used to prevent Godot from skipping rendering when no normal windows are visible.
  2971. .. rst-class:: classref-item-separator
  2972. ----
  2973. .. _class_DisplayServer_method_screen_get_dpi:
  2974. .. rst-class:: classref-method
  2975. :ref:`int<class_int>` **screen_get_dpi**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_screen_get_dpi>`
  2976. Returns the dots per inch density of the specified screen. Returns platform specific default value if ``screen`` is invalid.
  2977. \ **Note:** One of the following constants can be used as ``screen``: :ref:`SCREEN_OF_MAIN_WINDOW<class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW>`, :ref:`SCREEN_PRIMARY<class_DisplayServer_constant_SCREEN_PRIMARY>`, :ref:`SCREEN_WITH_MOUSE_FOCUS<class_DisplayServer_constant_SCREEN_WITH_MOUSE_FOCUS>`, or :ref:`SCREEN_WITH_KEYBOARD_FOCUS<class_DisplayServer_constant_SCREEN_WITH_KEYBOARD_FOCUS>`.
  2978. \ **Note:** On macOS, returned value is inaccurate if fractional display scaling mode is used.
  2979. \ **Note:** On Android devices, the actual screen densities are grouped into six generalized densities:
  2980. .. code:: text
  2981. ldpi - 120 dpi
  2982. mdpi - 160 dpi
  2983. hdpi - 240 dpi
  2984. xhdpi - 320 dpi
  2985. xxhdpi - 480 dpi
  2986. xxxhdpi - 640 dpi
  2987. \ **Note:** This method is implemented on Android, iOS, Linux (X11/Wayland), macOS, Web, and Windows. On other platforms, this method always returns ``72``.
  2988. .. rst-class:: classref-item-separator
  2989. ----
  2990. .. _class_DisplayServer_method_screen_get_image:
  2991. .. rst-class:: classref-method
  2992. :ref:`Image<class_Image>` **screen_get_image**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_screen_get_image>`
  2993. Returns a screenshot of the ``screen``. Returns ``null`` if ``screen`` is invalid or the **DisplayServer** fails to capture screenshot.
  2994. \ **Note:** One of the following constants can be used as ``screen``: :ref:`SCREEN_OF_MAIN_WINDOW<class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW>`, :ref:`SCREEN_PRIMARY<class_DisplayServer_constant_SCREEN_PRIMARY>`, :ref:`SCREEN_WITH_MOUSE_FOCUS<class_DisplayServer_constant_SCREEN_WITH_MOUSE_FOCUS>`, or :ref:`SCREEN_WITH_KEYBOARD_FOCUS<class_DisplayServer_constant_SCREEN_WITH_KEYBOARD_FOCUS>`.
  2995. \ **Note:** This method is implemented on Linux (X11, excluding XWayland), macOS, and Windows. On other platforms, this method always returns ``null``.
  2996. \ **Note:** On macOS, this method requires the "Screen Recording" permission. If permission is not granted, this method returns a screenshot that will not include other application windows or OS elements not related to the application.
  2997. .. rst-class:: classref-item-separator
  2998. ----
  2999. .. _class_DisplayServer_method_screen_get_image_rect:
  3000. .. rst-class:: classref-method
  3001. :ref:`Image<class_Image>` **screen_get_image_rect**\ (\ rect\: :ref:`Rect2i<class_Rect2i>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_screen_get_image_rect>`
  3002. Returns a screenshot of the screen region defined by ``rect``. Returns ``null`` if ``rect`` is outside screen bounds or the **DisplayServer** fails to capture screenshot.
  3003. \ **Note:** This method is implemented on macOS and Windows. On other platforms, this method always returns ``null``.
  3004. \ **Note:** On macOS, this method requires the "Screen Recording" permission. If permission is not granted, this method returns a screenshot that will not include other application windows or OS elements not related to the application.
  3005. .. rst-class:: classref-item-separator
  3006. ----
  3007. .. _class_DisplayServer_method_screen_get_max_scale:
  3008. .. rst-class:: classref-method
  3009. :ref:`float<class_float>` **screen_get_max_scale**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_screen_get_max_scale>`
  3010. Returns the greatest scale factor of all screens.
  3011. \ **Note:** On macOS returned value is ``2.0`` if there is at least one hiDPI (Retina) screen in the system, and ``1.0`` in all other cases.
  3012. \ **Note:** This method is implemented only on macOS.
  3013. .. rst-class:: classref-item-separator
  3014. ----
  3015. .. _class_DisplayServer_method_screen_get_orientation:
  3016. .. rst-class:: classref-method
  3017. :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **screen_get_orientation**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_screen_get_orientation>`
  3018. Returns the ``screen``'s current orientation. See also :ref:`screen_set_orientation()<class_DisplayServer_method_screen_set_orientation>`. Returns :ref:`SCREEN_LANDSCAPE<class_DisplayServer_constant_SCREEN_LANDSCAPE>` if ``screen`` is invalid.
  3019. \ **Note:** One of the following constants can be used as ``screen``: :ref:`SCREEN_OF_MAIN_WINDOW<class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW>`, :ref:`SCREEN_PRIMARY<class_DisplayServer_constant_SCREEN_PRIMARY>`, :ref:`SCREEN_WITH_MOUSE_FOCUS<class_DisplayServer_constant_SCREEN_WITH_MOUSE_FOCUS>`, or :ref:`SCREEN_WITH_KEYBOARD_FOCUS<class_DisplayServer_constant_SCREEN_WITH_KEYBOARD_FOCUS>`.
  3020. \ **Note:** This method is implemented on Android and iOS. On other platforms, this method always returns :ref:`SCREEN_LANDSCAPE<class_DisplayServer_constant_SCREEN_LANDSCAPE>`.
  3021. .. rst-class:: classref-item-separator
  3022. ----
  3023. .. _class_DisplayServer_method_screen_get_pixel:
  3024. .. rst-class:: classref-method
  3025. :ref:`Color<class_Color>` **screen_get_pixel**\ (\ position\: :ref:`Vector2i<class_Vector2i>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_screen_get_pixel>`
  3026. Returns color of the display pixel at the ``position``.
  3027. \ **Note:** This method is implemented on Linux (X11, excluding XWayland), macOS, and Windows. On other platforms, this method always returns :ref:`Color<class_Color>`.
  3028. \ **Note:** On macOS, this method requires the "Screen Recording" permission. If permission is not granted, this method returns a screenshot that will only contain the desktop wallpaper, the current application's window, and other related UI elements.
  3029. .. rst-class:: classref-item-separator
  3030. ----
  3031. .. _class_DisplayServer_method_screen_get_position:
  3032. .. rst-class:: classref-method
  3033. :ref:`Vector2i<class_Vector2i>` **screen_get_position**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_screen_get_position>`
  3034. Returns the screen's top-left corner position in pixels. Returns :ref:`Vector2i.ZERO<class_Vector2i_constant_ZERO>` if ``screen`` is invalid. On multi-monitor setups, the screen position is relative to the virtual desktop area. On multi-monitor setups with different screen resolutions or orientations, the origin might be located outside any display like this:
  3035. .. code:: text
  3036. * (0, 0) +-------+
  3037. | |
  3038. +-------------+ | |
  3039. | | | |
  3040. | | | |
  3041. +-------------+ +-------+
  3042. See also :ref:`screen_get_size()<class_DisplayServer_method_screen_get_size>`.
  3043. \ **Note:** One of the following constants can be used as ``screen``: :ref:`SCREEN_OF_MAIN_WINDOW<class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW>`, :ref:`SCREEN_PRIMARY<class_DisplayServer_constant_SCREEN_PRIMARY>`, :ref:`SCREEN_WITH_MOUSE_FOCUS<class_DisplayServer_constant_SCREEN_WITH_MOUSE_FOCUS>`, or :ref:`SCREEN_WITH_KEYBOARD_FOCUS<class_DisplayServer_constant_SCREEN_WITH_KEYBOARD_FOCUS>`.
  3044. .. rst-class:: classref-item-separator
  3045. ----
  3046. .. _class_DisplayServer_method_screen_get_refresh_rate:
  3047. .. rst-class:: classref-method
  3048. :ref:`float<class_float>` **screen_get_refresh_rate**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_screen_get_refresh_rate>`
  3049. Returns the current refresh rate of the specified screen. Returns ``-1.0`` if ``screen`` is invalid or the **DisplayServer** fails to find the refresh rate for the specified screen.
  3050. To fallback to a default refresh rate if the method fails, try:
  3051. ::
  3052. var refresh_rate = DisplayServer.screen_get_refresh_rate()
  3053. if refresh_rate < 0:
  3054. refresh_rate = 60.0
  3055. \ **Note:** One of the following constants can be used as ``screen``: :ref:`SCREEN_OF_MAIN_WINDOW<class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW>`, :ref:`SCREEN_PRIMARY<class_DisplayServer_constant_SCREEN_PRIMARY>`, :ref:`SCREEN_WITH_MOUSE_FOCUS<class_DisplayServer_constant_SCREEN_WITH_MOUSE_FOCUS>`, or :ref:`SCREEN_WITH_KEYBOARD_FOCUS<class_DisplayServer_constant_SCREEN_WITH_KEYBOARD_FOCUS>`.
  3056. \ **Note:** This method is implemented on Android, iOS, macOS, Linux (X11 and Wayland), and Windows. On other platforms, this method always returns ``-1.0``.
  3057. .. rst-class:: classref-item-separator
  3058. ----
  3059. .. _class_DisplayServer_method_screen_get_scale:
  3060. .. rst-class:: classref-method
  3061. :ref:`float<class_float>` **screen_get_scale**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_screen_get_scale>`
  3062. Returns the scale factor of the specified screen by index. Returns ``1.0`` if ``screen`` is invalid.
  3063. \ **Note:** One of the following constants can be used as ``screen``: :ref:`SCREEN_OF_MAIN_WINDOW<class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW>`, :ref:`SCREEN_PRIMARY<class_DisplayServer_constant_SCREEN_PRIMARY>`, :ref:`SCREEN_WITH_MOUSE_FOCUS<class_DisplayServer_constant_SCREEN_WITH_MOUSE_FOCUS>`, or :ref:`SCREEN_WITH_KEYBOARD_FOCUS<class_DisplayServer_constant_SCREEN_WITH_KEYBOARD_FOCUS>`.
  3064. \ **Note:** On macOS, the returned value is ``2.0`` for hiDPI (Retina) screens, and ``1.0`` for all other cases.
  3065. \ **Note:** On Linux (Wayland), the returned value is accurate only when ``screen`` is :ref:`SCREEN_OF_MAIN_WINDOW<class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW>`. Due to API limitations, passing a direct index will return a rounded-up integer, if the screen has a fractional scale (e.g. ``1.25`` would get rounded up to ``2.0``).
  3066. \ **Note:** This method is implemented on Android, iOS, Web, macOS, and Linux (Wayland). On other platforms, this method always returns ``1.0``.
  3067. .. rst-class:: classref-item-separator
  3068. ----
  3069. .. _class_DisplayServer_method_screen_get_size:
  3070. .. rst-class:: classref-method
  3071. :ref:`Vector2i<class_Vector2i>` **screen_get_size**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_screen_get_size>`
  3072. Returns the screen's size in pixels. See also :ref:`screen_get_position()<class_DisplayServer_method_screen_get_position>` and :ref:`screen_get_usable_rect()<class_DisplayServer_method_screen_get_usable_rect>`. Returns :ref:`Vector2i.ZERO<class_Vector2i_constant_ZERO>` if ``screen`` is invalid.
  3073. \ **Note:** One of the following constants can be used as ``screen``: :ref:`SCREEN_OF_MAIN_WINDOW<class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW>`, :ref:`SCREEN_PRIMARY<class_DisplayServer_constant_SCREEN_PRIMARY>`, :ref:`SCREEN_WITH_MOUSE_FOCUS<class_DisplayServer_constant_SCREEN_WITH_MOUSE_FOCUS>`, or :ref:`SCREEN_WITH_KEYBOARD_FOCUS<class_DisplayServer_constant_SCREEN_WITH_KEYBOARD_FOCUS>`.
  3074. .. rst-class:: classref-item-separator
  3075. ----
  3076. .. _class_DisplayServer_method_screen_get_usable_rect:
  3077. .. rst-class:: classref-method
  3078. :ref:`Rect2i<class_Rect2i>` **screen_get_usable_rect**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_screen_get_usable_rect>`
  3079. Returns the portion of the screen that is not obstructed by a status bar in pixels. See also :ref:`screen_get_size()<class_DisplayServer_method_screen_get_size>`.
  3080. \ **Note:** One of the following constants can be used as ``screen``: :ref:`SCREEN_OF_MAIN_WINDOW<class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW>`, :ref:`SCREEN_PRIMARY<class_DisplayServer_constant_SCREEN_PRIMARY>`, :ref:`SCREEN_WITH_MOUSE_FOCUS<class_DisplayServer_constant_SCREEN_WITH_MOUSE_FOCUS>`, or :ref:`SCREEN_WITH_KEYBOARD_FOCUS<class_DisplayServer_constant_SCREEN_WITH_KEYBOARD_FOCUS>`.
  3081. \ **Note:** This method is implemented on Linux/X11, macOS, and Windows. On other platforms, this method always returns ``Rect2i(screen_get_position(screen), screen_get_size(screen))``.
  3082. .. rst-class:: classref-item-separator
  3083. ----
  3084. .. _class_DisplayServer_method_screen_is_kept_on:
  3085. .. rst-class:: classref-method
  3086. :ref:`bool<class_bool>` **screen_is_kept_on**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_screen_is_kept_on>`
  3087. Returns ``true`` if the screen should never be turned off by the operating system's power-saving measures. See also :ref:`screen_set_keep_on()<class_DisplayServer_method_screen_set_keep_on>`.
  3088. .. rst-class:: classref-item-separator
  3089. ----
  3090. .. _class_DisplayServer_method_screen_set_keep_on:
  3091. .. rst-class:: classref-method
  3092. |void| **screen_set_keep_on**\ (\ enable\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_screen_set_keep_on>`
  3093. Sets whether the screen should never be turned off by the operating system's power-saving measures. See also :ref:`screen_is_kept_on()<class_DisplayServer_method_screen_is_kept_on>`.
  3094. .. rst-class:: classref-item-separator
  3095. ----
  3096. .. _class_DisplayServer_method_screen_set_orientation:
  3097. .. rst-class:: classref-method
  3098. |void| **screen_set_orientation**\ (\ orientation\: :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>`, screen\: :ref:`int<class_int>` = -1\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_screen_set_orientation>`
  3099. Sets the ``screen``'s ``orientation``. See also :ref:`screen_get_orientation()<class_DisplayServer_method_screen_get_orientation>`.
  3100. \ **Note:** One of the following constants can be used as ``screen``: :ref:`SCREEN_OF_MAIN_WINDOW<class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW>`, :ref:`SCREEN_PRIMARY<class_DisplayServer_constant_SCREEN_PRIMARY>`, :ref:`SCREEN_WITH_MOUSE_FOCUS<class_DisplayServer_constant_SCREEN_WITH_MOUSE_FOCUS>`, or :ref:`SCREEN_WITH_KEYBOARD_FOCUS<class_DisplayServer_constant_SCREEN_WITH_KEYBOARD_FOCUS>`.
  3101. \ **Note:** This method is implemented on Android and iOS.
  3102. \ **Note:** On iOS, this method has no effect if :ref:`ProjectSettings.display/window/handheld/orientation<class_ProjectSettings_property_display/window/handheld/orientation>` is not set to :ref:`SCREEN_SENSOR<class_DisplayServer_constant_SCREEN_SENSOR>`.
  3103. .. rst-class:: classref-item-separator
  3104. ----
  3105. .. _class_DisplayServer_method_set_hardware_keyboard_connection_change_callback:
  3106. .. rst-class:: classref-method
  3107. |void| **set_hardware_keyboard_connection_change_callback**\ (\ callable\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_set_hardware_keyboard_connection_change_callback>`
  3108. Sets the ``callable`` that should be called when hardware keyboard is connected/disconnected. ``callable`` should accept a single :ref:`bool<class_bool>` parameter indicating whether the keyboard is connected (true) or disconnected (false).
  3109. \ **Note:** This method is only implemented on Android.
  3110. .. rst-class:: classref-item-separator
  3111. ----
  3112. .. _class_DisplayServer_method_set_icon:
  3113. .. rst-class:: classref-method
  3114. |void| **set_icon**\ (\ image\: :ref:`Image<class_Image>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_set_icon>`
  3115. Sets the window icon (usually displayed in the top-left corner) with an :ref:`Image<class_Image>`. To use icons in the operating system's native format, use :ref:`set_native_icon()<class_DisplayServer_method_set_native_icon>` instead.
  3116. \ **Note:** Requires support for :ref:`FEATURE_ICON<class_DisplayServer_constant_FEATURE_ICON>`.
  3117. .. rst-class:: classref-item-separator
  3118. ----
  3119. .. _class_DisplayServer_method_set_native_icon:
  3120. .. rst-class:: classref-method
  3121. |void| **set_native_icon**\ (\ filename\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_set_native_icon>`
  3122. Sets the window icon (usually displayed in the top-left corner) in the operating system's *native* format. The file at ``filename`` must be in ``.ico`` format on Windows or ``.icns`` on macOS. By using specially crafted ``.ico`` or ``.icns`` icons, :ref:`set_native_icon()<class_DisplayServer_method_set_native_icon>` allows specifying different icons depending on the size the icon is displayed at. This size is determined by the operating system and user preferences (including the display scale factor). To use icons in other formats, use :ref:`set_icon()<class_DisplayServer_method_set_icon>` instead.
  3123. \ **Note:** Requires support for :ref:`FEATURE_NATIVE_ICON<class_DisplayServer_constant_FEATURE_NATIVE_ICON>`.
  3124. .. rst-class:: classref-item-separator
  3125. ----
  3126. .. _class_DisplayServer_method_set_system_theme_change_callback:
  3127. .. rst-class:: classref-method
  3128. |void| **set_system_theme_change_callback**\ (\ callable\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_set_system_theme_change_callback>`
  3129. Sets the ``callable`` that should be called when system theme settings are changed. Callback method should have zero arguments.
  3130. \ **Note:** This method is implemented on Android, iOS, macOS, Windows, and Linux (X11/Wayland).
  3131. .. rst-class:: classref-item-separator
  3132. ----
  3133. .. _class_DisplayServer_method_show_emoji_and_symbol_picker:
  3134. .. rst-class:: classref-method
  3135. |void| **show_emoji_and_symbol_picker**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_show_emoji_and_symbol_picker>`
  3136. Opens system emoji and symbol picker.
  3137. \ **Note:** This method is implemented on macOS and Windows.
  3138. .. rst-class:: classref-item-separator
  3139. ----
  3140. .. _class_DisplayServer_method_status_indicator_get_rect:
  3141. .. rst-class:: classref-method
  3142. :ref:`Rect2<class_Rect2>` **status_indicator_get_rect**\ (\ id\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_status_indicator_get_rect>`
  3143. Returns the rectangle for the given status indicator ``id`` in screen coordinates. If the status indicator is not visible, returns an empty :ref:`Rect2<class_Rect2>`.
  3144. \ **Note:** This method is implemented on macOS and Windows.
  3145. .. rst-class:: classref-item-separator
  3146. ----
  3147. .. _class_DisplayServer_method_status_indicator_set_callback:
  3148. .. rst-class:: classref-method
  3149. |void| **status_indicator_set_callback**\ (\ id\: :ref:`int<class_int>`, callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_status_indicator_set_callback>`
  3150. Sets the application status indicator activation callback. ``callback`` should take two arguments: :ref:`int<class_int>` mouse button index (one of :ref:`MouseButton<enum_@GlobalScope_MouseButton>` values) and :ref:`Vector2i<class_Vector2i>` click position in screen coordinates.
  3151. \ **Note:** This method is implemented on macOS and Windows.
  3152. .. rst-class:: classref-item-separator
  3153. ----
  3154. .. _class_DisplayServer_method_status_indicator_set_icon:
  3155. .. rst-class:: classref-method
  3156. |void| **status_indicator_set_icon**\ (\ id\: :ref:`int<class_int>`, icon\: :ref:`Texture2D<class_Texture2D>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_status_indicator_set_icon>`
  3157. Sets the application status indicator icon.
  3158. \ **Note:** This method is implemented on macOS and Windows.
  3159. .. rst-class:: classref-item-separator
  3160. ----
  3161. .. _class_DisplayServer_method_status_indicator_set_menu:
  3162. .. rst-class:: classref-method
  3163. |void| **status_indicator_set_menu**\ (\ id\: :ref:`int<class_int>`, menu_rid\: :ref:`RID<class_RID>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_status_indicator_set_menu>`
  3164. Sets the application status indicator native popup menu.
  3165. \ **Note:** On macOS, the menu is activated by any mouse button. Its activation callback is *not* triggered.
  3166. \ **Note:** On Windows, the menu is activated by the right mouse button, selecting the status icon and pressing :kbd:`Shift + F10`, or the applications key. The menu's activation callback for the other mouse buttons is still triggered.
  3167. \ **Note:** Native popup is only supported if :ref:`NativeMenu<class_NativeMenu>` supports the :ref:`NativeMenu.FEATURE_POPUP_MENU<class_NativeMenu_constant_FEATURE_POPUP_MENU>` feature.
  3168. .. rst-class:: classref-item-separator
  3169. ----
  3170. .. _class_DisplayServer_method_status_indicator_set_tooltip:
  3171. .. rst-class:: classref-method
  3172. |void| **status_indicator_set_tooltip**\ (\ id\: :ref:`int<class_int>`, tooltip\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_status_indicator_set_tooltip>`
  3173. Sets the application status indicator tooltip.
  3174. \ **Note:** This method is implemented on macOS and Windows.
  3175. .. rst-class:: classref-item-separator
  3176. ----
  3177. .. _class_DisplayServer_method_tablet_get_current_driver:
  3178. .. rst-class:: classref-method
  3179. :ref:`String<class_String>` **tablet_get_current_driver**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_tablet_get_current_driver>`
  3180. Returns current active tablet driver name.
  3181. \ **Note:** This method is implemented only on Windows.
  3182. .. rst-class:: classref-item-separator
  3183. ----
  3184. .. _class_DisplayServer_method_tablet_get_driver_count:
  3185. .. rst-class:: classref-method
  3186. :ref:`int<class_int>` **tablet_get_driver_count**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_tablet_get_driver_count>`
  3187. Returns the total number of available tablet drivers.
  3188. \ **Note:** This method is implemented only on Windows.
  3189. .. rst-class:: classref-item-separator
  3190. ----
  3191. .. _class_DisplayServer_method_tablet_get_driver_name:
  3192. .. rst-class:: classref-method
  3193. :ref:`String<class_String>` **tablet_get_driver_name**\ (\ idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_tablet_get_driver_name>`
  3194. Returns the tablet driver name for the given index.
  3195. \ **Note:** This method is implemented only on Windows.
  3196. .. rst-class:: classref-item-separator
  3197. ----
  3198. .. _class_DisplayServer_method_tablet_set_current_driver:
  3199. .. rst-class:: classref-method
  3200. |void| **tablet_set_current_driver**\ (\ name\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_tablet_set_current_driver>`
  3201. Set active tablet driver name.
  3202. Supported drivers:
  3203. - ``winink``: Windows Ink API, default.
  3204. - ``wintab``: Wacom Wintab API (compatible device driver required).
  3205. - ``dummy``: Dummy driver, tablet input is disabled.
  3206. \ **Note:** This method is implemented only on Windows.
  3207. .. rst-class:: classref-item-separator
  3208. ----
  3209. .. _class_DisplayServer_method_tts_get_voices:
  3210. .. rst-class:: classref-method
  3211. :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] **tts_get_voices**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_tts_get_voices>`
  3212. Returns an :ref:`Array<class_Array>` of voice information dictionaries.
  3213. Each :ref:`Dictionary<class_Dictionary>` contains two :ref:`String<class_String>` entries:
  3214. - ``name`` is voice name.
  3215. - ``id`` is voice identifier.
  3216. - ``language`` is language code in ``lang_Variant`` format. The ``lang`` part is a 2 or 3-letter code based on the ISO-639 standard, in lowercase. The ``Variant`` part is an engine-dependent string describing country, region or/and dialect.
  3217. Note that Godot depends on system libraries for text-to-speech functionality. These libraries are installed by default on Windows and macOS, but not on all Linux distributions. If they are not present, this method will return an empty list. This applies to both Godot users on Linux, as well as end-users on Linux running Godot games that use text-to-speech.
  3218. \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
  3219. .. rst-class:: classref-item-separator
  3220. ----
  3221. .. _class_DisplayServer_method_tts_get_voices_for_language:
  3222. .. rst-class:: classref-method
  3223. :ref:`PackedStringArray<class_PackedStringArray>` **tts_get_voices_for_language**\ (\ language\: :ref:`String<class_String>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_tts_get_voices_for_language>`
  3224. Returns a :ref:`PackedStringArray<class_PackedStringArray>` of voice identifiers for the ``language``.
  3225. \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
  3226. .. rst-class:: classref-item-separator
  3227. ----
  3228. .. _class_DisplayServer_method_tts_is_paused:
  3229. .. rst-class:: classref-method
  3230. :ref:`bool<class_bool>` **tts_is_paused**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_tts_is_paused>`
  3231. Returns ``true`` if the synthesizer is in a paused state.
  3232. \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
  3233. .. rst-class:: classref-item-separator
  3234. ----
  3235. .. _class_DisplayServer_method_tts_is_speaking:
  3236. .. rst-class:: classref-method
  3237. :ref:`bool<class_bool>` **tts_is_speaking**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_tts_is_speaking>`
  3238. Returns ``true`` if the synthesizer is generating speech, or have utterance waiting in the queue.
  3239. \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
  3240. .. rst-class:: classref-item-separator
  3241. ----
  3242. .. _class_DisplayServer_method_tts_pause:
  3243. .. rst-class:: classref-method
  3244. |void| **tts_pause**\ (\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_tts_pause>`
  3245. Puts the synthesizer into a paused state.
  3246. \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
  3247. .. rst-class:: classref-item-separator
  3248. ----
  3249. .. _class_DisplayServer_method_tts_resume:
  3250. .. rst-class:: classref-method
  3251. |void| **tts_resume**\ (\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_tts_resume>`
  3252. Resumes the synthesizer if it was paused.
  3253. \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
  3254. .. rst-class:: classref-item-separator
  3255. ----
  3256. .. _class_DisplayServer_method_tts_set_utterance_callback:
  3257. .. rst-class:: classref-method
  3258. |void| **tts_set_utterance_callback**\ (\ event\: :ref:`TTSUtteranceEvent<enum_DisplayServer_TTSUtteranceEvent>`, callable\: :ref:`Callable<class_Callable>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_tts_set_utterance_callback>`
  3259. Adds a callback, which is called when the utterance has started, finished, canceled or reached a text boundary.
  3260. - :ref:`TTS_UTTERANCE_STARTED<class_DisplayServer_constant_TTS_UTTERANCE_STARTED>`, :ref:`TTS_UTTERANCE_ENDED<class_DisplayServer_constant_TTS_UTTERANCE_ENDED>`, and :ref:`TTS_UTTERANCE_CANCELED<class_DisplayServer_constant_TTS_UTTERANCE_CANCELED>` callable's method should take one :ref:`int<class_int>` parameter, the utterance ID.
  3261. - :ref:`TTS_UTTERANCE_BOUNDARY<class_DisplayServer_constant_TTS_UTTERANCE_BOUNDARY>` callable's method should take two :ref:`int<class_int>` parameters, the index of the character and the utterance ID.
  3262. \ **Note:** The granularity of the boundary callbacks is engine dependent.
  3263. \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
  3264. .. rst-class:: classref-item-separator
  3265. ----
  3266. .. _class_DisplayServer_method_tts_speak:
  3267. .. rst-class:: classref-method
  3268. |void| **tts_speak**\ (\ text\: :ref:`String<class_String>`, voice\: :ref:`String<class_String>`, volume\: :ref:`int<class_int>` = 50, pitch\: :ref:`float<class_float>` = 1.0, rate\: :ref:`float<class_float>` = 1.0, utterance_id\: :ref:`int<class_int>` = 0, interrupt\: :ref:`bool<class_bool>` = false\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_tts_speak>`
  3269. Adds an utterance to the queue. If ``interrupt`` is ``true``, the queue is cleared first.
  3270. - ``voice`` identifier is one of the ``"id"`` values returned by :ref:`tts_get_voices()<class_DisplayServer_method_tts_get_voices>` or one of the values returned by :ref:`tts_get_voices_for_language()<class_DisplayServer_method_tts_get_voices_for_language>`.
  3271. - ``volume`` ranges from ``0`` (lowest) to ``100`` (highest).
  3272. - ``pitch`` ranges from ``0.0`` (lowest) to ``2.0`` (highest), ``1.0`` is default pitch for the current voice.
  3273. - ``rate`` ranges from ``0.1`` (lowest) to ``10.0`` (highest), ``1.0`` is a normal speaking rate. Other values act as a percentage relative.
  3274. - ``utterance_id`` is passed as a parameter to the callback functions.
  3275. \ **Note:** On Windows and Linux (X11/Wayland), utterance ``text`` can use SSML markup. SSML support is engine and voice dependent. If the engine does not support SSML, you should strip out all XML markup before calling :ref:`tts_speak()<class_DisplayServer_method_tts_speak>`.
  3276. \ **Note:** The granularity of pitch, rate, and volume is engine and voice dependent. Values may be truncated.
  3277. \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
  3278. .. rst-class:: classref-item-separator
  3279. ----
  3280. .. _class_DisplayServer_method_tts_stop:
  3281. .. rst-class:: classref-method
  3282. |void| **tts_stop**\ (\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_tts_stop>`
  3283. Stops synthesis in progress and removes all utterances from the queue.
  3284. \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
  3285. .. rst-class:: classref-item-separator
  3286. ----
  3287. .. _class_DisplayServer_method_unregister_additional_output:
  3288. .. rst-class:: classref-method
  3289. |void| **unregister_additional_output**\ (\ object\: :ref:`Object<class_Object>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_unregister_additional_output>`
  3290. Unregisters an :ref:`Object<class_Object>` representing an additional output, that was registered via :ref:`register_additional_output()<class_DisplayServer_method_register_additional_output>`.
  3291. .. rst-class:: classref-item-separator
  3292. ----
  3293. .. _class_DisplayServer_method_virtual_keyboard_get_height:
  3294. .. rst-class:: classref-method
  3295. :ref:`int<class_int>` **virtual_keyboard_get_height**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_virtual_keyboard_get_height>`
  3296. Returns the on-screen keyboard's height in pixels. Returns 0 if there is no keyboard or if it is currently hidden.
  3297. .. rst-class:: classref-item-separator
  3298. ----
  3299. .. _class_DisplayServer_method_virtual_keyboard_hide:
  3300. .. rst-class:: classref-method
  3301. |void| **virtual_keyboard_hide**\ (\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_virtual_keyboard_hide>`
  3302. Hides the virtual keyboard if it is shown, does nothing otherwise.
  3303. .. rst-class:: classref-item-separator
  3304. ----
  3305. .. _class_DisplayServer_method_virtual_keyboard_show:
  3306. .. rst-class:: classref-method
  3307. |void| **virtual_keyboard_show**\ (\ existing_text\: :ref:`String<class_String>`, position\: :ref:`Rect2<class_Rect2>` = Rect2(0, 0, 0, 0), type\: :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` = 0, max_length\: :ref:`int<class_int>` = -1, cursor_start\: :ref:`int<class_int>` = -1, cursor_end\: :ref:`int<class_int>` = -1\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_virtual_keyboard_show>`
  3308. Shows the virtual keyboard if the platform has one.
  3309. \ ``existing_text`` parameter is useful for implementing your own :ref:`LineEdit<class_LineEdit>` or :ref:`TextEdit<class_TextEdit>`, as it tells the virtual keyboard what text has already been typed (the virtual keyboard uses it for auto-correct and predictions).
  3310. \ ``position`` parameter is the screen space :ref:`Rect2<class_Rect2>` of the edited text.
  3311. \ ``type`` parameter allows configuring which type of virtual keyboard to show.
  3312. \ ``max_length`` limits the number of characters that can be entered if different from ``-1``.
  3313. \ ``cursor_start`` can optionally define the current text cursor position if ``cursor_end`` is not set.
  3314. \ ``cursor_start`` and ``cursor_end`` can optionally define the current text selection.
  3315. \ **Note:** This method is implemented on Android, iOS and Web.
  3316. .. rst-class:: classref-item-separator
  3317. ----
  3318. .. _class_DisplayServer_method_warp_mouse:
  3319. .. rst-class:: classref-method
  3320. |void| **warp_mouse**\ (\ position\: :ref:`Vector2i<class_Vector2i>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_warp_mouse>`
  3321. Sets the mouse cursor position to the given ``position`` relative to an origin at the upper left corner of the currently focused game Window Manager window.
  3322. \ **Note:** :ref:`warp_mouse()<class_DisplayServer_method_warp_mouse>` is only supported on Windows, macOS, and Linux (X11/Wayland). It has no effect on Android, iOS, and Web.
  3323. .. rst-class:: classref-item-separator
  3324. ----
  3325. .. _class_DisplayServer_method_window_can_draw:
  3326. .. rst-class:: classref-method
  3327. :ref:`bool<class_bool>` **window_can_draw**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_can_draw>`
  3328. Returns ``true`` if anything can be drawn in the window specified by ``window_id``, ``false`` otherwise. Using the ``--disable-render-loop`` command line argument or a headless build will return ``false``.
  3329. .. rst-class:: classref-item-separator
  3330. ----
  3331. .. _class_DisplayServer_method_window_get_active_popup:
  3332. .. rst-class:: classref-method
  3333. :ref:`int<class_int>` **window_get_active_popup**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_active_popup>`
  3334. Returns ID of the active popup window, or :ref:`INVALID_WINDOW_ID<class_DisplayServer_constant_INVALID_WINDOW_ID>` if there is none.
  3335. .. rst-class:: classref-item-separator
  3336. ----
  3337. .. _class_DisplayServer_method_window_get_attached_instance_id:
  3338. .. rst-class:: classref-method
  3339. :ref:`int<class_int>` **window_get_attached_instance_id**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_attached_instance_id>`
  3340. Returns the :ref:`Object.get_instance_id()<class_Object_method_get_instance_id>` of the :ref:`Window<class_Window>` the ``window_id`` is attached to.
  3341. .. rst-class:: classref-item-separator
  3342. ----
  3343. .. _class_DisplayServer_method_window_get_current_screen:
  3344. .. rst-class:: classref-method
  3345. :ref:`int<class_int>` **window_get_current_screen**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_current_screen>`
  3346. Returns the screen the window specified by ``window_id`` is currently positioned on. If the screen overlaps multiple displays, the screen where the window's center is located is returned. See also :ref:`window_set_current_screen()<class_DisplayServer_method_window_set_current_screen>`. Returns :ref:`INVALID_SCREEN<class_DisplayServer_constant_INVALID_SCREEN>` if ``window_id`` is invalid.
  3347. \ **Note:** This method is implemented on Linux/X11, macOS, and Windows. On other platforms, this method always returns ``0``.
  3348. .. rst-class:: classref-item-separator
  3349. ----
  3350. .. _class_DisplayServer_method_window_get_flag:
  3351. .. rst-class:: classref-method
  3352. :ref:`bool<class_bool>` **window_get_flag**\ (\ flag\: :ref:`WindowFlags<enum_DisplayServer_WindowFlags>`, window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_flag>`
  3353. Returns the current value of the given window's ``flag``.
  3354. .. rst-class:: classref-item-separator
  3355. ----
  3356. .. _class_DisplayServer_method_window_get_max_size:
  3357. .. rst-class:: classref-method
  3358. :ref:`Vector2i<class_Vector2i>` **window_get_max_size**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_max_size>`
  3359. Returns the window's maximum size (in pixels). See also :ref:`window_set_max_size()<class_DisplayServer_method_window_set_max_size>`.
  3360. .. rst-class:: classref-item-separator
  3361. ----
  3362. .. _class_DisplayServer_method_window_get_min_size:
  3363. .. rst-class:: classref-method
  3364. :ref:`Vector2i<class_Vector2i>` **window_get_min_size**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_min_size>`
  3365. Returns the window's minimum size (in pixels). See also :ref:`window_set_min_size()<class_DisplayServer_method_window_set_min_size>`.
  3366. .. rst-class:: classref-item-separator
  3367. ----
  3368. .. _class_DisplayServer_method_window_get_mode:
  3369. .. rst-class:: classref-method
  3370. :ref:`WindowMode<enum_DisplayServer_WindowMode>` **window_get_mode**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_mode>`
  3371. Returns the mode of the given window.
  3372. .. rst-class:: classref-item-separator
  3373. ----
  3374. .. _class_DisplayServer_method_window_get_native_handle:
  3375. .. rst-class:: classref-method
  3376. :ref:`int<class_int>` **window_get_native_handle**\ (\ handle_type\: :ref:`HandleType<enum_DisplayServer_HandleType>`, window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_native_handle>`
  3377. Returns internal structure pointers for use in plugins.
  3378. \ **Note:** This method is implemented on Android, Linux (X11/Wayland), macOS, and Windows.
  3379. .. rst-class:: classref-item-separator
  3380. ----
  3381. .. _class_DisplayServer_method_window_get_popup_safe_rect:
  3382. .. rst-class:: classref-method
  3383. :ref:`Rect2i<class_Rect2i>` **window_get_popup_safe_rect**\ (\ window\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_popup_safe_rect>`
  3384. Returns the bounding box of control, or menu item that was used to open the popup window, in the screen coordinate system.
  3385. .. rst-class:: classref-item-separator
  3386. ----
  3387. .. _class_DisplayServer_method_window_get_position:
  3388. .. rst-class:: classref-method
  3389. :ref:`Vector2i<class_Vector2i>` **window_get_position**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_position>`
  3390. Returns the position of the client area of the given window on the screen.
  3391. .. rst-class:: classref-item-separator
  3392. ----
  3393. .. _class_DisplayServer_method_window_get_position_with_decorations:
  3394. .. rst-class:: classref-method
  3395. :ref:`Vector2i<class_Vector2i>` **window_get_position_with_decorations**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_position_with_decorations>`
  3396. Returns the position of the given window on the screen including the borders drawn by the operating system. See also :ref:`window_get_position()<class_DisplayServer_method_window_get_position>`.
  3397. .. rst-class:: classref-item-separator
  3398. ----
  3399. .. _class_DisplayServer_method_window_get_safe_title_margins:
  3400. .. rst-class:: classref-method
  3401. :ref:`Vector3i<class_Vector3i>` **window_get_safe_title_margins**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_safe_title_margins>`
  3402. Returns left margins (``x``), right margins (``y``) and height (``z``) of the title that are safe to use (contains no buttons or other elements) when :ref:`WINDOW_FLAG_EXTEND_TO_TITLE<class_DisplayServer_constant_WINDOW_FLAG_EXTEND_TO_TITLE>` flag is set.
  3403. .. rst-class:: classref-item-separator
  3404. ----
  3405. .. _class_DisplayServer_method_window_get_size:
  3406. .. rst-class:: classref-method
  3407. :ref:`Vector2i<class_Vector2i>` **window_get_size**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_size>`
  3408. Returns the size of the window specified by ``window_id`` (in pixels), excluding the borders drawn by the operating system. This is also called the "client area". See also :ref:`window_get_size_with_decorations()<class_DisplayServer_method_window_get_size_with_decorations>`, :ref:`window_set_size()<class_DisplayServer_method_window_set_size>` and :ref:`window_get_position()<class_DisplayServer_method_window_get_position>`.
  3409. .. rst-class:: classref-item-separator
  3410. ----
  3411. .. _class_DisplayServer_method_window_get_size_with_decorations:
  3412. .. rst-class:: classref-method
  3413. :ref:`Vector2i<class_Vector2i>` **window_get_size_with_decorations**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_size_with_decorations>`
  3414. Returns the size of the window specified by ``window_id`` (in pixels), including the borders drawn by the operating system. See also :ref:`window_get_size()<class_DisplayServer_method_window_get_size>`.
  3415. .. rst-class:: classref-item-separator
  3416. ----
  3417. .. _class_DisplayServer_method_window_get_title_size:
  3418. .. rst-class:: classref-method
  3419. :ref:`Vector2i<class_Vector2i>` **window_get_title_size**\ (\ title\: :ref:`String<class_String>`, window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_title_size>`
  3420. Returns the estimated window title bar size (including text and window buttons) for the window specified by ``window_id`` (in pixels). This method does not change the window title.
  3421. \ **Note:** This method is implemented on macOS and Windows.
  3422. .. rst-class:: classref-item-separator
  3423. ----
  3424. .. _class_DisplayServer_method_window_get_vsync_mode:
  3425. .. rst-class:: classref-method
  3426. :ref:`VSyncMode<enum_DisplayServer_VSyncMode>` **window_get_vsync_mode**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_get_vsync_mode>`
  3427. Returns the V-Sync mode of the given window.
  3428. .. rst-class:: classref-item-separator
  3429. ----
  3430. .. _class_DisplayServer_method_window_is_focused:
  3431. .. rst-class:: classref-method
  3432. :ref:`bool<class_bool>` **window_is_focused**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_is_focused>`
  3433. Returns ``true`` if the window specified by ``window_id`` is focused.
  3434. .. rst-class:: classref-item-separator
  3435. ----
  3436. .. _class_DisplayServer_method_window_is_maximize_allowed:
  3437. .. rst-class:: classref-method
  3438. :ref:`bool<class_bool>` **window_is_maximize_allowed**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_is_maximize_allowed>`
  3439. Returns ``true`` if the given window can be maximized (the maximize button is enabled).
  3440. .. rst-class:: classref-item-separator
  3441. ----
  3442. .. _class_DisplayServer_method_window_maximize_on_title_dbl_click:
  3443. .. rst-class:: classref-method
  3444. :ref:`bool<class_bool>` **window_maximize_on_title_dbl_click**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_maximize_on_title_dbl_click>`
  3445. Returns ``true``, if double-click on a window title should maximize it.
  3446. \ **Note:** This method is implemented only on macOS.
  3447. .. rst-class:: classref-item-separator
  3448. ----
  3449. .. _class_DisplayServer_method_window_minimize_on_title_dbl_click:
  3450. .. rst-class:: classref-method
  3451. :ref:`bool<class_bool>` **window_minimize_on_title_dbl_click**\ (\ ) |const| :ref:`๐Ÿ”—<class_DisplayServer_method_window_minimize_on_title_dbl_click>`
  3452. Returns ``true``, if double-click on a window title should minimize it.
  3453. \ **Note:** This method is implemented only on macOS.
  3454. .. rst-class:: classref-item-separator
  3455. ----
  3456. .. _class_DisplayServer_method_window_move_to_foreground:
  3457. .. rst-class:: classref-method
  3458. |void| **window_move_to_foreground**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_move_to_foreground>`
  3459. Moves the window specified by ``window_id`` to the foreground, so that it is visible over other windows.
  3460. .. rst-class:: classref-item-separator
  3461. ----
  3462. .. _class_DisplayServer_method_window_request_attention:
  3463. .. rst-class:: classref-method
  3464. |void| **window_request_attention**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_request_attention>`
  3465. Makes the window specified by ``window_id`` request attention, which is materialized by the window title and taskbar entry blinking until the window is focused. This usually has no visible effect if the window is currently focused. The exact behavior varies depending on the operating system.
  3466. .. rst-class:: classref-item-separator
  3467. ----
  3468. .. _class_DisplayServer_method_window_set_current_screen:
  3469. .. rst-class:: classref-method
  3470. |void| **window_set_current_screen**\ (\ screen\: :ref:`int<class_int>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_current_screen>`
  3471. Moves the window specified by ``window_id`` to the specified ``screen``. See also :ref:`window_get_current_screen()<class_DisplayServer_method_window_get_current_screen>`.
  3472. \ **Note:** One of the following constants can be used as ``screen``: :ref:`SCREEN_OF_MAIN_WINDOW<class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW>`, :ref:`SCREEN_PRIMARY<class_DisplayServer_constant_SCREEN_PRIMARY>`, :ref:`SCREEN_WITH_MOUSE_FOCUS<class_DisplayServer_constant_SCREEN_WITH_MOUSE_FOCUS>`, or :ref:`SCREEN_WITH_KEYBOARD_FOCUS<class_DisplayServer_constant_SCREEN_WITH_KEYBOARD_FOCUS>`.
  3473. \ **Note:** This method is implemented on Linux/X11, macOS, and Windows.
  3474. .. rst-class:: classref-item-separator
  3475. ----
  3476. .. _class_DisplayServer_method_window_set_drop_files_callback:
  3477. .. rst-class:: classref-method
  3478. |void| **window_set_drop_files_callback**\ (\ callback\: :ref:`Callable<class_Callable>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_drop_files_callback>`
  3479. Sets the ``callback`` that should be called when files are dropped from the operating system's file manager to the window specified by ``window_id``. ``callback`` should take one :ref:`PackedStringArray<class_PackedStringArray>` argument, which is the list of dropped files.
  3480. \ **Warning:** Advanced users only! Adding such a callback to a :ref:`Window<class_Window>` node will override its default implementation, which can introduce bugs.
  3481. \ **Note:** This method is implemented on Windows, macOS, Linux (X11/Wayland), and Web.
  3482. .. rst-class:: classref-item-separator
  3483. ----
  3484. .. _class_DisplayServer_method_window_set_exclusive:
  3485. .. rst-class:: classref-method
  3486. |void| **window_set_exclusive**\ (\ window_id\: :ref:`int<class_int>`, exclusive\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_exclusive>`
  3487. If set to ``true``, this window will always stay on top of its parent window, parent window will ignore input while this window is opened.
  3488. \ **Note:** On macOS, exclusive windows are confined to the same space (virtual desktop or screen) as the parent window.
  3489. \ **Note:** This method is implemented on macOS and Windows.
  3490. .. rst-class:: classref-item-separator
  3491. ----
  3492. .. _class_DisplayServer_method_window_set_flag:
  3493. .. rst-class:: classref-method
  3494. |void| **window_set_flag**\ (\ flag\: :ref:`WindowFlags<enum_DisplayServer_WindowFlags>`, enabled\: :ref:`bool<class_bool>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_flag>`
  3495. Enables or disables the given window's given ``flag``.
  3496. .. rst-class:: classref-item-separator
  3497. ----
  3498. .. _class_DisplayServer_method_window_set_ime_active:
  3499. .. rst-class:: classref-method
  3500. |void| **window_set_ime_active**\ (\ active\: :ref:`bool<class_bool>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_ime_active>`
  3501. Sets whether `Input Method Editor <https://en.wikipedia.org/wiki/Input_method>`__ should be enabled for the window specified by ``window_id``. See also :ref:`window_set_ime_position()<class_DisplayServer_method_window_set_ime_position>`.
  3502. .. rst-class:: classref-item-separator
  3503. ----
  3504. .. _class_DisplayServer_method_window_set_ime_position:
  3505. .. rst-class:: classref-method
  3506. |void| **window_set_ime_position**\ (\ position\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_ime_position>`
  3507. Sets the position of the `Input Method Editor <https://en.wikipedia.org/wiki/Input_method>`__ popup for the specified ``window_id``. Only effective if :ref:`window_set_ime_active()<class_DisplayServer_method_window_set_ime_active>` was set to ``true`` for the specified ``window_id``.
  3508. .. rst-class:: classref-item-separator
  3509. ----
  3510. .. _class_DisplayServer_method_window_set_input_event_callback:
  3511. .. rst-class:: classref-method
  3512. |void| **window_set_input_event_callback**\ (\ callback\: :ref:`Callable<class_Callable>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_input_event_callback>`
  3513. Sets the ``callback`` that should be called when any :ref:`InputEvent<class_InputEvent>` is sent to the window specified by ``window_id``.
  3514. \ **Warning:** Advanced users only! Adding such a callback to a :ref:`Window<class_Window>` node will override its default implementation, which can introduce bugs.
  3515. .. rst-class:: classref-item-separator
  3516. ----
  3517. .. _class_DisplayServer_method_window_set_input_text_callback:
  3518. .. rst-class:: classref-method
  3519. |void| **window_set_input_text_callback**\ (\ callback\: :ref:`Callable<class_Callable>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_input_text_callback>`
  3520. Sets the ``callback`` that should be called when text is entered using the virtual keyboard to the window specified by ``window_id``.
  3521. \ **Warning:** Advanced users only! Adding such a callback to a :ref:`Window<class_Window>` node will override its default implementation, which can introduce bugs.
  3522. .. rst-class:: classref-item-separator
  3523. ----
  3524. .. _class_DisplayServer_method_window_set_max_size:
  3525. .. rst-class:: classref-method
  3526. |void| **window_set_max_size**\ (\ max_size\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_max_size>`
  3527. Sets the maximum size of the window specified by ``window_id`` in pixels. Normally, the user will not be able to drag the window to make it larger than the specified size. See also :ref:`window_get_max_size()<class_DisplayServer_method_window_get_max_size>`.
  3528. \ **Note:** It's recommended to change this value using :ref:`Window.max_size<class_Window_property_max_size>` instead.
  3529. \ **Note:** Using third-party tools, it is possible for users to disable window geometry restrictions and therefore bypass this limit.
  3530. .. rst-class:: classref-item-separator
  3531. ----
  3532. .. _class_DisplayServer_method_window_set_min_size:
  3533. .. rst-class:: classref-method
  3534. |void| **window_set_min_size**\ (\ min_size\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_min_size>`
  3535. Sets the minimum size for the given window to ``min_size`` in pixels. Normally, the user will not be able to drag the window to make it smaller than the specified size. See also :ref:`window_get_min_size()<class_DisplayServer_method_window_get_min_size>`.
  3536. \ **Note:** It's recommended to change this value using :ref:`Window.min_size<class_Window_property_min_size>` instead.
  3537. \ **Note:** By default, the main window has a minimum size of ``Vector2i(64, 64)``. This prevents issues that can arise when the window is resized to a near-zero size.
  3538. \ **Note:** Using third-party tools, it is possible for users to disable window geometry restrictions and therefore bypass this limit.
  3539. .. rst-class:: classref-item-separator
  3540. ----
  3541. .. _class_DisplayServer_method_window_set_mode:
  3542. .. rst-class:: classref-method
  3543. |void| **window_set_mode**\ (\ mode\: :ref:`WindowMode<enum_DisplayServer_WindowMode>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_mode>`
  3544. Sets window mode for the given window to ``mode``.
  3545. \ **Note:** On Android, setting it to :ref:`WINDOW_MODE_FULLSCREEN<class_DisplayServer_constant_WINDOW_MODE_FULLSCREEN>` or :ref:`WINDOW_MODE_EXCLUSIVE_FULLSCREEN<class_DisplayServer_constant_WINDOW_MODE_EXCLUSIVE_FULLSCREEN>` will enable immersive mode.
  3546. \ **Note:** Setting the window to full screen forcibly sets the borderless flag to ``true``, so make sure to set it back to ``false`` when not wanted.
  3547. .. rst-class:: classref-item-separator
  3548. ----
  3549. .. _class_DisplayServer_method_window_set_mouse_passthrough:
  3550. .. rst-class:: classref-method
  3551. |void| **window_set_mouse_passthrough**\ (\ region\: :ref:`PackedVector2Array<class_PackedVector2Array>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_mouse_passthrough>`
  3552. Sets a polygonal region of the window which accepts mouse events. Mouse events outside the region will be passed through.
  3553. Passing an empty array will disable passthrough support (all mouse events will be intercepted by the window, which is the default behavior).
  3554. .. tabs::
  3555. .. code-tab:: gdscript
  3556. # Set region, using Path2D node.
  3557. DisplayServer.window_set_mouse_passthrough($Path2D.curve.get_baked_points())
  3558. # Set region, using Polygon2D node.
  3559. DisplayServer.window_set_mouse_passthrough($Polygon2D.polygon)
  3560. # Reset region to default.
  3561. DisplayServer.window_set_mouse_passthrough([])
  3562. .. code-tab:: csharp
  3563. // Set region, using Path2D node.
  3564. DisplayServer.WindowSetMousePassthrough(GetNode<Path2D>("Path2D").Curve.GetBakedPoints());
  3565. // Set region, using Polygon2D node.
  3566. DisplayServer.WindowSetMousePassthrough(GetNode<Polygon2D>("Polygon2D").Polygon);
  3567. // Reset region to default.
  3568. DisplayServer.WindowSetMousePassthrough([]);
  3569. \ **Note:** On Windows, the portion of a window that lies outside the region is not drawn, while on Linux (X11) and macOS it is.
  3570. \ **Note:** This method is implemented on Linux (X11), macOS and Windows.
  3571. .. rst-class:: classref-item-separator
  3572. ----
  3573. .. _class_DisplayServer_method_window_set_popup_safe_rect:
  3574. .. rst-class:: classref-method
  3575. |void| **window_set_popup_safe_rect**\ (\ window\: :ref:`int<class_int>`, rect\: :ref:`Rect2i<class_Rect2i>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_popup_safe_rect>`
  3576. Sets the bounding box of control, or menu item that was used to open the popup window, in the screen coordinate system. Clicking this area will not auto-close this popup.
  3577. .. rst-class:: classref-item-separator
  3578. ----
  3579. .. _class_DisplayServer_method_window_set_position:
  3580. .. rst-class:: classref-method
  3581. |void| **window_set_position**\ (\ position\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_position>`
  3582. Sets the position of the given window to ``position``. On multi-monitor setups, the screen position is relative to the virtual desktop area. On multi-monitor setups with different screen resolutions or orientations, the origin may be located outside any display like this:
  3583. .. code:: text
  3584. * (0, 0) +-------+
  3585. | |
  3586. +-------------+ | |
  3587. | | | |
  3588. | | | |
  3589. +-------------+ +-------+
  3590. See also :ref:`window_get_position()<class_DisplayServer_method_window_get_position>` and :ref:`window_set_size()<class_DisplayServer_method_window_set_size>`.
  3591. \ **Note:** It's recommended to change this value using :ref:`Window.position<class_Window_property_position>` instead.
  3592. \ **Note:** On Linux (Wayland): this method is a no-op.
  3593. .. rst-class:: classref-item-separator
  3594. ----
  3595. .. _class_DisplayServer_method_window_set_rect_changed_callback:
  3596. .. rst-class:: classref-method
  3597. |void| **window_set_rect_changed_callback**\ (\ callback\: :ref:`Callable<class_Callable>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_rect_changed_callback>`
  3598. Sets the ``callback`` that will be called when the window specified by ``window_id`` is moved or resized.
  3599. \ **Warning:** Advanced users only! Adding such a callback to a :ref:`Window<class_Window>` node will override its default implementation, which can introduce bugs.
  3600. .. rst-class:: classref-item-separator
  3601. ----
  3602. .. _class_DisplayServer_method_window_set_size:
  3603. .. rst-class:: classref-method
  3604. |void| **window_set_size**\ (\ size\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_size>`
  3605. Sets the size of the given window to ``size`` (in pixels). See also :ref:`window_get_size()<class_DisplayServer_method_window_get_size>` and :ref:`window_get_position()<class_DisplayServer_method_window_get_position>`.
  3606. \ **Note:** It's recommended to change this value using :ref:`Window.size<class_Window_property_size>` instead.
  3607. .. rst-class:: classref-item-separator
  3608. ----
  3609. .. _class_DisplayServer_method_window_set_title:
  3610. .. rst-class:: classref-method
  3611. |void| **window_set_title**\ (\ title\: :ref:`String<class_String>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_title>`
  3612. Sets the title of the given window to ``title``.
  3613. \ **Note:** It's recommended to change this value using :ref:`Window.title<class_Window_property_title>` instead.
  3614. \ **Note:** Avoid changing the window title every frame, as this can cause performance issues on certain window managers. Try to change the window title only a few times per second at most.
  3615. .. rst-class:: classref-item-separator
  3616. ----
  3617. .. _class_DisplayServer_method_window_set_transient:
  3618. .. rst-class:: classref-method
  3619. |void| **window_set_transient**\ (\ window_id\: :ref:`int<class_int>`, parent_window_id\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_transient>`
  3620. Sets window transient parent. Transient window will be destroyed with its transient parent and will return focus to their parent when closed. The transient window is displayed on top of a non-exclusive full-screen parent window. Transient windows can't enter full-screen mode.
  3621. \ **Note:** It's recommended to change this value using :ref:`Window.transient<class_Window_property_transient>` instead.
  3622. \ **Note:** The behavior might be different depending on the platform.
  3623. .. rst-class:: classref-item-separator
  3624. ----
  3625. .. _class_DisplayServer_method_window_set_vsync_mode:
  3626. .. rst-class:: classref-method
  3627. |void| **window_set_vsync_mode**\ (\ vsync_mode\: :ref:`VSyncMode<enum_DisplayServer_VSyncMode>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_vsync_mode>`
  3628. Sets the V-Sync mode of the given window. See also :ref:`ProjectSettings.display/window/vsync/vsync_mode<class_ProjectSettings_property_display/window/vsync/vsync_mode>`.
  3629. Depending on the platform and used renderer, the engine will fall back to :ref:`VSYNC_ENABLED<class_DisplayServer_constant_VSYNC_ENABLED>` if the desired mode is not supported.
  3630. \ **Note:** V-Sync modes other than :ref:`VSYNC_ENABLED<class_DisplayServer_constant_VSYNC_ENABLED>` are only supported in the Forward+ and Mobile rendering methods, not Compatibility.
  3631. .. rst-class:: classref-item-separator
  3632. ----
  3633. .. _class_DisplayServer_method_window_set_window_buttons_offset:
  3634. .. rst-class:: classref-method
  3635. |void| **window_set_window_buttons_offset**\ (\ offset\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_window_buttons_offset>`
  3636. When :ref:`WINDOW_FLAG_EXTEND_TO_TITLE<class_DisplayServer_constant_WINDOW_FLAG_EXTEND_TO_TITLE>` flag is set, set offset to the center of the first titlebar button.
  3637. \ **Note:** This flag is implemented only on macOS.
  3638. .. rst-class:: classref-item-separator
  3639. ----
  3640. .. _class_DisplayServer_method_window_set_window_event_callback:
  3641. .. rst-class:: classref-method
  3642. |void| **window_set_window_event_callback**\ (\ callback\: :ref:`Callable<class_Callable>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_set_window_event_callback>`
  3643. Sets the ``callback`` that will be called when an event occurs in the window specified by ``window_id``.
  3644. \ **Warning:** Advanced users only! Adding such a callback to a :ref:`Window<class_Window>` node will override its default implementation, which can introduce bugs.
  3645. .. rst-class:: classref-item-separator
  3646. ----
  3647. .. _class_DisplayServer_method_window_start_drag:
  3648. .. rst-class:: classref-method
  3649. |void| **window_start_drag**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_start_drag>`
  3650. Starts an interactive drag operation on the window with the given ``window_id``, using the current mouse position. Call this method when handling a mouse button being pressed to simulate a pressed event on the window's title bar. Using this method allows the window to participate in space switching, tiling, and other system features.
  3651. \ **Note:** This method is implemented on Linux (X11/Wayland), macOS, and Windows.
  3652. .. rst-class:: classref-item-separator
  3653. ----
  3654. .. _class_DisplayServer_method_window_start_resize:
  3655. .. rst-class:: classref-method
  3656. |void| **window_start_resize**\ (\ edge\: :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐Ÿ”—<class_DisplayServer_method_window_start_resize>`
  3657. Starts an interactive resize operation on the window with the given ``window_id``, using the current mouse position. Call this method when handling a mouse button being pressed to simulate a pressed event on the window's edge.
  3658. \ **Note:** This method is implemented on Linux (X11/Wayland), macOS, and Windows.
  3659. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  3660. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  3661. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  3662. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  3663. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  3664. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  3665. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  3666. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  3667. .. |void| replace:: :abbr:`void (No return value.)`