1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/DisplayServer.xml.
- .. _class_DisplayServer:
- DisplayServer
- =============
- **Inherits:** :ref:`Object<class_Object>`
- A server interface for low-level window management.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- **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.
- \ **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.
- .. rst-class:: classref-reftable-group
- Methods
- -------
- .. table::
- :widths: auto
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Variant<class_Variant>` | :ref:`accessibility_element_get_meta<class_DisplayServer_method_accessibility_element_get_meta>`\ (\ id\: :ref:`RID<class_RID>`\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_element_set_meta<class_DisplayServer_method_accessibility_element_set_meta>`\ (\ id\: :ref:`RID<class_RID>`, meta\: :ref:`Variant<class_Variant>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_free_element<class_DisplayServer_method_accessibility_free_element>`\ (\ id\: :ref:`RID<class_RID>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`RID<class_RID>` | :ref:`accessibility_get_window_root<class_DisplayServer_method_accessibility_get_window_root>`\ (\ window_id\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`accessibility_has_element<class_DisplayServer_method_accessibility_has_element>`\ (\ id\: :ref:`RID<class_RID>`\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`accessibility_screen_reader_active<class_DisplayServer_method_accessibility_screen_reader_active>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_set_window_focused<class_DisplayServer_method_accessibility_set_window_focused>`\ (\ window_id\: :ref:`int<class_int>`, focused\: :ref:`bool<class_bool>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`accessibility_should_increase_contrast<class_DisplayServer_method_accessibility_should_increase_contrast>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`accessibility_should_reduce_animation<class_DisplayServer_method_accessibility_should_reduce_animation>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`accessibility_should_reduce_transparency<class_DisplayServer_method_accessibility_should_reduce_transparency>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_add_child<class_DisplayServer_method_accessibility_update_add_child>`\ (\ id\: :ref:`RID<class_RID>`, child_id\: :ref:`RID<class_RID>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_bounds<class_DisplayServer_method_accessibility_update_set_bounds>`\ (\ id\: :ref:`RID<class_RID>`, p_rect\: :ref:`Rect2<class_Rect2>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_checked<class_DisplayServer_method_accessibility_update_set_checked>`\ (\ id\: :ref:`RID<class_RID>`, checekd\: :ref:`bool<class_bool>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_classname<class_DisplayServer_method_accessibility_update_set_classname>`\ (\ id\: :ref:`RID<class_RID>`, classname\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_description<class_DisplayServer_method_accessibility_update_set_description>`\ (\ id\: :ref:`RID<class_RID>`, description\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_focus<class_DisplayServer_method_accessibility_update_set_focus>`\ (\ id\: :ref:`RID<class_RID>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_language<class_DisplayServer_method_accessibility_update_set_language>`\ (\ id\: :ref:`RID<class_RID>`, language\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_live<class_DisplayServer_method_accessibility_update_set_live>`\ (\ id\: :ref:`RID<class_RID>`, live\: :ref:`AccessibilityLiveMode<enum_DisplayServer_AccessibilityLiveMode>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_name<class_DisplayServer_method_accessibility_update_set_name>`\ (\ id\: :ref:`RID<class_RID>`, name\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_placeholder<class_DisplayServer_method_accessibility_update_set_placeholder>`\ (\ id\: :ref:`RID<class_RID>`, placeholder\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_role<class_DisplayServer_method_accessibility_update_set_role>`\ (\ id\: :ref:`RID<class_RID>`, role\: :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_shortcut<class_DisplayServer_method_accessibility_update_set_shortcut>`\ (\ id\: :ref:`RID<class_RID>`, shortcut\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_tooltip<class_DisplayServer_method_accessibility_update_set_tooltip>`\ (\ id\: :ref:`RID<class_RID>`, tooltip\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_transform<class_DisplayServer_method_accessibility_update_set_transform>`\ (\ id\: :ref:`RID<class_RID>`, transform\: :ref:`Transform2D<class_Transform2D>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_url<class_DisplayServer_method_accessibility_update_set_url>`\ (\ id\: :ref:`RID<class_RID>`, url\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`accessibility_update_set_value<class_DisplayServer_method_accessibility_update_set_value>`\ (\ id\: :ref:`RID<class_RID>`, value\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`beep<class_DisplayServer_method_beep>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`clipboard_get<class_DisplayServer_method_clipboard_get>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Image<class_Image>` | :ref:`clipboard_get_image<class_DisplayServer_method_clipboard_get_image>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`clipboard_get_primary<class_DisplayServer_method_clipboard_get_primary>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`clipboard_has<class_DisplayServer_method_clipboard_has>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`clipboard_has_image<class_DisplayServer_method_clipboard_has_image>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`clipboard_set<class_DisplayServer_method_clipboard_set>`\ (\ clipboard\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`clipboard_set_primary<class_DisplayServer_method_clipboard_set_primary>`\ (\ clipboard_primary\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`color_picker<class_DisplayServer_method_color_picker>`\ (\ callback\: :ref:`Callable<class_Callable>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`CursorShape<enum_DisplayServer_CursorShape>` | :ref:`cursor_get_shape<class_DisplayServer_method_cursor_get_shape>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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)\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`cursor_set_shape<class_DisplayServer_method_cursor_set_shape>`\ (\ shape\: :ref:`CursorShape<enum_DisplayServer_CursorShape>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`delete_status_indicator<class_DisplayServer_method_delete_status_indicator>`\ (\ id\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`enable_for_stealing_focus<class_DisplayServer_method_enable_for_stealing_focus>`\ (\ process_id\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`force_process_and_drop_events<class_DisplayServer_method_force_process_and_drop_events>`\ (\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`get_accent_color<class_DisplayServer_method_get_accent_color>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`get_base_color<class_DisplayServer_method_get_base_color>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>`\[:ref:`Rect2<class_Rect2>`\] | :ref:`get_display_cutouts<class_DisplayServer_method_get_display_cutouts>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Rect2i<class_Rect2i>` | :ref:`get_display_safe_area<class_DisplayServer_method_get_display_safe_area>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_keyboard_focus_screen<class_DisplayServer_method_get_keyboard_focus_screen>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_name<class_DisplayServer_method_get_name>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_primary_screen<class_DisplayServer_method_get_primary_screen>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_screen_count<class_DisplayServer_method_get_screen_count>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_screen_from_rect<class_DisplayServer_method_get_screen_from_rect>`\ (\ rect\: :ref:`Rect2<class_Rect2>`\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`get_swap_cancel_ok<class_DisplayServer_method_get_swap_cancel_ok>`\ (\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_window_at_screen_position<class_DisplayServer_method_get_window_at_screen_position>`\ (\ position\: :ref:`Vector2i<class_Vector2i>`\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`get_window_list<class_DisplayServer_method_get_window_list>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`global_menu_clear<class_DisplayServer_method_global_menu_clear>`\ (\ menu_root\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Dictionary<class_Dictionary>` | :ref:`global_menu_get_system_menu_roots<class_DisplayServer_method_global_menu_get_system_menu_roots>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`global_menu_remove_item<class_DisplayServer_method_global_menu_remove_item>`\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`has_additional_outputs<class_DisplayServer_method_has_additional_outputs>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`has_feature<class_DisplayServer_method_has_feature>`\ (\ feature\: :ref:`Feature<enum_DisplayServer_Feature>`\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`has_hardware_keyboard<class_DisplayServer_method_has_hardware_keyboard>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2i<class_Vector2i>` | :ref:`ime_get_selection<class_DisplayServer_method_ime_get_selection>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`ime_get_text<class_DisplayServer_method_ime_get_text>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_dark_mode<class_DisplayServer_method_is_dark_mode>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_dark_mode_supported<class_DisplayServer_method_is_dark_mode_supported>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_touchscreen_available<class_DisplayServer_method_is_touchscreen_available>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_window_transparency_available<class_DisplayServer_method_is_window_transparency_available>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`keyboard_get_current_layout<class_DisplayServer_method_keyboard_get_current_layout>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`keyboard_get_layout_count<class_DisplayServer_method_keyboard_get_layout_count>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`keyboard_get_layout_language<class_DisplayServer_method_keyboard_get_layout_language>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`keyboard_get_layout_name<class_DisplayServer_method_keyboard_get_layout_name>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`keyboard_set_current_layout<class_DisplayServer_method_keyboard_set_current_layout>`\ (\ index\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |bitfield|\[:ref:`MouseButtonMask<enum_@GlobalScope_MouseButtonMask>`\] | :ref:`mouse_get_button_state<class_DisplayServer_method_mouse_get_button_state>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`MouseMode<enum_DisplayServer_MouseMode>` | :ref:`mouse_get_mode<class_DisplayServer_method_mouse_get_mode>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2i<class_Vector2i>` | :ref:`mouse_get_position<class_DisplayServer_method_mouse_get_position>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`mouse_set_mode<class_DisplayServer_method_mouse_set_mode>`\ (\ mouse_mode\: :ref:`MouseMode<enum_DisplayServer_MouseMode>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`process_events<class_DisplayServer_method_process_events>`\ (\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`register_additional_output<class_DisplayServer_method_register_additional_output>`\ (\ object\: :ref:`Object<class_Object>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`screen_get_dpi<class_DisplayServer_method_screen_get_dpi>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Image<class_Image>` | :ref:`screen_get_image<class_DisplayServer_method_screen_get_image>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Image<class_Image>` | :ref:`screen_get_image_rect<class_DisplayServer_method_screen_get_image_rect>`\ (\ rect\: :ref:`Rect2i<class_Rect2i>`\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`screen_get_max_scale<class_DisplayServer_method_screen_get_max_scale>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` | :ref:`screen_get_orientation<class_DisplayServer_method_screen_get_orientation>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`screen_get_pixel<class_DisplayServer_method_screen_get_pixel>`\ (\ position\: :ref:`Vector2i<class_Vector2i>`\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2i<class_Vector2i>` | :ref:`screen_get_position<class_DisplayServer_method_screen_get_position>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`screen_get_refresh_rate<class_DisplayServer_method_screen_get_refresh_rate>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`screen_get_scale<class_DisplayServer_method_screen_get_scale>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2i<class_Vector2i>` | :ref:`screen_get_size<class_DisplayServer_method_screen_get_size>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Rect2i<class_Rect2i>` | :ref:`screen_get_usable_rect<class_DisplayServer_method_screen_get_usable_rect>`\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`screen_is_kept_on<class_DisplayServer_method_screen_is_kept_on>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`screen_set_keep_on<class_DisplayServer_method_screen_set_keep_on>`\ (\ enable\: :ref:`bool<class_bool>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`screen_set_orientation<class_DisplayServer_method_screen_set_orientation>`\ (\ orientation\: :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>`, screen\: :ref:`int<class_int>` = -1\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_hardware_keyboard_connection_change_callback<class_DisplayServer_method_set_hardware_keyboard_connection_change_callback>`\ (\ callable\: :ref:`Callable<class_Callable>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_icon<class_DisplayServer_method_set_icon>`\ (\ image\: :ref:`Image<class_Image>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_native_icon<class_DisplayServer_method_set_native_icon>`\ (\ filename\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_system_theme_change_callback<class_DisplayServer_method_set_system_theme_change_callback>`\ (\ callable\: :ref:`Callable<class_Callable>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`show_emoji_and_symbol_picker<class_DisplayServer_method_show_emoji_and_symbol_picker>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Rect2<class_Rect2>` | :ref:`status_indicator_get_rect<class_DisplayServer_method_status_indicator_get_rect>`\ (\ id\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`status_indicator_set_callback<class_DisplayServer_method_status_indicator_set_callback>`\ (\ id\: :ref:`int<class_int>`, callback\: :ref:`Callable<class_Callable>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`status_indicator_set_icon<class_DisplayServer_method_status_indicator_set_icon>`\ (\ id\: :ref:`int<class_int>`, icon\: :ref:`Texture2D<class_Texture2D>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`status_indicator_set_menu<class_DisplayServer_method_status_indicator_set_menu>`\ (\ id\: :ref:`int<class_int>`, menu_rid\: :ref:`RID<class_RID>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`status_indicator_set_tooltip<class_DisplayServer_method_status_indicator_set_tooltip>`\ (\ id\: :ref:`int<class_int>`, tooltip\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`tablet_get_current_driver<class_DisplayServer_method_tablet_get_current_driver>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`tablet_get_driver_count<class_DisplayServer_method_tablet_get_driver_count>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`tablet_get_driver_name<class_DisplayServer_method_tablet_get_driver_name>`\ (\ idx\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`tablet_set_current_driver<class_DisplayServer_method_tablet_set_current_driver>`\ (\ name\: :ref:`String<class_String>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] | :ref:`tts_get_voices<class_DisplayServer_method_tts_get_voices>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`tts_get_voices_for_language<class_DisplayServer_method_tts_get_voices_for_language>`\ (\ language\: :ref:`String<class_String>`\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`tts_is_paused<class_DisplayServer_method_tts_is_paused>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`tts_is_speaking<class_DisplayServer_method_tts_is_speaking>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`tts_pause<class_DisplayServer_method_tts_pause>`\ (\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`tts_resume<class_DisplayServer_method_tts_resume>`\ (\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`tts_set_utterance_callback<class_DisplayServer_method_tts_set_utterance_callback>`\ (\ event\: :ref:`TTSUtteranceEvent<enum_DisplayServer_TTSUtteranceEvent>`, callable\: :ref:`Callable<class_Callable>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`tts_stop<class_DisplayServer_method_tts_stop>`\ (\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`unregister_additional_output<class_DisplayServer_method_unregister_additional_output>`\ (\ object\: :ref:`Object<class_Object>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`virtual_keyboard_get_height<class_DisplayServer_method_virtual_keyboard_get_height>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`virtual_keyboard_hide<class_DisplayServer_method_virtual_keyboard_hide>`\ (\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`warp_mouse<class_DisplayServer_method_warp_mouse>`\ (\ position\: :ref:`Vector2i<class_Vector2i>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`window_can_draw<class_DisplayServer_method_window_can_draw>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`window_get_active_popup<class_DisplayServer_method_window_get_active_popup>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`window_get_current_screen<class_DisplayServer_method_window_get_current_screen>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2i<class_Vector2i>` | :ref:`window_get_max_size<class_DisplayServer_method_window_get_max_size>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2i<class_Vector2i>` | :ref:`window_get_min_size<class_DisplayServer_method_window_get_min_size>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`WindowMode<enum_DisplayServer_WindowMode>` | :ref:`window_get_mode<class_DisplayServer_method_window_get_mode>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Rect2i<class_Rect2i>` | :ref:`window_get_popup_safe_rect<class_DisplayServer_method_window_get_popup_safe_rect>`\ (\ window\: :ref:`int<class_int>`\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2i<class_Vector2i>` | :ref:`window_get_position<class_DisplayServer_method_window_get_position>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2i<class_Vector2i>` | :ref:`window_get_size<class_DisplayServer_method_window_get_size>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :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| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`window_is_focused<class_DisplayServer_method_window_is_focused>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`window_is_maximize_allowed<class_DisplayServer_method_window_is_maximize_allowed>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`window_maximize_on_title_dbl_click<class_DisplayServer_method_window_maximize_on_title_dbl_click>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`window_minimize_on_title_dbl_click<class_DisplayServer_method_window_minimize_on_title_dbl_click>`\ (\ ) |const| |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`window_move_to_foreground<class_DisplayServer_method_window_move_to_foreground>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`window_request_attention<class_DisplayServer_method_window_request_attention>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`window_set_exclusive<class_DisplayServer_method_window_set_exclusive>`\ (\ window_id\: :ref:`int<class_int>`, exclusive\: :ref:`bool<class_bool>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`window_set_mode<class_DisplayServer_method_window_set_mode>`\ (\ mode\: :ref:`WindowMode<enum_DisplayServer_WindowMode>`, window_id\: :ref:`int<class_int>` = 0\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`window_set_position<class_DisplayServer_method_window_set_position>`\ (\ position\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`window_set_size<class_DisplayServer_method_window_set_size>`\ (\ size\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`window_set_title<class_DisplayServer_method_window_set_title>`\ (\ title\: :ref:`String<class_String>`, window_id\: :ref:`int<class_int>` = 0\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`window_set_transient<class_DisplayServer_method_window_set_transient>`\ (\ window_id\: :ref:`int<class_int>`, parent_window_id\: :ref:`int<class_int>`\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |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\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`window_start_drag<class_DisplayServer_method_window_start_drag>`\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`window_start_resize<class_DisplayServer_method_window_start_resize>`\ (\ edge\: :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>`, window_id\: :ref:`int<class_int>` = 0\ ) |
- +-------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Enumerations
- ------------
- .. _enum_DisplayServer_Feature:
- .. rst-class:: classref-enumeration
- enum **Feature**: :ref:`๐<enum_DisplayServer_Feature>`
- .. _class_DisplayServer_constant_FEATURE_GLOBAL_MENU:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_GLOBAL_MENU** = ``0``
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Display server supports global menu. This allows the application to display its menu items in the operating system's top bar. **macOS**
- .. _class_DisplayServer_constant_FEATURE_SUBWINDOWS:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_SUBWINDOWS** = ``1``
- Display server supports multiple windows that can be moved outside of the main window. **Windows, macOS, Linux (X11)**
- .. _class_DisplayServer_constant_FEATURE_TOUCHSCREEN:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_TOUCHSCREEN** = ``2``
- Display server supports touchscreen input. **Windows, Linux (X11), Android, iOS, Web**
- .. _class_DisplayServer_constant_FEATURE_MOUSE:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_MOUSE** = ``3``
- Display server supports mouse input. **Windows, macOS, Linux (X11/Wayland), Android, Web**
- .. _class_DisplayServer_constant_FEATURE_MOUSE_WARP:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_MOUSE_WARP** = ``4``
- 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)**
- .. _class_DisplayServer_constant_FEATURE_CLIPBOARD:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_CLIPBOARD** = ``5``
- 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**
- .. _class_DisplayServer_constant_FEATURE_VIRTUAL_KEYBOARD:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_VIRTUAL_KEYBOARD** = ``6``
- Display server supports popping up a virtual keyboard when requested to input text without a physical keyboard. **Android, iOS, Web**
- .. _class_DisplayServer_constant_FEATURE_CURSOR_SHAPE:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_CURSOR_SHAPE** = ``7``
- Display server supports setting the mouse cursor shape to be different from the default. **Windows, macOS, Linux (X11/Wayland), Android, Web**
- .. _class_DisplayServer_constant_FEATURE_CUSTOM_CURSOR_SHAPE:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_CUSTOM_CURSOR_SHAPE** = ``8``
- Display server supports setting the mouse cursor shape to a custom image. **Windows, macOS, Linux (X11/Wayland), Web**
- .. _class_DisplayServer_constant_FEATURE_NATIVE_DIALOG:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_DIALOG** = ``9``
- 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**
- .. _class_DisplayServer_constant_FEATURE_IME:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_IME** = ``10``
- 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)**
- .. _class_DisplayServer_constant_FEATURE_WINDOW_TRANSPARENCY:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_WINDOW_TRANSPARENCY** = ``11``
- Display server supports windows can use per-pixel transparency to make windows behind them partially or fully visible. **Windows, macOS, Linux (X11/Wayland), Android**
- .. _class_DisplayServer_constant_FEATURE_HIDPI:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_HIDPI** = ``12``
- 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**
- .. _class_DisplayServer_constant_FEATURE_ICON:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_ICON** = ``13``
- Display server supports changing the window icon (usually displayed in the top-left corner). **Windows, macOS, Linux (X11)**
- .. _class_DisplayServer_constant_FEATURE_NATIVE_ICON:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_ICON** = ``14``
- Display server supports changing the window icon (usually displayed in the top-left corner). **Windows, macOS**
- .. _class_DisplayServer_constant_FEATURE_ORIENTATION:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_ORIENTATION** = ``15``
- Display server supports changing the screen orientation. **Android, iOS**
- .. _class_DisplayServer_constant_FEATURE_SWAP_BUFFERS:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_SWAP_BUFFERS** = ``16``
- 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)**
- .. _class_DisplayServer_constant_FEATURE_CLIPBOARD_PRIMARY:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_CLIPBOARD_PRIMARY** = ``18``
- 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)**
- .. _class_DisplayServer_constant_FEATURE_TEXT_TO_SPEECH:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_TEXT_TO_SPEECH** = ``19``
- Display server supports text-to-speech. See ``tts_*`` methods. **Windows, macOS, Linux (X11/Wayland), Android, iOS, Web**
- .. _class_DisplayServer_constant_FEATURE_EXTEND_TO_TITLE:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_EXTEND_TO_TITLE** = ``20``
- 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**
- .. _class_DisplayServer_constant_FEATURE_SCREEN_CAPTURE:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_SCREEN_CAPTURE** = ``21``
- Display server supports reading screen pixels. See :ref:`screen_get_pixel()<class_DisplayServer_method_screen_get_pixel>`.
- .. _class_DisplayServer_constant_FEATURE_STATUS_INDICATOR:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_STATUS_INDICATOR** = ``22``
- Display server supports application status indicators.
- .. _class_DisplayServer_constant_FEATURE_NATIVE_HELP:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_HELP** = ``23``
- Display server supports native help system search callbacks. See :ref:`help_set_search_callbacks()<class_DisplayServer_method_help_set_search_callbacks>`.
- .. _class_DisplayServer_constant_FEATURE_NATIVE_DIALOG_INPUT:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_DIALOG_INPUT** = ``24``
- 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**
- .. _class_DisplayServer_constant_FEATURE_NATIVE_DIALOG_FILE:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_DIALOG_FILE** = ``25``
- 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**
- .. _class_DisplayServer_constant_FEATURE_NATIVE_DIALOG_FILE_EXTRA:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_DIALOG_FILE_EXTRA** = ``26``
- 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)**
- .. _class_DisplayServer_constant_FEATURE_WINDOW_DRAG:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_WINDOW_DRAG** = ``27``
- 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>`.
- .. _class_DisplayServer_constant_FEATURE_SCREEN_EXCLUDE_FROM_CAPTURE:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_SCREEN_EXCLUDE_FROM_CAPTURE** = ``28``
- Display server supports :ref:`WINDOW_FLAG_EXCLUDE_FROM_CAPTURE<class_DisplayServer_constant_WINDOW_FLAG_EXCLUDE_FROM_CAPTURE>` window flag.
- .. _class_DisplayServer_constant_FEATURE_WINDOW_EMBEDDING:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_WINDOW_EMBEDDING** = ``29``
- Display server supports embedding a window from another process. **Windows, Linux (X11)**
- .. _class_DisplayServer_constant_FEATURE_NATIVE_DIALOG_FILE_MIME:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_DIALOG_FILE_MIME** = ``30``
- Native file selection dialog supports MIME types as filters.
- .. _class_DisplayServer_constant_FEATURE_EMOJI_AND_SYMBOL_PICKER:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_EMOJI_AND_SYMBOL_PICKER** = ``31``
- Display server supports system emoji and symbol picker. **Windows, macOS**
- .. _class_DisplayServer_constant_FEATURE_NATIVE_COLOR_PICKER:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_NATIVE_COLOR_PICKER** = ``32``
- Display server supports native color picker. **Linux (X11/Wayland)**
- .. _class_DisplayServer_constant_FEATURE_SELF_FITTING_WINDOWS:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_SELF_FITTING_WINDOWS** = ``33``
- Display server automatically fits popups according to the screen boundaries. Window nodes should not attempt to do that themselves.
- .. _class_DisplayServer_constant_FEATURE_ACCESSIBILITY_SCREEN_READER:
- .. rst-class:: classref-enumeration-constant
- :ref:`Feature<enum_DisplayServer_Feature>` **FEATURE_ACCESSIBILITY_SCREEN_READER** = ``34``
- Display server supports interaction with screen reader or Braille display. **Linux (X11/Wayland), macOS, Windows**
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_AccessibilityRole:
- .. rst-class:: classref-enumeration
- enum **AccessibilityRole**: :ref:`๐<enum_DisplayServer_AccessibilityRole>`
- .. _class_DisplayServer_constant_ROLE_UNKNOWN:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_UNKNOWN** = ``0``
- Unknown or custom role.
- .. _class_DisplayServer_constant_ROLE_DEFAULT_BUTTON:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_DEFAULT_BUTTON** = ``1``
- Default dialog button element.
- .. _class_DisplayServer_constant_ROLE_AUDIO:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_AUDIO** = ``2``
- Audio player element.
- .. _class_DisplayServer_constant_ROLE_VIDEO:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_VIDEO** = ``3``
- Video player element.
- .. _class_DisplayServer_constant_ROLE_STATIC_TEXT:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_STATIC_TEXT** = ``4``
- Non-editable text label.
- .. _class_DisplayServer_constant_ROLE_CONTAINER:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_CONTAINER** = ``5``
- Container element. Elements with this role are used for internal structure and ignored by screen readers.
- .. _class_DisplayServer_constant_ROLE_PANEL:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_PANEL** = ``6``
- Panel container element.
- .. _class_DisplayServer_constant_ROLE_BUTTON:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_BUTTON** = ``7``
- Button element.
- .. _class_DisplayServer_constant_ROLE_LINK:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_LINK** = ``8``
- Link element.
- .. _class_DisplayServer_constant_ROLE_CHECK_BOX:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_CHECK_BOX** = ``9``
- Check box element.
- .. _class_DisplayServer_constant_ROLE_RADIO_BUTTON:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_RADIO_BUTTON** = ``10``
- Radio button element.
- .. _class_DisplayServer_constant_ROLE_CHECK_BUTTON:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_CHECK_BUTTON** = ``11``
- Check button element.
- .. _class_DisplayServer_constant_ROLE_SCROLL_BAR:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_SCROLL_BAR** = ``12``
- Scroll bar element.
- .. _class_DisplayServer_constant_ROLE_SCROLL_VIEW:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_SCROLL_VIEW** = ``13``
- Scroll container element.
- .. _class_DisplayServer_constant_ROLE_SPLITTER:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_SPLITTER** = ``14``
- Container splitter handle element.
- .. _class_DisplayServer_constant_ROLE_SLIDER:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_SLIDER** = ``15``
- Slider element.
- .. _class_DisplayServer_constant_ROLE_SPIN_BUTTON:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_SPIN_BUTTON** = ``16``
- Spin box element.
- .. _class_DisplayServer_constant_ROLE_PROGRESS_INDICATOR:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_PROGRESS_INDICATOR** = ``17``
- Progress indicator element.
- .. _class_DisplayServer_constant_ROLE_TEXT_FIELD:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TEXT_FIELD** = ``18``
- Editable text field element.
- .. _class_DisplayServer_constant_ROLE_MULTILINE_TEXT_FIELD:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_MULTILINE_TEXT_FIELD** = ``19``
- Multiline editable text field element.
- .. _class_DisplayServer_constant_ROLE_COLOR_PICKER:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_COLOR_PICKER** = ``20``
- Color picker element.
- .. _class_DisplayServer_constant_ROLE_TABLE:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TABLE** = ``21``
- Table element.
- .. _class_DisplayServer_constant_ROLE_CELL:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_CELL** = ``22``
- Table/tree cell element.
- .. _class_DisplayServer_constant_ROLE_ROW:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_ROW** = ``23``
- Table/tree row element.
- .. _class_DisplayServer_constant_ROLE_ROW_GROUP:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_ROW_GROUP** = ``24``
- Table/tree row group element.
- .. _class_DisplayServer_constant_ROLE_ROW_HEADER:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_ROW_HEADER** = ``25``
- Table/tree row header element.
- .. _class_DisplayServer_constant_ROLE_COLUMN_HEADER:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_COLUMN_HEADER** = ``26``
- Table/tree column header element.
- .. _class_DisplayServer_constant_ROLE_TREE:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TREE** = ``27``
- Tree view element.
- .. _class_DisplayServer_constant_ROLE_TREE_ITEM:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TREE_ITEM** = ``28``
- Tree view item element.
- .. _class_DisplayServer_constant_ROLE_LIST:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_LIST** = ``29``
- List element.
- .. _class_DisplayServer_constant_ROLE_LIST_ITEM:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_LIST_ITEM** = ``30``
- List item element.
- .. _class_DisplayServer_constant_ROLE_LIST_BOX:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_LIST_BOX** = ``31``
- List view element.
- .. _class_DisplayServer_constant_ROLE_LIST_BOX_OPTION:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_LIST_BOX_OPTION** = ``32``
- List view item element.
- .. _class_DisplayServer_constant_ROLE_TAB_BAR:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TAB_BAR** = ``33``
- Tab bar element.
- .. _class_DisplayServer_constant_ROLE_TAB:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TAB** = ``34``
- Tab bar item element.
- .. _class_DisplayServer_constant_ROLE_TAB_PANEL:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TAB_PANEL** = ``35``
- Tab panel element.
- .. _class_DisplayServer_constant_ROLE_MENU_BAR:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_MENU_BAR** = ``36``
- Menu bar element.
- .. _class_DisplayServer_constant_ROLE_MENU:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_MENU** = ``37``
- Popup menu element.
- .. _class_DisplayServer_constant_ROLE_MENU_ITEM:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_MENU_ITEM** = ``38``
- Popup menu item element.
- .. _class_DisplayServer_constant_ROLE_MENU_ITEM_CHECK_BOX:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_MENU_ITEM_CHECK_BOX** = ``39``
- Popup menu check button item element.
- .. _class_DisplayServer_constant_ROLE_MENU_ITEM_RADIO:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_MENU_ITEM_RADIO** = ``40``
- Popup menu radio button item element.
- .. _class_DisplayServer_constant_ROLE_IMAGE:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_IMAGE** = ``41``
- Image element.
- .. _class_DisplayServer_constant_ROLE_WINDOW:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_WINDOW** = ``42``
- Window element.
- .. _class_DisplayServer_constant_ROLE_TITLE_BAR:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TITLE_BAR** = ``43``
- Embedded window title bar element.
- .. _class_DisplayServer_constant_ROLE_DIALOG:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_DIALOG** = ``44``
- Dialog window element.
- .. _class_DisplayServer_constant_ROLE_TOOLTIP:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>` **ROLE_TOOLTIP** = ``45``
- Tooltip element.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_AccessibilityPopupType:
- .. rst-class:: classref-enumeration
- enum **AccessibilityPopupType**: :ref:`๐<enum_DisplayServer_AccessibilityPopupType>`
- .. _class_DisplayServer_constant_POPUP_MENU:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityPopupType<enum_DisplayServer_AccessibilityPopupType>` **POPUP_MENU** = ``0``
- Popup menu.
- .. _class_DisplayServer_constant_POPUP_LIST:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityPopupType<enum_DisplayServer_AccessibilityPopupType>` **POPUP_LIST** = ``1``
- Popup list.
- .. _class_DisplayServer_constant_POPUP_TREE:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityPopupType<enum_DisplayServer_AccessibilityPopupType>` **POPUP_TREE** = ``2``
- Popup tree view.
- .. _class_DisplayServer_constant_POPUP_DIALOG:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityPopupType<enum_DisplayServer_AccessibilityPopupType>` **POPUP_DIALOG** = ``3``
- Popup dialog.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_AccessibilityFlags:
- .. rst-class:: classref-enumeration
- enum **AccessibilityFlags**: :ref:`๐<enum_DisplayServer_AccessibilityFlags>`
- .. _class_DisplayServer_constant_FLAG_HIDDEN:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_HIDDEN** = ``0``
- Element is hidden for accessibility tools.
- .. _class_DisplayServer_constant_FLAG_MULTISELECTABLE:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_MULTISELECTABLE** = ``1``
- Element is support multiple item selection.
- .. _class_DisplayServer_constant_FLAG_REQUIRED:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_REQUIRED** = ``2``
- Element require user input.
- .. _class_DisplayServer_constant_FLAG_VISITED:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_VISITED** = ``3``
- Element is a visited link.
- .. _class_DisplayServer_constant_FLAG_BUSY:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_BUSY** = ``4``
- Element content is not ready (e.g. loading).
- .. _class_DisplayServer_constant_FLAG_MODAL:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_MODAL** = ``5``
- Element is modal window.
- .. _class_DisplayServer_constant_FLAG_TOUCH_PASSTHROUGH:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_TOUCH_PASSTHROUGH** = ``6``
- Element allows touches to be passed through when a screen reader is in touch exploration mode.
- .. _class_DisplayServer_constant_FLAG_READONLY:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_READONLY** = ``7``
- Element is text field with selectable but read-only text.
- .. _class_DisplayServer_constant_FLAG_DISABLED:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_DISABLED** = ``8``
- Element is disabled.
- .. _class_DisplayServer_constant_FLAG_CLIPS_CHILDREN:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityFlags<enum_DisplayServer_AccessibilityFlags>` **FLAG_CLIPS_CHILDREN** = ``9``
- Element clips children.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_AccessibilityAction:
- .. rst-class:: classref-enumeration
- enum **AccessibilityAction**: :ref:`๐<enum_DisplayServer_AccessibilityAction>`
- .. _class_DisplayServer_constant_ACTION_CLICK:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_CLICK** = ``0``
- Single click action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_FOCUS:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_FOCUS** = ``1``
- Focus action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_BLUR:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_BLUR** = ``2``
- Blur action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_COLLAPSE:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_COLLAPSE** = ``3``
- Collapse action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_EXPAND:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_EXPAND** = ``4``
- Expand action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_DECREMENT:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_DECREMENT** = ``5``
- Decrement action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_INCREMENT:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_INCREMENT** = ``6``
- Increment action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_HIDE_TOOLTIP:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_HIDE_TOOLTIP** = ``7``
- Hide tooltip action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_SHOW_TOOLTIP:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SHOW_TOOLTIP** = ``8``
- Show tooltip action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_SET_TEXT_SELECTION:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SET_TEXT_SELECTION** = ``9``
- Set text selection action, callback argument is set to :ref:`Dictionary<class_Dictionary>` with the following keys:
- - ``"start_element"`` accessibility element of the selection start.
- - ``"start_char"`` character offset relative to the accessibility element of the selection start.
- - ``"end_element"`` accessibility element of the selection end.
- - ``"end_char"`` character offset relative to the accessibility element of the selection end.
- .. _class_DisplayServer_constant_ACTION_REPLACE_SELECTED_TEXT:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_REPLACE_SELECTED_TEXT** = ``10``
- Replace text action, callback argument is set to :ref:`String<class_String>` with the replacement text.
- .. _class_DisplayServer_constant_ACTION_SCROLL_BACKWARD:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_BACKWARD** = ``11``
- Scroll backward action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_SCROLL_DOWN:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_DOWN** = ``12``
- Scroll down action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_SCROLL_FORWARD:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_FORWARD** = ``13``
- Scroll forward action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_SCROLL_LEFT:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_LEFT** = ``14``
- Scroll left action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_SCROLL_RIGHT:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_RIGHT** = ``15``
- Scroll right action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_SCROLL_UP:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_UP** = ``16``
- Scroll up action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_SCROLL_INTO_VIEW:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_INTO_VIEW** = ``17``
- Scroll into view action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_SCROLL_TO_POINT:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SCROLL_TO_POINT** = ``18``
- Scroll to point action, callback argument is set to :ref:`Vector2<class_Vector2>` with the relative point coordinates.
- .. _class_DisplayServer_constant_ACTION_SET_SCROLL_OFFSET:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SET_SCROLL_OFFSET** = ``19``
- Set scroll offset action, callback argument is set to :ref:`Vector2<class_Vector2>` with the scroll offset.
- .. _class_DisplayServer_constant_ACTION_SET_VALUE:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SET_VALUE** = ``20``
- Set value action, callback argument is set to :ref:`String<class_String>` or number with the new value.
- .. _class_DisplayServer_constant_ACTION_SHOW_CONTEXT_MENU:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_SHOW_CONTEXT_MENU** = ``21``
- Show context menu action, callback argument is not set.
- .. _class_DisplayServer_constant_ACTION_CUSTOM:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityAction<enum_DisplayServer_AccessibilityAction>` **ACTION_CUSTOM** = ``22``
- Custom action, callback argument is set to the integer action ID.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_AccessibilityLiveMode:
- .. rst-class:: classref-enumeration
- enum **AccessibilityLiveMode**: :ref:`๐<enum_DisplayServer_AccessibilityLiveMode>`
- .. _class_DisplayServer_constant_LIVE_OFF:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityLiveMode<enum_DisplayServer_AccessibilityLiveMode>` **LIVE_OFF** = ``0``
- Indicates that updates to the live region should not be presented.
- .. _class_DisplayServer_constant_LIVE_POLITE:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityLiveMode<enum_DisplayServer_AccessibilityLiveMode>` **LIVE_POLITE** = ``1``
- Indicates that updates to the live region should be presented at the next opportunity (for example at the end of speaking the current sentence).
- .. _class_DisplayServer_constant_LIVE_ASSERTIVE:
- .. rst-class:: classref-enumeration-constant
- :ref:`AccessibilityLiveMode<enum_DisplayServer_AccessibilityLiveMode>` **LIVE_ASSERTIVE** = ``2``
- Indicates that updates to the live region have the highest priority and should be presented immediately.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_MouseMode:
- .. rst-class:: classref-enumeration
- enum **MouseMode**: :ref:`๐<enum_DisplayServer_MouseMode>`
- .. _class_DisplayServer_constant_MOUSE_MODE_VISIBLE:
- .. rst-class:: classref-enumeration-constant
- :ref:`MouseMode<enum_DisplayServer_MouseMode>` **MOUSE_MODE_VISIBLE** = ``0``
- Makes the mouse cursor visible if it is hidden.
- .. _class_DisplayServer_constant_MOUSE_MODE_HIDDEN:
- .. rst-class:: classref-enumeration-constant
- :ref:`MouseMode<enum_DisplayServer_MouseMode>` **MOUSE_MODE_HIDDEN** = ``1``
- Makes the mouse cursor hidden if it is visible.
- .. _class_DisplayServer_constant_MOUSE_MODE_CAPTURED:
- .. rst-class:: classref-enumeration-constant
- :ref:`MouseMode<enum_DisplayServer_MouseMode>` **MOUSE_MODE_CAPTURED** = ``2``
- Captures the mouse. The mouse will be hidden and its position locked at the center of the window manager's window.
- \ **Note:** If you want to process the mouse's movement in this mode, you need to use :ref:`InputEventMouseMotion.relative<class_InputEventMouseMotion_property_relative>`.
- .. _class_DisplayServer_constant_MOUSE_MODE_CONFINED:
- .. rst-class:: classref-enumeration-constant
- :ref:`MouseMode<enum_DisplayServer_MouseMode>` **MOUSE_MODE_CONFINED** = ``3``
- Confines the mouse cursor to the game window, and make it visible.
- .. _class_DisplayServer_constant_MOUSE_MODE_CONFINED_HIDDEN:
- .. rst-class:: classref-enumeration-constant
- :ref:`MouseMode<enum_DisplayServer_MouseMode>` **MOUSE_MODE_CONFINED_HIDDEN** = ``4``
- Confines the mouse cursor to the game window, and make it hidden.
- .. _class_DisplayServer_constant_MOUSE_MODE_MAX:
- .. rst-class:: classref-enumeration-constant
- :ref:`MouseMode<enum_DisplayServer_MouseMode>` **MOUSE_MODE_MAX** = ``5``
- Max value of the :ref:`MouseMode<enum_DisplayServer_MouseMode>`.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_ScreenOrientation:
- .. rst-class:: classref-enumeration
- enum **ScreenOrientation**: :ref:`๐<enum_DisplayServer_ScreenOrientation>`
- .. _class_DisplayServer_constant_SCREEN_LANDSCAPE:
- .. rst-class:: classref-enumeration-constant
- :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **SCREEN_LANDSCAPE** = ``0``
- Default landscape orientation.
- .. _class_DisplayServer_constant_SCREEN_PORTRAIT:
- .. rst-class:: classref-enumeration-constant
- :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **SCREEN_PORTRAIT** = ``1``
- Default portrait orientation.
- .. _class_DisplayServer_constant_SCREEN_REVERSE_LANDSCAPE:
- .. rst-class:: classref-enumeration-constant
- :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **SCREEN_REVERSE_LANDSCAPE** = ``2``
- Reverse landscape orientation (upside down).
- .. _class_DisplayServer_constant_SCREEN_REVERSE_PORTRAIT:
- .. rst-class:: classref-enumeration-constant
- :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **SCREEN_REVERSE_PORTRAIT** = ``3``
- Reverse portrait orientation (upside down).
- .. _class_DisplayServer_constant_SCREEN_SENSOR_LANDSCAPE:
- .. rst-class:: classref-enumeration-constant
- :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **SCREEN_SENSOR_LANDSCAPE** = ``4``
- Automatic landscape orientation (default or reverse depending on sensor).
- .. _class_DisplayServer_constant_SCREEN_SENSOR_PORTRAIT:
- .. rst-class:: classref-enumeration-constant
- :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **SCREEN_SENSOR_PORTRAIT** = ``5``
- Automatic portrait orientation (default or reverse depending on sensor).
- .. _class_DisplayServer_constant_SCREEN_SENSOR:
- .. rst-class:: classref-enumeration-constant
- :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **SCREEN_SENSOR** = ``6``
- Automatic landscape or portrait orientation (default or reverse depending on sensor).
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_VirtualKeyboardType:
- .. rst-class:: classref-enumeration
- enum **VirtualKeyboardType**: :ref:`๐<enum_DisplayServer_VirtualKeyboardType>`
- .. _class_DisplayServer_constant_KEYBOARD_TYPE_DEFAULT:
- .. rst-class:: classref-enumeration-constant
- :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_DEFAULT** = ``0``
- Default text virtual keyboard.
- .. _class_DisplayServer_constant_KEYBOARD_TYPE_MULTILINE:
- .. rst-class:: classref-enumeration-constant
- :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_MULTILINE** = ``1``
- Multiline virtual keyboard.
- .. _class_DisplayServer_constant_KEYBOARD_TYPE_NUMBER:
- .. rst-class:: classref-enumeration-constant
- :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_NUMBER** = ``2``
- Virtual number keypad, useful for PIN entry.
- .. _class_DisplayServer_constant_KEYBOARD_TYPE_NUMBER_DECIMAL:
- .. rst-class:: classref-enumeration-constant
- :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_NUMBER_DECIMAL** = ``3``
- Virtual number keypad, useful for entering fractional numbers.
- .. _class_DisplayServer_constant_KEYBOARD_TYPE_PHONE:
- .. rst-class:: classref-enumeration-constant
- :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_PHONE** = ``4``
- Virtual phone number keypad.
- .. _class_DisplayServer_constant_KEYBOARD_TYPE_EMAIL_ADDRESS:
- .. rst-class:: classref-enumeration-constant
- :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_EMAIL_ADDRESS** = ``5``
- Virtual keyboard with additional keys to assist with typing email addresses.
- .. _class_DisplayServer_constant_KEYBOARD_TYPE_PASSWORD:
- .. rst-class:: classref-enumeration-constant
- :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_PASSWORD** = ``6``
- Virtual keyboard for entering a password. On most platforms, this should disable autocomplete and autocapitalization.
- \ **Note:** This is not supported on Web. Instead, this behaves identically to :ref:`KEYBOARD_TYPE_DEFAULT<class_DisplayServer_constant_KEYBOARD_TYPE_DEFAULT>`.
- .. _class_DisplayServer_constant_KEYBOARD_TYPE_URL:
- .. rst-class:: classref-enumeration-constant
- :ref:`VirtualKeyboardType<enum_DisplayServer_VirtualKeyboardType>` **KEYBOARD_TYPE_URL** = ``7``
- Virtual keyboard with additional keys to assist with typing URLs.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_CursorShape:
- .. rst-class:: classref-enumeration
- enum **CursorShape**: :ref:`๐<enum_DisplayServer_CursorShape>`
- .. _class_DisplayServer_constant_CURSOR_ARROW:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_ARROW** = ``0``
- 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>`.
- .. _class_DisplayServer_constant_CURSOR_IBEAM:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_IBEAM** = ``1``
- 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>`.
- .. _class_DisplayServer_constant_CURSOR_POINTING_HAND:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_POINTING_HAND** = ``2``
- 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>`.
- .. _class_DisplayServer_constant_CURSOR_CROSS:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_CROSS** = ``3``
- 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.
- .. _class_DisplayServer_constant_CURSOR_WAIT:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_WAIT** = ``4``
- 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>`.
- .. _class_DisplayServer_constant_CURSOR_BUSY:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_BUSY** = ``5``
- 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>`.
- .. _class_DisplayServer_constant_CURSOR_DRAG:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_DRAG** = ``6``
- Dragging hand cursor. This is displayed during drag-and-drop operations. See also :ref:`CURSOR_CAN_DROP<class_DisplayServer_constant_CURSOR_CAN_DROP>`.
- .. _class_DisplayServer_constant_CURSOR_CAN_DROP:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_CAN_DROP** = ``7``
- "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>`.
- .. _class_DisplayServer_constant_CURSOR_FORBIDDEN:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_FORBIDDEN** = ``8``
- 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.
- .. _class_DisplayServer_constant_CURSOR_VSIZE:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_VSIZE** = ``9``
- 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>`.
- .. _class_DisplayServer_constant_CURSOR_HSIZE:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_HSIZE** = ``10``
- 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>`.
- .. _class_DisplayServer_constant_CURSOR_BDIAGSIZE:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_BDIAGSIZE** = ``11``
- 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.
- .. _class_DisplayServer_constant_CURSOR_FDIAGSIZE:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_FDIAGSIZE** = ``12``
- 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.
- .. _class_DisplayServer_constant_CURSOR_MOVE:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_MOVE** = ``13``
- Move cursor. Intended to be displayed when the hovered :ref:`Control<class_Control>` can be moved using the mouse.
- .. _class_DisplayServer_constant_CURSOR_VSPLIT:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_VSPLIT** = ``14``
- 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>`.
- .. _class_DisplayServer_constant_CURSOR_HSPLIT:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_HSPLIT** = ``15``
- 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>`.
- .. _class_DisplayServer_constant_CURSOR_HELP:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_HELP** = ``16``
- 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.
- .. _class_DisplayServer_constant_CURSOR_MAX:
- .. rst-class:: classref-enumeration-constant
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **CURSOR_MAX** = ``17``
- Represents the size of the :ref:`CursorShape<enum_DisplayServer_CursorShape>` enum.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_FileDialogMode:
- .. rst-class:: classref-enumeration
- enum **FileDialogMode**: :ref:`๐<enum_DisplayServer_FileDialogMode>`
- .. _class_DisplayServer_constant_FILE_DIALOG_MODE_OPEN_FILE:
- .. rst-class:: classref-enumeration-constant
- :ref:`FileDialogMode<enum_DisplayServer_FileDialogMode>` **FILE_DIALOG_MODE_OPEN_FILE** = ``0``
- The native file dialog allows selecting one, and only one file.
- .. _class_DisplayServer_constant_FILE_DIALOG_MODE_OPEN_FILES:
- .. rst-class:: classref-enumeration-constant
- :ref:`FileDialogMode<enum_DisplayServer_FileDialogMode>` **FILE_DIALOG_MODE_OPEN_FILES** = ``1``
- The native file dialog allows selecting multiple files.
- .. _class_DisplayServer_constant_FILE_DIALOG_MODE_OPEN_DIR:
- .. rst-class:: classref-enumeration-constant
- :ref:`FileDialogMode<enum_DisplayServer_FileDialogMode>` **FILE_DIALOG_MODE_OPEN_DIR** = ``2``
- The native file dialog only allows selecting a directory, disallowing the selection of any file.
- .. _class_DisplayServer_constant_FILE_DIALOG_MODE_OPEN_ANY:
- .. rst-class:: classref-enumeration-constant
- :ref:`FileDialogMode<enum_DisplayServer_FileDialogMode>` **FILE_DIALOG_MODE_OPEN_ANY** = ``3``
- The native file dialog allows selecting one file or directory.
- .. _class_DisplayServer_constant_FILE_DIALOG_MODE_SAVE_FILE:
- .. rst-class:: classref-enumeration-constant
- :ref:`FileDialogMode<enum_DisplayServer_FileDialogMode>` **FILE_DIALOG_MODE_SAVE_FILE** = ``4``
- The native file dialog will warn when a file exists.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_WindowMode:
- .. rst-class:: classref-enumeration
- enum **WindowMode**: :ref:`๐<enum_DisplayServer_WindowMode>`
- .. _class_DisplayServer_constant_WINDOW_MODE_WINDOWED:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowMode<enum_DisplayServer_WindowMode>` **WINDOW_MODE_WINDOWED** = ``0``
- Windowed mode, i.e. :ref:`Window<class_Window>` doesn't occupy the whole screen (unless set to the size of the screen).
- .. _class_DisplayServer_constant_WINDOW_MODE_MINIMIZED:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowMode<enum_DisplayServer_WindowMode>` **WINDOW_MODE_MINIMIZED** = ``1``
- 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.
- .. _class_DisplayServer_constant_WINDOW_MODE_MAXIMIZED:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowMode<enum_DisplayServer_WindowMode>` **WINDOW_MODE_MAXIMIZED** = ``2``
- 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.
- .. _class_DisplayServer_constant_WINDOW_MODE_FULLSCREEN:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowMode<enum_DisplayServer_WindowMode>` **WINDOW_MODE_FULLSCREEN** = ``3``
- Full screen mode with full multi-window support.
- Full screen window covers the entire display area of a screen and has no decorations. The display's video mode is not changed.
- \ **On Android:** This enables immersive mode.
- \ **On macOS:** A new desktop is used to display the running project.
- \ **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.
- .. _class_DisplayServer_constant_WINDOW_MODE_EXCLUSIVE_FULLSCREEN:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowMode<enum_DisplayServer_WindowMode>` **WINDOW_MODE_EXCLUSIVE_FULLSCREEN** = ``4``
- 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).
- 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.
- \ **Note:** This mode might not work with screen recording software.
- \ **On Android:** This enables immersive mode.
- \ **On Windows:** Depending on video driver, full screen transition might cause screens to go black for a moment.
- \ **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.
- \ **On Linux (X11):** Exclusive full screen mode bypasses compositor.
- \ **On Linux (Wayland):** Equivalent to :ref:`WINDOW_MODE_FULLSCREEN<class_DisplayServer_constant_WINDOW_MODE_FULLSCREEN>`.
- \ **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.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_WindowFlags:
- .. rst-class:: classref-enumeration
- enum **WindowFlags**: :ref:`๐<enum_DisplayServer_WindowFlags>`
- .. _class_DisplayServer_constant_WINDOW_FLAG_RESIZE_DISABLED:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_RESIZE_DISABLED** = ``0``
- 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.
- .. _class_DisplayServer_constant_WINDOW_FLAG_BORDERLESS:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_BORDERLESS** = ``1``
- The window do not have native title bar and other decorations. This flag is ignored for full-screen windows.
- .. _class_DisplayServer_constant_WINDOW_FLAG_ALWAYS_ON_TOP:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_ALWAYS_ON_TOP** = ``2``
- The window is floating on top of all other windows. This flag is ignored for full-screen windows.
- .. _class_DisplayServer_constant_WINDOW_FLAG_TRANSPARENT:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_TRANSPARENT** = ``3``
- The window background can be transparent.
- \ **Note:** This flag has no effect if :ref:`is_window_transparency_available()<class_DisplayServer_method_is_window_transparency_available>` returns ``false``.
- \ **Note:** Transparency support is implemented on Linux (X11/Wayland), macOS, and Windows, but availability might vary depending on GPU driver, display manager, and compositor capabilities.
- \ **Note:** Transparency support is implemented on Android, but can only be enabled via :ref:`ProjectSettings.display/window/per_pixel_transparency/allowed<class_ProjectSettings_property_display/window/per_pixel_transparency/allowed>`. This flag has no effect on Android.
- .. _class_DisplayServer_constant_WINDOW_FLAG_NO_FOCUS:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_NO_FOCUS** = ``4``
- The window can't be focused. No-focus window will ignore all input, except mouse clicks.
- .. _class_DisplayServer_constant_WINDOW_FLAG_POPUP:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_POPUP** = ``5``
- 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>`).
- .. _class_DisplayServer_constant_WINDOW_FLAG_EXTEND_TO_TITLE:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_EXTEND_TO_TITLE** = ``6``
- 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.
- Use :ref:`window_set_window_buttons_offset()<class_DisplayServer_method_window_set_window_buttons_offset>` to adjust minimize/maximize/close buttons offset.
- 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.
- \ **Note:** This flag is implemented only on macOS.
- .. _class_DisplayServer_constant_WINDOW_FLAG_MOUSE_PASSTHROUGH:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_MOUSE_PASSTHROUGH** = ``7``
- All mouse events are passed to the underlying window of the same application.
- .. _class_DisplayServer_constant_WINDOW_FLAG_SHARP_CORNERS:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_SHARP_CORNERS** = ``8``
- Window style is overridden, forcing sharp corners.
- \ **Note:** This flag is implemented only on Windows (11).
- .. _class_DisplayServer_constant_WINDOW_FLAG_EXCLUDE_FROM_CAPTURE:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_EXCLUDE_FROM_CAPTURE** = ``9``
- 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>`.
- \ **Note:** This flag is implemented on macOS and Windows.
- \ **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.
- .. _class_DisplayServer_constant_WINDOW_FLAG_POPUP_WM_HINT:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_POPUP_WM_HINT** = ``10``
- Signals the window manager that this window is supposed to be an implementation-defined "popup" (usually a floating, borderless, untileable and immovable child window).
- .. _class_DisplayServer_constant_WINDOW_FLAG_MINIMIZE_DISABLED:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_MINIMIZE_DISABLED** = ``11``
- Window minimize button is disabled.
- \ **Note:** This flag is implemented on macOS and Windows.
- .. _class_DisplayServer_constant_WINDOW_FLAG_MAXIMIZE_DISABLED:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_MAXIMIZE_DISABLED** = ``12``
- Window maximize button is disabled.
- \ **Note:** This flag is implemented on macOS and Windows.
- .. _class_DisplayServer_constant_WINDOW_FLAG_MAX:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowFlags<enum_DisplayServer_WindowFlags>` **WINDOW_FLAG_MAX** = ``13``
- Max value of the :ref:`WindowFlags<enum_DisplayServer_WindowFlags>`.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_WindowEvent:
- .. rst-class:: classref-enumeration
- enum **WindowEvent**: :ref:`๐<enum_DisplayServer_WindowEvent>`
- .. _class_DisplayServer_constant_WINDOW_EVENT_MOUSE_ENTER:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_MOUSE_ENTER** = ``0``
- Sent when the mouse pointer enters the window.
- .. _class_DisplayServer_constant_WINDOW_EVENT_MOUSE_EXIT:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_MOUSE_EXIT** = ``1``
- Sent when the mouse pointer exits the window.
- .. _class_DisplayServer_constant_WINDOW_EVENT_FOCUS_IN:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_FOCUS_IN** = ``2``
- Sent when the window grabs focus.
- .. _class_DisplayServer_constant_WINDOW_EVENT_FOCUS_OUT:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_FOCUS_OUT** = ``3``
- Sent when the window loses focus.
- .. _class_DisplayServer_constant_WINDOW_EVENT_CLOSE_REQUEST:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_CLOSE_REQUEST** = ``4``
- Sent when the user has attempted to close the window (e.g. close button is pressed).
- .. _class_DisplayServer_constant_WINDOW_EVENT_GO_BACK_REQUEST:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_GO_BACK_REQUEST** = ``5``
- Sent when the device "Back" button is pressed.
- \ **Note:** This event is implemented only on Android.
- .. _class_DisplayServer_constant_WINDOW_EVENT_DPI_CHANGE:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_DPI_CHANGE** = ``6``
- Sent when the window is moved to the display with different DPI, or display DPI is changed.
- \ **Note:** This flag is implemented only on macOS and Linux (Wayland).
- .. _class_DisplayServer_constant_WINDOW_EVENT_TITLEBAR_CHANGE:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_TITLEBAR_CHANGE** = ``7``
- 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).
- \ **Note:** This flag is implemented only on macOS.
- .. _class_DisplayServer_constant_WINDOW_EVENT_FORCE_CLOSE:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowEvent<enum_DisplayServer_WindowEvent>` **WINDOW_EVENT_FORCE_CLOSE** = ``8``
- Sent when the window has been forcibly closed by the Display Server. The window shall immediately hide and clean any internal rendering references.
- \ **Note:** This flag is implemented only on Linux (Wayland).
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_WindowResizeEdge:
- .. rst-class:: classref-enumeration
- enum **WindowResizeEdge**: :ref:`๐<enum_DisplayServer_WindowResizeEdge>`
- .. _class_DisplayServer_constant_WINDOW_EDGE_TOP_LEFT:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_TOP_LEFT** = ``0``
- Top-left edge of a window.
- .. _class_DisplayServer_constant_WINDOW_EDGE_TOP:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_TOP** = ``1``
- Top edge of a window.
- .. _class_DisplayServer_constant_WINDOW_EDGE_TOP_RIGHT:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_TOP_RIGHT** = ``2``
- Top-right edge of a window.
- .. _class_DisplayServer_constant_WINDOW_EDGE_LEFT:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_LEFT** = ``3``
- Left edge of a window.
- .. _class_DisplayServer_constant_WINDOW_EDGE_RIGHT:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_RIGHT** = ``4``
- Right edge of a window.
- .. _class_DisplayServer_constant_WINDOW_EDGE_BOTTOM_LEFT:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_BOTTOM_LEFT** = ``5``
- Bottom-left edge of a window.
- .. _class_DisplayServer_constant_WINDOW_EDGE_BOTTOM:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_BOTTOM** = ``6``
- Bottom edge of a window.
- .. _class_DisplayServer_constant_WINDOW_EDGE_BOTTOM_RIGHT:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_BOTTOM_RIGHT** = ``7``
- Bottom-right edge of a window.
- .. _class_DisplayServer_constant_WINDOW_EDGE_MAX:
- .. rst-class:: classref-enumeration-constant
- :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` **WINDOW_EDGE_MAX** = ``8``
- Represents the size of the :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>` enum.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_VSyncMode:
- .. rst-class:: classref-enumeration
- enum **VSyncMode**: :ref:`๐<enum_DisplayServer_VSyncMode>`
- .. _class_DisplayServer_constant_VSYNC_DISABLED:
- .. rst-class:: classref-enumeration-constant
- :ref:`VSyncMode<enum_DisplayServer_VSyncMode>` **VSYNC_DISABLED** = ``0``
- 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>`).
- .. _class_DisplayServer_constant_VSYNC_ENABLED:
- .. rst-class:: classref-enumeration-constant
- :ref:`VSyncMode<enum_DisplayServer_VSyncMode>` **VSYNC_ENABLED** = ``1``
- 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>`).
- .. _class_DisplayServer_constant_VSYNC_ADAPTIVE:
- .. rst-class:: classref-enumeration-constant
- :ref:`VSyncMode<enum_DisplayServer_VSyncMode>` **VSYNC_ADAPTIVE** = ``2``
- 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.
- .. _class_DisplayServer_constant_VSYNC_MAILBOX:
- .. rst-class:: classref-enumeration-constant
- :ref:`VSyncMode<enum_DisplayServer_VSyncMode>` **VSYNC_MAILBOX** = ``3``
- 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>`).
- 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.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_HandleType:
- .. rst-class:: classref-enumeration
- enum **HandleType**: :ref:`๐<enum_DisplayServer_HandleType>`
- .. _class_DisplayServer_constant_DISPLAY_HANDLE:
- .. rst-class:: classref-enumeration-constant
- :ref:`HandleType<enum_DisplayServer_HandleType>` **DISPLAY_HANDLE** = ``0``
- Display handle:
- - Linux (X11): ``X11::Display*`` for the display.
- - Linux (Wayland): ``wl_display`` for the display.
- - Android: ``EGLDisplay`` for the display.
- .. _class_DisplayServer_constant_WINDOW_HANDLE:
- .. rst-class:: classref-enumeration-constant
- :ref:`HandleType<enum_DisplayServer_HandleType>` **WINDOW_HANDLE** = ``1``
- Window handle:
- - Windows: ``HWND`` for the window.
- - Linux (X11): ``X11::Window*`` for the window.
- - Linux (Wayland): ``wl_surface`` for the window.
- - macOS: ``NSWindow*`` for the window.
- - iOS: ``UIViewController*`` for the view controller.
- - Android: ``jObject`` for the activity.
- .. _class_DisplayServer_constant_WINDOW_VIEW:
- .. rst-class:: classref-enumeration-constant
- :ref:`HandleType<enum_DisplayServer_HandleType>` **WINDOW_VIEW** = ``2``
- Window view:
- - Windows: ``HDC`` for the window (only with the Compatibility renderer).
- - macOS: ``NSView*`` for the window main view.
- - iOS: ``UIView*`` for the window main view.
- .. _class_DisplayServer_constant_OPENGL_CONTEXT:
- .. rst-class:: classref-enumeration-constant
- :ref:`HandleType<enum_DisplayServer_HandleType>` **OPENGL_CONTEXT** = ``3``
- OpenGL context (only with the Compatibility renderer):
- - Windows: ``HGLRC`` for the window (native GL), or ``EGLContext`` for the window (ANGLE).
- - Linux (X11): ``GLXContext*`` for the window.
- - Linux (Wayland): ``EGLContext`` for the window.
- - macOS: ``NSOpenGLContext*`` for the window (native GL), or ``EGLContext`` for the window (ANGLE).
- - Android: ``EGLContext`` for the window.
- .. _class_DisplayServer_constant_EGL_DISPLAY:
- .. rst-class:: classref-enumeration-constant
- :ref:`HandleType<enum_DisplayServer_HandleType>` **EGL_DISPLAY** = ``4``
- - Windows: ``EGLDisplay`` for the window (ANGLE).
- - macOS: ``EGLDisplay`` for the window (ANGLE).
- - Linux (Wayland): ``EGLDisplay`` for the window.
- .. _class_DisplayServer_constant_EGL_CONFIG:
- .. rst-class:: classref-enumeration-constant
- :ref:`HandleType<enum_DisplayServer_HandleType>` **EGL_CONFIG** = ``5``
- - Windows: ``EGLConfig`` for the window (ANGLE).
- - macOS: ``EGLConfig`` for the window (ANGLE).
- - Linux (Wayland): ``EGLConfig`` for the window.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_DisplayServer_TTSUtteranceEvent:
- .. rst-class:: classref-enumeration
- enum **TTSUtteranceEvent**: :ref:`๐<enum_DisplayServer_TTSUtteranceEvent>`
- .. _class_DisplayServer_constant_TTS_UTTERANCE_STARTED:
- .. rst-class:: classref-enumeration-constant
- :ref:`TTSUtteranceEvent<enum_DisplayServer_TTSUtteranceEvent>` **TTS_UTTERANCE_STARTED** = ``0``
- Utterance has begun to be spoken.
- .. _class_DisplayServer_constant_TTS_UTTERANCE_ENDED:
- .. rst-class:: classref-enumeration-constant
- :ref:`TTSUtteranceEvent<enum_DisplayServer_TTSUtteranceEvent>` **TTS_UTTERANCE_ENDED** = ``1``
- Utterance was successfully finished.
- .. _class_DisplayServer_constant_TTS_UTTERANCE_CANCELED:
- .. rst-class:: classref-enumeration-constant
- :ref:`TTSUtteranceEvent<enum_DisplayServer_TTSUtteranceEvent>` **TTS_UTTERANCE_CANCELED** = ``2``
- Utterance was canceled, or TTS service was unable to process it.
- .. _class_DisplayServer_constant_TTS_UTTERANCE_BOUNDARY:
- .. rst-class:: classref-enumeration-constant
- :ref:`TTSUtteranceEvent<enum_DisplayServer_TTSUtteranceEvent>` **TTS_UTTERANCE_BOUNDARY** = ``3``
- Utterance reached a word or sentence boundary.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Constants
- ---------
- .. _class_DisplayServer_constant_INVALID_SCREEN:
- .. rst-class:: classref-constant
- **INVALID_SCREEN** = ``-1`` :ref:`๐<class_DisplayServer_constant_INVALID_SCREEN>`
- 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.
- .. _class_DisplayServer_constant_SCREEN_WITH_MOUSE_FOCUS:
- .. rst-class:: classref-constant
- **SCREEN_WITH_MOUSE_FOCUS** = ``-4`` :ref:`๐<class_DisplayServer_constant_SCREEN_WITH_MOUSE_FOCUS>`
- Represents the screen containing the mouse pointer.
- \ **Note:** On Android, iOS, Web, and Linux (Wayland), this constant always represents the screen at index ``0``.
- .. _class_DisplayServer_constant_SCREEN_WITH_KEYBOARD_FOCUS:
- .. rst-class:: classref-constant
- **SCREEN_WITH_KEYBOARD_FOCUS** = ``-3`` :ref:`๐<class_DisplayServer_constant_SCREEN_WITH_KEYBOARD_FOCUS>`
- Represents the screen containing the window with the keyboard focus.
- \ **Note:** On Android, iOS, Web, and Linux (Wayland), this constant always represents the screen at index ``0``.
- .. _class_DisplayServer_constant_SCREEN_PRIMARY:
- .. rst-class:: classref-constant
- **SCREEN_PRIMARY** = ``-2`` :ref:`๐<class_DisplayServer_constant_SCREEN_PRIMARY>`
- Represents the primary screen.
- \ **Note:** On Android, iOS, Web, and Linux (Wayland), this constant always represents the screen at index ``0``.
- .. _class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW:
- .. rst-class:: classref-constant
- **SCREEN_OF_MAIN_WINDOW** = ``-1`` :ref:`๐<class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW>`
- Represents the screen where the main window is located. This is usually the default value in functions that allow specifying one of several screens.
- \ **Note:** On Android, iOS, Web, and Linux (Wayland), this constant always represents the screen at index ``0``.
- .. _class_DisplayServer_constant_MAIN_WINDOW_ID:
- .. rst-class:: classref-constant
- **MAIN_WINDOW_ID** = ``0`` :ref:`๐<class_DisplayServer_constant_MAIN_WINDOW_ID>`
- The ID of the main window spawned by the engine, which can be passed to methods expecting a ``window_id``.
- .. _class_DisplayServer_constant_INVALID_WINDOW_ID:
- .. rst-class:: classref-constant
- **INVALID_WINDOW_ID** = ``-1`` :ref:`๐<class_DisplayServer_constant_INVALID_WINDOW_ID>`
- The ID that refers to a nonexistent window. This is returned by some **DisplayServer** methods if no window matches the requested result.
- .. _class_DisplayServer_constant_INVALID_INDICATOR_ID:
- .. rst-class:: classref-constant
- **INVALID_INDICATOR_ID** = ``-1`` :ref:`๐<class_DisplayServer_constant_INVALID_INDICATOR_ID>`
- The ID that refers to a nonexistent application status indicator.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Method Descriptions
- -------------------
- .. _class_DisplayServer_method_accessibility_create_element:
- .. rst-class:: classref-method
- :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>`
- Creates a new, empty accessibility element resource.
- \ **Note:** An accessibility element is created and freed automatically for each :ref:`Node<class_Node>`. In general, this function should not be called manually.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_create_sub_element:
- .. rst-class:: classref-method
- :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>`
- 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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_create_sub_text_edit_elements:
- .. rst-class:: classref-method
- :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>`
- 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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_element_get_meta:
- .. rst-class:: classref-method
- :ref:`Variant<class_Variant>` **accessibility_element_get_meta**\ (\ id\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐<class_DisplayServer_method_accessibility_element_get_meta>`
- Returns the metadata of the accessibility element.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_element_set_meta:
- .. rst-class:: classref-method
- |void| **accessibility_element_set_meta**\ (\ id\: :ref:`RID<class_RID>`, meta\: :ref:`Variant<class_Variant>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_element_set_meta>`
- Sets the metadata of the accessibility element.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_free_element:
- .. rst-class:: classref-method
- |void| **accessibility_free_element**\ (\ id\: :ref:`RID<class_RID>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_free_element>`
- 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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_get_window_root:
- .. rst-class:: classref-method
- :ref:`RID<class_RID>` **accessibility_get_window_root**\ (\ window_id\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_DisplayServer_method_accessibility_get_window_root>`
- Returns the main accessibility element of the OS native window.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_has_element:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **accessibility_has_element**\ (\ id\: :ref:`RID<class_RID>`\ ) |const| :ref:`๐<class_DisplayServer_method_accessibility_has_element>`
- Returns ``true`` if ``id`` is a valid accessibility element.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_screen_reader_active:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **accessibility_screen_reader_active**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_accessibility_screen_reader_active>`
- Returns ``1`` if a screen reader, Braille display or other assistive app is active, ``0`` otherwise. Returns ``-1`` if status is unknown.
- \ **Note:** This method is implemented on Linux, macOS, and Windows.
- \ **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``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_set_window_focused:
- .. rst-class:: classref-method
- |void| **accessibility_set_window_focused**\ (\ window_id\: :ref:`int<class_int>`, focused\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_set_window_focused>`
- Sets the window focused state for assistive apps.
- \ **Note:** This method is implemented on Linux, macOS, and Windows.
- \ **Note:** Advanced users only! :ref:`Window<class_Window>` objects call this method automatically.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_set_window_rect:
- .. rst-class:: classref-method
- |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>`
- Sets window outer (with decorations) and inner (without decorations) bounds for assistive apps.
- \ **Note:** This method is implemented on Linux, macOS, and Windows.
- \ **Note:** Advanced users only! :ref:`Window<class_Window>` objects call this method automatically.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_should_increase_contrast:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **accessibility_should_increase_contrast**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_accessibility_should_increase_contrast>`
- Returns ``1`` if a high-contrast user interface theme should be used, ``0`` otherwise. Returns ``-1`` if status is unknown.
- \ **Note:** This method is implemented on Linux (X11/Wayland, GNOME), macOS, and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_should_reduce_animation:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **accessibility_should_reduce_animation**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_accessibility_should_reduce_animation>`
- 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.
- \ **Note:** This method is implemented on macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_should_reduce_transparency:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **accessibility_should_reduce_transparency**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_accessibility_should_reduce_transparency>`
- 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.
- \ **Note:** This method is implemented on macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_add_action:
- .. rst-class:: classref-method
- |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>`
- 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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_add_child:
- .. rst-class:: classref-method
- |void| **accessibility_update_add_child**\ (\ id\: :ref:`RID<class_RID>`, child_id\: :ref:`RID<class_RID>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_add_child>`
- Adds a child accessibility element.
- \ **Note:** :ref:`Node<class_Node>` children and sub-elements are added to the child list automatically.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_add_custom_action:
- .. rst-class:: classref-method
- |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>`
- 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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_add_related_controls:
- .. rst-class:: classref-method
- |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>`
- Adds an element that is controlled by this element.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_add_related_described_by:
- .. rst-class:: classref-method
- |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>`
- Adds an element that describes this element.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_add_related_details:
- .. rst-class:: classref-method
- |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>`
- Adds an element that details this element.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_add_related_flow_to:
- .. rst-class:: classref-method
- |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>`
- Adds an element that this element flow into.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_add_related_labeled_by:
- .. rst-class:: classref-method
- |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>`
- Adds an element that labels this element.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_add_related_radio_group:
- .. rst-class:: classref-method
- |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>`
- Adds an element that is part of the same radio group.
- \ **Note:** This method should be called on each element of the group, using all other elements as ``related_id``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_active_descendant:
- .. rst-class:: classref-method
- |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>`
- Adds an element that is an active descendant of this element.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_background_color:
- .. rst-class:: classref-method
- |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>`
- Sets element background color.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_bounds:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_bounds**\ (\ id\: :ref:`RID<class_RID>`, p_rect\: :ref:`Rect2<class_Rect2>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_bounds>`
- Sets element bounding box, relative to the node position.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_checked:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_checked**\ (\ id\: :ref:`RID<class_RID>`, checekd\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_checked>`
- Sets element checked state.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_classname:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_classname**\ (\ id\: :ref:`RID<class_RID>`, classname\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_classname>`
- Sets element class name.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_color_value:
- .. rst-class:: classref-method
- |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>`
- Sets element color value.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_description:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_description**\ (\ id\: :ref:`RID<class_RID>`, description\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_description>`
- Sets element accessibility description.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_error_message:
- .. rst-class:: classref-method
- |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>`
- Sets an element which contains an error message for this element.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_extra_info:
- .. rst-class:: classref-method
- |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>`
- Sets element accessibility extra information added to the element name.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_flag:
- .. rst-class:: classref-method
- |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>`
- Sets element flag.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_focus:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_focus**\ (\ id\: :ref:`RID<class_RID>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_focus>`
- Sets currently focused element.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_foreground_color:
- .. rst-class:: classref-method
- |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>`
- Sets element foreground color.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_in_page_link_target:
- .. rst-class:: classref-method
- |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>`
- Sets target element for the link.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_language:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_language**\ (\ id\: :ref:`RID<class_RID>`, language\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_language>`
- Sets element text language.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_list_item_count:
- .. rst-class:: classref-method
- |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>`
- Sets number of items in the list.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_list_item_expanded:
- .. rst-class:: classref-method
- |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>`
- Sets list/tree item expanded status.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_list_item_index:
- .. rst-class:: classref-method
- |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>`
- Sets the position of the element in the list.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_list_item_level:
- .. rst-class:: classref-method
- |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>`
- Sets the hierarchical level of the element in the list.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_list_item_selected:
- .. rst-class:: classref-method
- |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>`
- Sets list/tree item selected status.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_list_orientation:
- .. rst-class:: classref-method
- |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>`
- Sets the orientation of the list elements.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_live:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_live**\ (\ id\: :ref:`RID<class_RID>`, live\: :ref:`AccessibilityLiveMode<enum_DisplayServer_AccessibilityLiveMode>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_live>`
- Sets the priority of the live region updates.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_member_of:
- .. rst-class:: classref-method
- |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>`
- Sets the element to be a member of the group.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_name:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_name**\ (\ id\: :ref:`RID<class_RID>`, name\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_name>`
- Sets element accessibility name.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_next_on_line:
- .. rst-class:: classref-method
- |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>`
- Sets next element on the line.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_num_jump:
- .. rst-class:: classref-method
- |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>`
- Sets numeric value jump.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_num_range:
- .. rst-class:: classref-method
- |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>`
- Sets numeric value range.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_num_step:
- .. rst-class:: classref-method
- |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>`
- Sets numeric value step.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_num_value:
- .. rst-class:: classref-method
- |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>`
- Sets numeric value.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_placeholder:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_placeholder**\ (\ id\: :ref:`RID<class_RID>`, placeholder\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_placeholder>`
- Sets placeholder text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_popup_type:
- .. rst-class:: classref-method
- |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>`
- Sets popup type for popup buttons.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_previous_on_line:
- .. rst-class:: classref-method
- |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>`
- Sets previous element on the line.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_role:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_role**\ (\ id\: :ref:`RID<class_RID>`, role\: :ref:`AccessibilityRole<enum_DisplayServer_AccessibilityRole>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_role>`
- Sets element accessibility role.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_role_description:
- .. rst-class:: classref-method
- |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>`
- Sets element accessibility role description text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_scroll_x:
- .. rst-class:: classref-method
- |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>`
- Sets scroll bar x position.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_scroll_x_range:
- .. rst-class:: classref-method
- |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>`
- Sets scroll bar x range.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_scroll_y:
- .. rst-class:: classref-method
- |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>`
- Sets scroll bar y position.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_scroll_y_range:
- .. rst-class:: classref-method
- |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>`
- Sets scroll bar y range.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_shortcut:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_shortcut**\ (\ id\: :ref:`RID<class_RID>`, shortcut\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_shortcut>`
- Sets the list of keyboard shortcuts used by element.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_state_description:
- .. rst-class:: classref-method
- |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>`
- Sets human-readable description of the current checked state.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_table_cell_position:
- .. rst-class:: classref-method
- |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>`
- Sets cell position in the table.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_table_cell_span:
- .. rst-class:: classref-method
- |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>`
- Sets cell row/column span.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_table_column_count:
- .. rst-class:: classref-method
- |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>`
- Sets number of columns in the table.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_table_column_index:
- .. rst-class:: classref-method
- |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>`
- Sets position of the column.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_table_row_count:
- .. rst-class:: classref-method
- |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>`
- Sets number of rows in the table.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_table_row_index:
- .. rst-class:: classref-method
- |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>`
- Sets position of the row in the table.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_text_align:
- .. rst-class:: classref-method
- |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>`
- Sets element text alignment.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_text_decorations:
- .. rst-class:: classref-method
- |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>`
- Sets text underline/overline/strikethrough.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_text_orientation:
- .. rst-class:: classref-method
- |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>`
- Sets text orientation.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_text_selection:
- .. rst-class:: classref-method
- |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>`
- 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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_tooltip:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_tooltip**\ (\ id\: :ref:`RID<class_RID>`, tooltip\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_tooltip>`
- Sets tooltip text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_transform:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_transform**\ (\ id\: :ref:`RID<class_RID>`, transform\: :ref:`Transform2D<class_Transform2D>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_transform>`
- Sets element 2D transform.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_url:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_url**\ (\ id\: :ref:`RID<class_RID>`, url\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_url>`
- Sets link URL.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_accessibility_update_set_value:
- .. rst-class:: classref-method
- |void| **accessibility_update_set_value**\ (\ id\: :ref:`RID<class_RID>`, value\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_accessibility_update_set_value>`
- Sets element text value.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_beep:
- .. rst-class:: classref-method
- |void| **beep**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_beep>`
- 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.
- \ **Note:** This method is implemented on macOS, Linux (X11/Wayland), and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_clipboard_get:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **clipboard_get**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_clipboard_get>`
- Returns the user's clipboard as a string if possible.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_clipboard_get_image:
- .. rst-class:: classref-method
- :ref:`Image<class_Image>` **clipboard_get_image**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_clipboard_get_image>`
- Returns the user's clipboard as an image if possible.
- \ **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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_clipboard_get_primary:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **clipboard_get_primary**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_clipboard_get_primary>`
- 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.
- \ **Note:** This method is only implemented on Linux (X11/Wayland).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_clipboard_has:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **clipboard_has**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_clipboard_has>`
- Returns ``true`` if there is a text content on the user's clipboard.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_clipboard_has_image:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **clipboard_has_image**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_clipboard_has_image>`
- Returns ``true`` if there is an image content on the user's clipboard.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_clipboard_set:
- .. rst-class:: classref-method
- |void| **clipboard_set**\ (\ clipboard\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_clipboard_set>`
- Sets the user's clipboard content to the given string.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_clipboard_set_primary:
- .. rst-class:: classref-method
- |void| **clipboard_set_primary**\ (\ clipboard_primary\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_clipboard_set_primary>`
- 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.
- \ **Note:** This method is only implemented on Linux (X11/Wayland).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_color_picker:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **color_picker**\ (\ callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐<class_DisplayServer_method_color_picker>`
- Displays OS native color picker.
- Callbacks have the following arguments: ``status: bool, color: Color``.
- \ **Note:** This method is implemented if the display server has the :ref:`FEATURE_NATIVE_COLOR_PICKER<class_DisplayServer_constant_FEATURE_NATIVE_COLOR_PICKER>` feature.
- \ **Note:** This method is only implemented on Linux (X11/Wayland).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_create_status_indicator:
- .. rst-class:: classref-method
- :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>`
- Creates a new application status indicator with the specified icon, tooltip, and activation callback.
- \ ``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>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_cursor_get_shape:
- .. rst-class:: classref-method
- :ref:`CursorShape<enum_DisplayServer_CursorShape>` **cursor_get_shape**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_cursor_get_shape>`
- Returns the default mouse cursor shape set by :ref:`cursor_set_shape()<class_DisplayServer_method_cursor_set_shape>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_cursor_set_custom_image:
- .. rst-class:: classref-method
- |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>`
- 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.
- \ ``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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_cursor_set_shape:
- .. rst-class:: classref-method
- |void| **cursor_set_shape**\ (\ shape\: :ref:`CursorShape<enum_DisplayServer_CursorShape>`\ ) :ref:`๐<class_DisplayServer_method_cursor_set_shape>`
- 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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_delete_status_indicator:
- .. rst-class:: classref-method
- |void| **delete_status_indicator**\ (\ id\: :ref:`int<class_int>`\ ) :ref:`๐<class_DisplayServer_method_delete_status_indicator>`
- Removes the application status indicator.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_dialog_input_text:
- .. rst-class:: classref-method
- :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>`
- 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.
- \ **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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_dialog_show:
- .. rst-class:: classref-method
- :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>`
- 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.
- \ **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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_enable_for_stealing_focus:
- .. rst-class:: classref-method
- |void| **enable_for_stealing_focus**\ (\ process_id\: :ref:`int<class_int>`\ ) :ref:`๐<class_DisplayServer_method_enable_for_stealing_focus>`
- 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.
- \ **Note:** This method is implemented only on Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_file_dialog_show:
- .. rst-class:: classref-method
- :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>`
- Displays OS native dialog for selecting files or directories in the file system.
- 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>`.
- 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``.
- \ **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+).
- \ **Note:** ``current_directory`` might be ignored.
- \ **Note:** Embedded file dialog and Windows file dialog support only file extensions, while Android, Linux, and macOS file dialogs also support MIME types.
- \ **Note:** On Android and Linux, ``show_hidden`` is ignored.
- \ **Note:** On Android and macOS, native file dialogs have no title.
- \ **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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_file_dialog_with_options_show:
- .. rst-class:: classref-method
- :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>`
- Displays OS native dialog for selecting files or directories in the file system with additional user selectable options.
- 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>`.
- \ ``options`` is array of :ref:`Dictionary<class_Dictionary>`\ s with the following keys:
- - ``"name"`` - option's name :ref:`String<class_String>`.
- - ``"values"`` - :ref:`PackedStringArray<class_PackedStringArray>` of values. If empty, boolean option (check box) is used.
- - ``"default"`` - default selected option index (:ref:`int<class_int>`) or default boolean value (:ref:`bool<class_bool>`).
- Callbacks have the following arguments: ``status: bool, selected_paths: PackedStringArray, selected_filter_index: int, selected_option: Dictionary``.
- \ **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.
- \ **Note:** ``current_directory`` might be ignored.
- \ **Note:** Embedded file dialog and Windows file dialog support only file extensions, while Android, Linux, and macOS file dialogs also support MIME types.
- \ **Note:** On Linux (X11), ``show_hidden`` is ignored.
- \ **Note:** On macOS, native file dialogs have no title.
- \ **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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_force_process_and_drop_events:
- .. rst-class:: classref-method
- |void| **force_process_and_drop_events**\ (\ ) :ref:`๐<class_DisplayServer_method_force_process_and_drop_events>`
- Forces window manager processing while ignoring all :ref:`InputEvent<class_InputEvent>`\ s. See also :ref:`process_events()<class_DisplayServer_method_process_events>`.
- \ **Note:** This method is implemented on Windows and macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_get_accent_color:
- .. rst-class:: classref-method
- :ref:`Color<class_Color>` **get_accent_color**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_get_accent_color>`
- Returns OS theme accent color. Returns ``Color(0, 0, 0, 0)``, if accent color is unknown.
- \ **Note:** This method is implemented on macOS, Windows, Android, and Linux (X11/Wayland).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_get_base_color:
- .. rst-class:: classref-method
- :ref:`Color<class_Color>` **get_base_color**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_get_base_color>`
- Returns the OS theme base color (default control background). Returns ``Color(0, 0, 0, 0)`` if the base color is unknown.
- \ **Note:** This method is implemented on macOS, Windows, and Android.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_get_display_cutouts:
- .. rst-class:: classref-method
- :ref:`Array<class_Array>`\[:ref:`Rect2<class_Rect2>`\] **get_display_cutouts**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_get_display_cutouts>`
- 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>`.
- \ **Note:** Currently only implemented on Android. Other platforms will return an empty array even if they do have display cutouts or notches.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_get_display_safe_area:
- .. rst-class:: classref-method
- :ref:`Rect2i<class_Rect2i>` **get_display_safe_area**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_get_display_safe_area>`
- 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>`.
- \ **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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_get_keyboard_focus_screen:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_keyboard_focus_screen**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_get_keyboard_focus_screen>`
- Returns the index of the screen containing the window with the keyboard focus, or the primary screen if there's no focused window.
- \ **Note:** This method is implemented on Linux/X11, macOS, and Windows. On other platforms, this method always returns the primary screen.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_get_name:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **get_name**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_get_name>`
- 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).
- 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>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_get_primary_screen:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_primary_screen**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_get_primary_screen>`
- Returns index of the primary screen.
- \ **Note:** This method is implemented on Linux/X11, macOS, and Windows. On other platforms, this method always returns ``0``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_get_screen_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_screen_count**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_get_screen_count>`
- Returns the number of displays available.
- \ **Note:** This method is implemented on Linux (X11 and Wayland), macOS, and Windows. On other platforms, this method always returns ``1``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_get_screen_from_rect:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_screen_from_rect**\ (\ rect\: :ref:`Rect2<class_Rect2>`\ ) |const| :ref:`๐<class_DisplayServer_method_get_screen_from_rect>`
- 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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_get_swap_cancel_ok:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **get_swap_cancel_ok**\ (\ ) :ref:`๐<class_DisplayServer_method_get_swap_cancel_ok>`
- 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>`.
- \ **Note:** This doesn't affect native dialogs such as the ones spawned by :ref:`dialog_show()<class_DisplayServer_method_dialog_show>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_get_window_at_screen_position:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_window_at_screen_position**\ (\ position\: :ref:`Vector2i<class_Vector2i>`\ ) |const| :ref:`๐<class_DisplayServer_method_get_window_at_screen_position>`
- 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:
- .. code:: text
- * (0, 0) +-------+
- | |
- +-------------+ | |
- | | | |
- | | | |
- +-------------+ +-------+
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_get_window_list:
- .. rst-class:: classref-method
- :ref:`PackedInt32Array<class_PackedInt32Array>` **get_window_list**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_get_window_list>`
- Returns the list of Godot window IDs belonging to this process.
- \ **Note:** Native dialogs are not included in this list.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_add_check_item:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Adds a new checkable item with text ``label`` to the global menu with ID ``menu_root``.
- Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
- 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`).
- \ **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``.
- \ **Note:** This method is implemented only on macOS.
- \ **Supported system menu IDs:**\
- .. code:: text
- "_main" - Main menu (macOS).
- "_dock" - Dock popup menu (macOS).
- "_apple" - Apple menu (macOS, custom items added before "Services").
- "_window" - Window menu (macOS, custom items added after "Bring All to Front").
- "_help" - Help menu (macOS).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_add_icon_check_item:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Adds a new checkable item with text ``label`` and icon ``icon`` to the global menu with ID ``menu_root``.
- Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
- 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`).
- \ **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``.
- \ **Note:** This method is implemented only on macOS.
- \ **Supported system menu IDs:**\
- .. code:: text
- "_main" - Main menu (macOS).
- "_dock" - Dock popup menu (macOS).
- "_apple" - Apple menu (macOS, custom items added before "Services").
- "_window" - Window menu (macOS, custom items added after "Bring All to Front").
- "_help" - Help menu (macOS).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_add_icon_item:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Adds a new item with text ``label`` and icon ``icon`` to the global menu with ID ``menu_root``.
- Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
- 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`).
- \ **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``.
- \ **Note:** This method is implemented only on macOS.
- \ **Supported system menu IDs:**\
- .. code:: text
- "_main" - Main menu (macOS).
- "_dock" - Dock popup menu (macOS).
- "_apple" - Apple menu (macOS, custom items added before "Services").
- "_window" - Window menu (macOS, custom items added after "Bring All to Front").
- "_help" - Help menu (macOS).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_add_icon_radio_check_item:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Adds a new radio-checkable item with text ``label`` and icon ``icon`` to the global menu with ID ``menu_root``.
- Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
- 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`).
- \ **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.
- \ **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``.
- \ **Note:** This method is implemented only on macOS.
- \ **Supported system menu IDs:**\
- .. code:: text
- "_main" - Main menu (macOS).
- "_dock" - Dock popup menu (macOS).
- "_apple" - Apple menu (macOS, custom items added before "Services").
- "_window" - Window menu (macOS, custom items added after "Bring All to Front").
- "_help" - Help menu (macOS).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_add_item:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Adds a new item with text ``label`` to the global menu with ID ``menu_root``.
- Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
- 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`).
- \ **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``.
- \ **Note:** This method is implemented only on macOS.
- \ **Supported system menu IDs:**\
- .. code:: text
- "_main" - Main menu (macOS).
- "_dock" - Dock popup menu (macOS).
- "_apple" - Apple menu (macOS, custom items added before "Services").
- "_window" - Window menu (macOS, custom items added after "Bring All to Front").
- "_help" - Help menu (macOS).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_add_multistate_item:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Adds a new item with text ``label`` to the global menu with ID ``menu_root``.
- 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``.
- Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
- 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`).
- \ **Note:** By default, there's no indication of the current item state, it should be changed manually.
- \ **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``.
- \ **Note:** This method is implemented only on macOS.
- \ **Supported system menu IDs:**\
- .. code:: text
- "_main" - Main menu (macOS).
- "_dock" - Dock popup menu (macOS).
- "_apple" - Apple menu (macOS, custom items added before "Services").
- "_window" - Window menu (macOS, custom items added after "Bring All to Front").
- "_help" - Help menu (macOS).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_add_radio_check_item:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Adds a new radio-checkable item with text ``label`` to the global menu with ID ``menu_root``.
- Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
- 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`).
- \ **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.
- \ **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``.
- \ **Note:** This method is implemented only on macOS.
- \ **Supported system menu IDs:**\
- .. code:: text
- "_main" - Main menu (macOS).
- "_dock" - Dock popup menu (macOS).
- "_apple" - Apple menu (macOS, custom items added before "Services").
- "_window" - Window menu (macOS, custom items added after "Bring All to Front").
- "_help" - Help menu (macOS).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_add_separator:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Adds a separator between items to the global menu with ID ``menu_root``. Separators also occupy an index.
- Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
- \ **Note:** This method is implemented only on macOS.
- \ **Supported system menu IDs:**\
- .. code:: text
- "_main" - Main menu (macOS).
- "_dock" - Dock popup menu (macOS).
- "_apple" - Apple menu (macOS, custom items added before "Services").
- "_window" - Window menu (macOS, custom items added after "Bring All to Front").
- "_help" - Help menu (macOS).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_add_submenu_item:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- 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.
- Returns index of the inserted item, it's not guaranteed to be the same as ``index`` value.
- \ **Note:** This method is implemented only on macOS.
- \ **Supported system menu IDs:**\
- .. code:: text
- "_main" - Main menu (macOS).
- "_dock" - Dock popup menu (macOS).
- "_apple" - Apple menu (macOS, custom items added before "Services").
- "_window" - Window menu (macOS, custom items added after "Bring All to Front").
- "_help" - Help menu (macOS).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_clear:
- .. rst-class:: classref-method
- |void| **global_menu_clear**\ (\ menu_root\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_global_menu_clear>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Removes all items from the global menu with ID ``menu_root``.
- \ **Note:** This method is implemented only on macOS.
- \ **Supported system menu IDs:**\
- .. code:: text
- "_main" - Main menu (macOS).
- "_dock" - Dock popup menu (macOS).
- "_apple" - Apple menu (macOS, custom items added before "Services").
- "_window" - Window menu (macOS, custom items added after "Bring All to Front").
- "_help" - Help menu (macOS).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_item_accelerator:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- 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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_item_callback:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Returns the callback of the item at index ``idx``.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_item_count:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Returns number of items in the global menu with ID ``menu_root``.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_item_icon:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Returns the icon of the item at index ``idx``.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_item_indentation_level:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Returns the horizontal offset of the item at the given ``idx``.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_item_index_from_tag:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- 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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_item_index_from_text:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- 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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_item_key_callback:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Returns the callback of the item accelerator at index ``idx``.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_item_max_states:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- 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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_item_state:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Returns the state of a multistate item. See :ref:`global_menu_add_multistate_item()<class_DisplayServer_method_global_menu_add_multistate_item>` for details.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_item_submenu:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- 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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_item_tag:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- 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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_item_text:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Returns the text of the item at index ``idx``.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_item_tooltip:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Returns the tooltip associated with the specified index ``idx``.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_get_system_menu_roots:
- .. rst-class:: classref-method
- :ref:`Dictionary<class_Dictionary>` **global_menu_get_system_menu_roots**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_global_menu_get_system_menu_roots>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Returns Dictionary of supported system menu IDs and names.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_is_item_checkable:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Returns ``true`` if the item at index ``idx`` is checkable in some way, i.e. if it has a checkbox or radio button.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_is_item_checked:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Returns ``true`` if the item at index ``idx`` is checked.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_is_item_disabled:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Returns ``true`` if the item at index ``idx`` is disabled. When it is disabled it can't be selected, or its action invoked.
- See :ref:`global_menu_set_item_disabled()<class_DisplayServer_method_global_menu_set_item_disabled>` for more info on how to disable an item.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_is_item_hidden:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Returns ``true`` if the item at index ``idx`` is hidden.
- See :ref:`global_menu_set_item_hidden()<class_DisplayServer_method_global_menu_set_item_hidden>` for more info on how to hide an item.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_is_item_radio_checkable:
- .. rst-class:: classref-method
- :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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Returns ``true`` if the item at index ``idx`` has radio button-style checkability.
- \ **Note:** This is purely cosmetic; you must add the logic for checking/unchecking items in radio groups.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_remove_item:
- .. rst-class:: classref-method
- |void| **global_menu_remove_item**\ (\ menu_root\: :ref:`String<class_String>`, idx\: :ref:`int<class_int>`\ ) :ref:`๐<class_DisplayServer_method_global_menu_remove_item>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Removes the item at index ``idx`` from the global menu ``menu_root``.
- \ **Note:** The indices of items after the removed item will be shifted by one.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_accelerator:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- 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`).
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_callback:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Sets the callback of the item at index ``idx``. Callback is emitted when an item is pressed.
- \ **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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_checkable:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Sets whether the item at index ``idx`` has a checkbox. If ``false``, sets the type of the item to plain text.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_checked:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Sets the checkstate status of the item at index ``idx``.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_disabled:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Enables/disables the item at index ``idx``. When it is disabled, it can't be selected and its action can't be invoked.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_hidden:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- 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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_hover_callbacks:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Sets the callback of the item at index ``idx``. The callback is emitted when an item is hovered.
- \ **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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_icon:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Replaces the :ref:`Texture2D<class_Texture2D>` icon of the specified ``idx``.
- \ **Note:** This method is implemented only on macOS.
- \ **Note:** This method is not supported by macOS "_dock" menu items.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_indentation_level:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Sets the horizontal offset of the item at the given ``idx``.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_key_callback:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Sets the callback of the item at index ``idx``. Callback is emitted when its accelerator is activated.
- \ **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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_max_states:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- 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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_radio_checkable:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- 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.
- \ **Note:** This is purely cosmetic; you must add the logic for checking/unchecking items in radio groups.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_state:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Sets the state of a multistate item. See :ref:`global_menu_add_multistate_item()<class_DisplayServer_method_global_menu_add_multistate_item>` for details.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_submenu:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- 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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_tag:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- 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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_text:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Sets the text of the item at index ``idx``.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_item_tooltip:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Sets the :ref:`String<class_String>` tooltip of the item at the specified index ``idx``.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_global_menu_set_popup_callbacks:
- .. rst-class:: classref-method
- |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>`
- **Deprecated:** Use :ref:`NativeMenu<class_NativeMenu>` or :ref:`PopupMenu<class_PopupMenu>` instead.
- Registers callables to emit when the menu is respectively about to show or closed. Callback methods should have zero arguments.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_has_additional_outputs:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **has_additional_outputs**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_has_additional_outputs>`
- Returns ``true`` if any additional outputs have been registered via :ref:`register_additional_output()<class_DisplayServer_method_register_additional_output>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_has_feature:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **has_feature**\ (\ feature\: :ref:`Feature<enum_DisplayServer_Feature>`\ ) |const| :ref:`๐<class_DisplayServer_method_has_feature>`
- Returns ``true`` if the specified ``feature`` is supported by the current **DisplayServer**, ``false`` otherwise.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_has_hardware_keyboard:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **has_hardware_keyboard**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_has_hardware_keyboard>`
- Returns ``true`` if a hardware keyboard is connected.
- \ **Note:** This method is implemented on Android and iOS. On other platforms, this method always returns ``true``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_help_set_search_callbacks:
- .. rst-class:: classref-method
- |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>`
- Sets native help system search callbacks.
- \ ``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.
- \ ``action_callback`` has the following arguments: ``String key``. Called when the user selects a search result in the ``Help`` menu.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_ime_get_selection:
- .. rst-class:: classref-method
- :ref:`Vector2i<class_Vector2i>` **ime_get_selection**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_ime_get_selection>`
- 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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_ime_get_text:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **ime_get_text**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_ime_get_text>`
- Returns the composition string contained within the `Input Method Editor <https://en.wikipedia.org/wiki/Input_method>`__ window.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_is_dark_mode:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_dark_mode**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_is_dark_mode>`
- Returns ``true`` if OS is using dark mode.
- \ **Note:** This method is implemented on Android, iOS, macOS, Windows, and Linux (X11/Wayland).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_is_dark_mode_supported:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_dark_mode_supported**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_is_dark_mode_supported>`
- Returns ``true`` if OS supports dark mode.
- \ **Note:** This method is implemented on Android, iOS, macOS, Windows, and Linux (X11/Wayland).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_is_touchscreen_available:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_touchscreen_available**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_is_touchscreen_available>`
- 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``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_is_window_transparency_available:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_window_transparency_available**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_is_window_transparency_available>`
- 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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_keyboard_get_current_layout:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **keyboard_get_current_layout**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_keyboard_get_current_layout>`
- Returns active keyboard layout index.
- \ **Note:** This method is implemented on Linux (X11/Wayland), macOS, and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_keyboard_get_keycode_from_physical:
- .. rst-class:: classref-method
- :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>`
- Converts a physical (US QWERTY) ``keycode`` to one in the active keyboard layout.
- \ **Note:** This method is implemented on Linux (X11/Wayland), macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_keyboard_get_label_from_physical:
- .. rst-class:: classref-method
- :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>`
- Converts a physical (US QWERTY) ``keycode`` to localized label printed on the key in the active keyboard layout.
- \ **Note:** This method is implemented on Linux (X11/Wayland), macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_keyboard_get_layout_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **keyboard_get_layout_count**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_keyboard_get_layout_count>`
- Returns the number of keyboard layouts.
- \ **Note:** This method is implemented on Linux (X11/Wayland), macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_keyboard_get_layout_language:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **keyboard_get_layout_language**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_DisplayServer_method_keyboard_get_layout_language>`
- Returns the ISO-639/BCP-47 language code of the keyboard layout at position ``index``.
- \ **Note:** This method is implemented on Linux (X11/Wayland), macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_keyboard_get_layout_name:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **keyboard_get_layout_name**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_DisplayServer_method_keyboard_get_layout_name>`
- Returns the localized name of the keyboard layout at position ``index``.
- \ **Note:** This method is implemented on Linux (X11/Wayland), macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_keyboard_set_current_layout:
- .. rst-class:: classref-method
- |void| **keyboard_set_current_layout**\ (\ index\: :ref:`int<class_int>`\ ) :ref:`๐<class_DisplayServer_method_keyboard_set_current_layout>`
- Sets the active keyboard layout.
- \ **Note:** This method is implemented on Linux (X11/Wayland), macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_mouse_get_button_state:
- .. rst-class:: classref-method
- |bitfield|\[:ref:`MouseButtonMask<enum_@GlobalScope_MouseButtonMask>`\] **mouse_get_button_state**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_mouse_get_button_state>`
- 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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_mouse_get_mode:
- .. rst-class:: classref-method
- :ref:`MouseMode<enum_DisplayServer_MouseMode>` **mouse_get_mode**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_mouse_get_mode>`
- Returns the current mouse mode. See also :ref:`mouse_set_mode()<class_DisplayServer_method_mouse_set_mode>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_mouse_get_position:
- .. rst-class:: classref-method
- :ref:`Vector2i<class_Vector2i>` **mouse_get_position**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_mouse_get_position>`
- Returns the mouse cursor's current position in screen coordinates.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_mouse_set_mode:
- .. rst-class:: classref-method
- |void| **mouse_set_mode**\ (\ mouse_mode\: :ref:`MouseMode<enum_DisplayServer_MouseMode>`\ ) :ref:`๐<class_DisplayServer_method_mouse_set_mode>`
- Sets the current mouse mode. See also :ref:`mouse_get_mode()<class_DisplayServer_method_mouse_get_mode>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_process_events:
- .. rst-class:: classref-method
- |void| **process_events**\ (\ ) :ref:`๐<class_DisplayServer_method_process_events>`
- 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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_register_additional_output:
- .. rst-class:: classref-method
- |void| **register_additional_output**\ (\ object\: :ref:`Object<class_Object>`\ ) :ref:`๐<class_DisplayServer_method_register_additional_output>`
- 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>`.
- This can be used to prevent Godot from skipping rendering when no normal windows are visible.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_screen_get_dpi:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **screen_get_dpi**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐<class_DisplayServer_method_screen_get_dpi>`
- Returns the dots per inch density of the specified screen. Returns platform specific default value if ``screen`` is invalid.
- \ **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>`.
- \ **Note:** On macOS, returned value is inaccurate if fractional display scaling mode is used.
- \ **Note:** On Android devices, the actual screen densities are grouped into six generalized densities:
- .. code:: text
- ldpi - 120 dpi
- mdpi - 160 dpi
- hdpi - 240 dpi
- xhdpi - 320 dpi
- xxhdpi - 480 dpi
- xxxhdpi - 640 dpi
- \ **Note:** This method is implemented on Android, iOS, Linux (X11/Wayland), macOS, Web, and Windows. On other platforms, this method always returns ``72``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_screen_get_image:
- .. rst-class:: classref-method
- :ref:`Image<class_Image>` **screen_get_image**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐<class_DisplayServer_method_screen_get_image>`
- Returns a screenshot of the ``screen``. Returns ``null`` if ``screen`` is invalid or the **DisplayServer** fails to capture screenshot.
- \ **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>`.
- \ **Note:** This method is implemented on Linux (X11, excluding XWayland), macOS, and Windows. On other platforms, this method always returns ``null``.
- \ **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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_screen_get_image_rect:
- .. rst-class:: classref-method
- :ref:`Image<class_Image>` **screen_get_image_rect**\ (\ rect\: :ref:`Rect2i<class_Rect2i>`\ ) |const| :ref:`๐<class_DisplayServer_method_screen_get_image_rect>`
- 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.
- \ **Note:** This method is implemented on macOS and Windows. On other platforms, this method always returns ``null``.
- \ **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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_screen_get_max_scale:
- .. rst-class:: classref-method
- :ref:`float<class_float>` **screen_get_max_scale**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_screen_get_max_scale>`
- Returns the greatest scale factor of all screens.
- \ **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.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_screen_get_orientation:
- .. rst-class:: classref-method
- :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>` **screen_get_orientation**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐<class_DisplayServer_method_screen_get_orientation>`
- 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.
- \ **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>`.
- \ **Note:** This method is implemented on Android and iOS. On other platforms, this method always returns :ref:`SCREEN_LANDSCAPE<class_DisplayServer_constant_SCREEN_LANDSCAPE>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_screen_get_pixel:
- .. rst-class:: classref-method
- :ref:`Color<class_Color>` **screen_get_pixel**\ (\ position\: :ref:`Vector2i<class_Vector2i>`\ ) |const| :ref:`๐<class_DisplayServer_method_screen_get_pixel>`
- Returns color of the display pixel at the ``position``.
- \ **Note:** This method is implemented on Linux (X11, excluding XWayland), macOS, and Windows. On other platforms, this method always returns :ref:`Color<class_Color>`.
- \ **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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_screen_get_position:
- .. rst-class:: classref-method
- :ref:`Vector2i<class_Vector2i>` **screen_get_position**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐<class_DisplayServer_method_screen_get_position>`
- 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:
- .. code:: text
- * (0, 0) +-------+
- | |
- +-------------+ | |
- | | | |
- | | | |
- +-------------+ +-------+
- See also :ref:`screen_get_size()<class_DisplayServer_method_screen_get_size>`.
- \ **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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_screen_get_refresh_rate:
- .. rst-class:: classref-method
- :ref:`float<class_float>` **screen_get_refresh_rate**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐<class_DisplayServer_method_screen_get_refresh_rate>`
- 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.
- To fallback to a default refresh rate if the method fails, try:
- ::
- var refresh_rate = DisplayServer.screen_get_refresh_rate()
- if refresh_rate < 0:
- refresh_rate = 60.0
- \ **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>`.
- \ **Note:** This method is implemented on Android, iOS, macOS, Linux (X11 and Wayland), and Windows. On other platforms, this method always returns ``-1.0``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_screen_get_scale:
- .. rst-class:: classref-method
- :ref:`float<class_float>` **screen_get_scale**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐<class_DisplayServer_method_screen_get_scale>`
- Returns the scale factor of the specified screen by index. Returns ``1.0`` if ``screen`` is invalid.
- \ **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>`.
- \ **Note:** On macOS, the returned value is ``2.0`` for hiDPI (Retina) screens, and ``1.0`` for all other cases.
- \ **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``).
- \ **Note:** This method is implemented on Android, iOS, Web, macOS, and Linux (Wayland). On other platforms, this method always returns ``1.0``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_screen_get_size:
- .. rst-class:: classref-method
- :ref:`Vector2i<class_Vector2i>` **screen_get_size**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐<class_DisplayServer_method_screen_get_size>`
- 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.
- \ **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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_screen_get_usable_rect:
- .. rst-class:: classref-method
- :ref:`Rect2i<class_Rect2i>` **screen_get_usable_rect**\ (\ screen\: :ref:`int<class_int>` = -1\ ) |const| :ref:`๐<class_DisplayServer_method_screen_get_usable_rect>`
- 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>`.
- \ **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>`.
- \ **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))``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_screen_is_kept_on:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **screen_is_kept_on**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_screen_is_kept_on>`
- 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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_screen_set_keep_on:
- .. rst-class:: classref-method
- |void| **screen_set_keep_on**\ (\ enable\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_DisplayServer_method_screen_set_keep_on>`
- 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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_screen_set_orientation:
- .. rst-class:: classref-method
- |void| **screen_set_orientation**\ (\ orientation\: :ref:`ScreenOrientation<enum_DisplayServer_ScreenOrientation>`, screen\: :ref:`int<class_int>` = -1\ ) :ref:`๐<class_DisplayServer_method_screen_set_orientation>`
- Sets the ``screen``'s ``orientation``. See also :ref:`screen_get_orientation()<class_DisplayServer_method_screen_get_orientation>`.
- \ **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>`.
- \ **Note:** This method is implemented on Android and iOS.
- \ **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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_set_hardware_keyboard_connection_change_callback:
- .. rst-class:: classref-method
- |void| **set_hardware_keyboard_connection_change_callback**\ (\ callable\: :ref:`Callable<class_Callable>`\ ) :ref:`๐<class_DisplayServer_method_set_hardware_keyboard_connection_change_callback>`
- 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).
- \ **Note:** This method is only implemented on Android.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_set_icon:
- .. rst-class:: classref-method
- |void| **set_icon**\ (\ image\: :ref:`Image<class_Image>`\ ) :ref:`๐<class_DisplayServer_method_set_icon>`
- 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.
- \ **Note:** Requires support for :ref:`FEATURE_ICON<class_DisplayServer_constant_FEATURE_ICON>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_set_native_icon:
- .. rst-class:: classref-method
- |void| **set_native_icon**\ (\ filename\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_set_native_icon>`
- 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.
- \ **Note:** Requires support for :ref:`FEATURE_NATIVE_ICON<class_DisplayServer_constant_FEATURE_NATIVE_ICON>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_set_system_theme_change_callback:
- .. rst-class:: classref-method
- |void| **set_system_theme_change_callback**\ (\ callable\: :ref:`Callable<class_Callable>`\ ) :ref:`๐<class_DisplayServer_method_set_system_theme_change_callback>`
- Sets the ``callable`` that should be called when system theme settings are changed. Callback method should have zero arguments.
- \ **Note:** This method is implemented on Android, iOS, macOS, Windows, and Linux (X11/Wayland).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_show_emoji_and_symbol_picker:
- .. rst-class:: classref-method
- |void| **show_emoji_and_symbol_picker**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_show_emoji_and_symbol_picker>`
- Opens system emoji and symbol picker.
- \ **Note:** This method is implemented on macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_status_indicator_get_rect:
- .. rst-class:: classref-method
- :ref:`Rect2<class_Rect2>` **status_indicator_get_rect**\ (\ id\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_DisplayServer_method_status_indicator_get_rect>`
- 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>`.
- \ **Note:** This method is implemented on macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_status_indicator_set_callback:
- .. rst-class:: classref-method
- |void| **status_indicator_set_callback**\ (\ id\: :ref:`int<class_int>`, callback\: :ref:`Callable<class_Callable>`\ ) :ref:`๐<class_DisplayServer_method_status_indicator_set_callback>`
- 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.
- \ **Note:** This method is implemented on macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_status_indicator_set_icon:
- .. rst-class:: classref-method
- |void| **status_indicator_set_icon**\ (\ id\: :ref:`int<class_int>`, icon\: :ref:`Texture2D<class_Texture2D>`\ ) :ref:`๐<class_DisplayServer_method_status_indicator_set_icon>`
- Sets the application status indicator icon.
- \ **Note:** This method is implemented on macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_status_indicator_set_menu:
- .. rst-class:: classref-method
- |void| **status_indicator_set_menu**\ (\ id\: :ref:`int<class_int>`, menu_rid\: :ref:`RID<class_RID>`\ ) :ref:`๐<class_DisplayServer_method_status_indicator_set_menu>`
- Sets the application status indicator native popup menu.
- \ **Note:** On macOS, the menu is activated by any mouse button. Its activation callback is *not* triggered.
- \ **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.
- \ **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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_status_indicator_set_tooltip:
- .. rst-class:: classref-method
- |void| **status_indicator_set_tooltip**\ (\ id\: :ref:`int<class_int>`, tooltip\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_status_indicator_set_tooltip>`
- Sets the application status indicator tooltip.
- \ **Note:** This method is implemented on macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_tablet_get_current_driver:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **tablet_get_current_driver**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_tablet_get_current_driver>`
- Returns current active tablet driver name.
- \ **Note:** This method is implemented only on Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_tablet_get_driver_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **tablet_get_driver_count**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_tablet_get_driver_count>`
- Returns the total number of available tablet drivers.
- \ **Note:** This method is implemented only on Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_tablet_get_driver_name:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **tablet_get_driver_name**\ (\ idx\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_DisplayServer_method_tablet_get_driver_name>`
- Returns the tablet driver name for the given index.
- \ **Note:** This method is implemented only on Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_tablet_set_current_driver:
- .. rst-class:: classref-method
- |void| **tablet_set_current_driver**\ (\ name\: :ref:`String<class_String>`\ ) :ref:`๐<class_DisplayServer_method_tablet_set_current_driver>`
- Set active tablet driver name.
- Supported drivers:
- - ``winink``: Windows Ink API, default.
- - ``wintab``: Wacom Wintab API (compatible device driver required).
- - ``dummy``: Dummy driver, tablet input is disabled.
- \ **Note:** This method is implemented only on Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_tts_get_voices:
- .. rst-class:: classref-method
- :ref:`Array<class_Array>`\[:ref:`Dictionary<class_Dictionary>`\] **tts_get_voices**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_tts_get_voices>`
- Returns an :ref:`Array<class_Array>` of voice information dictionaries.
- Each :ref:`Dictionary<class_Dictionary>` contains two :ref:`String<class_String>` entries:
- - ``name`` is voice name.
- - ``id`` is voice identifier.
- - ``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.
- 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.
- \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_tts_get_voices_for_language:
- .. rst-class:: classref-method
- :ref:`PackedStringArray<class_PackedStringArray>` **tts_get_voices_for_language**\ (\ language\: :ref:`String<class_String>`\ ) |const| :ref:`๐<class_DisplayServer_method_tts_get_voices_for_language>`
- Returns a :ref:`PackedStringArray<class_PackedStringArray>` of voice identifiers for the ``language``.
- \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_tts_is_paused:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **tts_is_paused**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_tts_is_paused>`
- Returns ``true`` if the synthesizer is in a paused state.
- \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_tts_is_speaking:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **tts_is_speaking**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_tts_is_speaking>`
- Returns ``true`` if the synthesizer is generating speech, or have utterance waiting in the queue.
- \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_tts_pause:
- .. rst-class:: classref-method
- |void| **tts_pause**\ (\ ) :ref:`๐<class_DisplayServer_method_tts_pause>`
- Puts the synthesizer into a paused state.
- \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_tts_resume:
- .. rst-class:: classref-method
- |void| **tts_resume**\ (\ ) :ref:`๐<class_DisplayServer_method_tts_resume>`
- Resumes the synthesizer if it was paused.
- \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_tts_set_utterance_callback:
- .. rst-class:: classref-method
- |void| **tts_set_utterance_callback**\ (\ event\: :ref:`TTSUtteranceEvent<enum_DisplayServer_TTSUtteranceEvent>`, callable\: :ref:`Callable<class_Callable>`\ ) :ref:`๐<class_DisplayServer_method_tts_set_utterance_callback>`
- Adds a callback, which is called when the utterance has started, finished, canceled or reached a text boundary.
- - :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.
- - :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.
- \ **Note:** The granularity of the boundary callbacks is engine dependent.
- \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_tts_speak:
- .. rst-class:: classref-method
- |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>`
- Adds an utterance to the queue. If ``interrupt`` is ``true``, the queue is cleared first.
- - ``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>`.
- - ``volume`` ranges from ``0`` (lowest) to ``100`` (highest).
- - ``pitch`` ranges from ``0.0`` (lowest) to ``2.0`` (highest), ``1.0`` is default pitch for the current voice.
- - ``rate`` ranges from ``0.1`` (lowest) to ``10.0`` (highest), ``1.0`` is a normal speaking rate. Other values act as a percentage relative.
- - ``utterance_id`` is passed as a parameter to the callback functions.
- \ **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>`.
- \ **Note:** The granularity of pitch, rate, and volume is engine and voice dependent. Values may be truncated.
- \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_tts_stop:
- .. rst-class:: classref-method
- |void| **tts_stop**\ (\ ) :ref:`๐<class_DisplayServer_method_tts_stop>`
- Stops synthesis in progress and removes all utterances from the queue.
- \ **Note:** This method is implemented on Android, iOS, Web, Linux (X11/Wayland), macOS, and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_unregister_additional_output:
- .. rst-class:: classref-method
- |void| **unregister_additional_output**\ (\ object\: :ref:`Object<class_Object>`\ ) :ref:`๐<class_DisplayServer_method_unregister_additional_output>`
- Unregisters an :ref:`Object<class_Object>` representing an additional output, that was registered via :ref:`register_additional_output()<class_DisplayServer_method_register_additional_output>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_virtual_keyboard_get_height:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **virtual_keyboard_get_height**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_virtual_keyboard_get_height>`
- Returns the on-screen keyboard's height in pixels. Returns 0 if there is no keyboard or if it is currently hidden.
- \ **Note:** On Android 7 and 8, the keyboard height may return 0 the first time the keyboard is opened in non-immersive mode. This behavior does not occur in immersive mode.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_virtual_keyboard_hide:
- .. rst-class:: classref-method
- |void| **virtual_keyboard_hide**\ (\ ) :ref:`๐<class_DisplayServer_method_virtual_keyboard_hide>`
- Hides the virtual keyboard if it is shown, does nothing otherwise.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_virtual_keyboard_show:
- .. rst-class:: classref-method
- |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>`
- Shows the virtual keyboard if the platform has one.
- \ ``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).
- \ ``position`` parameter is the screen space :ref:`Rect2<class_Rect2>` of the edited text.
- \ ``type`` parameter allows configuring which type of virtual keyboard to show.
- \ ``max_length`` limits the number of characters that can be entered if different from ``-1``.
- \ ``cursor_start`` can optionally define the current text cursor position if ``cursor_end`` is not set.
- \ ``cursor_start`` and ``cursor_end`` can optionally define the current text selection.
- \ **Note:** This method is implemented on Android, iOS and Web.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_warp_mouse:
- .. rst-class:: classref-method
- |void| **warp_mouse**\ (\ position\: :ref:`Vector2i<class_Vector2i>`\ ) :ref:`๐<class_DisplayServer_method_warp_mouse>`
- 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.
- \ **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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_can_draw:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **window_can_draw**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐<class_DisplayServer_method_window_can_draw>`
- 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``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_active_popup:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **window_get_active_popup**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_window_get_active_popup>`
- Returns ID of the active popup window, or :ref:`INVALID_WINDOW_ID<class_DisplayServer_constant_INVALID_WINDOW_ID>` if there is none.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_attached_instance_id:
- .. rst-class:: classref-method
- :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>`
- 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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_current_screen:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **window_get_current_screen**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐<class_DisplayServer_method_window_get_current_screen>`
- 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.
- \ **Note:** This method is implemented on Linux/X11, macOS, and Windows. On other platforms, this method always returns ``0``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_flag:
- .. rst-class:: classref-method
- :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>`
- Returns the current value of the given window's ``flag``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_max_size:
- .. rst-class:: classref-method
- :ref:`Vector2i<class_Vector2i>` **window_get_max_size**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐<class_DisplayServer_method_window_get_max_size>`
- Returns the window's maximum size (in pixels). See also :ref:`window_set_max_size()<class_DisplayServer_method_window_set_max_size>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_min_size:
- .. rst-class:: classref-method
- :ref:`Vector2i<class_Vector2i>` **window_get_min_size**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐<class_DisplayServer_method_window_get_min_size>`
- Returns the window's minimum size (in pixels). See also :ref:`window_set_min_size()<class_DisplayServer_method_window_set_min_size>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_mode:
- .. rst-class:: classref-method
- :ref:`WindowMode<enum_DisplayServer_WindowMode>` **window_get_mode**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐<class_DisplayServer_method_window_get_mode>`
- Returns the mode of the given window.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_native_handle:
- .. rst-class:: classref-method
- :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>`
- Returns internal structure pointers for use in plugins.
- \ **Note:** This method is implemented on Android, Linux (X11/Wayland), macOS, and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_popup_safe_rect:
- .. rst-class:: classref-method
- :ref:`Rect2i<class_Rect2i>` **window_get_popup_safe_rect**\ (\ window\: :ref:`int<class_int>`\ ) |const| :ref:`๐<class_DisplayServer_method_window_get_popup_safe_rect>`
- Returns the bounding box of control, or menu item that was used to open the popup window, in the screen coordinate system.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_position:
- .. rst-class:: classref-method
- :ref:`Vector2i<class_Vector2i>` **window_get_position**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐<class_DisplayServer_method_window_get_position>`
- Returns the position of the client area of the given window on the screen.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_position_with_decorations:
- .. rst-class:: classref-method
- :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>`
- 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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_safe_title_margins:
- .. rst-class:: classref-method
- :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>`
- 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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_size:
- .. rst-class:: classref-method
- :ref:`Vector2i<class_Vector2i>` **window_get_size**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐<class_DisplayServer_method_window_get_size>`
- 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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_size_with_decorations:
- .. rst-class:: classref-method
- :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>`
- 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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_title_size:
- .. rst-class:: classref-method
- :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>`
- 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.
- \ **Note:** This method is implemented on macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_get_vsync_mode:
- .. rst-class:: classref-method
- :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>`
- Returns the V-Sync mode of the given window.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_is_focused:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **window_is_focused**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐<class_DisplayServer_method_window_is_focused>`
- Returns ``true`` if the window specified by ``window_id`` is focused.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_is_maximize_allowed:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **window_is_maximize_allowed**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) |const| :ref:`๐<class_DisplayServer_method_window_is_maximize_allowed>`
- Returns ``true`` if the given window can be maximized (the maximize button is enabled).
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_maximize_on_title_dbl_click:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **window_maximize_on_title_dbl_click**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_window_maximize_on_title_dbl_click>`
- Returns ``true``, if double-click on a window title should maximize it.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_minimize_on_title_dbl_click:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **window_minimize_on_title_dbl_click**\ (\ ) |const| :ref:`๐<class_DisplayServer_method_window_minimize_on_title_dbl_click>`
- Returns ``true``, if double-click on a window title should minimize it.
- \ **Note:** This method is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_move_to_foreground:
- .. rst-class:: classref-method
- |void| **window_move_to_foreground**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐<class_DisplayServer_method_window_move_to_foreground>`
- Moves the window specified by ``window_id`` to the foreground, so that it is visible over other windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_request_attention:
- .. rst-class:: classref-method
- |void| **window_request_attention**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐<class_DisplayServer_method_window_request_attention>`
- 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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_current_screen:
- .. rst-class:: classref-method
- |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>`
- 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>`.
- \ **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>`.
- \ **Note:** This method is implemented on Linux/X11, macOS, and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_drop_files_callback:
- .. rst-class:: classref-method
- |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>`
- 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.
- \ **Warning:** Advanced users only! Adding such a callback to a :ref:`Window<class_Window>` node will override its default implementation, which can introduce bugs.
- \ **Note:** This method is implemented on Windows, macOS, Linux (X11/Wayland), and Web.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_exclusive:
- .. rst-class:: classref-method
- |void| **window_set_exclusive**\ (\ window_id\: :ref:`int<class_int>`, exclusive\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_DisplayServer_method_window_set_exclusive>`
- 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.
- \ **Note:** On macOS, exclusive windows are confined to the same space (virtual desktop or screen) as the parent window.
- \ **Note:** This method is implemented on macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_flag:
- .. rst-class:: classref-method
- |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>`
- Enables or disables the given window's given ``flag``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_ime_active:
- .. rst-class:: classref-method
- |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>`
- 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>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_ime_position:
- .. rst-class:: classref-method
- |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>`
- 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``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_input_event_callback:
- .. rst-class:: classref-method
- |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>`
- Sets the ``callback`` that should be called when any :ref:`InputEvent<class_InputEvent>` is sent to the window specified by ``window_id``.
- \ **Warning:** Advanced users only! Adding such a callback to a :ref:`Window<class_Window>` node will override its default implementation, which can introduce bugs.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_input_text_callback:
- .. rst-class:: classref-method
- |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>`
- Sets the ``callback`` that should be called when text is entered using the virtual keyboard to the window specified by ``window_id``.
- \ **Warning:** Advanced users only! Adding such a callback to a :ref:`Window<class_Window>` node will override its default implementation, which can introduce bugs.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_max_size:
- .. rst-class:: classref-method
- |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>`
- 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>`.
- \ **Note:** It's recommended to change this value using :ref:`Window.max_size<class_Window_property_max_size>` instead.
- \ **Note:** Using third-party tools, it is possible for users to disable window geometry restrictions and therefore bypass this limit.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_min_size:
- .. rst-class:: classref-method
- |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>`
- 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>`.
- \ **Note:** It's recommended to change this value using :ref:`Window.min_size<class_Window_property_min_size>` instead.
- \ **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.
- \ **Note:** Using third-party tools, it is possible for users to disable window geometry restrictions and therefore bypass this limit.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_mode:
- .. rst-class:: classref-method
- |void| **window_set_mode**\ (\ mode\: :ref:`WindowMode<enum_DisplayServer_WindowMode>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐<class_DisplayServer_method_window_set_mode>`
- Sets window mode for the given window to ``mode``.
- \ **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.
- \ **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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_mouse_passthrough:
- .. rst-class:: classref-method
- |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>`
- Sets a polygonal region of the window which accepts mouse events. Mouse events outside the region will be passed through.
- Passing an empty array will disable passthrough support (all mouse events will be intercepted by the window, which is the default behavior).
- .. tabs::
- .. code-tab:: gdscript
- # Set region, using Path2D node.
- DisplayServer.window_set_mouse_passthrough($Path2D.curve.get_baked_points())
- # Set region, using Polygon2D node.
- DisplayServer.window_set_mouse_passthrough($Polygon2D.polygon)
- # Reset region to default.
- DisplayServer.window_set_mouse_passthrough([])
- .. code-tab:: csharp
- // Set region, using Path2D node.
- DisplayServer.WindowSetMousePassthrough(GetNode<Path2D>("Path2D").Curve.GetBakedPoints());
- // Set region, using Polygon2D node.
- DisplayServer.WindowSetMousePassthrough(GetNode<Polygon2D>("Polygon2D").Polygon);
- // Reset region to default.
- DisplayServer.WindowSetMousePassthrough([]);
- \ **Note:** On Windows, the portion of a window that lies outside the region is not drawn, while on Linux (X11) and macOS it is.
- \ **Note:** This method is implemented on Linux (X11), macOS and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_popup_safe_rect:
- .. rst-class:: classref-method
- |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>`
- 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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_position:
- .. rst-class:: classref-method
- |void| **window_set_position**\ (\ position\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐<class_DisplayServer_method_window_set_position>`
- 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:
- .. code:: text
- * (0, 0) +-------+
- | |
- +-------------+ | |
- | | | |
- | | | |
- +-------------+ +-------+
- See also :ref:`window_get_position()<class_DisplayServer_method_window_get_position>` and :ref:`window_set_size()<class_DisplayServer_method_window_set_size>`.
- \ **Note:** It's recommended to change this value using :ref:`Window.position<class_Window_property_position>` instead.
- \ **Note:** On Linux (Wayland): this method is a no-op.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_rect_changed_callback:
- .. rst-class:: classref-method
- |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>`
- Sets the ``callback`` that will be called when the window specified by ``window_id`` is moved or resized.
- \ **Warning:** Advanced users only! Adding such a callback to a :ref:`Window<class_Window>` node will override its default implementation, which can introduce bugs.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_size:
- .. rst-class:: classref-method
- |void| **window_set_size**\ (\ size\: :ref:`Vector2i<class_Vector2i>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐<class_DisplayServer_method_window_set_size>`
- 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>`.
- \ **Note:** It's recommended to change this value using :ref:`Window.size<class_Window_property_size>` instead.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_title:
- .. rst-class:: classref-method
- |void| **window_set_title**\ (\ title\: :ref:`String<class_String>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐<class_DisplayServer_method_window_set_title>`
- Sets the title of the given window to ``title``.
- \ **Note:** It's recommended to change this value using :ref:`Window.title<class_Window_property_title>` instead.
- \ **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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_transient:
- .. rst-class:: classref-method
- |void| **window_set_transient**\ (\ window_id\: :ref:`int<class_int>`, parent_window_id\: :ref:`int<class_int>`\ ) :ref:`๐<class_DisplayServer_method_window_set_transient>`
- 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.
- \ **Note:** It's recommended to change this value using :ref:`Window.transient<class_Window_property_transient>` instead.
- \ **Note:** The behavior might be different depending on the platform.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_vsync_mode:
- .. rst-class:: classref-method
- |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>`
- 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>`.
- 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.
- \ **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.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_window_buttons_offset:
- .. rst-class:: classref-method
- |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>`
- 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.
- \ **Note:** This flag is implemented only on macOS.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_set_window_event_callback:
- .. rst-class:: classref-method
- |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>`
- Sets the ``callback`` that will be called when an event occurs in the window specified by ``window_id``.
- \ **Warning:** Advanced users only! Adding such a callback to a :ref:`Window<class_Window>` node will override its default implementation, which can introduce bugs.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_start_drag:
- .. rst-class:: classref-method
- |void| **window_start_drag**\ (\ window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐<class_DisplayServer_method_window_start_drag>`
- 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.
- \ **Note:** This method is implemented on Linux (X11/Wayland), macOS, and Windows.
- .. rst-class:: classref-item-separator
- ----
- .. _class_DisplayServer_method_window_start_resize:
- .. rst-class:: classref-method
- |void| **window_start_resize**\ (\ edge\: :ref:`WindowResizeEdge<enum_DisplayServer_WindowResizeEdge>`, window_id\: :ref:`int<class_int>` = 0\ ) :ref:`๐<class_DisplayServer_method_window_start_resize>`
- 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.
- \ **Note:** This method is implemented on Linux (X11/Wayland), macOS, and Windows.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
- .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
- .. |void| replace:: :abbr:`void (No return value.)`
|