Object.Events.cs 281 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684
  1. using System;
  2. using System.Runtime.InteropServices;
  3. using Urho.Physics;
  4. using Urho.Navigation;
  5. using Urho.Network;
  6. using Urho.Urho2D;
  7. using Urho.Gui;
  8. using Urho.Actions;
  9. using Urho.Audio;
  10. using Urho.Resources;
  11. using Urho.IO;
  12. #pragma warning disable CS0618, CS0649
  13. namespace Urho
  14. {
  15. [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate void ObjectCallbackSignature(IntPtr data, int stringhash, IntPtr variantMap);
  16. }
  17. namespace Urho
  18. {
  19. public partial struct SoundFinishedEventArgs
  20. {
  21. public EventDataContainer EventData;
  22. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  23. public SoundSource SoundSource => EventData.get_SoundSource(unchecked((int)368456554) /* SoundSource (P_SOUNDSOURCE) */);
  24. public Sound Sound => EventData.get_Sound(unchecked((int)3920519599) /* Sound (P_SOUND) */);
  25. } /* struct SoundFinishedEventArgs */
  26. } /* namespace */
  27. namespace Urho
  28. {
  29. public partial struct FrameStartedEventArgs
  30. {
  31. public EventDataContainer EventData;
  32. public uint FrameNumber => EventData.get_uint(unchecked((int)1441088918) /* FrameNumber (P_FRAMENUMBER) */);
  33. public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
  34. } /* struct FrameStartedEventArgs */
  35. public partial class Time
  36. {
  37. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.FrameStarted += ...' instead.")]
  38. public Subscription SubscribeToFrameStarted(Action<FrameStartedEventArgs> handler)
  39. {
  40. Action<IntPtr> proxy = (x) => { var d = new FrameStartedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  41. var s = new Subscription(proxy);
  42. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)529677540) /* BeginFrame (E_BEGINFRAME) */);
  43. return s;
  44. }
  45. static UrhoEventAdapter<FrameStartedEventArgs> eventAdapterForFrameStarted;
  46. public event Action<FrameStartedEventArgs> FrameStarted
  47. {
  48. add
  49. {
  50. if (eventAdapterForFrameStarted == null)
  51. eventAdapterForFrameStarted = new UrhoEventAdapter<FrameStartedEventArgs>(typeof(Time));
  52. eventAdapterForFrameStarted.AddManagedSubscriber(handle, value, SubscribeToFrameStarted);
  53. }
  54. remove { eventAdapterForFrameStarted.RemoveManagedSubscriber(handle, value); }
  55. }
  56. } /* class Time */
  57. } /* namespace */
  58. namespace Urho
  59. {
  60. public partial struct UpdateEventArgs
  61. {
  62. public EventDataContainer EventData;
  63. public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
  64. } /* struct UpdateEventArgs */
  65. public partial class Engine
  66. {
  67. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Update += ...' instead.")]
  68. internal Subscription SubscribeToUpdate(Action<UpdateEventArgs> handler)
  69. {
  70. Action<IntPtr> proxy = (x) => { var d = new UpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  71. var s = new Subscription(proxy);
  72. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)915638697) /* Update (E_UPDATE) */);
  73. return s;
  74. }
  75. static UrhoEventAdapter<UpdateEventArgs> eventAdapterForUpdate;
  76. public event Action<UpdateEventArgs> Update
  77. {
  78. add
  79. {
  80. if (eventAdapterForUpdate == null)
  81. eventAdapterForUpdate = new UrhoEventAdapter<UpdateEventArgs>(typeof(Engine));
  82. eventAdapterForUpdate.AddManagedSubscriber(handle, value, SubscribeToUpdate);
  83. }
  84. remove { eventAdapterForUpdate.RemoveManagedSubscriber(handle, value); }
  85. }
  86. } /* class Engine */
  87. } /* namespace */
  88. namespace Urho
  89. {
  90. public partial struct PostUpdateEventArgs
  91. {
  92. public EventDataContainer EventData;
  93. public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
  94. } /* struct PostUpdateEventArgs */
  95. public partial class Engine
  96. {
  97. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PostUpdate += ...' instead.")]
  98. public Subscription SubscribeToPostUpdate(Action<PostUpdateEventArgs> handler)
  99. {
  100. Action<IntPtr> proxy = (x) => { var d = new PostUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  101. var s = new Subscription(proxy);
  102. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2702758633) /* PostUpdate (E_POSTUPDATE) */);
  103. return s;
  104. }
  105. static UrhoEventAdapter<PostUpdateEventArgs> eventAdapterForPostUpdate;
  106. public event Action<PostUpdateEventArgs> PostUpdate
  107. {
  108. add
  109. {
  110. if (eventAdapterForPostUpdate == null)
  111. eventAdapterForPostUpdate = new UrhoEventAdapter<PostUpdateEventArgs>(typeof(Engine));
  112. eventAdapterForPostUpdate.AddManagedSubscriber(handle, value, SubscribeToPostUpdate);
  113. }
  114. remove { eventAdapterForPostUpdate.RemoveManagedSubscriber(handle, value); }
  115. }
  116. } /* class Engine */
  117. } /* namespace */
  118. namespace Urho
  119. {
  120. public partial struct RenderUpdateEventArgs
  121. {
  122. public EventDataContainer EventData;
  123. public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
  124. } /* struct RenderUpdateEventArgs */
  125. public partial class Engine
  126. {
  127. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.RenderUpdate += ...' instead.")]
  128. public Subscription SubscribeToRenderUpdate(Action<RenderUpdateEventArgs> handler)
  129. {
  130. Action<IntPtr> proxy = (x) => { var d = new RenderUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  131. var s = new Subscription(proxy);
  132. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3851615199) /* RenderUpdate (E_RENDERUPDATE) */);
  133. return s;
  134. }
  135. static UrhoEventAdapter<RenderUpdateEventArgs> eventAdapterForRenderUpdate;
  136. public event Action<RenderUpdateEventArgs> RenderUpdate
  137. {
  138. add
  139. {
  140. if (eventAdapterForRenderUpdate == null)
  141. eventAdapterForRenderUpdate = new UrhoEventAdapter<RenderUpdateEventArgs>(typeof(Engine));
  142. eventAdapterForRenderUpdate.AddManagedSubscriber(handle, value, SubscribeToRenderUpdate);
  143. }
  144. remove { eventAdapterForRenderUpdate.RemoveManagedSubscriber(handle, value); }
  145. }
  146. } /* class Engine */
  147. } /* namespace */
  148. namespace Urho
  149. {
  150. public partial struct PostRenderUpdateEventArgs
  151. {
  152. public EventDataContainer EventData;
  153. public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
  154. } /* struct PostRenderUpdateEventArgs */
  155. public partial class Engine
  156. {
  157. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PostRenderUpdate += ...' instead.")]
  158. public Subscription SubscribeToPostRenderUpdate(Action<PostRenderUpdateEventArgs> handler)
  159. {
  160. Action<IntPtr> proxy = (x) => { var d = new PostRenderUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  161. var s = new Subscription(proxy);
  162. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)22439199) /* PostRenderUpdate (E_POSTRENDERUPDATE) */);
  163. return s;
  164. }
  165. static UrhoEventAdapter<PostRenderUpdateEventArgs> eventAdapterForPostRenderUpdate;
  166. public event Action<PostRenderUpdateEventArgs> PostRenderUpdate
  167. {
  168. add
  169. {
  170. if (eventAdapterForPostRenderUpdate == null)
  171. eventAdapterForPostRenderUpdate = new UrhoEventAdapter<PostRenderUpdateEventArgs>(typeof(Engine));
  172. eventAdapterForPostRenderUpdate.AddManagedSubscriber(handle, value, SubscribeToPostRenderUpdate);
  173. }
  174. remove { eventAdapterForPostRenderUpdate.RemoveManagedSubscriber(handle, value); }
  175. }
  176. } /* class Engine */
  177. } /* namespace */
  178. namespace Urho
  179. {
  180. public partial struct FrameEndedEventArgs
  181. {
  182. public EventDataContainer EventData;
  183. } /* struct FrameEndedEventArgs */
  184. public partial class Time
  185. {
  186. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.FrameEnded += ...' instead.")]
  187. public Subscription SubscribeToFrameEnded(Action<FrameEndedEventArgs> handler)
  188. {
  189. Action<IntPtr> proxy = (x) => { var d = new FrameEndedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  190. var s = new Subscription(proxy);
  191. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4264256242) /* EndFrame (E_ENDFRAME) */);
  192. return s;
  193. }
  194. static UrhoEventAdapter<FrameEndedEventArgs> eventAdapterForFrameEnded;
  195. public event Action<FrameEndedEventArgs> FrameEnded
  196. {
  197. add
  198. {
  199. if (eventAdapterForFrameEnded == null)
  200. eventAdapterForFrameEnded = new UrhoEventAdapter<FrameEndedEventArgs>(typeof(Time));
  201. eventAdapterForFrameEnded.AddManagedSubscriber(handle, value, SubscribeToFrameEnded);
  202. }
  203. remove { eventAdapterForFrameEnded.RemoveManagedSubscriber(handle, value); }
  204. }
  205. } /* class Time */
  206. } /* namespace */
  207. namespace Urho
  208. {
  209. public partial struct WorkItemCompletedEventArgs
  210. {
  211. public EventDataContainer EventData;
  212. public WorkItem Item => EventData.get_WorkItem(unchecked((int)1322237459) /* Item (P_ITEM) */);
  213. } /* struct WorkItemCompletedEventArgs */
  214. public partial class WorkQueue
  215. {
  216. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.WorkItemCompleted += ...' instead.")]
  217. public Subscription SubscribeToWorkItemCompleted(Action<WorkItemCompletedEventArgs> handler)
  218. {
  219. Action<IntPtr> proxy = (x) => { var d = new WorkItemCompletedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  220. var s = new Subscription(proxy);
  221. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1507705319) /* WorkItemCompleted (E_WORKITEMCOMPLETED) */);
  222. return s;
  223. }
  224. static UrhoEventAdapter<WorkItemCompletedEventArgs> eventAdapterForWorkItemCompleted;
  225. public event Action<WorkItemCompletedEventArgs> WorkItemCompleted
  226. {
  227. add
  228. {
  229. if (eventAdapterForWorkItemCompleted == null)
  230. eventAdapterForWorkItemCompleted = new UrhoEventAdapter<WorkItemCompletedEventArgs>(typeof(WorkQueue));
  231. eventAdapterForWorkItemCompleted.AddManagedSubscriber(handle, value, SubscribeToWorkItemCompleted);
  232. }
  233. remove { eventAdapterForWorkItemCompleted.RemoveManagedSubscriber(handle, value); }
  234. }
  235. } /* class WorkQueue */
  236. } /* namespace */
  237. namespace Urho
  238. {
  239. public partial struct ConsoleCommandEventArgs
  240. {
  241. public EventDataContainer EventData;
  242. public String Command => EventData.get_String(unchecked((int)1528149579) /* Command (P_COMMAND) */);
  243. public String Id => EventData.get_String(unchecked((int)6887995) /* Id (P_ID) */);
  244. } /* struct ConsoleCommandEventArgs */
  245. public partial class UrhoConsole
  246. {
  247. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ConsoleCommand += ...' instead.")]
  248. public Subscription SubscribeToConsoleCommand(Action<ConsoleCommandEventArgs> handler)
  249. {
  250. Action<IntPtr> proxy = (x) => { var d = new ConsoleCommandEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  251. var s = new Subscription(proxy);
  252. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1402653748) /* ConsoleCommand (E_CONSOLECOMMAND) */);
  253. return s;
  254. }
  255. static UrhoEventAdapter<ConsoleCommandEventArgs> eventAdapterForConsoleCommand;
  256. public event Action<ConsoleCommandEventArgs> ConsoleCommand
  257. {
  258. add
  259. {
  260. if (eventAdapterForConsoleCommand == null)
  261. eventAdapterForConsoleCommand = new UrhoEventAdapter<ConsoleCommandEventArgs>(typeof(UrhoConsole));
  262. eventAdapterForConsoleCommand.AddManagedSubscriber(handle, value, SubscribeToConsoleCommand);
  263. }
  264. remove { eventAdapterForConsoleCommand.RemoveManagedSubscriber(handle, value); }
  265. }
  266. } /* class UrhoConsole */
  267. } /* namespace */
  268. namespace Urho
  269. {
  270. public partial struct BoneHierarchyCreatedEventArgs
  271. {
  272. public EventDataContainer EventData;
  273. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  274. } /* struct BoneHierarchyCreatedEventArgs */
  275. public partial class Node
  276. {
  277. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.BoneHierarchyCreated += ...' instead.")]
  278. public Subscription SubscribeToBoneHierarchyCreated(Action<BoneHierarchyCreatedEventArgs> handler)
  279. {
  280. Action<IntPtr> proxy = (x) => { var d = new BoneHierarchyCreatedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  281. var s = new Subscription(proxy);
  282. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1724904343) /* BoneHierarchyCreated (E_BONEHIERARCHYCREATED) */);
  283. return s;
  284. }
  285. static UrhoEventAdapter<BoneHierarchyCreatedEventArgs> eventAdapterForBoneHierarchyCreated;
  286. public event Action<BoneHierarchyCreatedEventArgs> BoneHierarchyCreated
  287. {
  288. add
  289. {
  290. if (eventAdapterForBoneHierarchyCreated == null)
  291. eventAdapterForBoneHierarchyCreated = new UrhoEventAdapter<BoneHierarchyCreatedEventArgs>(typeof(Node));
  292. eventAdapterForBoneHierarchyCreated.AddManagedSubscriber(handle, value, SubscribeToBoneHierarchyCreated);
  293. }
  294. remove { eventAdapterForBoneHierarchyCreated.RemoveManagedSubscriber(handle, value); }
  295. }
  296. } /* class Node */
  297. } /* namespace */
  298. namespace Urho
  299. {
  300. public partial struct AnimationTriggerEventArgs
  301. {
  302. public EventDataContainer EventData;
  303. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  304. public Animation Animation => EventData.get_Animation(unchecked((int)1554425540) /* Animation (P_ANIMATION) */);
  305. public String Name => EventData.get_String(unchecked((int)773762347) /* Name (P_NAME) */);
  306. public float Time => EventData.get_float(unchecked((int)1228410285) /* Time (P_TIME) */);
  307. public IntPtr Data => EventData.get_IntPtr(unchecked((int)1558284138) /* Data (P_DATA) */);
  308. } /* struct AnimationTriggerEventArgs */
  309. public partial class Node
  310. {
  311. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AnimationTrigger += ...' instead.")]
  312. public Subscription SubscribeToAnimationTrigger(Action<AnimationTriggerEventArgs> handler)
  313. {
  314. Action<IntPtr> proxy = (x) => { var d = new AnimationTriggerEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  315. var s = new Subscription(proxy);
  316. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3945634612) /* AnimationTrigger (E_ANIMATIONTRIGGER) */);
  317. return s;
  318. }
  319. static UrhoEventAdapter<AnimationTriggerEventArgs> eventAdapterForAnimationTrigger;
  320. public event Action<AnimationTriggerEventArgs> AnimationTrigger
  321. {
  322. add
  323. {
  324. if (eventAdapterForAnimationTrigger == null)
  325. eventAdapterForAnimationTrigger = new UrhoEventAdapter<AnimationTriggerEventArgs>(typeof(Node));
  326. eventAdapterForAnimationTrigger.AddManagedSubscriber(handle, value, SubscribeToAnimationTrigger);
  327. }
  328. remove { eventAdapterForAnimationTrigger.RemoveManagedSubscriber(handle, value); }
  329. }
  330. } /* class Node */
  331. } /* namespace */
  332. namespace Urho
  333. {
  334. public partial struct AnimationFinishedEventArgs
  335. {
  336. public EventDataContainer EventData;
  337. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  338. public Animation Animation => EventData.get_Animation(unchecked((int)1554425540) /* Animation (P_ANIMATION) */);
  339. public String Name => EventData.get_String(unchecked((int)773762347) /* Name (P_NAME) */);
  340. public bool Looped => EventData.get_bool(unchecked((int)842439811) /* Looped (P_LOOPED) */);
  341. } /* struct AnimationFinishedEventArgs */
  342. } /* namespace */
  343. namespace Urho
  344. {
  345. public partial struct ParticleEffectFinishedEventArgs
  346. {
  347. public EventDataContainer EventData;
  348. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  349. public ParticleEffect Effect => EventData.get_ParticleEffect(unchecked((int)2340854545) /* Effect (P_EFFECT) */);
  350. } /* struct ParticleEffectFinishedEventArgs */
  351. } /* namespace */
  352. namespace Urho
  353. {
  354. public partial struct TerrainCreatedEventArgs
  355. {
  356. public EventDataContainer EventData;
  357. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  358. } /* struct TerrainCreatedEventArgs */
  359. public partial class Terrain
  360. {
  361. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TerrainCreated += ...' instead.")]
  362. public Subscription SubscribeToTerrainCreated(Action<TerrainCreatedEventArgs> handler)
  363. {
  364. Action<IntPtr> proxy = (x) => { var d = new TerrainCreatedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  365. var s = new Subscription(proxy);
  366. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1280797747) /* TerrainCreated (E_TERRAINCREATED) */);
  367. return s;
  368. }
  369. static UrhoEventAdapter<TerrainCreatedEventArgs> eventAdapterForTerrainCreated;
  370. public event Action<TerrainCreatedEventArgs> TerrainCreated
  371. {
  372. add
  373. {
  374. if (eventAdapterForTerrainCreated == null)
  375. eventAdapterForTerrainCreated = new UrhoEventAdapter<TerrainCreatedEventArgs>(typeof(Terrain));
  376. eventAdapterForTerrainCreated.AddManagedSubscriber(handle, value, SubscribeToTerrainCreated);
  377. }
  378. remove { eventAdapterForTerrainCreated.RemoveManagedSubscriber(handle, value); }
  379. }
  380. } /* class Terrain */
  381. } /* namespace */
  382. namespace Urho
  383. {
  384. public partial struct ScreenModeEventArgs
  385. {
  386. public EventDataContainer EventData;
  387. public int Width => EventData.get_int(unchecked((int)3655201574) /* Width (P_WIDTH) */);
  388. public int Height => EventData.get_int(unchecked((int)380957255) /* Height (P_HEIGHT) */);
  389. public bool Fullscreen => EventData.get_bool(unchecked((int)1835757435) /* Fullscreen (P_FULLSCREEN) */);
  390. public bool Borderless => EventData.get_bool(unchecked((int)2212104069) /* Borderless (P_BORDERLESS) */);
  391. public bool Resizable => EventData.get_bool(unchecked((int)3579260107) /* Resizable (P_RESIZABLE) */);
  392. public bool HighDPI => EventData.get_bool(unchecked((int)2251421851) /* HighDPI (P_HIGHDPI) */);
  393. public int Monitor => EventData.get_int(unchecked((int)1274038842) /* Monitor (P_MONITOR) */);
  394. public int RefreshRate => EventData.get_int(unchecked((int)1452299323) /* RefreshRate (P_REFRESHRATE) */);
  395. } /* struct ScreenModeEventArgs */
  396. } /* namespace */
  397. namespace Urho
  398. {
  399. public partial struct WindowPosEventArgs
  400. {
  401. public EventDataContainer EventData;
  402. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  403. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  404. } /* struct WindowPosEventArgs */
  405. } /* namespace */
  406. namespace Urho
  407. {
  408. public partial struct RenderSurfaceUpdateEventArgs
  409. {
  410. public EventDataContainer EventData;
  411. } /* struct RenderSurfaceUpdateEventArgs */
  412. public partial class Renderer
  413. {
  414. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.RenderSurfaceUpdate += ...' instead.")]
  415. public Subscription SubscribeToRenderSurfaceUpdate(Action<RenderSurfaceUpdateEventArgs> handler)
  416. {
  417. Action<IntPtr> proxy = (x) => { var d = new RenderSurfaceUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  418. var s = new Subscription(proxy);
  419. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)530312032) /* RenderSurfaceUpdate (E_RENDERSURFACEUPDATE) */);
  420. return s;
  421. }
  422. static UrhoEventAdapter<RenderSurfaceUpdateEventArgs> eventAdapterForRenderSurfaceUpdate;
  423. public event Action<RenderSurfaceUpdateEventArgs> RenderSurfaceUpdate
  424. {
  425. add
  426. {
  427. if (eventAdapterForRenderSurfaceUpdate == null)
  428. eventAdapterForRenderSurfaceUpdate = new UrhoEventAdapter<RenderSurfaceUpdateEventArgs>(typeof(Renderer));
  429. eventAdapterForRenderSurfaceUpdate.AddManagedSubscriber(handle, value, SubscribeToRenderSurfaceUpdate);
  430. }
  431. remove { eventAdapterForRenderSurfaceUpdate.RemoveManagedSubscriber(handle, value); }
  432. }
  433. } /* class Renderer */
  434. } /* namespace */
  435. namespace Urho
  436. {
  437. public partial struct BeginRenderingEventArgs
  438. {
  439. public EventDataContainer EventData;
  440. } /* struct BeginRenderingEventArgs */
  441. } /* namespace */
  442. namespace Urho
  443. {
  444. public partial struct EndRenderingEventArgs
  445. {
  446. public EventDataContainer EventData;
  447. } /* struct EndRenderingEventArgs */
  448. } /* namespace */
  449. namespace Urho
  450. {
  451. public partial struct BeginViewUpdateEventArgs
  452. {
  453. public EventDataContainer EventData;
  454. public View View => EventData.get_View(unchecked((int)2789059909) /* View (P_VIEW) */);
  455. public Texture Texture => EventData.get_Texture(unchecked((int)4041785787) /* Texture (P_TEXTURE) */);
  456. public RenderSurface Surface => EventData.get_RenderSurface(unchecked((int)1353844973) /* Surface (P_SURFACE) */);
  457. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  458. public Camera Camera => EventData.get_Camera(unchecked((int)1364112997) /* Camera (P_CAMERA) */);
  459. } /* struct BeginViewUpdateEventArgs */
  460. public partial class View
  461. {
  462. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.BeginViewUpdate += ...' instead.")]
  463. public Subscription SubscribeToBeginViewUpdate(Action<BeginViewUpdateEventArgs> handler)
  464. {
  465. Action<IntPtr> proxy = (x) => { var d = new BeginViewUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  466. var s = new Subscription(proxy);
  467. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1204361687) /* BeginViewUpdate (E_BEGINVIEWUPDATE) */);
  468. return s;
  469. }
  470. static UrhoEventAdapter<BeginViewUpdateEventArgs> eventAdapterForBeginViewUpdate;
  471. public event Action<BeginViewUpdateEventArgs> BeginViewUpdate
  472. {
  473. add
  474. {
  475. if (eventAdapterForBeginViewUpdate == null)
  476. eventAdapterForBeginViewUpdate = new UrhoEventAdapter<BeginViewUpdateEventArgs>(typeof(View));
  477. eventAdapterForBeginViewUpdate.AddManagedSubscriber(handle, value, SubscribeToBeginViewUpdate);
  478. }
  479. remove { eventAdapterForBeginViewUpdate.RemoveManagedSubscriber(handle, value); }
  480. }
  481. } /* class View */
  482. } /* namespace */
  483. namespace Urho
  484. {
  485. public partial struct EndViewUpdateEventArgs
  486. {
  487. public EventDataContainer EventData;
  488. public View View => EventData.get_View(unchecked((int)2789059909) /* View (P_VIEW) */);
  489. public Texture Texture => EventData.get_Texture(unchecked((int)4041785787) /* Texture (P_TEXTURE) */);
  490. public RenderSurface Surface => EventData.get_RenderSurface(unchecked((int)1353844973) /* Surface (P_SURFACE) */);
  491. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  492. public Camera Camera => EventData.get_Camera(unchecked((int)1364112997) /* Camera (P_CAMERA) */);
  493. } /* struct EndViewUpdateEventArgs */
  494. public partial class View
  495. {
  496. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.EndViewUpdate += ...' instead.")]
  497. public Subscription SubscribeToEndViewUpdate(Action<EndViewUpdateEventArgs> handler)
  498. {
  499. Action<IntPtr> proxy = (x) => { var d = new EndViewUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  500. var s = new Subscription(proxy);
  501. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3578578249) /* EndViewUpdate (E_ENDVIEWUPDATE) */);
  502. return s;
  503. }
  504. static UrhoEventAdapter<EndViewUpdateEventArgs> eventAdapterForEndViewUpdate;
  505. public event Action<EndViewUpdateEventArgs> EndViewUpdate
  506. {
  507. add
  508. {
  509. if (eventAdapterForEndViewUpdate == null)
  510. eventAdapterForEndViewUpdate = new UrhoEventAdapter<EndViewUpdateEventArgs>(typeof(View));
  511. eventAdapterForEndViewUpdate.AddManagedSubscriber(handle, value, SubscribeToEndViewUpdate);
  512. }
  513. remove { eventAdapterForEndViewUpdate.RemoveManagedSubscriber(handle, value); }
  514. }
  515. } /* class View */
  516. } /* namespace */
  517. namespace Urho
  518. {
  519. public partial struct BeginViewRenderEventArgs
  520. {
  521. public EventDataContainer EventData;
  522. public View View => EventData.get_View(unchecked((int)2789059909) /* View (P_VIEW) */);
  523. public Texture Texture => EventData.get_Texture(unchecked((int)4041785787) /* Texture (P_TEXTURE) */);
  524. public RenderSurface Surface => EventData.get_RenderSurface(unchecked((int)1353844973) /* Surface (P_SURFACE) */);
  525. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  526. public Camera Camera => EventData.get_Camera(unchecked((int)1364112997) /* Camera (P_CAMERA) */);
  527. } /* struct BeginViewRenderEventArgs */
  528. public partial class Renderer
  529. {
  530. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.BeginViewRender += ...' instead.")]
  531. public Subscription SubscribeToBeginViewRender(Action<BeginViewRenderEventArgs> handler)
  532. {
  533. Action<IntPtr> proxy = (x) => { var d = new BeginViewRenderEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  534. var s = new Subscription(proxy);
  535. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3972739940) /* BeginViewRender (E_BEGINVIEWRENDER) */);
  536. return s;
  537. }
  538. static UrhoEventAdapter<BeginViewRenderEventArgs> eventAdapterForBeginViewRender;
  539. public event Action<BeginViewRenderEventArgs> BeginViewRender
  540. {
  541. add
  542. {
  543. if (eventAdapterForBeginViewRender == null)
  544. eventAdapterForBeginViewRender = new UrhoEventAdapter<BeginViewRenderEventArgs>(typeof(Renderer));
  545. eventAdapterForBeginViewRender.AddManagedSubscriber(handle, value, SubscribeToBeginViewRender);
  546. }
  547. remove { eventAdapterForBeginViewRender.RemoveManagedSubscriber(handle, value); }
  548. }
  549. } /* class Renderer */
  550. } /* namespace */
  551. namespace Urho
  552. {
  553. public partial struct ViewBuffersReadyEventArgs
  554. {
  555. public EventDataContainer EventData;
  556. public View View => EventData.get_View(unchecked((int)2789059909) /* View (P_VIEW) */);
  557. public Texture Texture => EventData.get_Texture(unchecked((int)4041785787) /* Texture (P_TEXTURE) */);
  558. public RenderSurface Surface => EventData.get_RenderSurface(unchecked((int)1353844973) /* Surface (P_SURFACE) */);
  559. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  560. public Camera Camera => EventData.get_Camera(unchecked((int)1364112997) /* Camera (P_CAMERA) */);
  561. } /* struct ViewBuffersReadyEventArgs */
  562. } /* namespace */
  563. namespace Urho
  564. {
  565. public partial struct ViewGlobalShaderParametersEventArgs
  566. {
  567. public EventDataContainer EventData;
  568. public View View => EventData.get_View(unchecked((int)2789059909) /* View (P_VIEW) */);
  569. public Texture Texture => EventData.get_Texture(unchecked((int)4041785787) /* Texture (P_TEXTURE) */);
  570. public RenderSurface Surface => EventData.get_RenderSurface(unchecked((int)1353844973) /* Surface (P_SURFACE) */);
  571. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  572. public Camera Camera => EventData.get_Camera(unchecked((int)1364112997) /* Camera (P_CAMERA) */);
  573. } /* struct ViewGlobalShaderParametersEventArgs */
  574. } /* namespace */
  575. namespace Urho
  576. {
  577. public partial struct EndViewRenderEventArgs
  578. {
  579. public EventDataContainer EventData;
  580. public View View => EventData.get_View(unchecked((int)2789059909) /* View (P_VIEW) */);
  581. public Texture Texture => EventData.get_Texture(unchecked((int)4041785787) /* Texture (P_TEXTURE) */);
  582. public RenderSurface Surface => EventData.get_RenderSurface(unchecked((int)1353844973) /* Surface (P_SURFACE) */);
  583. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  584. public Camera Camera => EventData.get_Camera(unchecked((int)1364112997) /* Camera (P_CAMERA) */);
  585. } /* struct EndViewRenderEventArgs */
  586. public partial class Renderer
  587. {
  588. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.EndViewRender += ...' instead.")]
  589. public Subscription SubscribeToEndViewRender(Action<EndViewRenderEventArgs> handler)
  590. {
  591. Action<IntPtr> proxy = (x) => { var d = new EndViewRenderEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  592. var s = new Subscription(proxy);
  593. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2051989206) /* EndViewRender (E_ENDVIEWRENDER) */);
  594. return s;
  595. }
  596. static UrhoEventAdapter<EndViewRenderEventArgs> eventAdapterForEndViewRender;
  597. public event Action<EndViewRenderEventArgs> EndViewRender
  598. {
  599. add
  600. {
  601. if (eventAdapterForEndViewRender == null)
  602. eventAdapterForEndViewRender = new UrhoEventAdapter<EndViewRenderEventArgs>(typeof(Renderer));
  603. eventAdapterForEndViewRender.AddManagedSubscriber(handle, value, SubscribeToEndViewRender);
  604. }
  605. remove { eventAdapterForEndViewRender.RemoveManagedSubscriber(handle, value); }
  606. }
  607. } /* class Renderer */
  608. } /* namespace */
  609. namespace Urho
  610. {
  611. public partial struct EndAllViewsRenderEventArgs
  612. {
  613. public EventDataContainer EventData;
  614. } /* struct EndAllViewsRenderEventArgs */
  615. } /* namespace */
  616. namespace Urho
  617. {
  618. public partial struct RenderPathEventEventArgs
  619. {
  620. public EventDataContainer EventData;
  621. public String Name => EventData.get_String(unchecked((int)773762347) /* Name (P_NAME) */);
  622. } /* struct RenderPathEventEventArgs */
  623. } /* namespace */
  624. namespace Urho
  625. {
  626. public partial struct DeviceLostEventArgs
  627. {
  628. public EventDataContainer EventData;
  629. } /* struct DeviceLostEventArgs */
  630. } /* namespace */
  631. namespace Urho
  632. {
  633. public partial struct DeviceResetEventArgs
  634. {
  635. public EventDataContainer EventData;
  636. } /* struct DeviceResetEventArgs */
  637. } /* namespace */
  638. namespace Urho
  639. {
  640. public partial struct IKEffectorTargetChangedEventArgs
  641. {
  642. public EventDataContainer EventData;
  643. public Node EffectorNode => EventData.get_Node(unchecked((int)725806678) /* EffectorNode (P_EFFECTORNODE) */);
  644. public Node TargetNode => EventData.get_Node(unchecked((int)3704622643) /* TargetNode (P_TARGETNODE) */);
  645. } /* struct IKEffectorTargetChangedEventArgs */
  646. } /* namespace */
  647. namespace Urho.IO
  648. {
  649. public partial struct LogMessageEventArgs
  650. {
  651. public EventDataContainer EventData;
  652. public String Message => EventData.get_String(unchecked((int)2310231975) /* Message (P_MESSAGE) */);
  653. public int Level => EventData.get_int(unchecked((int)1030270596) /* Level (P_LEVEL) */);
  654. } /* struct LogMessageEventArgs */
  655. public partial class Log
  656. {
  657. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.LogMessage += ...' instead.")]
  658. public Subscription SubscribeToLogMessage(Action<LogMessageEventArgs> handler)
  659. {
  660. Action<IntPtr> proxy = (x) => { var d = new LogMessageEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  661. var s = new Subscription(proxy);
  662. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2123706499) /* LogMessage (E_LOGMESSAGE) */);
  663. return s;
  664. }
  665. static UrhoEventAdapter<LogMessageEventArgs> eventAdapterForLogMessage;
  666. public event Action<LogMessageEventArgs> LogMessage
  667. {
  668. add
  669. {
  670. if (eventAdapterForLogMessage == null)
  671. eventAdapterForLogMessage = new UrhoEventAdapter<LogMessageEventArgs>(typeof(Log));
  672. eventAdapterForLogMessage.AddManagedSubscriber(handle, value, SubscribeToLogMessage);
  673. }
  674. remove { eventAdapterForLogMessage.RemoveManagedSubscriber(handle, value); }
  675. }
  676. } /* class Log */
  677. } /* namespace */
  678. namespace Urho.IO
  679. {
  680. public partial struct AsyncExecFinishedEventArgs
  681. {
  682. public EventDataContainer EventData;
  683. public uint RequestID => EventData.get_uint(unchecked((int)4010202986) /* RequestID (P_REQUESTID) */);
  684. public int ExitCode => EventData.get_int(unchecked((int)3466160107) /* ExitCode (P_EXITCODE) */);
  685. } /* struct AsyncExecFinishedEventArgs */
  686. public partial class FileSystem
  687. {
  688. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AsyncExecFinished += ...' instead.")]
  689. public Subscription SubscribeToAsyncExecFinished(Action<AsyncExecFinishedEventArgs> handler)
  690. {
  691. Action<IntPtr> proxy = (x) => { var d = new AsyncExecFinishedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  692. var s = new Subscription(proxy);
  693. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1250019487) /* AsyncExecFinished (E_ASYNCEXECFINISHED) */);
  694. return s;
  695. }
  696. static UrhoEventAdapter<AsyncExecFinishedEventArgs> eventAdapterForAsyncExecFinished;
  697. public event Action<AsyncExecFinishedEventArgs> AsyncExecFinished
  698. {
  699. add
  700. {
  701. if (eventAdapterForAsyncExecFinished == null)
  702. eventAdapterForAsyncExecFinished = new UrhoEventAdapter<AsyncExecFinishedEventArgs>(typeof(FileSystem));
  703. eventAdapterForAsyncExecFinished.AddManagedSubscriber(handle, value, SubscribeToAsyncExecFinished);
  704. }
  705. remove { eventAdapterForAsyncExecFinished.RemoveManagedSubscriber(handle, value); }
  706. }
  707. } /* class FileSystem */
  708. } /* namespace */
  709. namespace Urho
  710. {
  711. public partial struct MouseButtonDownEventArgs
  712. {
  713. public EventDataContainer EventData;
  714. public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
  715. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  716. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  717. } /* struct MouseButtonDownEventArgs */
  718. public partial class Input
  719. {
  720. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MouseButtonDown += ...' instead.")]
  721. public Subscription SubscribeToMouseButtonDown(Action<MouseButtonDownEventArgs> handler)
  722. {
  723. Action<IntPtr> proxy = (x) => { var d = new MouseButtonDownEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  724. var s = new Subscription(proxy);
  725. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1619012089) /* MouseButtonDown (E_MOUSEBUTTONDOWN) */);
  726. return s;
  727. }
  728. static UrhoEventAdapter<MouseButtonDownEventArgs> eventAdapterForMouseButtonDown;
  729. public event Action<MouseButtonDownEventArgs> MouseButtonDown
  730. {
  731. add
  732. {
  733. if (eventAdapterForMouseButtonDown == null)
  734. eventAdapterForMouseButtonDown = new UrhoEventAdapter<MouseButtonDownEventArgs>(typeof(Input));
  735. eventAdapterForMouseButtonDown.AddManagedSubscriber(handle, value, SubscribeToMouseButtonDown);
  736. }
  737. remove { eventAdapterForMouseButtonDown.RemoveManagedSubscriber(handle, value); }
  738. }
  739. } /* class Input */
  740. } /* namespace */
  741. namespace Urho
  742. {
  743. public partial struct MouseButtonUpEventArgs
  744. {
  745. public EventDataContainer EventData;
  746. public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
  747. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  748. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  749. } /* struct MouseButtonUpEventArgs */
  750. public partial class Input
  751. {
  752. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MouseButtonUp += ...' instead.")]
  753. public Subscription SubscribeToMouseButtonUp(Action<MouseButtonUpEventArgs> handler)
  754. {
  755. Action<IntPtr> proxy = (x) => { var d = new MouseButtonUpEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  756. var s = new Subscription(proxy);
  757. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)546345330) /* MouseButtonUp (E_MOUSEBUTTONUP) */);
  758. return s;
  759. }
  760. static UrhoEventAdapter<MouseButtonUpEventArgs> eventAdapterForMouseButtonUp;
  761. public event Action<MouseButtonUpEventArgs> MouseButtonUp
  762. {
  763. add
  764. {
  765. if (eventAdapterForMouseButtonUp == null)
  766. eventAdapterForMouseButtonUp = new UrhoEventAdapter<MouseButtonUpEventArgs>(typeof(Input));
  767. eventAdapterForMouseButtonUp.AddManagedSubscriber(handle, value, SubscribeToMouseButtonUp);
  768. }
  769. remove { eventAdapterForMouseButtonUp.RemoveManagedSubscriber(handle, value); }
  770. }
  771. } /* class Input */
  772. } /* namespace */
  773. namespace Urho
  774. {
  775. public partial struct MouseMovedEventArgs
  776. {
  777. public EventDataContainer EventData;
  778. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  779. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  780. public int DX => EventData.get_int(unchecked((int)6560020) /* DX (P_DX) */);
  781. public int DY => EventData.get_int(unchecked((int)6560021) /* DY (P_DY) */);
  782. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  783. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  784. } /* struct MouseMovedEventArgs */
  785. public partial class Input
  786. {
  787. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MouseMoved += ...' instead.")]
  788. public Subscription SubscribeToMouseMoved(Action<MouseMovedEventArgs> handler)
  789. {
  790. Action<IntPtr> proxy = (x) => { var d = new MouseMovedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  791. var s = new Subscription(proxy);
  792. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1089985430) /* MouseMove (E_MOUSEMOVE) */);
  793. return s;
  794. }
  795. static UrhoEventAdapter<MouseMovedEventArgs> eventAdapterForMouseMoved;
  796. public event Action<MouseMovedEventArgs> MouseMoved
  797. {
  798. add
  799. {
  800. if (eventAdapterForMouseMoved == null)
  801. eventAdapterForMouseMoved = new UrhoEventAdapter<MouseMovedEventArgs>(typeof(Input));
  802. eventAdapterForMouseMoved.AddManagedSubscriber(handle, value, SubscribeToMouseMoved);
  803. }
  804. remove { eventAdapterForMouseMoved.RemoveManagedSubscriber(handle, value); }
  805. }
  806. } /* class Input */
  807. } /* namespace */
  808. namespace Urho
  809. {
  810. public partial struct MouseWheelEventArgs
  811. {
  812. public EventDataContainer EventData;
  813. public int Wheel => EventData.get_int(unchecked((int)2881891899) /* Wheel (P_WHEEL) */);
  814. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  815. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  816. } /* struct MouseWheelEventArgs */
  817. public partial class Input
  818. {
  819. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MouseWheel += ...' instead.")]
  820. public Subscription SubscribeToMouseWheel(Action<MouseWheelEventArgs> handler)
  821. {
  822. Action<IntPtr> proxy = (x) => { var d = new MouseWheelEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  823. var s = new Subscription(proxy);
  824. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)834798486) /* MouseWheel (E_MOUSEWHEEL) */);
  825. return s;
  826. }
  827. static UrhoEventAdapter<MouseWheelEventArgs> eventAdapterForMouseWheel;
  828. public event Action<MouseWheelEventArgs> MouseWheel
  829. {
  830. add
  831. {
  832. if (eventAdapterForMouseWheel == null)
  833. eventAdapterForMouseWheel = new UrhoEventAdapter<MouseWheelEventArgs>(typeof(Input));
  834. eventAdapterForMouseWheel.AddManagedSubscriber(handle, value, SubscribeToMouseWheel);
  835. }
  836. remove { eventAdapterForMouseWheel.RemoveManagedSubscriber(handle, value); }
  837. }
  838. } /* class Input */
  839. } /* namespace */
  840. namespace Urho
  841. {
  842. public partial struct KeyDownEventArgs
  843. {
  844. public EventDataContainer EventData;
  845. public Key Key => (Key)EventData.get_int(unchecked((int)890606655) /* Key (P_KEY) */);
  846. public int Scancode => EventData.get_int(unchecked((int)3743304650) /* Scancode (P_SCANCODE) */);
  847. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  848. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  849. public bool Repeat => EventData.get_bool(unchecked((int)958223163) /* Repeat (P_REPEAT) */);
  850. } /* struct KeyDownEventArgs */
  851. public partial class Input
  852. {
  853. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.KeyDown += ...' instead.")]
  854. public Subscription SubscribeToKeyDown(Action<KeyDownEventArgs> handler)
  855. {
  856. Action<IntPtr> proxy = (x) => { var d = new KeyDownEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  857. var s = new Subscription(proxy);
  858. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3254146689) /* KeyDown (E_KEYDOWN) */);
  859. return s;
  860. }
  861. static UrhoEventAdapter<KeyDownEventArgs> eventAdapterForKeyDown;
  862. public event Action<KeyDownEventArgs> KeyDown
  863. {
  864. add
  865. {
  866. if (eventAdapterForKeyDown == null)
  867. eventAdapterForKeyDown = new UrhoEventAdapter<KeyDownEventArgs>(typeof(Input));
  868. eventAdapterForKeyDown.AddManagedSubscriber(handle, value, SubscribeToKeyDown);
  869. }
  870. remove { eventAdapterForKeyDown.RemoveManagedSubscriber(handle, value); }
  871. }
  872. } /* class Input */
  873. } /* namespace */
  874. namespace Urho
  875. {
  876. public partial struct KeyUpEventArgs
  877. {
  878. public EventDataContainer EventData;
  879. public Key Key => (Key)EventData.get_int(unchecked((int)890606655) /* Key (P_KEY) */);
  880. public int Scancode => EventData.get_int(unchecked((int)3743304650) /* Scancode (P_SCANCODE) */);
  881. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  882. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  883. } /* struct KeyUpEventArgs */
  884. public partial class Input
  885. {
  886. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.KeyUp += ...' instead.")]
  887. public Subscription SubscribeToKeyUp(Action<KeyUpEventArgs> handler)
  888. {
  889. Action<IntPtr> proxy = (x) => { var d = new KeyUpEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  890. var s = new Subscription(proxy);
  891. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4211507706) /* KeyUp (E_KEYUP) */);
  892. return s;
  893. }
  894. static UrhoEventAdapter<KeyUpEventArgs> eventAdapterForKeyUp;
  895. public event Action<KeyUpEventArgs> KeyUp
  896. {
  897. add
  898. {
  899. if (eventAdapterForKeyUp == null)
  900. eventAdapterForKeyUp = new UrhoEventAdapter<KeyUpEventArgs>(typeof(Input));
  901. eventAdapterForKeyUp.AddManagedSubscriber(handle, value, SubscribeToKeyUp);
  902. }
  903. remove { eventAdapterForKeyUp.RemoveManagedSubscriber(handle, value); }
  904. }
  905. } /* class Input */
  906. } /* namespace */
  907. namespace Urho
  908. {
  909. public partial struct TextInputEventArgs
  910. {
  911. public EventDataContainer EventData;
  912. public String Text => EventData.get_String(unchecked((int)1196085869) /* Text (P_TEXT) */);
  913. } /* struct TextInputEventArgs */
  914. public partial class Input
  915. {
  916. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TextInput += ...' instead.")]
  917. public Subscription SubscribeToTextInput(Action<TextInputEventArgs> handler)
  918. {
  919. Action<IntPtr> proxy = (x) => { var d = new TextInputEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  920. var s = new Subscription(proxy);
  921. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2136843517) /* TextInput (E_TEXTINPUT) */);
  922. return s;
  923. }
  924. static UrhoEventAdapter<TextInputEventArgs> eventAdapterForTextInput;
  925. public event Action<TextInputEventArgs> TextInput
  926. {
  927. add
  928. {
  929. if (eventAdapterForTextInput == null)
  930. eventAdapterForTextInput = new UrhoEventAdapter<TextInputEventArgs>(typeof(Input));
  931. eventAdapterForTextInput.AddManagedSubscriber(handle, value, SubscribeToTextInput);
  932. }
  933. remove { eventAdapterForTextInput.RemoveManagedSubscriber(handle, value); }
  934. }
  935. } /* class Input */
  936. } /* namespace */
  937. namespace Urho
  938. {
  939. public partial struct TextEditingEventArgs
  940. {
  941. public EventDataContainer EventData;
  942. public String Composition => EventData.get_String(unchecked((int)3273882378) /* Composition (P_COMPOSITION) */);
  943. public int Cursor => EventData.get_int(unchecked((int)2403995286) /* Cursor (P_CURSOR) */);
  944. public int SelectionLength => EventData.get_int(unchecked((int)2629242514) /* SelectionLength (P_SELECTION_LENGTH) */);
  945. } /* struct TextEditingEventArgs */
  946. } /* namespace */
  947. namespace Urho
  948. {
  949. public partial struct JoystickConnectedEventArgs
  950. {
  951. public EventDataContainer EventData;
  952. public int JoystickID => EventData.get_int(unchecked((int)1510428343) /* JoystickID (P_JOYSTICKID) */);
  953. } /* struct JoystickConnectedEventArgs */
  954. public partial class Input
  955. {
  956. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.JoystickConnected += ...' instead.")]
  957. public Subscription SubscribeToJoystickConnected(Action<JoystickConnectedEventArgs> handler)
  958. {
  959. Action<IntPtr> proxy = (x) => { var d = new JoystickConnectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  960. var s = new Subscription(proxy);
  961. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2560363053) /* JoystickConnected (E_JOYSTICKCONNECTED) */);
  962. return s;
  963. }
  964. static UrhoEventAdapter<JoystickConnectedEventArgs> eventAdapterForJoystickConnected;
  965. public event Action<JoystickConnectedEventArgs> JoystickConnected
  966. {
  967. add
  968. {
  969. if (eventAdapterForJoystickConnected == null)
  970. eventAdapterForJoystickConnected = new UrhoEventAdapter<JoystickConnectedEventArgs>(typeof(Input));
  971. eventAdapterForJoystickConnected.AddManagedSubscriber(handle, value, SubscribeToJoystickConnected);
  972. }
  973. remove { eventAdapterForJoystickConnected.RemoveManagedSubscriber(handle, value); }
  974. }
  975. } /* class Input */
  976. } /* namespace */
  977. namespace Urho
  978. {
  979. public partial struct JoystickDisconnectedEventArgs
  980. {
  981. public EventDataContainer EventData;
  982. public int JoystickID => EventData.get_int(unchecked((int)1510428343) /* JoystickID (P_JOYSTICKID) */);
  983. } /* struct JoystickDisconnectedEventArgs */
  984. public partial class Input
  985. {
  986. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.JoystickDisconnected += ...' instead.")]
  987. public Subscription SubscribeToJoystickDisconnected(Action<JoystickDisconnectedEventArgs> handler)
  988. {
  989. Action<IntPtr> proxy = (x) => { var d = new JoystickDisconnectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  990. var s = new Subscription(proxy);
  991. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)819446519) /* JoystickDisconnected (E_JOYSTICKDISCONNECTED) */);
  992. return s;
  993. }
  994. static UrhoEventAdapter<JoystickDisconnectedEventArgs> eventAdapterForJoystickDisconnected;
  995. public event Action<JoystickDisconnectedEventArgs> JoystickDisconnected
  996. {
  997. add
  998. {
  999. if (eventAdapterForJoystickDisconnected == null)
  1000. eventAdapterForJoystickDisconnected = new UrhoEventAdapter<JoystickDisconnectedEventArgs>(typeof(Input));
  1001. eventAdapterForJoystickDisconnected.AddManagedSubscriber(handle, value, SubscribeToJoystickDisconnected);
  1002. }
  1003. remove { eventAdapterForJoystickDisconnected.RemoveManagedSubscriber(handle, value); }
  1004. }
  1005. } /* class Input */
  1006. } /* namespace */
  1007. namespace Urho
  1008. {
  1009. public partial struct JoystickButtonDownEventArgs
  1010. {
  1011. public EventDataContainer EventData;
  1012. public int JoystickID => EventData.get_int(unchecked((int)1510428343) /* JoystickID (P_JOYSTICKID) */);
  1013. public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
  1014. } /* struct JoystickButtonDownEventArgs */
  1015. public partial class Input
  1016. {
  1017. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.JoystickButtonDown += ...' instead.")]
  1018. public Subscription SubscribeToJoystickButtonDown(Action<JoystickButtonDownEventArgs> handler)
  1019. {
  1020. Action<IntPtr> proxy = (x) => { var d = new JoystickButtonDownEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1021. var s = new Subscription(proxy);
  1022. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2528733712) /* JoystickButtonDown (E_JOYSTICKBUTTONDOWN) */);
  1023. return s;
  1024. }
  1025. static UrhoEventAdapter<JoystickButtonDownEventArgs> eventAdapterForJoystickButtonDown;
  1026. public event Action<JoystickButtonDownEventArgs> JoystickButtonDown
  1027. {
  1028. add
  1029. {
  1030. if (eventAdapterForJoystickButtonDown == null)
  1031. eventAdapterForJoystickButtonDown = new UrhoEventAdapter<JoystickButtonDownEventArgs>(typeof(Input));
  1032. eventAdapterForJoystickButtonDown.AddManagedSubscriber(handle, value, SubscribeToJoystickButtonDown);
  1033. }
  1034. remove { eventAdapterForJoystickButtonDown.RemoveManagedSubscriber(handle, value); }
  1035. }
  1036. } /* class Input */
  1037. } /* namespace */
  1038. namespace Urho
  1039. {
  1040. public partial struct JoystickButtonUpEventArgs
  1041. {
  1042. public EventDataContainer EventData;
  1043. public int JoystickID => EventData.get_int(unchecked((int)1510428343) /* JoystickID (P_JOYSTICKID) */);
  1044. public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
  1045. } /* struct JoystickButtonUpEventArgs */
  1046. public partial class Input
  1047. {
  1048. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.JoystickButtonUp += ...' instead.")]
  1049. public Subscription SubscribeToJoystickButtonUp(Action<JoystickButtonUpEventArgs> handler)
  1050. {
  1051. Action<IntPtr> proxy = (x) => { var d = new JoystickButtonUpEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1052. var s = new Subscription(proxy);
  1053. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)109849865) /* JoystickButtonUp (E_JOYSTICKBUTTONUP) */);
  1054. return s;
  1055. }
  1056. static UrhoEventAdapter<JoystickButtonUpEventArgs> eventAdapterForJoystickButtonUp;
  1057. public event Action<JoystickButtonUpEventArgs> JoystickButtonUp
  1058. {
  1059. add
  1060. {
  1061. if (eventAdapterForJoystickButtonUp == null)
  1062. eventAdapterForJoystickButtonUp = new UrhoEventAdapter<JoystickButtonUpEventArgs>(typeof(Input));
  1063. eventAdapterForJoystickButtonUp.AddManagedSubscriber(handle, value, SubscribeToJoystickButtonUp);
  1064. }
  1065. remove { eventAdapterForJoystickButtonUp.RemoveManagedSubscriber(handle, value); }
  1066. }
  1067. } /* class Input */
  1068. } /* namespace */
  1069. namespace Urho
  1070. {
  1071. public partial struct JoystickAxisMoveEventArgs
  1072. {
  1073. public EventDataContainer EventData;
  1074. public int JoystickID => EventData.get_int(unchecked((int)1510428343) /* JoystickID (P_JOYSTICKID) */);
  1075. public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_AXIS) */);
  1076. public float Position => EventData.get_float(unchecked((int)1333256809) /* Position (P_POSITION) */);
  1077. } /* struct JoystickAxisMoveEventArgs */
  1078. public partial class Input
  1079. {
  1080. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.JoystickAxisMove += ...' instead.")]
  1081. public Subscription SubscribeToJoystickAxisMove(Action<JoystickAxisMoveEventArgs> handler)
  1082. {
  1083. Action<IntPtr> proxy = (x) => { var d = new JoystickAxisMoveEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1084. var s = new Subscription(proxy);
  1085. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1368926286) /* JoystickAxisMove (E_JOYSTICKAXISMOVE) */);
  1086. return s;
  1087. }
  1088. static UrhoEventAdapter<JoystickAxisMoveEventArgs> eventAdapterForJoystickAxisMove;
  1089. public event Action<JoystickAxisMoveEventArgs> JoystickAxisMove
  1090. {
  1091. add
  1092. {
  1093. if (eventAdapterForJoystickAxisMove == null)
  1094. eventAdapterForJoystickAxisMove = new UrhoEventAdapter<JoystickAxisMoveEventArgs>(typeof(Input));
  1095. eventAdapterForJoystickAxisMove.AddManagedSubscriber(handle, value, SubscribeToJoystickAxisMove);
  1096. }
  1097. remove { eventAdapterForJoystickAxisMove.RemoveManagedSubscriber(handle, value); }
  1098. }
  1099. } /* class Input */
  1100. } /* namespace */
  1101. namespace Urho
  1102. {
  1103. public partial struct JoystickHatMoveEventArgs
  1104. {
  1105. public EventDataContainer EventData;
  1106. public int JoystickID => EventData.get_int(unchecked((int)1510428343) /* JoystickID (P_JOYSTICKID) */);
  1107. public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_HAT) */);
  1108. public int Position => EventData.get_int(unchecked((int)1333256809) /* Position (P_POSITION) */);
  1109. } /* struct JoystickHatMoveEventArgs */
  1110. public partial class Input
  1111. {
  1112. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.JoystickHatMove += ...' instead.")]
  1113. public Subscription SubscribeToJoystickHatMove(Action<JoystickHatMoveEventArgs> handler)
  1114. {
  1115. Action<IntPtr> proxy = (x) => { var d = new JoystickHatMoveEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1116. var s = new Subscription(proxy);
  1117. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3808716784) /* JoystickHatMove (E_JOYSTICKHATMOVE) */);
  1118. return s;
  1119. }
  1120. static UrhoEventAdapter<JoystickHatMoveEventArgs> eventAdapterForJoystickHatMove;
  1121. public event Action<JoystickHatMoveEventArgs> JoystickHatMove
  1122. {
  1123. add
  1124. {
  1125. if (eventAdapterForJoystickHatMove == null)
  1126. eventAdapterForJoystickHatMove = new UrhoEventAdapter<JoystickHatMoveEventArgs>(typeof(Input));
  1127. eventAdapterForJoystickHatMove.AddManagedSubscriber(handle, value, SubscribeToJoystickHatMove);
  1128. }
  1129. remove { eventAdapterForJoystickHatMove.RemoveManagedSubscriber(handle, value); }
  1130. }
  1131. } /* class Input */
  1132. } /* namespace */
  1133. namespace Urho
  1134. {
  1135. public partial struct TouchBeginEventArgs
  1136. {
  1137. public EventDataContainer EventData;
  1138. public int TouchID => EventData.get_int(unchecked((int)3850094778) /* TouchID (P_TOUCHID) */);
  1139. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  1140. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  1141. public float Pressure => EventData.get_float(unchecked((int)439090309) /* Pressure (P_PRESSURE) */);
  1142. } /* struct TouchBeginEventArgs */
  1143. public partial class Input
  1144. {
  1145. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TouchBegin += ...' instead.")]
  1146. public Subscription SubscribeToTouchBegin(Action<TouchBeginEventArgs> handler)
  1147. {
  1148. Action<IntPtr> proxy = (x) => { var d = new TouchBeginEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1149. var s = new Subscription(proxy);
  1150. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3456070058) /* TouchBegin (E_TOUCHBEGIN) */);
  1151. return s;
  1152. }
  1153. static UrhoEventAdapter<TouchBeginEventArgs> eventAdapterForTouchBegin;
  1154. public event Action<TouchBeginEventArgs> TouchBegin
  1155. {
  1156. add
  1157. {
  1158. if (eventAdapterForTouchBegin == null)
  1159. eventAdapterForTouchBegin = new UrhoEventAdapter<TouchBeginEventArgs>(typeof(Input));
  1160. eventAdapterForTouchBegin.AddManagedSubscriber(handle, value, SubscribeToTouchBegin);
  1161. }
  1162. remove { eventAdapterForTouchBegin.RemoveManagedSubscriber(handle, value); }
  1163. }
  1164. } /* class Input */
  1165. } /* namespace */
  1166. namespace Urho
  1167. {
  1168. public partial struct TouchEndEventArgs
  1169. {
  1170. public EventDataContainer EventData;
  1171. public int TouchID => EventData.get_int(unchecked((int)3850094778) /* TouchID (P_TOUCHID) */);
  1172. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  1173. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  1174. } /* struct TouchEndEventArgs */
  1175. public partial class Input
  1176. {
  1177. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TouchEnd += ...' instead.")]
  1178. public Subscription SubscribeToTouchEnd(Action<TouchEndEventArgs> handler)
  1179. {
  1180. Action<IntPtr> proxy = (x) => { var d = new TouchEndEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1181. var s = new Subscription(proxy);
  1182. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1078078108) /* TouchEnd (E_TOUCHEND) */);
  1183. return s;
  1184. }
  1185. static UrhoEventAdapter<TouchEndEventArgs> eventAdapterForTouchEnd;
  1186. public event Action<TouchEndEventArgs> TouchEnd
  1187. {
  1188. add
  1189. {
  1190. if (eventAdapterForTouchEnd == null)
  1191. eventAdapterForTouchEnd = new UrhoEventAdapter<TouchEndEventArgs>(typeof(Input));
  1192. eventAdapterForTouchEnd.AddManagedSubscriber(handle, value, SubscribeToTouchEnd);
  1193. }
  1194. remove { eventAdapterForTouchEnd.RemoveManagedSubscriber(handle, value); }
  1195. }
  1196. } /* class Input */
  1197. } /* namespace */
  1198. namespace Urho
  1199. {
  1200. public partial struct TouchMoveEventArgs
  1201. {
  1202. public EventDataContainer EventData;
  1203. public int TouchID => EventData.get_int(unchecked((int)3850094778) /* TouchID (P_TOUCHID) */);
  1204. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  1205. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  1206. public int DX => EventData.get_int(unchecked((int)6560020) /* DX (P_DX) */);
  1207. public int DY => EventData.get_int(unchecked((int)6560021) /* DY (P_DY) */);
  1208. public float Pressure => EventData.get_float(unchecked((int)439090309) /* Pressure (P_PRESSURE) */);
  1209. } /* struct TouchMoveEventArgs */
  1210. public partial class Input
  1211. {
  1212. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TouchMove += ...' instead.")]
  1213. public Subscription SubscribeToTouchMove(Action<TouchMoveEventArgs> handler)
  1214. {
  1215. Action<IntPtr> proxy = (x) => { var d = new TouchMoveEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1216. var s = new Subscription(proxy);
  1217. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1873483440) /* TouchMove (E_TOUCHMOVE) */);
  1218. return s;
  1219. }
  1220. static UrhoEventAdapter<TouchMoveEventArgs> eventAdapterForTouchMove;
  1221. public event Action<TouchMoveEventArgs> TouchMove
  1222. {
  1223. add
  1224. {
  1225. if (eventAdapterForTouchMove == null)
  1226. eventAdapterForTouchMove = new UrhoEventAdapter<TouchMoveEventArgs>(typeof(Input));
  1227. eventAdapterForTouchMove.AddManagedSubscriber(handle, value, SubscribeToTouchMove);
  1228. }
  1229. remove { eventAdapterForTouchMove.RemoveManagedSubscriber(handle, value); }
  1230. }
  1231. } /* class Input */
  1232. } /* namespace */
  1233. namespace Urho
  1234. {
  1235. public partial struct GestureRecordedEventArgs
  1236. {
  1237. public EventDataContainer EventData;
  1238. public uint GestureID => EventData.get_uint(unchecked((int)2079416292) /* GestureID (P_GESTUREID) */);
  1239. } /* struct GestureRecordedEventArgs */
  1240. public partial class Input
  1241. {
  1242. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.GestureRecorded += ...' instead.")]
  1243. public Subscription SubscribeToGestureRecorded(Action<GestureRecordedEventArgs> handler)
  1244. {
  1245. Action<IntPtr> proxy = (x) => { var d = new GestureRecordedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1246. var s = new Subscription(proxy);
  1247. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2974572953) /* GestureRecorded (E_GESTURERECORDED) */);
  1248. return s;
  1249. }
  1250. static UrhoEventAdapter<GestureRecordedEventArgs> eventAdapterForGestureRecorded;
  1251. public event Action<GestureRecordedEventArgs> GestureRecorded
  1252. {
  1253. add
  1254. {
  1255. if (eventAdapterForGestureRecorded == null)
  1256. eventAdapterForGestureRecorded = new UrhoEventAdapter<GestureRecordedEventArgs>(typeof(Input));
  1257. eventAdapterForGestureRecorded.AddManagedSubscriber(handle, value, SubscribeToGestureRecorded);
  1258. }
  1259. remove { eventAdapterForGestureRecorded.RemoveManagedSubscriber(handle, value); }
  1260. }
  1261. } /* class Input */
  1262. } /* namespace */
  1263. namespace Urho
  1264. {
  1265. public partial struct GestureInputEventArgs
  1266. {
  1267. public EventDataContainer EventData;
  1268. public uint GestureID => EventData.get_uint(unchecked((int)2079416292) /* GestureID (P_GESTUREID) */);
  1269. public int CenterX => EventData.get_int(unchecked((int)150093091) /* CenterX (P_CENTERX) */);
  1270. public int CenterY => EventData.get_int(unchecked((int)150093092) /* CenterY (P_CENTERY) */);
  1271. public int NumFingers => EventData.get_int(unchecked((int)2749362116) /* NumFingers (P_NUMFINGERS) */);
  1272. public float Error => EventData.get_float(unchecked((int)3168564136) /* Error (P_ERROR) */);
  1273. } /* struct GestureInputEventArgs */
  1274. public partial class Input
  1275. {
  1276. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.GestureInput += ...' instead.")]
  1277. public Subscription SubscribeToGestureInput(Action<GestureInputEventArgs> handler)
  1278. {
  1279. Action<IntPtr> proxy = (x) => { var d = new GestureInputEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1280. var s = new Subscription(proxy);
  1281. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3375880257) /* GestureInput (E_GESTUREINPUT) */);
  1282. return s;
  1283. }
  1284. static UrhoEventAdapter<GestureInputEventArgs> eventAdapterForGestureInput;
  1285. public event Action<GestureInputEventArgs> GestureInput
  1286. {
  1287. add
  1288. {
  1289. if (eventAdapterForGestureInput == null)
  1290. eventAdapterForGestureInput = new UrhoEventAdapter<GestureInputEventArgs>(typeof(Input));
  1291. eventAdapterForGestureInput.AddManagedSubscriber(handle, value, SubscribeToGestureInput);
  1292. }
  1293. remove { eventAdapterForGestureInput.RemoveManagedSubscriber(handle, value); }
  1294. }
  1295. } /* class Input */
  1296. } /* namespace */
  1297. namespace Urho
  1298. {
  1299. public partial struct MultiGestureEventArgs
  1300. {
  1301. public EventDataContainer EventData;
  1302. public int CenterX => EventData.get_int(unchecked((int)150093091) /* CenterX (P_CENTERX) */);
  1303. public int CenterY => EventData.get_int(unchecked((int)150093092) /* CenterY (P_CENTERY) */);
  1304. public int NumFingers => EventData.get_int(unchecked((int)2749362116) /* NumFingers (P_NUMFINGERS) */);
  1305. public float DTheta => EventData.get_float(unchecked((int)2305167738) /* DTheta (P_DTHETA) */);
  1306. public float DDist => EventData.get_float(unchecked((int)3911589802) /* DDist (P_DDIST) */);
  1307. } /* struct MultiGestureEventArgs */
  1308. public partial class Input
  1309. {
  1310. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MultiGesture += ...' instead.")]
  1311. public Subscription SubscribeToMultiGesture(Action<MultiGestureEventArgs> handler)
  1312. {
  1313. Action<IntPtr> proxy = (x) => { var d = new MultiGestureEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1314. var s = new Subscription(proxy);
  1315. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2419467216) /* MultiGesture (E_MULTIGESTURE) */);
  1316. return s;
  1317. }
  1318. static UrhoEventAdapter<MultiGestureEventArgs> eventAdapterForMultiGesture;
  1319. public event Action<MultiGestureEventArgs> MultiGesture
  1320. {
  1321. add
  1322. {
  1323. if (eventAdapterForMultiGesture == null)
  1324. eventAdapterForMultiGesture = new UrhoEventAdapter<MultiGestureEventArgs>(typeof(Input));
  1325. eventAdapterForMultiGesture.AddManagedSubscriber(handle, value, SubscribeToMultiGesture);
  1326. }
  1327. remove { eventAdapterForMultiGesture.RemoveManagedSubscriber(handle, value); }
  1328. }
  1329. } /* class Input */
  1330. } /* namespace */
  1331. namespace Urho
  1332. {
  1333. public partial struct DropFileEventArgs
  1334. {
  1335. public EventDataContainer EventData;
  1336. public String FileName => EventData.get_String(unchecked((int)633459751) /* FileName (P_FILENAME) */);
  1337. } /* struct DropFileEventArgs */
  1338. public partial class Input
  1339. {
  1340. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.DropFile += ...' instead.")]
  1341. public Subscription SubscribeToDropFile(Action<DropFileEventArgs> handler)
  1342. {
  1343. Action<IntPtr> proxy = (x) => { var d = new DropFileEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1344. var s = new Subscription(proxy);
  1345. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)612827595) /* DropFile (E_DROPFILE) */);
  1346. return s;
  1347. }
  1348. static UrhoEventAdapter<DropFileEventArgs> eventAdapterForDropFile;
  1349. public event Action<DropFileEventArgs> DropFile
  1350. {
  1351. add
  1352. {
  1353. if (eventAdapterForDropFile == null)
  1354. eventAdapterForDropFile = new UrhoEventAdapter<DropFileEventArgs>(typeof(Input));
  1355. eventAdapterForDropFile.AddManagedSubscriber(handle, value, SubscribeToDropFile);
  1356. }
  1357. remove { eventAdapterForDropFile.RemoveManagedSubscriber(handle, value); }
  1358. }
  1359. } /* class Input */
  1360. } /* namespace */
  1361. namespace Urho
  1362. {
  1363. public partial struct InputFocusEventArgs
  1364. {
  1365. public EventDataContainer EventData;
  1366. public bool Focus => EventData.get_bool(unchecked((int)1842837848) /* Focus (P_FOCUS) */);
  1367. public bool Minimized => EventData.get_bool(unchecked((int)541506182) /* Minimized (P_MINIMIZED) */);
  1368. } /* struct InputFocusEventArgs */
  1369. public partial class Input
  1370. {
  1371. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.InputFocus += ...' instead.")]
  1372. public Subscription SubscribeToInputFocus(Action<InputFocusEventArgs> handler)
  1373. {
  1374. Action<IntPtr> proxy = (x) => { var d = new InputFocusEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1375. var s = new Subscription(proxy);
  1376. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)620076718) /* InputFocus (E_INPUTFOCUS) */);
  1377. return s;
  1378. }
  1379. static UrhoEventAdapter<InputFocusEventArgs> eventAdapterForInputFocus;
  1380. public event Action<InputFocusEventArgs> InputFocus
  1381. {
  1382. add
  1383. {
  1384. if (eventAdapterForInputFocus == null)
  1385. eventAdapterForInputFocus = new UrhoEventAdapter<InputFocusEventArgs>(typeof(Input));
  1386. eventAdapterForInputFocus.AddManagedSubscriber(handle, value, SubscribeToInputFocus);
  1387. }
  1388. remove { eventAdapterForInputFocus.RemoveManagedSubscriber(handle, value); }
  1389. }
  1390. } /* class Input */
  1391. } /* namespace */
  1392. namespace Urho
  1393. {
  1394. public partial struct MouseVisibleChangedEventArgs
  1395. {
  1396. public EventDataContainer EventData;
  1397. public bool Visible => EventData.get_bool(unchecked((int)2569414770) /* Visible (P_VISIBLE) */);
  1398. } /* struct MouseVisibleChangedEventArgs */
  1399. public partial class Input
  1400. {
  1401. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MouseVisibleChanged += ...' instead.")]
  1402. public Subscription SubscribeToMouseVisibleChanged(Action<MouseVisibleChangedEventArgs> handler)
  1403. {
  1404. Action<IntPtr> proxy = (x) => { var d = new MouseVisibleChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1405. var s = new Subscription(proxy);
  1406. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)360201095) /* MouseVisibleChanged (E_MOUSEVISIBLECHANGED) */);
  1407. return s;
  1408. }
  1409. static UrhoEventAdapter<MouseVisibleChangedEventArgs> eventAdapterForMouseVisibleChanged;
  1410. public event Action<MouseVisibleChangedEventArgs> MouseVisibleChanged
  1411. {
  1412. add
  1413. {
  1414. if (eventAdapterForMouseVisibleChanged == null)
  1415. eventAdapterForMouseVisibleChanged = new UrhoEventAdapter<MouseVisibleChangedEventArgs>(typeof(Input));
  1416. eventAdapterForMouseVisibleChanged.AddManagedSubscriber(handle, value, SubscribeToMouseVisibleChanged);
  1417. }
  1418. remove { eventAdapterForMouseVisibleChanged.RemoveManagedSubscriber(handle, value); }
  1419. }
  1420. } /* class Input */
  1421. } /* namespace */
  1422. namespace Urho
  1423. {
  1424. public partial struct MouseModeChangedEventArgs
  1425. {
  1426. public EventDataContainer EventData;
  1427. public MouseMode Mode => EventData.get_MouseMode(unchecked((int)108245827) /* Mode (P_MODE) */);
  1428. public bool MouseLocked => EventData.get_bool(unchecked((int)3485665135) /* MouseLocked (P_MOUSELOCKED) */);
  1429. } /* struct MouseModeChangedEventArgs */
  1430. public partial class Input
  1431. {
  1432. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MouseModeChanged += ...' instead.")]
  1433. public Subscription SubscribeToMouseModeChanged(Action<MouseModeChangedEventArgs> handler)
  1434. {
  1435. Action<IntPtr> proxy = (x) => { var d = new MouseModeChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1436. var s = new Subscription(proxy);
  1437. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3642946540) /* MouseModeChanged (E_MOUSEMODECHANGED) */);
  1438. return s;
  1439. }
  1440. static UrhoEventAdapter<MouseModeChangedEventArgs> eventAdapterForMouseModeChanged;
  1441. public event Action<MouseModeChangedEventArgs> MouseModeChanged
  1442. {
  1443. add
  1444. {
  1445. if (eventAdapterForMouseModeChanged == null)
  1446. eventAdapterForMouseModeChanged = new UrhoEventAdapter<MouseModeChangedEventArgs>(typeof(Input));
  1447. eventAdapterForMouseModeChanged.AddManagedSubscriber(handle, value, SubscribeToMouseModeChanged);
  1448. }
  1449. remove { eventAdapterForMouseModeChanged.RemoveManagedSubscriber(handle, value); }
  1450. }
  1451. } /* class Input */
  1452. } /* namespace */
  1453. namespace Urho
  1454. {
  1455. public partial struct ExitRequestedEventArgs
  1456. {
  1457. public EventDataContainer EventData;
  1458. } /* struct ExitRequestedEventArgs */
  1459. public partial class Input
  1460. {
  1461. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ExitRequested += ...' instead.")]
  1462. public Subscription SubscribeToExitRequested(Action<ExitRequestedEventArgs> handler)
  1463. {
  1464. Action<IntPtr> proxy = (x) => { var d = new ExitRequestedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1465. var s = new Subscription(proxy);
  1466. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)899637200) /* ExitRequested (E_EXITREQUESTED) */);
  1467. return s;
  1468. }
  1469. static UrhoEventAdapter<ExitRequestedEventArgs> eventAdapterForExitRequested;
  1470. public event Action<ExitRequestedEventArgs> ExitRequested
  1471. {
  1472. add
  1473. {
  1474. if (eventAdapterForExitRequested == null)
  1475. eventAdapterForExitRequested = new UrhoEventAdapter<ExitRequestedEventArgs>(typeof(Input));
  1476. eventAdapterForExitRequested.AddManagedSubscriber(handle, value, SubscribeToExitRequested);
  1477. }
  1478. remove { eventAdapterForExitRequested.RemoveManagedSubscriber(handle, value); }
  1479. }
  1480. } /* class Input */
  1481. } /* namespace */
  1482. namespace Urho
  1483. {
  1484. public partial struct SDLRawInputEventArgs
  1485. {
  1486. public EventDataContainer EventData;
  1487. public IntPtr SDLEvent => EventData.get_IntPtr(unchecked((int)3036739231) /* SDLEvent (P_SDLEVENT) */);
  1488. public bool Consumed => EventData.get_bool(unchecked((int)1885648840) /* Consumed (P_CONSUMED) */);
  1489. } /* struct SDLRawInputEventArgs */
  1490. } /* namespace */
  1491. namespace Urho
  1492. {
  1493. public partial struct InputBeginEventArgs
  1494. {
  1495. public EventDataContainer EventData;
  1496. } /* struct InputBeginEventArgs */
  1497. } /* namespace */
  1498. namespace Urho
  1499. {
  1500. public partial struct InputEndEventArgs
  1501. {
  1502. public EventDataContainer EventData;
  1503. } /* struct InputEndEventArgs */
  1504. } /* namespace */
  1505. namespace Urho.Navigation
  1506. {
  1507. public partial struct NavigationMeshRebuiltEventArgs
  1508. {
  1509. public EventDataContainer EventData;
  1510. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1511. public NavigationMesh Mesh => EventData.get_NavigationMesh(unchecked((int)26614765) /* Mesh (P_MESH) */);
  1512. } /* struct NavigationMeshRebuiltEventArgs */
  1513. public partial class NavigationMesh
  1514. {
  1515. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NavigationMeshRebuilt += ...' instead.")]
  1516. public Subscription SubscribeToNavigationMeshRebuilt(Action<NavigationMeshRebuiltEventArgs> handler)
  1517. {
  1518. Action<IntPtr> proxy = (x) => { var d = new NavigationMeshRebuiltEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1519. var s = new Subscription(proxy);
  1520. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1184056682) /* NavigationMeshRebuilt (E_NAVIGATION_MESH_REBUILT) */);
  1521. return s;
  1522. }
  1523. static UrhoEventAdapter<NavigationMeshRebuiltEventArgs> eventAdapterForNavigationMeshRebuilt;
  1524. public event Action<NavigationMeshRebuiltEventArgs> NavigationMeshRebuilt
  1525. {
  1526. add
  1527. {
  1528. if (eventAdapterForNavigationMeshRebuilt == null)
  1529. eventAdapterForNavigationMeshRebuilt = new UrhoEventAdapter<NavigationMeshRebuiltEventArgs>(typeof(NavigationMesh));
  1530. eventAdapterForNavigationMeshRebuilt.AddManagedSubscriber(handle, value, SubscribeToNavigationMeshRebuilt);
  1531. }
  1532. remove { eventAdapterForNavigationMeshRebuilt.RemoveManagedSubscriber(handle, value); }
  1533. }
  1534. } /* class NavigationMesh */
  1535. } /* namespace */
  1536. namespace Urho.Navigation
  1537. {
  1538. public partial struct NavigationAreaRebuiltEventArgs
  1539. {
  1540. public EventDataContainer EventData;
  1541. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1542. public NavigationMesh Mesh => EventData.get_NavigationMesh(unchecked((int)26614765) /* Mesh (P_MESH) */);
  1543. public Vector3 BoundsMin => EventData.get_Vector3(unchecked((int)2452762269) /* BoundsMin (P_BOUNDSMIN) */);
  1544. public Vector3 BoundsMax => EventData.get_Vector3(unchecked((int)2452237487) /* BoundsMax (P_BOUNDSMAX) */);
  1545. } /* struct NavigationAreaRebuiltEventArgs */
  1546. public partial class NavigationMesh
  1547. {
  1548. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NavigationAreaRebuilt += ...' instead.")]
  1549. public Subscription SubscribeToNavigationAreaRebuilt(Action<NavigationAreaRebuiltEventArgs> handler)
  1550. {
  1551. Action<IntPtr> proxy = (x) => { var d = new NavigationAreaRebuiltEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1552. var s = new Subscription(proxy);
  1553. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2012037194) /* NavigationAreaRebuilt (E_NAVIGATION_AREA_REBUILT) */);
  1554. return s;
  1555. }
  1556. static UrhoEventAdapter<NavigationAreaRebuiltEventArgs> eventAdapterForNavigationAreaRebuilt;
  1557. public event Action<NavigationAreaRebuiltEventArgs> NavigationAreaRebuilt
  1558. {
  1559. add
  1560. {
  1561. if (eventAdapterForNavigationAreaRebuilt == null)
  1562. eventAdapterForNavigationAreaRebuilt = new UrhoEventAdapter<NavigationAreaRebuiltEventArgs>(typeof(NavigationMesh));
  1563. eventAdapterForNavigationAreaRebuilt.AddManagedSubscriber(handle, value, SubscribeToNavigationAreaRebuilt);
  1564. }
  1565. remove { eventAdapterForNavigationAreaRebuilt.RemoveManagedSubscriber(handle, value); }
  1566. }
  1567. } /* class NavigationMesh */
  1568. } /* namespace */
  1569. namespace Urho
  1570. {
  1571. public partial struct NavigationTileAddedEventArgs
  1572. {
  1573. public EventDataContainer EventData;
  1574. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1575. public NavigationMesh Mesh => EventData.get_NavigationMesh(unchecked((int)26614765) /* Mesh (P_MESH) */);
  1576. public IntVector2 Tile => EventData.get_IntVector2(unchecked((int)1228344686) /* Tile (P_TILE) */);
  1577. } /* struct NavigationTileAddedEventArgs */
  1578. } /* namespace */
  1579. namespace Urho
  1580. {
  1581. public partial struct NavigationTileRemovedEventArgs
  1582. {
  1583. public EventDataContainer EventData;
  1584. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1585. public NavigationMesh Mesh => EventData.get_NavigationMesh(unchecked((int)26614765) /* Mesh (P_MESH) */);
  1586. public IntVector2 Tile => EventData.get_IntVector2(unchecked((int)1228344686) /* Tile (P_TILE) */);
  1587. } /* struct NavigationTileRemovedEventArgs */
  1588. } /* namespace */
  1589. namespace Urho
  1590. {
  1591. public partial struct NavigationAllTilesRemovedEventArgs
  1592. {
  1593. public EventDataContainer EventData;
  1594. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1595. public NavigationMesh Mesh => EventData.get_NavigationMesh(unchecked((int)26614765) /* Mesh (P_MESH) */);
  1596. } /* struct NavigationAllTilesRemovedEventArgs */
  1597. } /* namespace */
  1598. namespace Urho.Navigation
  1599. {
  1600. public partial struct CrowdAgentFormationEventArgs
  1601. {
  1602. public EventDataContainer EventData;
  1603. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1604. public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
  1605. public uint Index => EventData.get_uint(unchecked((int)193188146) /* Index (P_INDEX) */);
  1606. public uint Size => EventData.get_uint(unchecked((int)448675873) /* Size (P_SIZE) */);
  1607. public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
  1608. } /* struct CrowdAgentFormationEventArgs */
  1609. } /* namespace */
  1610. namespace Urho
  1611. {
  1612. public partial struct CrowdAgentNodeFormationEventArgs
  1613. {
  1614. public EventDataContainer EventData;
  1615. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1616. public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
  1617. public uint Index => EventData.get_uint(unchecked((int)193188146) /* Index (P_INDEX) */);
  1618. public uint Size => EventData.get_uint(unchecked((int)448675873) /* Size (P_SIZE) */);
  1619. public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
  1620. } /* struct CrowdAgentNodeFormationEventArgs */
  1621. } /* namespace */
  1622. namespace Urho.Navigation
  1623. {
  1624. public partial struct CrowdAgentRepositionEventArgs
  1625. {
  1626. public EventDataContainer EventData;
  1627. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1628. public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
  1629. public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
  1630. public Vector3 Velocity => EventData.get_Vector3(unchecked((int)2845405629) /* Velocity (P_VELOCITY) */);
  1631. public bool Arrived => EventData.get_bool(unchecked((int)2501236845) /* Arrived (P_ARRIVED) */);
  1632. public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
  1633. } /* struct CrowdAgentRepositionEventArgs */
  1634. public partial class CrowdManager
  1635. {
  1636. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.CrowdAgentReposition += ...' instead.")]
  1637. public Subscription SubscribeToCrowdAgentReposition(Action<CrowdAgentRepositionEventArgs> handler)
  1638. {
  1639. Action<IntPtr> proxy = (x) => { var d = new CrowdAgentRepositionEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1640. var s = new Subscription(proxy);
  1641. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3736902068) /* CrowdAgentReposition (E_CROWD_AGENT_REPOSITION) */);
  1642. return s;
  1643. }
  1644. static UrhoEventAdapter<CrowdAgentRepositionEventArgs> eventAdapterForCrowdAgentReposition;
  1645. public event Action<CrowdAgentRepositionEventArgs> CrowdAgentReposition
  1646. {
  1647. add
  1648. {
  1649. if (eventAdapterForCrowdAgentReposition == null)
  1650. eventAdapterForCrowdAgentReposition = new UrhoEventAdapter<CrowdAgentRepositionEventArgs>(typeof(CrowdManager));
  1651. eventAdapterForCrowdAgentReposition.AddManagedSubscriber(handle, value, SubscribeToCrowdAgentReposition);
  1652. }
  1653. remove { eventAdapterForCrowdAgentReposition.RemoveManagedSubscriber(handle, value); }
  1654. }
  1655. } /* class CrowdManager */
  1656. } /* namespace */
  1657. namespace Urho
  1658. {
  1659. public partial struct CrowdAgentNodeRepositionEventArgs
  1660. {
  1661. public EventDataContainer EventData;
  1662. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1663. public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
  1664. public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
  1665. public Vector3 Velocity => EventData.get_Vector3(unchecked((int)2845405629) /* Velocity (P_VELOCITY) */);
  1666. public bool Arrived => EventData.get_bool(unchecked((int)2501236845) /* Arrived (P_ARRIVED) */);
  1667. public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
  1668. } /* struct CrowdAgentNodeRepositionEventArgs */
  1669. } /* namespace */
  1670. namespace Urho.Navigation
  1671. {
  1672. public partial struct CrowdAgentFailureEventArgs
  1673. {
  1674. public EventDataContainer EventData;
  1675. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1676. public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
  1677. public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
  1678. public Vector3 Velocity => EventData.get_Vector3(unchecked((int)2845405629) /* Velocity (P_VELOCITY) */);
  1679. public int CrowdAgentState => EventData.get_int(unchecked((int)1729065465) /* CrowdAgentState (P_CROWD_AGENT_STATE) */);
  1680. public int CrowdTargetState => EventData.get_int(unchecked((int)928574867) /* CrowdTargetState (P_CROWD_TARGET_STATE) */);
  1681. } /* struct CrowdAgentFailureEventArgs */
  1682. public partial class CrowdManager
  1683. {
  1684. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.CrowdAgentFailure += ...' instead.")]
  1685. public Subscription SubscribeToCrowdAgentFailure(Action<CrowdAgentFailureEventArgs> handler)
  1686. {
  1687. Action<IntPtr> proxy = (x) => { var d = new CrowdAgentFailureEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1688. var s = new Subscription(proxy);
  1689. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)487208914) /* CrowdAgentFailure (E_CROWD_AGENT_FAILURE) */);
  1690. return s;
  1691. }
  1692. static UrhoEventAdapter<CrowdAgentFailureEventArgs> eventAdapterForCrowdAgentFailure;
  1693. public event Action<CrowdAgentFailureEventArgs> CrowdAgentFailure
  1694. {
  1695. add
  1696. {
  1697. if (eventAdapterForCrowdAgentFailure == null)
  1698. eventAdapterForCrowdAgentFailure = new UrhoEventAdapter<CrowdAgentFailureEventArgs>(typeof(CrowdManager));
  1699. eventAdapterForCrowdAgentFailure.AddManagedSubscriber(handle, value, SubscribeToCrowdAgentFailure);
  1700. }
  1701. remove { eventAdapterForCrowdAgentFailure.RemoveManagedSubscriber(handle, value); }
  1702. }
  1703. } /* class CrowdManager */
  1704. } /* namespace */
  1705. namespace Urho
  1706. {
  1707. public partial struct CrowdAgentNodeFailureEventArgs
  1708. {
  1709. public EventDataContainer EventData;
  1710. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1711. public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
  1712. public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
  1713. public Vector3 Velocity => EventData.get_Vector3(unchecked((int)2845405629) /* Velocity (P_VELOCITY) */);
  1714. public int CrowdAgentState => EventData.get_int(unchecked((int)1729065465) /* CrowdAgentState (P_CROWD_AGENT_STATE) */);
  1715. public int CrowdTargetState => EventData.get_int(unchecked((int)928574867) /* CrowdTargetState (P_CROWD_TARGET_STATE) */);
  1716. } /* struct CrowdAgentNodeFailureEventArgs */
  1717. } /* namespace */
  1718. namespace Urho.Navigation
  1719. {
  1720. public partial struct CrowdAgentStateChangedEventArgs
  1721. {
  1722. public EventDataContainer EventData;
  1723. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1724. public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
  1725. public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
  1726. public Vector3 Velocity => EventData.get_Vector3(unchecked((int)2845405629) /* Velocity (P_VELOCITY) */);
  1727. public int CrowdAgentState => EventData.get_int(unchecked((int)1729065465) /* CrowdAgentState (P_CROWD_AGENT_STATE) */);
  1728. public int CrowdTargetState => EventData.get_int(unchecked((int)928574867) /* CrowdTargetState (P_CROWD_TARGET_STATE) */);
  1729. } /* struct CrowdAgentStateChangedEventArgs */
  1730. public partial class CrowdManager
  1731. {
  1732. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.CrowdAgentStateChanged += ...' instead.")]
  1733. public Subscription SubscribeToCrowdAgentStateChanged(Action<CrowdAgentStateChangedEventArgs> handler)
  1734. {
  1735. Action<IntPtr> proxy = (x) => { var d = new CrowdAgentStateChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1736. var s = new Subscription(proxy);
  1737. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1897461467) /* CrowdAgentStateChanged (E_CROWD_AGENT_STATE_CHANGED) */);
  1738. return s;
  1739. }
  1740. static UrhoEventAdapter<CrowdAgentStateChangedEventArgs> eventAdapterForCrowdAgentStateChanged;
  1741. public event Action<CrowdAgentStateChangedEventArgs> CrowdAgentStateChanged
  1742. {
  1743. add
  1744. {
  1745. if (eventAdapterForCrowdAgentStateChanged == null)
  1746. eventAdapterForCrowdAgentStateChanged = new UrhoEventAdapter<CrowdAgentStateChangedEventArgs>(typeof(CrowdManager));
  1747. eventAdapterForCrowdAgentStateChanged.AddManagedSubscriber(handle, value, SubscribeToCrowdAgentStateChanged);
  1748. }
  1749. remove { eventAdapterForCrowdAgentStateChanged.RemoveManagedSubscriber(handle, value); }
  1750. }
  1751. } /* class CrowdManager */
  1752. } /* namespace */
  1753. namespace Urho
  1754. {
  1755. public partial struct CrowdAgentNodeStateChangedEventArgs
  1756. {
  1757. public EventDataContainer EventData;
  1758. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1759. public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
  1760. public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
  1761. public Vector3 Velocity => EventData.get_Vector3(unchecked((int)2845405629) /* Velocity (P_VELOCITY) */);
  1762. public int CrowdAgentState => EventData.get_int(unchecked((int)1729065465) /* CrowdAgentState (P_CROWD_AGENT_STATE) */);
  1763. public int CrowdTargetState => EventData.get_int(unchecked((int)928574867) /* CrowdTargetState (P_CROWD_TARGET_STATE) */);
  1764. } /* struct CrowdAgentNodeStateChangedEventArgs */
  1765. } /* namespace */
  1766. namespace Urho.Navigation
  1767. {
  1768. public partial struct NavigationObstacleAddedEventArgs
  1769. {
  1770. public EventDataContainer EventData;
  1771. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1772. public Obstacle Obstacle => EventData.get_Obstacle(unchecked((int)1080511791) /* Obstacle (P_OBSTACLE) */);
  1773. public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
  1774. public float Radius => EventData.get_float(unchecked((int)4247146802) /* Radius (P_RADIUS) */);
  1775. public float Height => EventData.get_float(unchecked((int)380957255) /* Height (P_HEIGHT) */);
  1776. } /* struct NavigationObstacleAddedEventArgs */
  1777. public partial class DynamicNavigationMesh
  1778. {
  1779. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NavigationObstacleAdded += ...' instead.")]
  1780. public Subscription SubscribeToNavigationObstacleAdded(Action<NavigationObstacleAddedEventArgs> handler)
  1781. {
  1782. Action<IntPtr> proxy = (x) => { var d = new NavigationObstacleAddedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1783. var s = new Subscription(proxy);
  1784. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)842705885) /* NavigationObstacleAdded (E_NAVIGATION_OBSTACLE_ADDED) */);
  1785. return s;
  1786. }
  1787. static UrhoEventAdapter<NavigationObstacleAddedEventArgs> eventAdapterForNavigationObstacleAdded;
  1788. public event Action<NavigationObstacleAddedEventArgs> NavigationObstacleAdded
  1789. {
  1790. add
  1791. {
  1792. if (eventAdapterForNavigationObstacleAdded == null)
  1793. eventAdapterForNavigationObstacleAdded = new UrhoEventAdapter<NavigationObstacleAddedEventArgs>(typeof(DynamicNavigationMesh));
  1794. eventAdapterForNavigationObstacleAdded.AddManagedSubscriber(handle, value, SubscribeToNavigationObstacleAdded);
  1795. }
  1796. remove { eventAdapterForNavigationObstacleAdded.RemoveManagedSubscriber(handle, value); }
  1797. }
  1798. } /* class DynamicNavigationMesh */
  1799. } /* namespace */
  1800. namespace Urho.Navigation
  1801. {
  1802. public partial struct NavigationObstacleRemovedEventArgs
  1803. {
  1804. public EventDataContainer EventData;
  1805. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  1806. public Obstacle Obstacle => EventData.get_Obstacle(unchecked((int)1080511791) /* Obstacle (P_OBSTACLE) */);
  1807. public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
  1808. public float Radius => EventData.get_float(unchecked((int)4247146802) /* Radius (P_RADIUS) */);
  1809. public float Height => EventData.get_float(unchecked((int)380957255) /* Height (P_HEIGHT) */);
  1810. } /* struct NavigationObstacleRemovedEventArgs */
  1811. public partial class DynamicNavigationMesh
  1812. {
  1813. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NavigationObstacleRemoved += ...' instead.")]
  1814. public Subscription SubscribeToNavigationObstacleRemoved(Action<NavigationObstacleRemovedEventArgs> handler)
  1815. {
  1816. Action<IntPtr> proxy = (x) => { var d = new NavigationObstacleRemovedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1817. var s = new Subscription(proxy);
  1818. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3812914173) /* NavigationObstacleRemoved (E_NAVIGATION_OBSTACLE_REMOVED) */);
  1819. return s;
  1820. }
  1821. static UrhoEventAdapter<NavigationObstacleRemovedEventArgs> eventAdapterForNavigationObstacleRemoved;
  1822. public event Action<NavigationObstacleRemovedEventArgs> NavigationObstacleRemoved
  1823. {
  1824. add
  1825. {
  1826. if (eventAdapterForNavigationObstacleRemoved == null)
  1827. eventAdapterForNavigationObstacleRemoved = new UrhoEventAdapter<NavigationObstacleRemovedEventArgs>(typeof(DynamicNavigationMesh));
  1828. eventAdapterForNavigationObstacleRemoved.AddManagedSubscriber(handle, value, SubscribeToNavigationObstacleRemoved);
  1829. }
  1830. remove { eventAdapterForNavigationObstacleRemoved.RemoveManagedSubscriber(handle, value); }
  1831. }
  1832. } /* class DynamicNavigationMesh */
  1833. } /* namespace */
  1834. namespace Urho.Network
  1835. {
  1836. public partial struct ServerConnectedEventArgs
  1837. {
  1838. public EventDataContainer EventData;
  1839. } /* struct ServerConnectedEventArgs */
  1840. public partial class Network
  1841. {
  1842. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ServerConnected += ...' instead.")]
  1843. public Subscription SubscribeToServerConnected(Action<ServerConnectedEventArgs> handler)
  1844. {
  1845. Action<IntPtr> proxy = (x) => { var d = new ServerConnectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1846. var s = new Subscription(proxy);
  1847. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4052463078) /* ServerConnected (E_SERVERCONNECTED) */);
  1848. return s;
  1849. }
  1850. static UrhoEventAdapter<ServerConnectedEventArgs> eventAdapterForServerConnected;
  1851. public event Action<ServerConnectedEventArgs> ServerConnected
  1852. {
  1853. add
  1854. {
  1855. if (eventAdapterForServerConnected == null)
  1856. eventAdapterForServerConnected = new UrhoEventAdapter<ServerConnectedEventArgs>(typeof(Network));
  1857. eventAdapterForServerConnected.AddManagedSubscriber(handle, value, SubscribeToServerConnected);
  1858. }
  1859. remove { eventAdapterForServerConnected.RemoveManagedSubscriber(handle, value); }
  1860. }
  1861. } /* class Network */
  1862. } /* namespace */
  1863. namespace Urho.Network
  1864. {
  1865. public partial struct ServerDisconnectedEventArgs
  1866. {
  1867. public EventDataContainer EventData;
  1868. } /* struct ServerDisconnectedEventArgs */
  1869. public partial class Network
  1870. {
  1871. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ServerDisconnected += ...' instead.")]
  1872. public Subscription SubscribeToServerDisconnected(Action<ServerDisconnectedEventArgs> handler)
  1873. {
  1874. Action<IntPtr> proxy = (x) => { var d = new ServerDisconnectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1875. var s = new Subscription(proxy);
  1876. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)830421502) /* ServerDisconnected (E_SERVERDISCONNECTED) */);
  1877. return s;
  1878. }
  1879. static UrhoEventAdapter<ServerDisconnectedEventArgs> eventAdapterForServerDisconnected;
  1880. public event Action<ServerDisconnectedEventArgs> ServerDisconnected
  1881. {
  1882. add
  1883. {
  1884. if (eventAdapterForServerDisconnected == null)
  1885. eventAdapterForServerDisconnected = new UrhoEventAdapter<ServerDisconnectedEventArgs>(typeof(Network));
  1886. eventAdapterForServerDisconnected.AddManagedSubscriber(handle, value, SubscribeToServerDisconnected);
  1887. }
  1888. remove { eventAdapterForServerDisconnected.RemoveManagedSubscriber(handle, value); }
  1889. }
  1890. } /* class Network */
  1891. } /* namespace */
  1892. namespace Urho.Network
  1893. {
  1894. public partial struct ConnectFailedEventArgs
  1895. {
  1896. public EventDataContainer EventData;
  1897. } /* struct ConnectFailedEventArgs */
  1898. public partial class Network
  1899. {
  1900. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ConnectFailed += ...' instead.")]
  1901. public Subscription SubscribeToConnectFailed(Action<ConnectFailedEventArgs> handler)
  1902. {
  1903. Action<IntPtr> proxy = (x) => { var d = new ConnectFailedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1904. var s = new Subscription(proxy);
  1905. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1377395431) /* ConnectFailed (E_CONNECTFAILED) */);
  1906. return s;
  1907. }
  1908. static UrhoEventAdapter<ConnectFailedEventArgs> eventAdapterForConnectFailed;
  1909. public event Action<ConnectFailedEventArgs> ConnectFailed
  1910. {
  1911. add
  1912. {
  1913. if (eventAdapterForConnectFailed == null)
  1914. eventAdapterForConnectFailed = new UrhoEventAdapter<ConnectFailedEventArgs>(typeof(Network));
  1915. eventAdapterForConnectFailed.AddManagedSubscriber(handle, value, SubscribeToConnectFailed);
  1916. }
  1917. remove { eventAdapterForConnectFailed.RemoveManagedSubscriber(handle, value); }
  1918. }
  1919. } /* class Network */
  1920. } /* namespace */
  1921. namespace Urho.Network
  1922. {
  1923. public partial struct ClientConnectedEventArgs
  1924. {
  1925. public EventDataContainer EventData;
  1926. public Connection Connection => EventData.get_Connection(unchecked((int)2179499454) /* Connection (P_CONNECTION) */);
  1927. } /* struct ClientConnectedEventArgs */
  1928. public partial class Network
  1929. {
  1930. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ClientConnected += ...' instead.")]
  1931. public Subscription SubscribeToClientConnected(Action<ClientConnectedEventArgs> handler)
  1932. {
  1933. Action<IntPtr> proxy = (x) => { var d = new ClientConnectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1934. var s = new Subscription(proxy);
  1935. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4110472926) /* ClientConnected (E_CLIENTCONNECTED) */);
  1936. return s;
  1937. }
  1938. static UrhoEventAdapter<ClientConnectedEventArgs> eventAdapterForClientConnected;
  1939. public event Action<ClientConnectedEventArgs> ClientConnected
  1940. {
  1941. add
  1942. {
  1943. if (eventAdapterForClientConnected == null)
  1944. eventAdapterForClientConnected = new UrhoEventAdapter<ClientConnectedEventArgs>(typeof(Network));
  1945. eventAdapterForClientConnected.AddManagedSubscriber(handle, value, SubscribeToClientConnected);
  1946. }
  1947. remove { eventAdapterForClientConnected.RemoveManagedSubscriber(handle, value); }
  1948. }
  1949. } /* class Network */
  1950. } /* namespace */
  1951. namespace Urho.Network
  1952. {
  1953. public partial struct ClientDisconnectedEventArgs
  1954. {
  1955. public EventDataContainer EventData;
  1956. public Connection Connection => EventData.get_Connection(unchecked((int)2179499454) /* Connection (P_CONNECTION) */);
  1957. } /* struct ClientDisconnectedEventArgs */
  1958. public partial class Network
  1959. {
  1960. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ClientDisconnected += ...' instead.")]
  1961. public Subscription SubscribeToClientDisconnected(Action<ClientDisconnectedEventArgs> handler)
  1962. {
  1963. Action<IntPtr> proxy = (x) => { var d = new ClientDisconnectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1964. var s = new Subscription(proxy);
  1965. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4177677062) /* ClientDisconnected (E_CLIENTDISCONNECTED) */);
  1966. return s;
  1967. }
  1968. static UrhoEventAdapter<ClientDisconnectedEventArgs> eventAdapterForClientDisconnected;
  1969. public event Action<ClientDisconnectedEventArgs> ClientDisconnected
  1970. {
  1971. add
  1972. {
  1973. if (eventAdapterForClientDisconnected == null)
  1974. eventAdapterForClientDisconnected = new UrhoEventAdapter<ClientDisconnectedEventArgs>(typeof(Network));
  1975. eventAdapterForClientDisconnected.AddManagedSubscriber(handle, value, SubscribeToClientDisconnected);
  1976. }
  1977. remove { eventAdapterForClientDisconnected.RemoveManagedSubscriber(handle, value); }
  1978. }
  1979. } /* class Network */
  1980. } /* namespace */
  1981. namespace Urho.Network
  1982. {
  1983. public partial struct ClientIdentityEventArgs
  1984. {
  1985. public EventDataContainer EventData;
  1986. public Connection Connection => EventData.get_Connection(unchecked((int)2179499454) /* Connection (P_CONNECTION) */);
  1987. public bool Allow => EventData.get_bool(unchecked((int)2467149353) /* Allow (P_ALLOW) */);
  1988. } /* struct ClientIdentityEventArgs */
  1989. public partial class Connection
  1990. {
  1991. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ClientIdentity += ...' instead.")]
  1992. public Subscription SubscribeToClientIdentity(Action<ClientIdentityEventArgs> handler)
  1993. {
  1994. Action<IntPtr> proxy = (x) => { var d = new ClientIdentityEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  1995. var s = new Subscription(proxy);
  1996. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)165479177) /* ClientIdentity (E_CLIENTIDENTITY) */);
  1997. return s;
  1998. }
  1999. static UrhoEventAdapter<ClientIdentityEventArgs> eventAdapterForClientIdentity;
  2000. public event Action<ClientIdentityEventArgs> ClientIdentity
  2001. {
  2002. add
  2003. {
  2004. if (eventAdapterForClientIdentity == null)
  2005. eventAdapterForClientIdentity = new UrhoEventAdapter<ClientIdentityEventArgs>(typeof(Connection));
  2006. eventAdapterForClientIdentity.AddManagedSubscriber(handle, value, SubscribeToClientIdentity);
  2007. }
  2008. remove { eventAdapterForClientIdentity.RemoveManagedSubscriber(handle, value); }
  2009. }
  2010. } /* class Connection */
  2011. } /* namespace */
  2012. namespace Urho.Network
  2013. {
  2014. public partial struct ClientSceneLoadedEventArgs
  2015. {
  2016. public EventDataContainer EventData;
  2017. public Connection Connection => EventData.get_Connection(unchecked((int)2179499454) /* Connection (P_CONNECTION) */);
  2018. } /* struct ClientSceneLoadedEventArgs */
  2019. public partial class Connection
  2020. {
  2021. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ClientSceneLoaded += ...' instead.")]
  2022. public Subscription SubscribeToClientSceneLoaded(Action<ClientSceneLoadedEventArgs> handler)
  2023. {
  2024. Action<IntPtr> proxy = (x) => { var d = new ClientSceneLoadedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2025. var s = new Subscription(proxy);
  2026. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2870394214) /* ClientSceneLoaded (E_CLIENTSCENELOADED) */);
  2027. return s;
  2028. }
  2029. static UrhoEventAdapter<ClientSceneLoadedEventArgs> eventAdapterForClientSceneLoaded;
  2030. public event Action<ClientSceneLoadedEventArgs> ClientSceneLoaded
  2031. {
  2032. add
  2033. {
  2034. if (eventAdapterForClientSceneLoaded == null)
  2035. eventAdapterForClientSceneLoaded = new UrhoEventAdapter<ClientSceneLoadedEventArgs>(typeof(Connection));
  2036. eventAdapterForClientSceneLoaded.AddManagedSubscriber(handle, value, SubscribeToClientSceneLoaded);
  2037. }
  2038. remove { eventAdapterForClientSceneLoaded.RemoveManagedSubscriber(handle, value); }
  2039. }
  2040. } /* class Connection */
  2041. } /* namespace */
  2042. namespace Urho.Network
  2043. {
  2044. public partial struct NetworkMessageEventArgs
  2045. {
  2046. public EventDataContainer EventData;
  2047. public Connection Connection => EventData.get_Connection(unchecked((int)2179499454) /* Connection (P_CONNECTION) */);
  2048. public int MessageID => EventData.get_int(unchecked((int)169676386) /* MessageID (P_MESSAGEID) */);
  2049. public byte[] Data => EventData.get_Buffer(unchecked((int)1558284138) /* Data (P_DATA) */);
  2050. } /* struct NetworkMessageEventArgs */
  2051. public partial class Network
  2052. {
  2053. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NetworkMessage += ...' instead.")]
  2054. public Subscription SubscribeToNetworkMessage(Action<NetworkMessageEventArgs> handler)
  2055. {
  2056. Action<IntPtr> proxy = (x) => { var d = new NetworkMessageEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2057. var s = new Subscription(proxy);
  2058. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)511054905) /* NetworkMessage (E_NETWORKMESSAGE) */);
  2059. return s;
  2060. }
  2061. static UrhoEventAdapter<NetworkMessageEventArgs> eventAdapterForNetworkMessage;
  2062. public event Action<NetworkMessageEventArgs> NetworkMessage
  2063. {
  2064. add
  2065. {
  2066. if (eventAdapterForNetworkMessage == null)
  2067. eventAdapterForNetworkMessage = new UrhoEventAdapter<NetworkMessageEventArgs>(typeof(Network));
  2068. eventAdapterForNetworkMessage.AddManagedSubscriber(handle, value, SubscribeToNetworkMessage);
  2069. }
  2070. remove { eventAdapterForNetworkMessage.RemoveManagedSubscriber(handle, value); }
  2071. }
  2072. } /* class Network */
  2073. } /* namespace */
  2074. namespace Urho.Network
  2075. {
  2076. public partial struct NetworkUpdateEventArgs
  2077. {
  2078. public EventDataContainer EventData;
  2079. } /* struct NetworkUpdateEventArgs */
  2080. public partial class Network
  2081. {
  2082. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NetworkUpdate += ...' instead.")]
  2083. public Subscription SubscribeToNetworkUpdate(Action<NetworkUpdateEventArgs> handler)
  2084. {
  2085. Action<IntPtr> proxy = (x) => { var d = new NetworkUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2086. var s = new Subscription(proxy);
  2087. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3682502807) /* NetworkUpdate (E_NETWORKUPDATE) */);
  2088. return s;
  2089. }
  2090. static UrhoEventAdapter<NetworkUpdateEventArgs> eventAdapterForNetworkUpdate;
  2091. public event Action<NetworkUpdateEventArgs> NetworkUpdate
  2092. {
  2093. add
  2094. {
  2095. if (eventAdapterForNetworkUpdate == null)
  2096. eventAdapterForNetworkUpdate = new UrhoEventAdapter<NetworkUpdateEventArgs>(typeof(Network));
  2097. eventAdapterForNetworkUpdate.AddManagedSubscriber(handle, value, SubscribeToNetworkUpdate);
  2098. }
  2099. remove { eventAdapterForNetworkUpdate.RemoveManagedSubscriber(handle, value); }
  2100. }
  2101. } /* class Network */
  2102. } /* namespace */
  2103. namespace Urho.Network
  2104. {
  2105. public partial struct NetworkUpdateSentEventArgs
  2106. {
  2107. public EventDataContainer EventData;
  2108. } /* struct NetworkUpdateSentEventArgs */
  2109. public partial class Network
  2110. {
  2111. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NetworkUpdateSent += ...' instead.")]
  2112. public Subscription SubscribeToNetworkUpdateSent(Action<NetworkUpdateSentEventArgs> handler)
  2113. {
  2114. Action<IntPtr> proxy = (x) => { var d = new NetworkUpdateSentEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2115. var s = new Subscription(proxy);
  2116. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1495044303) /* NetworkUpdateSent (E_NETWORKUPDATESENT) */);
  2117. return s;
  2118. }
  2119. static UrhoEventAdapter<NetworkUpdateSentEventArgs> eventAdapterForNetworkUpdateSent;
  2120. public event Action<NetworkUpdateSentEventArgs> NetworkUpdateSent
  2121. {
  2122. add
  2123. {
  2124. if (eventAdapterForNetworkUpdateSent == null)
  2125. eventAdapterForNetworkUpdateSent = new UrhoEventAdapter<NetworkUpdateSentEventArgs>(typeof(Network));
  2126. eventAdapterForNetworkUpdateSent.AddManagedSubscriber(handle, value, SubscribeToNetworkUpdateSent);
  2127. }
  2128. remove { eventAdapterForNetworkUpdateSent.RemoveManagedSubscriber(handle, value); }
  2129. }
  2130. } /* class Network */
  2131. } /* namespace */
  2132. namespace Urho.Network
  2133. {
  2134. public partial struct NetworkSceneLoadFailedEventArgs
  2135. {
  2136. public EventDataContainer EventData;
  2137. public Connection Connection => EventData.get_Connection(unchecked((int)2179499454) /* Connection (P_CONNECTION) */);
  2138. } /* struct NetworkSceneLoadFailedEventArgs */
  2139. public partial class Network
  2140. {
  2141. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NetworkSceneLoadFailed += ...' instead.")]
  2142. public Subscription SubscribeToNetworkSceneLoadFailed(Action<NetworkSceneLoadFailedEventArgs> handler)
  2143. {
  2144. Action<IntPtr> proxy = (x) => { var d = new NetworkSceneLoadFailedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2145. var s = new Subscription(proxy);
  2146. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3832128641) /* NetworkSceneLoadFailed (E_NETWORKSCENELOADFAILED) */);
  2147. return s;
  2148. }
  2149. static UrhoEventAdapter<NetworkSceneLoadFailedEventArgs> eventAdapterForNetworkSceneLoadFailed;
  2150. public event Action<NetworkSceneLoadFailedEventArgs> NetworkSceneLoadFailed
  2151. {
  2152. add
  2153. {
  2154. if (eventAdapterForNetworkSceneLoadFailed == null)
  2155. eventAdapterForNetworkSceneLoadFailed = new UrhoEventAdapter<NetworkSceneLoadFailedEventArgs>(typeof(Network));
  2156. eventAdapterForNetworkSceneLoadFailed.AddManagedSubscriber(handle, value, SubscribeToNetworkSceneLoadFailed);
  2157. }
  2158. remove { eventAdapterForNetworkSceneLoadFailed.RemoveManagedSubscriber(handle, value); }
  2159. }
  2160. } /* class Network */
  2161. } /* namespace */
  2162. namespace Urho.Network
  2163. {
  2164. public partial struct RemoteEventDataEventArgs
  2165. {
  2166. public EventDataContainer EventData;
  2167. public Connection Connection => EventData.get_Connection(unchecked((int)2179499454) /* Connection (P_CONNECTION) */);
  2168. } /* struct RemoteEventDataEventArgs */
  2169. } /* namespace */
  2170. namespace Urho.Physics
  2171. {
  2172. public partial struct PhysicsPreStepEventArgs
  2173. {
  2174. public EventDataContainer EventData;
  2175. public PhysicsWorld World => EventData.get_PhysicsWorld(unchecked((int)4158893746) /* World (P_WORLD) */);
  2176. public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
  2177. } /* struct PhysicsPreStepEventArgs */
  2178. public partial class PhysicsWorld
  2179. {
  2180. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PhysicsPreStep += ...' instead.")]
  2181. public Subscription SubscribeToPhysicsPreStep(Action<PhysicsPreStepEventArgs> handler)
  2182. {
  2183. Action<IntPtr> proxy = (x) => { var d = new PhysicsPreStepEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2184. var s = new Subscription(proxy);
  2185. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2540038056) /* PhysicsPreStep (E_PHYSICSPRESTEP) */);
  2186. return s;
  2187. }
  2188. static UrhoEventAdapter<PhysicsPreStepEventArgs> eventAdapterForPhysicsPreStep;
  2189. public event Action<PhysicsPreStepEventArgs> PhysicsPreStep
  2190. {
  2191. add
  2192. {
  2193. if (eventAdapterForPhysicsPreStep == null)
  2194. eventAdapterForPhysicsPreStep = new UrhoEventAdapter<PhysicsPreStepEventArgs>(typeof(PhysicsWorld));
  2195. eventAdapterForPhysicsPreStep.AddManagedSubscriber(handle, value, SubscribeToPhysicsPreStep);
  2196. }
  2197. remove { eventAdapterForPhysicsPreStep.RemoveManagedSubscriber(handle, value); }
  2198. }
  2199. } /* class PhysicsWorld */
  2200. } /* namespace */
  2201. namespace Urho.Physics
  2202. {
  2203. public partial struct PhysicsPostStepEventArgs
  2204. {
  2205. public EventDataContainer EventData;
  2206. public PhysicsWorld World => EventData.get_PhysicsWorld(unchecked((int)4158893746) /* World (P_WORLD) */);
  2207. public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
  2208. } /* struct PhysicsPostStepEventArgs */
  2209. public partial class PhysicsWorld
  2210. {
  2211. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PhysicsPostStep += ...' instead.")]
  2212. public Subscription SubscribeToPhysicsPostStep(Action<PhysicsPostStepEventArgs> handler)
  2213. {
  2214. Action<IntPtr> proxy = (x) => { var d = new PhysicsPostStepEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2215. var s = new Subscription(proxy);
  2216. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4200987859) /* PhysicsPostStep (E_PHYSICSPOSTSTEP) */);
  2217. return s;
  2218. }
  2219. static UrhoEventAdapter<PhysicsPostStepEventArgs> eventAdapterForPhysicsPostStep;
  2220. public event Action<PhysicsPostStepEventArgs> PhysicsPostStep
  2221. {
  2222. add
  2223. {
  2224. if (eventAdapterForPhysicsPostStep == null)
  2225. eventAdapterForPhysicsPostStep = new UrhoEventAdapter<PhysicsPostStepEventArgs>(typeof(PhysicsWorld));
  2226. eventAdapterForPhysicsPostStep.AddManagedSubscriber(handle, value, SubscribeToPhysicsPostStep);
  2227. }
  2228. remove { eventAdapterForPhysicsPostStep.RemoveManagedSubscriber(handle, value); }
  2229. }
  2230. } /* class PhysicsWorld */
  2231. } /* namespace */
  2232. namespace Urho.Physics
  2233. {
  2234. public partial struct PhysicsCollisionStartEventArgs
  2235. {
  2236. public EventDataContainer EventData;
  2237. public PhysicsWorld World => EventData.get_PhysicsWorld(unchecked((int)4158893746) /* World (P_WORLD) */);
  2238. public Node NodeA => EventData.get_Node(unchecked((int)2376629471) /* NodeA (P_NODEA) */);
  2239. public Node NodeB => EventData.get_Node(unchecked((int)2376629472) /* NodeB (P_NODEB) */);
  2240. public RigidBody BodyA => EventData.get_RigidBody(unchecked((int)1588071871) /* BodyA (P_BODYA) */);
  2241. public RigidBody BodyB => EventData.get_RigidBody(unchecked((int)1588071872) /* BodyB (P_BODYB) */);
  2242. public bool Trigger => EventData.get_bool(unchecked((int)2995104504) /* Trigger (P_TRIGGER) */);
  2243. public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
  2244. } /* struct PhysicsCollisionStartEventArgs */
  2245. public partial class PhysicsWorld
  2246. {
  2247. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PhysicsCollisionStart += ...' instead.")]
  2248. public Subscription SubscribeToPhysicsCollisionStart(Action<PhysicsCollisionStartEventArgs> handler)
  2249. {
  2250. Action<IntPtr> proxy = (x) => { var d = new PhysicsCollisionStartEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2251. var s = new Subscription(proxy);
  2252. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3207652439) /* PhysicsCollisionStart (E_PHYSICSCOLLISIONSTART) */);
  2253. return s;
  2254. }
  2255. static UrhoEventAdapter<PhysicsCollisionStartEventArgs> eventAdapterForPhysicsCollisionStart;
  2256. public event Action<PhysicsCollisionStartEventArgs> PhysicsCollisionStart
  2257. {
  2258. add
  2259. {
  2260. if (eventAdapterForPhysicsCollisionStart == null)
  2261. eventAdapterForPhysicsCollisionStart = new UrhoEventAdapter<PhysicsCollisionStartEventArgs>(typeof(PhysicsWorld));
  2262. eventAdapterForPhysicsCollisionStart.AddManagedSubscriber(handle, value, SubscribeToPhysicsCollisionStart);
  2263. }
  2264. remove { eventAdapterForPhysicsCollisionStart.RemoveManagedSubscriber(handle, value); }
  2265. }
  2266. } /* class PhysicsWorld */
  2267. } /* namespace */
  2268. namespace Urho.Physics
  2269. {
  2270. public partial struct PhysicsCollisionEventArgs
  2271. {
  2272. public EventDataContainer EventData;
  2273. public PhysicsWorld World => EventData.get_PhysicsWorld(unchecked((int)4158893746) /* World (P_WORLD) */);
  2274. public Node NodeA => EventData.get_Node(unchecked((int)2376629471) /* NodeA (P_NODEA) */);
  2275. public Node NodeB => EventData.get_Node(unchecked((int)2376629472) /* NodeB (P_NODEB) */);
  2276. public RigidBody BodyA => EventData.get_RigidBody(unchecked((int)1588071871) /* BodyA (P_BODYA) */);
  2277. public RigidBody BodyB => EventData.get_RigidBody(unchecked((int)1588071872) /* BodyB (P_BODYB) */);
  2278. public bool Trigger => EventData.get_bool(unchecked((int)2995104504) /* Trigger (P_TRIGGER) */);
  2279. public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
  2280. } /* struct PhysicsCollisionEventArgs */
  2281. public partial class PhysicsWorld
  2282. {
  2283. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PhysicsCollision += ...' instead.")]
  2284. public Subscription SubscribeToPhysicsCollision(Action<PhysicsCollisionEventArgs> handler)
  2285. {
  2286. Action<IntPtr> proxy = (x) => { var d = new PhysicsCollisionEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2287. var s = new Subscription(proxy);
  2288. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2202188235) /* PhysicsCollision (E_PHYSICSCOLLISION) */);
  2289. return s;
  2290. }
  2291. static UrhoEventAdapter<PhysicsCollisionEventArgs> eventAdapterForPhysicsCollision;
  2292. public event Action<PhysicsCollisionEventArgs> PhysicsCollision
  2293. {
  2294. add
  2295. {
  2296. if (eventAdapterForPhysicsCollision == null)
  2297. eventAdapterForPhysicsCollision = new UrhoEventAdapter<PhysicsCollisionEventArgs>(typeof(PhysicsWorld));
  2298. eventAdapterForPhysicsCollision.AddManagedSubscriber(handle, value, SubscribeToPhysicsCollision);
  2299. }
  2300. remove { eventAdapterForPhysicsCollision.RemoveManagedSubscriber(handle, value); }
  2301. }
  2302. } /* class PhysicsWorld */
  2303. } /* namespace */
  2304. namespace Urho.Physics
  2305. {
  2306. public partial struct PhysicsCollisionEndEventArgs
  2307. {
  2308. public EventDataContainer EventData;
  2309. public PhysicsWorld World => EventData.get_PhysicsWorld(unchecked((int)4158893746) /* World (P_WORLD) */);
  2310. public Node NodeA => EventData.get_Node(unchecked((int)2376629471) /* NodeA (P_NODEA) */);
  2311. public Node NodeB => EventData.get_Node(unchecked((int)2376629472) /* NodeB (P_NODEB) */);
  2312. public RigidBody BodyA => EventData.get_RigidBody(unchecked((int)1588071871) /* BodyA (P_BODYA) */);
  2313. public RigidBody BodyB => EventData.get_RigidBody(unchecked((int)1588071872) /* BodyB (P_BODYB) */);
  2314. public bool Trigger => EventData.get_bool(unchecked((int)2995104504) /* Trigger (P_TRIGGER) */);
  2315. } /* struct PhysicsCollisionEndEventArgs */
  2316. public partial class PhysicsWorld
  2317. {
  2318. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PhysicsCollisionEnd += ...' instead.")]
  2319. public Subscription SubscribeToPhysicsCollisionEnd(Action<PhysicsCollisionEndEventArgs> handler)
  2320. {
  2321. Action<IntPtr> proxy = (x) => { var d = new PhysicsCollisionEndEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2322. var s = new Subscription(proxy);
  2323. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)304728016) /* PhysicsCollisionEnd (E_PHYSICSCOLLISIONEND) */);
  2324. return s;
  2325. }
  2326. static UrhoEventAdapter<PhysicsCollisionEndEventArgs> eventAdapterForPhysicsCollisionEnd;
  2327. public event Action<PhysicsCollisionEndEventArgs> PhysicsCollisionEnd
  2328. {
  2329. add
  2330. {
  2331. if (eventAdapterForPhysicsCollisionEnd == null)
  2332. eventAdapterForPhysicsCollisionEnd = new UrhoEventAdapter<PhysicsCollisionEndEventArgs>(typeof(PhysicsWorld));
  2333. eventAdapterForPhysicsCollisionEnd.AddManagedSubscriber(handle, value, SubscribeToPhysicsCollisionEnd);
  2334. }
  2335. remove { eventAdapterForPhysicsCollisionEnd.RemoveManagedSubscriber(handle, value); }
  2336. }
  2337. } /* class PhysicsWorld */
  2338. } /* namespace */
  2339. namespace Urho
  2340. {
  2341. public partial struct NodeCollisionStartEventArgs
  2342. {
  2343. public EventDataContainer EventData;
  2344. public RigidBody Body => EventData.get_RigidBody(unchecked((int)111721250) /* Body (P_BODY) */);
  2345. public Node OtherNode => EventData.get_Node(unchecked((int)2707292594) /* OtherNode (P_OTHERNODE) */);
  2346. public RigidBody OtherBody => EventData.get_RigidBody(unchecked((int)1930180818) /* OtherBody (P_OTHERBODY) */);
  2347. public bool Trigger => EventData.get_bool(unchecked((int)2995104504) /* Trigger (P_TRIGGER) */);
  2348. public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
  2349. } /* struct NodeCollisionStartEventArgs */
  2350. public partial class Node
  2351. {
  2352. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeCollisionStart += ...' instead.")]
  2353. public Subscription SubscribeToNodeCollisionStart(Action<NodeCollisionStartEventArgs> handler)
  2354. {
  2355. Action<IntPtr> proxy = (x) => { var d = new NodeCollisionStartEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2356. var s = new Subscription(proxy);
  2357. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2797145554) /* NodeCollisionStart (E_NODECOLLISIONSTART) */);
  2358. return s;
  2359. }
  2360. static UrhoEventAdapter<NodeCollisionStartEventArgs> eventAdapterForNodeCollisionStart;
  2361. public event Action<NodeCollisionStartEventArgs> NodeCollisionStart
  2362. {
  2363. add
  2364. {
  2365. if (eventAdapterForNodeCollisionStart == null)
  2366. eventAdapterForNodeCollisionStart = new UrhoEventAdapter<NodeCollisionStartEventArgs>(typeof(Node));
  2367. eventAdapterForNodeCollisionStart.AddManagedSubscriber(handle, value, SubscribeToNodeCollisionStart);
  2368. }
  2369. remove { eventAdapterForNodeCollisionStart.RemoveManagedSubscriber(handle, value); }
  2370. }
  2371. } /* class Node */
  2372. } /* namespace */
  2373. namespace Urho
  2374. {
  2375. public partial struct NodeCollisionEventArgs
  2376. {
  2377. public EventDataContainer EventData;
  2378. public RigidBody Body => EventData.get_RigidBody(unchecked((int)111721250) /* Body (P_BODY) */);
  2379. public Node OtherNode => EventData.get_Node(unchecked((int)2707292594) /* OtherNode (P_OTHERNODE) */);
  2380. public RigidBody OtherBody => EventData.get_RigidBody(unchecked((int)1930180818) /* OtherBody (P_OTHERBODY) */);
  2381. public bool Trigger => EventData.get_bool(unchecked((int)2995104504) /* Trigger (P_TRIGGER) */);
  2382. public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
  2383. } /* struct NodeCollisionEventArgs */
  2384. public partial class Node
  2385. {
  2386. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeCollision += ...' instead.")]
  2387. public Subscription SubscribeToNodeCollision(Action<NodeCollisionEventArgs> handler)
  2388. {
  2389. Action<IntPtr> proxy = (x) => { var d = new NodeCollisionEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2390. var s = new Subscription(proxy);
  2391. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2675467920) /* NodeCollision (E_NODECOLLISION) */);
  2392. return s;
  2393. }
  2394. static UrhoEventAdapter<NodeCollisionEventArgs> eventAdapterForNodeCollision;
  2395. public event Action<NodeCollisionEventArgs> NodeCollision
  2396. {
  2397. add
  2398. {
  2399. if (eventAdapterForNodeCollision == null)
  2400. eventAdapterForNodeCollision = new UrhoEventAdapter<NodeCollisionEventArgs>(typeof(Node));
  2401. eventAdapterForNodeCollision.AddManagedSubscriber(handle, value, SubscribeToNodeCollision);
  2402. }
  2403. remove { eventAdapterForNodeCollision.RemoveManagedSubscriber(handle, value); }
  2404. }
  2405. } /* class Node */
  2406. } /* namespace */
  2407. namespace Urho
  2408. {
  2409. public partial struct NodeCollisionEndEventArgs
  2410. {
  2411. public EventDataContainer EventData;
  2412. public RigidBody Body => EventData.get_RigidBody(unchecked((int)111721250) /* Body (P_BODY) */);
  2413. public Node OtherNode => EventData.get_Node(unchecked((int)2707292594) /* OtherNode (P_OTHERNODE) */);
  2414. public RigidBody OtherBody => EventData.get_RigidBody(unchecked((int)1930180818) /* OtherBody (P_OTHERBODY) */);
  2415. public bool Trigger => EventData.get_bool(unchecked((int)2995104504) /* Trigger (P_TRIGGER) */);
  2416. } /* struct NodeCollisionEndEventArgs */
  2417. public partial class Node
  2418. {
  2419. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeCollisionEnd += ...' instead.")]
  2420. public Subscription SubscribeToNodeCollisionEnd(Action<NodeCollisionEndEventArgs> handler)
  2421. {
  2422. Action<IntPtr> proxy = (x) => { var d = new NodeCollisionEndEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2423. var s = new Subscription(proxy);
  2424. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2410921675) /* NodeCollisionEnd (E_NODECOLLISIONEND) */);
  2425. return s;
  2426. }
  2427. static UrhoEventAdapter<NodeCollisionEndEventArgs> eventAdapterForNodeCollisionEnd;
  2428. public event Action<NodeCollisionEndEventArgs> NodeCollisionEnd
  2429. {
  2430. add
  2431. {
  2432. if (eventAdapterForNodeCollisionEnd == null)
  2433. eventAdapterForNodeCollisionEnd = new UrhoEventAdapter<NodeCollisionEndEventArgs>(typeof(Node));
  2434. eventAdapterForNodeCollisionEnd.AddManagedSubscriber(handle, value, SubscribeToNodeCollisionEnd);
  2435. }
  2436. remove { eventAdapterForNodeCollisionEnd.RemoveManagedSubscriber(handle, value); }
  2437. }
  2438. } /* class Node */
  2439. } /* namespace */
  2440. namespace Urho.Resources
  2441. {
  2442. public partial struct ReloadStartedEventArgs
  2443. {
  2444. public EventDataContainer EventData;
  2445. } /* struct ReloadStartedEventArgs */
  2446. public partial class Resource
  2447. {
  2448. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ReloadStarted += ...' instead.")]
  2449. public Subscription SubscribeToReloadStarted(Action<ReloadStartedEventArgs> handler)
  2450. {
  2451. Action<IntPtr> proxy = (x) => { var d = new ReloadStartedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2452. var s = new Subscription(proxy);
  2453. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)213872936) /* ReloadStarted (E_RELOADSTARTED) */);
  2454. return s;
  2455. }
  2456. static UrhoEventAdapter<ReloadStartedEventArgs> eventAdapterForReloadStarted;
  2457. public event Action<ReloadStartedEventArgs> ReloadStarted
  2458. {
  2459. add
  2460. {
  2461. if (eventAdapterForReloadStarted == null)
  2462. eventAdapterForReloadStarted = new UrhoEventAdapter<ReloadStartedEventArgs>(typeof(Resource));
  2463. eventAdapterForReloadStarted.AddManagedSubscriber(handle, value, SubscribeToReloadStarted);
  2464. }
  2465. remove { eventAdapterForReloadStarted.RemoveManagedSubscriber(handle, value); }
  2466. }
  2467. } /* class Resource */
  2468. } /* namespace */
  2469. namespace Urho.Resources
  2470. {
  2471. public partial struct ReloadFinishedEventArgs
  2472. {
  2473. public EventDataContainer EventData;
  2474. } /* struct ReloadFinishedEventArgs */
  2475. public partial class Resource
  2476. {
  2477. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ReloadFinished += ...' instead.")]
  2478. public Subscription SubscribeToReloadFinished(Action<ReloadFinishedEventArgs> handler)
  2479. {
  2480. Action<IntPtr> proxy = (x) => { var d = new ReloadFinishedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2481. var s = new Subscription(proxy);
  2482. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2825685547) /* ReloadFinished (E_RELOADFINISHED) */);
  2483. return s;
  2484. }
  2485. static UrhoEventAdapter<ReloadFinishedEventArgs> eventAdapterForReloadFinished;
  2486. public event Action<ReloadFinishedEventArgs> ReloadFinished
  2487. {
  2488. add
  2489. {
  2490. if (eventAdapterForReloadFinished == null)
  2491. eventAdapterForReloadFinished = new UrhoEventAdapter<ReloadFinishedEventArgs>(typeof(Resource));
  2492. eventAdapterForReloadFinished.AddManagedSubscriber(handle, value, SubscribeToReloadFinished);
  2493. }
  2494. remove { eventAdapterForReloadFinished.RemoveManagedSubscriber(handle, value); }
  2495. }
  2496. } /* class Resource */
  2497. } /* namespace */
  2498. namespace Urho.Resources
  2499. {
  2500. public partial struct ReloadFailedEventArgs
  2501. {
  2502. public EventDataContainer EventData;
  2503. } /* struct ReloadFailedEventArgs */
  2504. public partial class Resource
  2505. {
  2506. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ReloadFailed += ...' instead.")]
  2507. public Subscription SubscribeToReloadFailed(Action<ReloadFailedEventArgs> handler)
  2508. {
  2509. Action<IntPtr> proxy = (x) => { var d = new ReloadFailedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2510. var s = new Subscription(proxy);
  2511. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4176168502) /* ReloadFailed (E_RELOADFAILED) */);
  2512. return s;
  2513. }
  2514. static UrhoEventAdapter<ReloadFailedEventArgs> eventAdapterForReloadFailed;
  2515. public event Action<ReloadFailedEventArgs> ReloadFailed
  2516. {
  2517. add
  2518. {
  2519. if (eventAdapterForReloadFailed == null)
  2520. eventAdapterForReloadFailed = new UrhoEventAdapter<ReloadFailedEventArgs>(typeof(Resource));
  2521. eventAdapterForReloadFailed.AddManagedSubscriber(handle, value, SubscribeToReloadFailed);
  2522. }
  2523. remove { eventAdapterForReloadFailed.RemoveManagedSubscriber(handle, value); }
  2524. }
  2525. } /* class Resource */
  2526. } /* namespace */
  2527. namespace Urho.Resources
  2528. {
  2529. public partial struct FileChangedEventArgs
  2530. {
  2531. public EventDataContainer EventData;
  2532. public String FileName => EventData.get_String(unchecked((int)633459751) /* FileName (P_FILENAME) */);
  2533. public String ResourceName => EventData.get_String(unchecked((int)4134618969) /* ResourceName (P_RESOURCENAME) */);
  2534. } /* struct FileChangedEventArgs */
  2535. public partial class ResourceCache
  2536. {
  2537. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.FileChanged += ...' instead.")]
  2538. public Subscription SubscribeToFileChanged(Action<FileChangedEventArgs> handler)
  2539. {
  2540. Action<IntPtr> proxy = (x) => { var d = new FileChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2541. var s = new Subscription(proxy);
  2542. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3297483544) /* FileChanged (E_FILECHANGED) */);
  2543. return s;
  2544. }
  2545. static UrhoEventAdapter<FileChangedEventArgs> eventAdapterForFileChanged;
  2546. public event Action<FileChangedEventArgs> FileChanged
  2547. {
  2548. add
  2549. {
  2550. if (eventAdapterForFileChanged == null)
  2551. eventAdapterForFileChanged = new UrhoEventAdapter<FileChangedEventArgs>(typeof(ResourceCache));
  2552. eventAdapterForFileChanged.AddManagedSubscriber(handle, value, SubscribeToFileChanged);
  2553. }
  2554. remove { eventAdapterForFileChanged.RemoveManagedSubscriber(handle, value); }
  2555. }
  2556. } /* class ResourceCache */
  2557. } /* namespace */
  2558. namespace Urho.Resources
  2559. {
  2560. public partial struct LoadFailedEventArgs
  2561. {
  2562. public EventDataContainer EventData;
  2563. public String ResourceName => EventData.get_String(unchecked((int)4134618969) /* ResourceName (P_RESOURCENAME) */);
  2564. } /* struct LoadFailedEventArgs */
  2565. public partial class ResourceCache
  2566. {
  2567. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.LoadFailed += ...' instead.")]
  2568. public Subscription SubscribeToLoadFailed(Action<LoadFailedEventArgs> handler)
  2569. {
  2570. Action<IntPtr> proxy = (x) => { var d = new LoadFailedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2571. var s = new Subscription(proxy);
  2572. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2824526147) /* LoadFailed (E_LOADFAILED) */);
  2573. return s;
  2574. }
  2575. static UrhoEventAdapter<LoadFailedEventArgs> eventAdapterForLoadFailed;
  2576. public event Action<LoadFailedEventArgs> LoadFailed
  2577. {
  2578. add
  2579. {
  2580. if (eventAdapterForLoadFailed == null)
  2581. eventAdapterForLoadFailed = new UrhoEventAdapter<LoadFailedEventArgs>(typeof(ResourceCache));
  2582. eventAdapterForLoadFailed.AddManagedSubscriber(handle, value, SubscribeToLoadFailed);
  2583. }
  2584. remove { eventAdapterForLoadFailed.RemoveManagedSubscriber(handle, value); }
  2585. }
  2586. } /* class ResourceCache */
  2587. } /* namespace */
  2588. namespace Urho.Resources
  2589. {
  2590. public partial struct ResourceNotFoundEventArgs
  2591. {
  2592. public EventDataContainer EventData;
  2593. public String ResourceName => EventData.get_String(unchecked((int)4134618969) /* ResourceName (P_RESOURCENAME) */);
  2594. } /* struct ResourceNotFoundEventArgs */
  2595. public partial class ResourceCache
  2596. {
  2597. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ResourceNotFound += ...' instead.")]
  2598. public Subscription SubscribeToResourceNotFound(Action<ResourceNotFoundEventArgs> handler)
  2599. {
  2600. Action<IntPtr> proxy = (x) => { var d = new ResourceNotFoundEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2601. var s = new Subscription(proxy);
  2602. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)217257309) /* ResourceNotFound (E_RESOURCENOTFOUND) */);
  2603. return s;
  2604. }
  2605. static UrhoEventAdapter<ResourceNotFoundEventArgs> eventAdapterForResourceNotFound;
  2606. public event Action<ResourceNotFoundEventArgs> ResourceNotFound
  2607. {
  2608. add
  2609. {
  2610. if (eventAdapterForResourceNotFound == null)
  2611. eventAdapterForResourceNotFound = new UrhoEventAdapter<ResourceNotFoundEventArgs>(typeof(ResourceCache));
  2612. eventAdapterForResourceNotFound.AddManagedSubscriber(handle, value, SubscribeToResourceNotFound);
  2613. }
  2614. remove { eventAdapterForResourceNotFound.RemoveManagedSubscriber(handle, value); }
  2615. }
  2616. } /* class ResourceCache */
  2617. } /* namespace */
  2618. namespace Urho.Resources
  2619. {
  2620. public partial struct UnknownResourceTypeEventArgs
  2621. {
  2622. public EventDataContainer EventData;
  2623. public StringHash ResourceType => EventData.get_StringHash(unchecked((int)426680488) /* ResourceType (P_RESOURCETYPE) */);
  2624. } /* struct UnknownResourceTypeEventArgs */
  2625. public partial class ResourceCache
  2626. {
  2627. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.UnknownResourceType += ...' instead.")]
  2628. public Subscription SubscribeToUnknownResourceType(Action<UnknownResourceTypeEventArgs> handler)
  2629. {
  2630. Action<IntPtr> proxy = (x) => { var d = new UnknownResourceTypeEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2631. var s = new Subscription(proxy);
  2632. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2352310994) /* UnknownResourceType (E_UNKNOWNRESOURCETYPE) */);
  2633. return s;
  2634. }
  2635. static UrhoEventAdapter<UnknownResourceTypeEventArgs> eventAdapterForUnknownResourceType;
  2636. public event Action<UnknownResourceTypeEventArgs> UnknownResourceType
  2637. {
  2638. add
  2639. {
  2640. if (eventAdapterForUnknownResourceType == null)
  2641. eventAdapterForUnknownResourceType = new UrhoEventAdapter<UnknownResourceTypeEventArgs>(typeof(ResourceCache));
  2642. eventAdapterForUnknownResourceType.AddManagedSubscriber(handle, value, SubscribeToUnknownResourceType);
  2643. }
  2644. remove { eventAdapterForUnknownResourceType.RemoveManagedSubscriber(handle, value); }
  2645. }
  2646. } /* class ResourceCache */
  2647. } /* namespace */
  2648. namespace Urho.Resources
  2649. {
  2650. public partial struct ResourceBackgroundLoadedEventArgs
  2651. {
  2652. public EventDataContainer EventData;
  2653. public String ResourceName => EventData.get_String(unchecked((int)4134618969) /* ResourceName (P_RESOURCENAME) */);
  2654. public bool Success => EventData.get_bool(unchecked((int)3427551139) /* Success (P_SUCCESS) */);
  2655. public Resource Resource => EventData.get_Resource(unchecked((int)39946286) /* Resource (P_RESOURCE) */);
  2656. } /* struct ResourceBackgroundLoadedEventArgs */
  2657. public partial class ResourceCache
  2658. {
  2659. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ResourceBackgroundLoaded += ...' instead.")]
  2660. public Subscription SubscribeToResourceBackgroundLoaded(Action<ResourceBackgroundLoadedEventArgs> handler)
  2661. {
  2662. Action<IntPtr> proxy = (x) => { var d = new ResourceBackgroundLoadedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2663. var s = new Subscription(proxy);
  2664. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4263239041) /* ResourceBackgroundLoaded (E_RESOURCEBACKGROUNDLOADED) */);
  2665. return s;
  2666. }
  2667. static UrhoEventAdapter<ResourceBackgroundLoadedEventArgs> eventAdapterForResourceBackgroundLoaded;
  2668. public event Action<ResourceBackgroundLoadedEventArgs> ResourceBackgroundLoaded
  2669. {
  2670. add
  2671. {
  2672. if (eventAdapterForResourceBackgroundLoaded == null)
  2673. eventAdapterForResourceBackgroundLoaded = new UrhoEventAdapter<ResourceBackgroundLoadedEventArgs>(typeof(ResourceCache));
  2674. eventAdapterForResourceBackgroundLoaded.AddManagedSubscriber(handle, value, SubscribeToResourceBackgroundLoaded);
  2675. }
  2676. remove { eventAdapterForResourceBackgroundLoaded.RemoveManagedSubscriber(handle, value); }
  2677. }
  2678. } /* class ResourceCache */
  2679. } /* namespace */
  2680. namespace Urho.Resources
  2681. {
  2682. public partial struct ChangeLanguageEventArgs
  2683. {
  2684. public EventDataContainer EventData;
  2685. } /* struct ChangeLanguageEventArgs */
  2686. public partial class Localization
  2687. {
  2688. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ChangeLanguage += ...' instead.")]
  2689. public Subscription SubscribeToChangeLanguage(Action<ChangeLanguageEventArgs> handler)
  2690. {
  2691. Action<IntPtr> proxy = (x) => { var d = new ChangeLanguageEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2692. var s = new Subscription(proxy);
  2693. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1337208360) /* ChangeLanguage (E_CHANGELANGUAGE) */);
  2694. return s;
  2695. }
  2696. static UrhoEventAdapter<ChangeLanguageEventArgs> eventAdapterForChangeLanguage;
  2697. public event Action<ChangeLanguageEventArgs> ChangeLanguage
  2698. {
  2699. add
  2700. {
  2701. if (eventAdapterForChangeLanguage == null)
  2702. eventAdapterForChangeLanguage = new UrhoEventAdapter<ChangeLanguageEventArgs>(typeof(Localization));
  2703. eventAdapterForChangeLanguage.AddManagedSubscriber(handle, value, SubscribeToChangeLanguage);
  2704. }
  2705. remove { eventAdapterForChangeLanguage.RemoveManagedSubscriber(handle, value); }
  2706. }
  2707. } /* class Localization */
  2708. } /* namespace */
  2709. namespace Urho
  2710. {
  2711. public partial struct SceneUpdateEventArgs
  2712. {
  2713. public EventDataContainer EventData;
  2714. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  2715. public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
  2716. } /* struct SceneUpdateEventArgs */
  2717. public partial class Scene
  2718. {
  2719. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.SceneUpdate += ...' instead.")]
  2720. public Subscription SubscribeToSceneUpdate(Action<SceneUpdateEventArgs> handler)
  2721. {
  2722. Action<IntPtr> proxy = (x) => { var d = new SceneUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2723. var s = new Subscription(proxy);
  2724. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3145164885) /* SceneUpdate (E_SCENEUPDATE) */);
  2725. return s;
  2726. }
  2727. static UrhoEventAdapter<SceneUpdateEventArgs> eventAdapterForSceneUpdate;
  2728. public event Action<SceneUpdateEventArgs> SceneUpdate
  2729. {
  2730. add
  2731. {
  2732. if (eventAdapterForSceneUpdate == null)
  2733. eventAdapterForSceneUpdate = new UrhoEventAdapter<SceneUpdateEventArgs>(typeof(Scene));
  2734. eventAdapterForSceneUpdate.AddManagedSubscriber(handle, value, SubscribeToSceneUpdate);
  2735. }
  2736. remove { eventAdapterForSceneUpdate.RemoveManagedSubscriber(handle, value); }
  2737. }
  2738. } /* class Scene */
  2739. } /* namespace */
  2740. namespace Urho
  2741. {
  2742. public partial struct SceneSubsystemUpdateEventArgs
  2743. {
  2744. public EventDataContainer EventData;
  2745. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  2746. public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
  2747. } /* struct SceneSubsystemUpdateEventArgs */
  2748. public partial class Scene
  2749. {
  2750. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.SceneSubsystemUpdate += ...' instead.")]
  2751. public Subscription SubscribeToSceneSubsystemUpdate(Action<SceneSubsystemUpdateEventArgs> handler)
  2752. {
  2753. Action<IntPtr> proxy = (x) => { var d = new SceneSubsystemUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2754. var s = new Subscription(proxy);
  2755. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1997371372) /* SceneSubsystemUpdate (E_SCENESUBSYSTEMUPDATE) */);
  2756. return s;
  2757. }
  2758. static UrhoEventAdapter<SceneSubsystemUpdateEventArgs> eventAdapterForSceneSubsystemUpdate;
  2759. public event Action<SceneSubsystemUpdateEventArgs> SceneSubsystemUpdate
  2760. {
  2761. add
  2762. {
  2763. if (eventAdapterForSceneSubsystemUpdate == null)
  2764. eventAdapterForSceneSubsystemUpdate = new UrhoEventAdapter<SceneSubsystemUpdateEventArgs>(typeof(Scene));
  2765. eventAdapterForSceneSubsystemUpdate.AddManagedSubscriber(handle, value, SubscribeToSceneSubsystemUpdate);
  2766. }
  2767. remove { eventAdapterForSceneSubsystemUpdate.RemoveManagedSubscriber(handle, value); }
  2768. }
  2769. } /* class Scene */
  2770. } /* namespace */
  2771. namespace Urho
  2772. {
  2773. public partial struct UpdateSmoothingEventArgs
  2774. {
  2775. public EventDataContainer EventData;
  2776. public float Constant => EventData.get_float(unchecked((int)1006513988) /* Constant (P_CONSTANT) */);
  2777. public float SquaredSnapThreshold => EventData.get_float(unchecked((int)4276457658) /* SquaredSnapThreshold (P_SQUAREDSNAPTHRESHOLD) */);
  2778. } /* struct UpdateSmoothingEventArgs */
  2779. public partial class Scene
  2780. {
  2781. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.UpdateSmoothing += ...' instead.")]
  2782. public Subscription SubscribeToUpdateSmoothing(Action<UpdateSmoothingEventArgs> handler)
  2783. {
  2784. Action<IntPtr> proxy = (x) => { var d = new UpdateSmoothingEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2785. var s = new Subscription(proxy);
  2786. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4083015947) /* UpdateSmoothing (E_UPDATESMOOTHING) */);
  2787. return s;
  2788. }
  2789. static UrhoEventAdapter<UpdateSmoothingEventArgs> eventAdapterForUpdateSmoothing;
  2790. public event Action<UpdateSmoothingEventArgs> UpdateSmoothing
  2791. {
  2792. add
  2793. {
  2794. if (eventAdapterForUpdateSmoothing == null)
  2795. eventAdapterForUpdateSmoothing = new UrhoEventAdapter<UpdateSmoothingEventArgs>(typeof(Scene));
  2796. eventAdapterForUpdateSmoothing.AddManagedSubscriber(handle, value, SubscribeToUpdateSmoothing);
  2797. }
  2798. remove { eventAdapterForUpdateSmoothing.RemoveManagedSubscriber(handle, value); }
  2799. }
  2800. } /* class Scene */
  2801. } /* namespace */
  2802. namespace Urho
  2803. {
  2804. public partial struct SceneDrawableUpdateFinishedEventArgs
  2805. {
  2806. public EventDataContainer EventData;
  2807. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  2808. public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
  2809. } /* struct SceneDrawableUpdateFinishedEventArgs */
  2810. public partial class Scene
  2811. {
  2812. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.SceneDrawableUpdateFinished += ...' instead.")]
  2813. public Subscription SubscribeToSceneDrawableUpdateFinished(Action<SceneDrawableUpdateFinishedEventArgs> handler)
  2814. {
  2815. Action<IntPtr> proxy = (x) => { var d = new SceneDrawableUpdateFinishedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2816. var s = new Subscription(proxy);
  2817. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)228472677) /* SceneDrawableUpdateFinished (E_SCENEDRAWABLEUPDATEFINISHED) */);
  2818. return s;
  2819. }
  2820. static UrhoEventAdapter<SceneDrawableUpdateFinishedEventArgs> eventAdapterForSceneDrawableUpdateFinished;
  2821. public event Action<SceneDrawableUpdateFinishedEventArgs> SceneDrawableUpdateFinished
  2822. {
  2823. add
  2824. {
  2825. if (eventAdapterForSceneDrawableUpdateFinished == null)
  2826. eventAdapterForSceneDrawableUpdateFinished = new UrhoEventAdapter<SceneDrawableUpdateFinishedEventArgs>(typeof(Scene));
  2827. eventAdapterForSceneDrawableUpdateFinished.AddManagedSubscriber(handle, value, SubscribeToSceneDrawableUpdateFinished);
  2828. }
  2829. remove { eventAdapterForSceneDrawableUpdateFinished.RemoveManagedSubscriber(handle, value); }
  2830. }
  2831. } /* class Scene */
  2832. } /* namespace */
  2833. namespace Urho
  2834. {
  2835. public partial struct TargetPositionChangedEventArgs
  2836. {
  2837. public EventDataContainer EventData;
  2838. } /* struct TargetPositionChangedEventArgs */
  2839. public partial class SmoothedTransform
  2840. {
  2841. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TargetPositionChanged += ...' instead.")]
  2842. public Subscription SubscribeToTargetPositionChanged(Action<TargetPositionChangedEventArgs> handler)
  2843. {
  2844. Action<IntPtr> proxy = (x) => { var d = new TargetPositionChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2845. var s = new Subscription(proxy);
  2846. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3850327802) /* TargetPositionChanged (E_TARGETPOSITION) */);
  2847. return s;
  2848. }
  2849. static UrhoEventAdapter<TargetPositionChangedEventArgs> eventAdapterForTargetPositionChanged;
  2850. public event Action<TargetPositionChangedEventArgs> TargetPositionChanged
  2851. {
  2852. add
  2853. {
  2854. if (eventAdapterForTargetPositionChanged == null)
  2855. eventAdapterForTargetPositionChanged = new UrhoEventAdapter<TargetPositionChangedEventArgs>(typeof(SmoothedTransform));
  2856. eventAdapterForTargetPositionChanged.AddManagedSubscriber(handle, value, SubscribeToTargetPositionChanged);
  2857. }
  2858. remove { eventAdapterForTargetPositionChanged.RemoveManagedSubscriber(handle, value); }
  2859. }
  2860. } /* class SmoothedTransform */
  2861. } /* namespace */
  2862. namespace Urho
  2863. {
  2864. public partial struct TargetRotationChangedEventArgs
  2865. {
  2866. public EventDataContainer EventData;
  2867. } /* struct TargetRotationChangedEventArgs */
  2868. public partial class SmoothedTransform
  2869. {
  2870. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TargetRotationChanged += ...' instead.")]
  2871. public Subscription SubscribeToTargetRotationChanged(Action<TargetRotationChangedEventArgs> handler)
  2872. {
  2873. Action<IntPtr> proxy = (x) => { var d = new TargetRotationChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2874. var s = new Subscription(proxy);
  2875. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3938072325) /* TargetRotationChanged (E_TARGETROTATION) */);
  2876. return s;
  2877. }
  2878. static UrhoEventAdapter<TargetRotationChangedEventArgs> eventAdapterForTargetRotationChanged;
  2879. public event Action<TargetRotationChangedEventArgs> TargetRotationChanged
  2880. {
  2881. add
  2882. {
  2883. if (eventAdapterForTargetRotationChanged == null)
  2884. eventAdapterForTargetRotationChanged = new UrhoEventAdapter<TargetRotationChangedEventArgs>(typeof(SmoothedTransform));
  2885. eventAdapterForTargetRotationChanged.AddManagedSubscriber(handle, value, SubscribeToTargetRotationChanged);
  2886. }
  2887. remove { eventAdapterForTargetRotationChanged.RemoveManagedSubscriber(handle, value); }
  2888. }
  2889. } /* class SmoothedTransform */
  2890. } /* namespace */
  2891. namespace Urho
  2892. {
  2893. public partial struct AttributeAnimationUpdateEventArgs
  2894. {
  2895. public EventDataContainer EventData;
  2896. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  2897. public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
  2898. } /* struct AttributeAnimationUpdateEventArgs */
  2899. public partial class Scene
  2900. {
  2901. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AttributeAnimationUpdate += ...' instead.")]
  2902. public Subscription SubscribeToAttributeAnimationUpdate(Action<AttributeAnimationUpdateEventArgs> handler)
  2903. {
  2904. Action<IntPtr> proxy = (x) => { var d = new AttributeAnimationUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2905. var s = new Subscription(proxy);
  2906. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1013401233) /* AttributeAnimationUpdate (E_ATTRIBUTEANIMATIONUPDATE) */);
  2907. return s;
  2908. }
  2909. static UrhoEventAdapter<AttributeAnimationUpdateEventArgs> eventAdapterForAttributeAnimationUpdate;
  2910. public event Action<AttributeAnimationUpdateEventArgs> AttributeAnimationUpdate
  2911. {
  2912. add
  2913. {
  2914. if (eventAdapterForAttributeAnimationUpdate == null)
  2915. eventAdapterForAttributeAnimationUpdate = new UrhoEventAdapter<AttributeAnimationUpdateEventArgs>(typeof(Scene));
  2916. eventAdapterForAttributeAnimationUpdate.AddManagedSubscriber(handle, value, SubscribeToAttributeAnimationUpdate);
  2917. }
  2918. remove { eventAdapterForAttributeAnimationUpdate.RemoveManagedSubscriber(handle, value); }
  2919. }
  2920. } /* class Scene */
  2921. } /* namespace */
  2922. namespace Urho
  2923. {
  2924. public partial struct AttributeAnimationAddedEventArgs
  2925. {
  2926. public EventDataContainer EventData;
  2927. public Object ObjectAnimation => EventData.get_Object(unchecked((int)485250565) /* ObjectAnimation (P_OBJECTANIMATION) */);
  2928. public String AttributeAnimationName => EventData.get_String(unchecked((int)4253834771) /* AttributeAnimationName (P_ATTRIBUTEANIMATIONNAME) */);
  2929. } /* struct AttributeAnimationAddedEventArgs */
  2930. public partial class ObjectAnimation
  2931. {
  2932. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AttributeAnimationAdded += ...' instead.")]
  2933. public Subscription SubscribeToAttributeAnimationAdded(Action<AttributeAnimationAddedEventArgs> handler)
  2934. {
  2935. Action<IntPtr> proxy = (x) => { var d = new AttributeAnimationAddedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2936. var s = new Subscription(proxy);
  2937. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3619895992) /* AttributeAnimationAdded (E_ATTRIBUTEANIMATIONADDED) */);
  2938. return s;
  2939. }
  2940. static UrhoEventAdapter<AttributeAnimationAddedEventArgs> eventAdapterForAttributeAnimationAdded;
  2941. public event Action<AttributeAnimationAddedEventArgs> AttributeAnimationAdded
  2942. {
  2943. add
  2944. {
  2945. if (eventAdapterForAttributeAnimationAdded == null)
  2946. eventAdapterForAttributeAnimationAdded = new UrhoEventAdapter<AttributeAnimationAddedEventArgs>(typeof(ObjectAnimation));
  2947. eventAdapterForAttributeAnimationAdded.AddManagedSubscriber(handle, value, SubscribeToAttributeAnimationAdded);
  2948. }
  2949. remove { eventAdapterForAttributeAnimationAdded.RemoveManagedSubscriber(handle, value); }
  2950. }
  2951. } /* class ObjectAnimation */
  2952. } /* namespace */
  2953. namespace Urho
  2954. {
  2955. public partial struct AttributeAnimationRemovedEventArgs
  2956. {
  2957. public EventDataContainer EventData;
  2958. public Object ObjectAnimation => EventData.get_Object(unchecked((int)485250565) /* ObjectAnimation (P_OBJECTANIMATION) */);
  2959. public String AttributeAnimationName => EventData.get_String(unchecked((int)4253834771) /* AttributeAnimationName (P_ATTRIBUTEANIMATIONNAME) */);
  2960. } /* struct AttributeAnimationRemovedEventArgs */
  2961. public partial class ObjectAnimation
  2962. {
  2963. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AttributeAnimationRemoved += ...' instead.")]
  2964. public Subscription SubscribeToAttributeAnimationRemoved(Action<AttributeAnimationRemovedEventArgs> handler)
  2965. {
  2966. Action<IntPtr> proxy = (x) => { var d = new AttributeAnimationRemovedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2967. var s = new Subscription(proxy);
  2968. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2638038360) /* AttributeAnimationRemoved (E_ATTRIBUTEANIMATIONREMOVED) */);
  2969. return s;
  2970. }
  2971. static UrhoEventAdapter<AttributeAnimationRemovedEventArgs> eventAdapterForAttributeAnimationRemoved;
  2972. public event Action<AttributeAnimationRemovedEventArgs> AttributeAnimationRemoved
  2973. {
  2974. add
  2975. {
  2976. if (eventAdapterForAttributeAnimationRemoved == null)
  2977. eventAdapterForAttributeAnimationRemoved = new UrhoEventAdapter<AttributeAnimationRemovedEventArgs>(typeof(ObjectAnimation));
  2978. eventAdapterForAttributeAnimationRemoved.AddManagedSubscriber(handle, value, SubscribeToAttributeAnimationRemoved);
  2979. }
  2980. remove { eventAdapterForAttributeAnimationRemoved.RemoveManagedSubscriber(handle, value); }
  2981. }
  2982. } /* class ObjectAnimation */
  2983. } /* namespace */
  2984. namespace Urho
  2985. {
  2986. public partial struct ScenePostUpdateEventArgs
  2987. {
  2988. public EventDataContainer EventData;
  2989. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  2990. public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
  2991. } /* struct ScenePostUpdateEventArgs */
  2992. public partial class Scene
  2993. {
  2994. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ScenePostUpdate += ...' instead.")]
  2995. public Subscription SubscribeToScenePostUpdate(Action<ScenePostUpdateEventArgs> handler)
  2996. {
  2997. Action<IntPtr> proxy = (x) => { var d = new ScenePostUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  2998. var s = new Subscription(proxy);
  2999. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3048853) /* ScenePostUpdate (E_SCENEPOSTUPDATE) */);
  3000. return s;
  3001. }
  3002. static UrhoEventAdapter<ScenePostUpdateEventArgs> eventAdapterForScenePostUpdate;
  3003. public event Action<ScenePostUpdateEventArgs> ScenePostUpdate
  3004. {
  3005. add
  3006. {
  3007. if (eventAdapterForScenePostUpdate == null)
  3008. eventAdapterForScenePostUpdate = new UrhoEventAdapter<ScenePostUpdateEventArgs>(typeof(Scene));
  3009. eventAdapterForScenePostUpdate.AddManagedSubscriber(handle, value, SubscribeToScenePostUpdate);
  3010. }
  3011. remove { eventAdapterForScenePostUpdate.RemoveManagedSubscriber(handle, value); }
  3012. }
  3013. } /* class Scene */
  3014. } /* namespace */
  3015. namespace Urho
  3016. {
  3017. public partial struct AsyncLoadProgressEventArgs
  3018. {
  3019. public EventDataContainer EventData;
  3020. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  3021. public float Progress => EventData.get_float(unchecked((int)2456587373) /* Progress (P_PROGRESS) */);
  3022. public int LoadedNodes => EventData.get_int(unchecked((int)2460871468) /* LoadedNodes (P_LOADEDNODES) */);
  3023. public int TotalNodes => EventData.get_int(unchecked((int)3592672237) /* TotalNodes (P_TOTALNODES) */);
  3024. public int LoadedResources => EventData.get_int(unchecked((int)914347776) /* LoadedResources (P_LOADEDRESOURCES) */);
  3025. public int TotalResources => EventData.get_int(unchecked((int)1346461377) /* TotalResources (P_TOTALRESOURCES) */);
  3026. } /* struct AsyncLoadProgressEventArgs */
  3027. public partial class Scene
  3028. {
  3029. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AsyncLoadProgress += ...' instead.")]
  3030. public Subscription SubscribeToAsyncLoadProgress(Action<AsyncLoadProgressEventArgs> handler)
  3031. {
  3032. Action<IntPtr> proxy = (x) => { var d = new AsyncLoadProgressEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3033. var s = new Subscription(proxy);
  3034. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1563837135) /* AsyncLoadProgress (E_ASYNCLOADPROGRESS) */);
  3035. return s;
  3036. }
  3037. static UrhoEventAdapter<AsyncLoadProgressEventArgs> eventAdapterForAsyncLoadProgress;
  3038. public event Action<AsyncLoadProgressEventArgs> AsyncLoadProgress
  3039. {
  3040. add
  3041. {
  3042. if (eventAdapterForAsyncLoadProgress == null)
  3043. eventAdapterForAsyncLoadProgress = new UrhoEventAdapter<AsyncLoadProgressEventArgs>(typeof(Scene));
  3044. eventAdapterForAsyncLoadProgress.AddManagedSubscriber(handle, value, SubscribeToAsyncLoadProgress);
  3045. }
  3046. remove { eventAdapterForAsyncLoadProgress.RemoveManagedSubscriber(handle, value); }
  3047. }
  3048. } /* class Scene */
  3049. } /* namespace */
  3050. namespace Urho
  3051. {
  3052. public partial struct AsyncLoadFinishedEventArgs
  3053. {
  3054. public EventDataContainer EventData;
  3055. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  3056. } /* struct AsyncLoadFinishedEventArgs */
  3057. public partial class Scene
  3058. {
  3059. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AsyncLoadFinished += ...' instead.")]
  3060. public Subscription SubscribeToAsyncLoadFinished(Action<AsyncLoadFinishedEventArgs> handler)
  3061. {
  3062. Action<IntPtr> proxy = (x) => { var d = new AsyncLoadFinishedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3063. var s = new Subscription(proxy);
  3064. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)413288276) /* AsyncLoadFinished (E_ASYNCLOADFINISHED) */);
  3065. return s;
  3066. }
  3067. static UrhoEventAdapter<AsyncLoadFinishedEventArgs> eventAdapterForAsyncLoadFinished;
  3068. public event Action<AsyncLoadFinishedEventArgs> AsyncLoadFinished
  3069. {
  3070. add
  3071. {
  3072. if (eventAdapterForAsyncLoadFinished == null)
  3073. eventAdapterForAsyncLoadFinished = new UrhoEventAdapter<AsyncLoadFinishedEventArgs>(typeof(Scene));
  3074. eventAdapterForAsyncLoadFinished.AddManagedSubscriber(handle, value, SubscribeToAsyncLoadFinished);
  3075. }
  3076. remove { eventAdapterForAsyncLoadFinished.RemoveManagedSubscriber(handle, value); }
  3077. }
  3078. } /* class Scene */
  3079. } /* namespace */
  3080. namespace Urho
  3081. {
  3082. public partial struct NodeAddedEventArgs
  3083. {
  3084. public EventDataContainer EventData;
  3085. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  3086. public Node Parent => EventData.get_Node(unchecked((int)1512946026) /* Parent (P_PARENT) */);
  3087. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  3088. } /* struct NodeAddedEventArgs */
  3089. public partial class Scene
  3090. {
  3091. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeAdded += ...' instead.")]
  3092. public Subscription SubscribeToNodeAdded(Action<NodeAddedEventArgs> handler)
  3093. {
  3094. Action<IntPtr> proxy = (x) => { var d = new NodeAddedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3095. var s = new Subscription(proxy);
  3096. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3974098974) /* NodeAdded (E_NODEADDED) */);
  3097. return s;
  3098. }
  3099. static UrhoEventAdapter<NodeAddedEventArgs> eventAdapterForNodeAdded;
  3100. public event Action<NodeAddedEventArgs> NodeAdded
  3101. {
  3102. add
  3103. {
  3104. if (eventAdapterForNodeAdded == null)
  3105. eventAdapterForNodeAdded = new UrhoEventAdapter<NodeAddedEventArgs>(typeof(Scene));
  3106. eventAdapterForNodeAdded.AddManagedSubscriber(handle, value, SubscribeToNodeAdded);
  3107. }
  3108. remove { eventAdapterForNodeAdded.RemoveManagedSubscriber(handle, value); }
  3109. }
  3110. } /* class Scene */
  3111. } /* namespace */
  3112. namespace Urho
  3113. {
  3114. public partial struct NodeRemovedEventArgs
  3115. {
  3116. public EventDataContainer EventData;
  3117. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  3118. public Node Parent => EventData.get_Node(unchecked((int)1512946026) /* Parent (P_PARENT) */);
  3119. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  3120. } /* struct NodeRemovedEventArgs */
  3121. public partial class Scene
  3122. {
  3123. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeRemoved += ...' instead.")]
  3124. public Subscription SubscribeToNodeRemoved(Action<NodeRemovedEventArgs> handler)
  3125. {
  3126. Action<IntPtr> proxy = (x) => { var d = new NodeRemovedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3127. var s = new Subscription(proxy);
  3128. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)931768254) /* NodeRemoved (E_NODEREMOVED) */);
  3129. return s;
  3130. }
  3131. static UrhoEventAdapter<NodeRemovedEventArgs> eventAdapterForNodeRemoved;
  3132. public event Action<NodeRemovedEventArgs> NodeRemoved
  3133. {
  3134. add
  3135. {
  3136. if (eventAdapterForNodeRemoved == null)
  3137. eventAdapterForNodeRemoved = new UrhoEventAdapter<NodeRemovedEventArgs>(typeof(Scene));
  3138. eventAdapterForNodeRemoved.AddManagedSubscriber(handle, value, SubscribeToNodeRemoved);
  3139. }
  3140. remove { eventAdapterForNodeRemoved.RemoveManagedSubscriber(handle, value); }
  3141. }
  3142. } /* class Scene */
  3143. } /* namespace */
  3144. namespace Urho
  3145. {
  3146. public partial struct ComponentAddedEventArgs
  3147. {
  3148. public EventDataContainer EventData;
  3149. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  3150. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  3151. public Component Component => EventData.get_Component(unchecked((int)3739730333) /* Component (P_COMPONENT) */);
  3152. } /* struct ComponentAddedEventArgs */
  3153. public partial class Scene
  3154. {
  3155. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ComponentAdded += ...' instead.")]
  3156. public Subscription SubscribeToComponentAdded(Action<ComponentAddedEventArgs> handler)
  3157. {
  3158. Action<IntPtr> proxy = (x) => { var d = new ComponentAddedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3159. var s = new Subscription(proxy);
  3160. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2336085059) /* ComponentAdded (E_COMPONENTADDED) */);
  3161. return s;
  3162. }
  3163. static UrhoEventAdapter<ComponentAddedEventArgs> eventAdapterForComponentAdded;
  3164. public event Action<ComponentAddedEventArgs> ComponentAdded
  3165. {
  3166. add
  3167. {
  3168. if (eventAdapterForComponentAdded == null)
  3169. eventAdapterForComponentAdded = new UrhoEventAdapter<ComponentAddedEventArgs>(typeof(Scene));
  3170. eventAdapterForComponentAdded.AddManagedSubscriber(handle, value, SubscribeToComponentAdded);
  3171. }
  3172. remove { eventAdapterForComponentAdded.RemoveManagedSubscriber(handle, value); }
  3173. }
  3174. } /* class Scene */
  3175. } /* namespace */
  3176. namespace Urho
  3177. {
  3178. public partial struct ComponentRemovedEventArgs
  3179. {
  3180. public EventDataContainer EventData;
  3181. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  3182. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  3183. public Component Component => EventData.get_Component(unchecked((int)3739730333) /* Component (P_COMPONENT) */);
  3184. } /* struct ComponentRemovedEventArgs */
  3185. public partial class Scene
  3186. {
  3187. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ComponentRemoved += ...' instead.")]
  3188. public Subscription SubscribeToComponentRemoved(Action<ComponentRemovedEventArgs> handler)
  3189. {
  3190. Action<IntPtr> proxy = (x) => { var d = new ComponentRemovedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3191. var s = new Subscription(proxy);
  3192. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3480078691) /* ComponentRemoved (E_COMPONENTREMOVED) */);
  3193. return s;
  3194. }
  3195. static UrhoEventAdapter<ComponentRemovedEventArgs> eventAdapterForComponentRemoved;
  3196. public event Action<ComponentRemovedEventArgs> ComponentRemoved
  3197. {
  3198. add
  3199. {
  3200. if (eventAdapterForComponentRemoved == null)
  3201. eventAdapterForComponentRemoved = new UrhoEventAdapter<ComponentRemovedEventArgs>(typeof(Scene));
  3202. eventAdapterForComponentRemoved.AddManagedSubscriber(handle, value, SubscribeToComponentRemoved);
  3203. }
  3204. remove { eventAdapterForComponentRemoved.RemoveManagedSubscriber(handle, value); }
  3205. }
  3206. } /* class Scene */
  3207. } /* namespace */
  3208. namespace Urho
  3209. {
  3210. public partial struct NodeNameChangedEventArgs
  3211. {
  3212. public EventDataContainer EventData;
  3213. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  3214. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  3215. } /* struct NodeNameChangedEventArgs */
  3216. public partial class Scene
  3217. {
  3218. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeNameChanged += ...' instead.")]
  3219. public Subscription SubscribeToNodeNameChanged(Action<NodeNameChangedEventArgs> handler)
  3220. {
  3221. Action<IntPtr> proxy = (x) => { var d = new NodeNameChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3222. var s = new Subscription(proxy);
  3223. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2921157799) /* NodeNameChanged (E_NODENAMECHANGED) */);
  3224. return s;
  3225. }
  3226. static UrhoEventAdapter<NodeNameChangedEventArgs> eventAdapterForNodeNameChanged;
  3227. public event Action<NodeNameChangedEventArgs> NodeNameChanged
  3228. {
  3229. add
  3230. {
  3231. if (eventAdapterForNodeNameChanged == null)
  3232. eventAdapterForNodeNameChanged = new UrhoEventAdapter<NodeNameChangedEventArgs>(typeof(Scene));
  3233. eventAdapterForNodeNameChanged.AddManagedSubscriber(handle, value, SubscribeToNodeNameChanged);
  3234. }
  3235. remove { eventAdapterForNodeNameChanged.RemoveManagedSubscriber(handle, value); }
  3236. }
  3237. } /* class Scene */
  3238. } /* namespace */
  3239. namespace Urho
  3240. {
  3241. public partial struct NodeEnabledChangedEventArgs
  3242. {
  3243. public EventDataContainer EventData;
  3244. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  3245. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  3246. } /* struct NodeEnabledChangedEventArgs */
  3247. public partial class Scene
  3248. {
  3249. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeEnabledChanged += ...' instead.")]
  3250. public Subscription SubscribeToNodeEnabledChanged(Action<NodeEnabledChangedEventArgs> handler)
  3251. {
  3252. Action<IntPtr> proxy = (x) => { var d = new NodeEnabledChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3253. var s = new Subscription(proxy);
  3254. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)476028341) /* NodeEnabledChanged (E_NODEENABLEDCHANGED) */);
  3255. return s;
  3256. }
  3257. static UrhoEventAdapter<NodeEnabledChangedEventArgs> eventAdapterForNodeEnabledChanged;
  3258. public event Action<NodeEnabledChangedEventArgs> NodeEnabledChanged
  3259. {
  3260. add
  3261. {
  3262. if (eventAdapterForNodeEnabledChanged == null)
  3263. eventAdapterForNodeEnabledChanged = new UrhoEventAdapter<NodeEnabledChangedEventArgs>(typeof(Scene));
  3264. eventAdapterForNodeEnabledChanged.AddManagedSubscriber(handle, value, SubscribeToNodeEnabledChanged);
  3265. }
  3266. remove { eventAdapterForNodeEnabledChanged.RemoveManagedSubscriber(handle, value); }
  3267. }
  3268. } /* class Scene */
  3269. } /* namespace */
  3270. namespace Urho
  3271. {
  3272. public partial struct NodeTagAddedEventArgs
  3273. {
  3274. public EventDataContainer EventData;
  3275. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  3276. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  3277. public String Tag => EventData.get_String(unchecked((int)964697786) /* Tag (P_TAG) */);
  3278. } /* struct NodeTagAddedEventArgs */
  3279. } /* namespace */
  3280. namespace Urho
  3281. {
  3282. public partial struct NodeTagRemovedEventArgs
  3283. {
  3284. public EventDataContainer EventData;
  3285. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  3286. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  3287. public String Tag => EventData.get_String(unchecked((int)964697786) /* Tag (P_TAG) */);
  3288. } /* struct NodeTagRemovedEventArgs */
  3289. } /* namespace */
  3290. namespace Urho
  3291. {
  3292. public partial struct ComponentEnabledChangedEventArgs
  3293. {
  3294. public EventDataContainer EventData;
  3295. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  3296. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  3297. public Component Component => EventData.get_Component(unchecked((int)3739730333) /* Component (P_COMPONENT) */);
  3298. } /* struct ComponentEnabledChangedEventArgs */
  3299. public partial class Scene
  3300. {
  3301. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ComponentEnabledChanged += ...' instead.")]
  3302. public Subscription SubscribeToComponentEnabledChanged(Action<ComponentEnabledChangedEventArgs> handler)
  3303. {
  3304. Action<IntPtr> proxy = (x) => { var d = new ComponentEnabledChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3305. var s = new Subscription(proxy);
  3306. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1976356048) /* ComponentEnabledChanged (E_COMPONENTENABLEDCHANGED) */);
  3307. return s;
  3308. }
  3309. static UrhoEventAdapter<ComponentEnabledChangedEventArgs> eventAdapterForComponentEnabledChanged;
  3310. public event Action<ComponentEnabledChangedEventArgs> ComponentEnabledChanged
  3311. {
  3312. add
  3313. {
  3314. if (eventAdapterForComponentEnabledChanged == null)
  3315. eventAdapterForComponentEnabledChanged = new UrhoEventAdapter<ComponentEnabledChangedEventArgs>(typeof(Scene));
  3316. eventAdapterForComponentEnabledChanged.AddManagedSubscriber(handle, value, SubscribeToComponentEnabledChanged);
  3317. }
  3318. remove { eventAdapterForComponentEnabledChanged.RemoveManagedSubscriber(handle, value); }
  3319. }
  3320. } /* class Scene */
  3321. } /* namespace */
  3322. namespace Urho
  3323. {
  3324. public partial struct TemporaryChangedEventArgs
  3325. {
  3326. public EventDataContainer EventData;
  3327. public Serializable Serializable => EventData.get_Serializable(unchecked((int)1481290239) /* Serializable (P_SERIALIZABLE) */);
  3328. } /* struct TemporaryChangedEventArgs */
  3329. public partial class Serializable
  3330. {
  3331. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TemporaryChanged += ...' instead.")]
  3332. public Subscription SubscribeToTemporaryChanged(Action<TemporaryChangedEventArgs> handler)
  3333. {
  3334. Action<IntPtr> proxy = (x) => { var d = new TemporaryChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3335. var s = new Subscription(proxy);
  3336. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2975291043) /* TemporaryChanged (E_TEMPORARYCHANGED) */);
  3337. return s;
  3338. }
  3339. static UrhoEventAdapter<TemporaryChangedEventArgs> eventAdapterForTemporaryChanged;
  3340. public event Action<TemporaryChangedEventArgs> TemporaryChanged
  3341. {
  3342. add
  3343. {
  3344. if (eventAdapterForTemporaryChanged == null)
  3345. eventAdapterForTemporaryChanged = new UrhoEventAdapter<TemporaryChangedEventArgs>(typeof(Serializable));
  3346. eventAdapterForTemporaryChanged.AddManagedSubscriber(handle, value, SubscribeToTemporaryChanged);
  3347. }
  3348. remove { eventAdapterForTemporaryChanged.RemoveManagedSubscriber(handle, value); }
  3349. }
  3350. } /* class Serializable */
  3351. } /* namespace */
  3352. namespace Urho
  3353. {
  3354. public partial struct NodeClonedEventArgs
  3355. {
  3356. public EventDataContainer EventData;
  3357. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  3358. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  3359. public Node CloneNode => EventData.get_Node(unchecked((int)3545672031) /* CloneNode (P_CLONENODE) */);
  3360. } /* struct NodeClonedEventArgs */
  3361. public partial class Scene
  3362. {
  3363. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeCloned += ...' instead.")]
  3364. public Subscription SubscribeToNodeCloned(Action<NodeClonedEventArgs> handler)
  3365. {
  3366. Action<IntPtr> proxy = (x) => { var d = new NodeClonedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3367. var s = new Subscription(proxy);
  3368. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2335200841) /* NodeCloned (E_NODECLONED) */);
  3369. return s;
  3370. }
  3371. static UrhoEventAdapter<NodeClonedEventArgs> eventAdapterForNodeCloned;
  3372. public event Action<NodeClonedEventArgs> NodeCloned
  3373. {
  3374. add
  3375. {
  3376. if (eventAdapterForNodeCloned == null)
  3377. eventAdapterForNodeCloned = new UrhoEventAdapter<NodeClonedEventArgs>(typeof(Scene));
  3378. eventAdapterForNodeCloned.AddManagedSubscriber(handle, value, SubscribeToNodeCloned);
  3379. }
  3380. remove { eventAdapterForNodeCloned.RemoveManagedSubscriber(handle, value); }
  3381. }
  3382. } /* class Scene */
  3383. } /* namespace */
  3384. namespace Urho
  3385. {
  3386. public partial struct ComponentClonedEventArgs
  3387. {
  3388. public EventDataContainer EventData;
  3389. public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
  3390. public Component Component => EventData.get_Component(unchecked((int)3739730333) /* Component (P_COMPONENT) */);
  3391. public Component CloneComponent => EventData.get_Component(unchecked((int)733556864) /* CloneComponent (P_CLONECOMPONENT) */);
  3392. } /* struct ComponentClonedEventArgs */
  3393. public partial class Scene
  3394. {
  3395. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ComponentCloned += ...' instead.")]
  3396. public Subscription SubscribeToComponentCloned(Action<ComponentClonedEventArgs> handler)
  3397. {
  3398. Action<IntPtr> proxy = (x) => { var d = new ComponentClonedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3399. var s = new Subscription(proxy);
  3400. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1752202084) /* ComponentCloned (E_COMPONENTCLONED) */);
  3401. return s;
  3402. }
  3403. static UrhoEventAdapter<ComponentClonedEventArgs> eventAdapterForComponentCloned;
  3404. public event Action<ComponentClonedEventArgs> ComponentCloned
  3405. {
  3406. add
  3407. {
  3408. if (eventAdapterForComponentCloned == null)
  3409. eventAdapterForComponentCloned = new UrhoEventAdapter<ComponentClonedEventArgs>(typeof(Scene));
  3410. eventAdapterForComponentCloned.AddManagedSubscriber(handle, value, SubscribeToComponentCloned);
  3411. }
  3412. remove { eventAdapterForComponentCloned.RemoveManagedSubscriber(handle, value); }
  3413. }
  3414. } /* class Scene */
  3415. } /* namespace */
  3416. namespace Urho
  3417. {
  3418. public partial struct InterceptNetworkUpdateEventArgs
  3419. {
  3420. public EventDataContainer EventData;
  3421. public Serializable Serializable => EventData.get_Serializable(unchecked((int)1481290239) /* Serializable (P_SERIALIZABLE) */);
  3422. public uint TimeStamp => EventData.get_uint(unchecked((int)1110190518) /* TimeStamp (P_TIMESTAMP) */);
  3423. public uint Index => EventData.get_uint(unchecked((int)193188146) /* Index (P_INDEX) */);
  3424. public String Name => EventData.get_String(unchecked((int)773762347) /* Name (P_NAME) */);
  3425. public Variant Value => EventData.get_Variant(unchecked((int)632064625) /* Value (P_VALUE) */);
  3426. } /* struct InterceptNetworkUpdateEventArgs */
  3427. public partial class Serializable
  3428. {
  3429. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.InterceptNetworkUpdate += ...' instead.")]
  3430. public Subscription SubscribeToInterceptNetworkUpdate(Action<InterceptNetworkUpdateEventArgs> handler)
  3431. {
  3432. Action<IntPtr> proxy = (x) => { var d = new InterceptNetworkUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3433. var s = new Subscription(proxy);
  3434. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4264627733) /* InterceptNetworkUpdate (E_INTERCEPTNETWORKUPDATE) */);
  3435. return s;
  3436. }
  3437. static UrhoEventAdapter<InterceptNetworkUpdateEventArgs> eventAdapterForInterceptNetworkUpdate;
  3438. public event Action<InterceptNetworkUpdateEventArgs> InterceptNetworkUpdate
  3439. {
  3440. add
  3441. {
  3442. if (eventAdapterForInterceptNetworkUpdate == null)
  3443. eventAdapterForInterceptNetworkUpdate = new UrhoEventAdapter<InterceptNetworkUpdateEventArgs>(typeof(Serializable));
  3444. eventAdapterForInterceptNetworkUpdate.AddManagedSubscriber(handle, value, SubscribeToInterceptNetworkUpdate);
  3445. }
  3446. remove { eventAdapterForInterceptNetworkUpdate.RemoveManagedSubscriber(handle, value); }
  3447. }
  3448. } /* class Serializable */
  3449. } /* namespace */
  3450. namespace Urho.Gui
  3451. {
  3452. public partial struct UIMouseClickEventArgs
  3453. {
  3454. public EventDataContainer EventData;
  3455. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3456. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  3457. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  3458. public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
  3459. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  3460. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  3461. } /* struct UIMouseClickEventArgs */
  3462. public partial class UI
  3463. {
  3464. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.UIMouseClick += ...' instead.")]
  3465. public Subscription SubscribeToUIMouseClick(Action<UIMouseClickEventArgs> handler)
  3466. {
  3467. Action<IntPtr> proxy = (x) => { var d = new UIMouseClickEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3468. var s = new Subscription(proxy);
  3469. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2980213559) /* UIMouseClick (E_UIMOUSECLICK) */);
  3470. return s;
  3471. }
  3472. static UrhoEventAdapter<UIMouseClickEventArgs> eventAdapterForUIMouseClick;
  3473. public event Action<UIMouseClickEventArgs> UIMouseClick
  3474. {
  3475. add
  3476. {
  3477. if (eventAdapterForUIMouseClick == null)
  3478. eventAdapterForUIMouseClick = new UrhoEventAdapter<UIMouseClickEventArgs>(typeof(UI));
  3479. eventAdapterForUIMouseClick.AddManagedSubscriber(handle, value, SubscribeToUIMouseClick);
  3480. }
  3481. remove { eventAdapterForUIMouseClick.RemoveManagedSubscriber(handle, value); }
  3482. }
  3483. } /* class UI */
  3484. } /* namespace */
  3485. namespace Urho.Gui
  3486. {
  3487. public partial struct UIMouseClickEndEventArgs
  3488. {
  3489. public EventDataContainer EventData;
  3490. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3491. public UIElement BeginElement => EventData.get_UIElement(unchecked((int)660892787) /* BeginElement (P_BEGINELEMENT) */);
  3492. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  3493. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  3494. public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
  3495. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  3496. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  3497. } /* struct UIMouseClickEndEventArgs */
  3498. public partial class UI
  3499. {
  3500. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.UIMouseClickEnd += ...' instead.")]
  3501. public Subscription SubscribeToUIMouseClickEnd(Action<UIMouseClickEndEventArgs> handler)
  3502. {
  3503. Action<IntPtr> proxy = (x) => { var d = new UIMouseClickEndEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3504. var s = new Subscription(proxy);
  3505. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3905216356) /* UIMouseClickEnd (E_UIMOUSECLICKEND) */);
  3506. return s;
  3507. }
  3508. static UrhoEventAdapter<UIMouseClickEndEventArgs> eventAdapterForUIMouseClickEnd;
  3509. public event Action<UIMouseClickEndEventArgs> UIMouseClickEnd
  3510. {
  3511. add
  3512. {
  3513. if (eventAdapterForUIMouseClickEnd == null)
  3514. eventAdapterForUIMouseClickEnd = new UrhoEventAdapter<UIMouseClickEndEventArgs>(typeof(UI));
  3515. eventAdapterForUIMouseClickEnd.AddManagedSubscriber(handle, value, SubscribeToUIMouseClickEnd);
  3516. }
  3517. remove { eventAdapterForUIMouseClickEnd.RemoveManagedSubscriber(handle, value); }
  3518. }
  3519. } /* class UI */
  3520. } /* namespace */
  3521. namespace Urho.Gui
  3522. {
  3523. public partial struct UIMouseDoubleClickEventArgs
  3524. {
  3525. public EventDataContainer EventData;
  3526. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3527. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  3528. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  3529. public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
  3530. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  3531. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  3532. } /* struct UIMouseDoubleClickEventArgs */
  3533. } /* namespace */
  3534. namespace Urho
  3535. {
  3536. public partial struct ClickEventArgs
  3537. {
  3538. public EventDataContainer EventData;
  3539. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3540. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  3541. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  3542. public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
  3543. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  3544. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  3545. } /* struct ClickEventArgs */
  3546. } /* namespace */
  3547. namespace Urho
  3548. {
  3549. public partial struct ClickEndEventArgs
  3550. {
  3551. public EventDataContainer EventData;
  3552. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3553. public UIElement BeginElement => EventData.get_UIElement(unchecked((int)660892787) /* BeginElement (P_BEGINELEMENT) */);
  3554. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  3555. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  3556. public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
  3557. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  3558. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  3559. } /* struct ClickEndEventArgs */
  3560. } /* namespace */
  3561. namespace Urho
  3562. {
  3563. public partial struct DoubleClickEventArgs
  3564. {
  3565. public EventDataContainer EventData;
  3566. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3567. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  3568. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  3569. public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
  3570. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  3571. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  3572. } /* struct DoubleClickEventArgs */
  3573. } /* namespace */
  3574. namespace Urho.Gui
  3575. {
  3576. public partial struct DragDropTestEventArgs
  3577. {
  3578. public EventDataContainer EventData;
  3579. public UIElement Source => EventData.get_UIElement(unchecked((int)3851438139) /* Source (P_SOURCE) */);
  3580. public UIElement Target => EventData.get_UIElement(unchecked((int)3016907569) /* Target (P_TARGET) */);
  3581. public bool Accept => EventData.get_bool(unchecked((int)3683158536) /* Accept (P_ACCEPT) */);
  3582. } /* struct DragDropTestEventArgs */
  3583. public partial class UIElement
  3584. {
  3585. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.DragDropTest += ...' instead.")]
  3586. public Subscription SubscribeToDragDropTest(Action<DragDropTestEventArgs> handler)
  3587. {
  3588. Action<IntPtr> proxy = (x) => { var d = new DragDropTestEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3589. var s = new Subscription(proxy);
  3590. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2650870357) /* DragDropTest (E_DRAGDROPTEST) */);
  3591. return s;
  3592. }
  3593. static UrhoEventAdapter<DragDropTestEventArgs> eventAdapterForDragDropTest;
  3594. public event Action<DragDropTestEventArgs> DragDropTest
  3595. {
  3596. add
  3597. {
  3598. if (eventAdapterForDragDropTest == null)
  3599. eventAdapterForDragDropTest = new UrhoEventAdapter<DragDropTestEventArgs>(typeof(UIElement));
  3600. eventAdapterForDragDropTest.AddManagedSubscriber(handle, value, SubscribeToDragDropTest);
  3601. }
  3602. remove { eventAdapterForDragDropTest.RemoveManagedSubscriber(handle, value); }
  3603. }
  3604. } /* class UIElement */
  3605. } /* namespace */
  3606. namespace Urho.Gui
  3607. {
  3608. public partial struct DragDropFinishEventArgs
  3609. {
  3610. public EventDataContainer EventData;
  3611. public UIElement Source => EventData.get_UIElement(unchecked((int)3851438139) /* Source (P_SOURCE) */);
  3612. public UIElement Target => EventData.get_UIElement(unchecked((int)3016907569) /* Target (P_TARGET) */);
  3613. public bool Accept => EventData.get_bool(unchecked((int)3683158536) /* Accept (P_ACCEPT) */);
  3614. } /* struct DragDropFinishEventArgs */
  3615. public partial class UIElement
  3616. {
  3617. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.DragDropFinish += ...' instead.")]
  3618. public Subscription SubscribeToDragDropFinish(Action<DragDropFinishEventArgs> handler)
  3619. {
  3620. Action<IntPtr> proxy = (x) => { var d = new DragDropFinishEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3621. var s = new Subscription(proxy);
  3622. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2686304470) /* DragDropFinish (E_DRAGDROPFINISH) */);
  3623. return s;
  3624. }
  3625. static UrhoEventAdapter<DragDropFinishEventArgs> eventAdapterForDragDropFinish;
  3626. public event Action<DragDropFinishEventArgs> DragDropFinish
  3627. {
  3628. add
  3629. {
  3630. if (eventAdapterForDragDropFinish == null)
  3631. eventAdapterForDragDropFinish = new UrhoEventAdapter<DragDropFinishEventArgs>(typeof(UIElement));
  3632. eventAdapterForDragDropFinish.AddManagedSubscriber(handle, value, SubscribeToDragDropFinish);
  3633. }
  3634. remove { eventAdapterForDragDropFinish.RemoveManagedSubscriber(handle, value); }
  3635. }
  3636. } /* class UIElement */
  3637. } /* namespace */
  3638. namespace Urho.Gui
  3639. {
  3640. public partial struct FocusChangedEventArgs
  3641. {
  3642. public EventDataContainer EventData;
  3643. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3644. public UIElement ClickedElement => EventData.get_UIElement(unchecked((int)1630589429) /* ClickedElement (P_CLICKEDELEMENT) */);
  3645. } /* struct FocusChangedEventArgs */
  3646. public partial class UI
  3647. {
  3648. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.FocusChanged += ...' instead.")]
  3649. public Subscription SubscribeToFocusChanged(Action<FocusChangedEventArgs> handler)
  3650. {
  3651. Action<IntPtr> proxy = (x) => { var d = new FocusChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3652. var s = new Subscription(proxy);
  3653. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3351127484) /* FocusChanged (E_FOCUSCHANGED) */);
  3654. return s;
  3655. }
  3656. static UrhoEventAdapter<FocusChangedEventArgs> eventAdapterForFocusChanged;
  3657. public event Action<FocusChangedEventArgs> FocusChanged
  3658. {
  3659. add
  3660. {
  3661. if (eventAdapterForFocusChanged == null)
  3662. eventAdapterForFocusChanged = new UrhoEventAdapter<FocusChangedEventArgs>(typeof(UI));
  3663. eventAdapterForFocusChanged.AddManagedSubscriber(handle, value, SubscribeToFocusChanged);
  3664. }
  3665. remove { eventAdapterForFocusChanged.RemoveManagedSubscriber(handle, value); }
  3666. }
  3667. } /* class UI */
  3668. } /* namespace */
  3669. namespace Urho.Gui
  3670. {
  3671. public partial struct NameChangedEventArgs
  3672. {
  3673. public EventDataContainer EventData;
  3674. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3675. } /* struct NameChangedEventArgs */
  3676. public partial class UIElement
  3677. {
  3678. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NameChanged += ...' instead.")]
  3679. public Subscription SubscribeToNameChanged(Action<NameChangedEventArgs> handler)
  3680. {
  3681. Action<IntPtr> proxy = (x) => { var d = new NameChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3682. var s = new Subscription(proxy);
  3683. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1102426921) /* NameChanged (E_NAMECHANGED) */);
  3684. return s;
  3685. }
  3686. static UrhoEventAdapter<NameChangedEventArgs> eventAdapterForNameChanged;
  3687. public event Action<NameChangedEventArgs> NameChanged
  3688. {
  3689. add
  3690. {
  3691. if (eventAdapterForNameChanged == null)
  3692. eventAdapterForNameChanged = new UrhoEventAdapter<NameChangedEventArgs>(typeof(UIElement));
  3693. eventAdapterForNameChanged.AddManagedSubscriber(handle, value, SubscribeToNameChanged);
  3694. }
  3695. remove { eventAdapterForNameChanged.RemoveManagedSubscriber(handle, value); }
  3696. }
  3697. } /* class UIElement */
  3698. } /* namespace */
  3699. namespace Urho.Gui
  3700. {
  3701. public partial struct ResizedEventArgs
  3702. {
  3703. public EventDataContainer EventData;
  3704. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3705. public int Width => EventData.get_int(unchecked((int)3655201574) /* Width (P_WIDTH) */);
  3706. public int Height => EventData.get_int(unchecked((int)380957255) /* Height (P_HEIGHT) */);
  3707. public int DX => EventData.get_int(unchecked((int)6560020) /* DX (P_DX) */);
  3708. public int DY => EventData.get_int(unchecked((int)6560021) /* DY (P_DY) */);
  3709. } /* struct ResizedEventArgs */
  3710. public partial class UIElement
  3711. {
  3712. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Resized += ...' instead.")]
  3713. public Subscription SubscribeToResized(Action<ResizedEventArgs> handler)
  3714. {
  3715. Action<IntPtr> proxy = (x) => { var d = new ResizedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3716. var s = new Subscription(proxy);
  3717. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4086520784) /* Resized (E_RESIZED) */);
  3718. return s;
  3719. }
  3720. static UrhoEventAdapter<ResizedEventArgs> eventAdapterForResized;
  3721. public event Action<ResizedEventArgs> Resized
  3722. {
  3723. add
  3724. {
  3725. if (eventAdapterForResized == null)
  3726. eventAdapterForResized = new UrhoEventAdapter<ResizedEventArgs>(typeof(UIElement));
  3727. eventAdapterForResized.AddManagedSubscriber(handle, value, SubscribeToResized);
  3728. }
  3729. remove { eventAdapterForResized.RemoveManagedSubscriber(handle, value); }
  3730. }
  3731. } /* class UIElement */
  3732. } /* namespace */
  3733. namespace Urho.Gui
  3734. {
  3735. public partial struct PositionedEventArgs
  3736. {
  3737. public EventDataContainer EventData;
  3738. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3739. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  3740. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  3741. } /* struct PositionedEventArgs */
  3742. public partial class UIElement
  3743. {
  3744. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Positioned += ...' instead.")]
  3745. public Subscription SubscribeToPositioned(Action<PositionedEventArgs> handler)
  3746. {
  3747. Action<IntPtr> proxy = (x) => { var d = new PositionedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3748. var s = new Subscription(proxy);
  3749. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2176866088) /* Positioned (E_POSITIONED) */);
  3750. return s;
  3751. }
  3752. static UrhoEventAdapter<PositionedEventArgs> eventAdapterForPositioned;
  3753. public event Action<PositionedEventArgs> Positioned
  3754. {
  3755. add
  3756. {
  3757. if (eventAdapterForPositioned == null)
  3758. eventAdapterForPositioned = new UrhoEventAdapter<PositionedEventArgs>(typeof(UIElement));
  3759. eventAdapterForPositioned.AddManagedSubscriber(handle, value, SubscribeToPositioned);
  3760. }
  3761. remove { eventAdapterForPositioned.RemoveManagedSubscriber(handle, value); }
  3762. }
  3763. } /* class UIElement */
  3764. } /* namespace */
  3765. namespace Urho.Gui
  3766. {
  3767. public partial struct VisibleChangedEventArgs
  3768. {
  3769. public EventDataContainer EventData;
  3770. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3771. public bool Visible => EventData.get_bool(unchecked((int)2569414770) /* Visible (P_VISIBLE) */);
  3772. } /* struct VisibleChangedEventArgs */
  3773. public partial class UIElement
  3774. {
  3775. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.VisibleChanged += ...' instead.")]
  3776. public Subscription SubscribeToVisibleChanged(Action<VisibleChangedEventArgs> handler)
  3777. {
  3778. Action<IntPtr> proxy = (x) => { var d = new VisibleChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3779. var s = new Subscription(proxy);
  3780. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2906506274) /* VisibleChanged (E_VISIBLECHANGED) */);
  3781. return s;
  3782. }
  3783. static UrhoEventAdapter<VisibleChangedEventArgs> eventAdapterForVisibleChanged;
  3784. public event Action<VisibleChangedEventArgs> VisibleChanged
  3785. {
  3786. add
  3787. {
  3788. if (eventAdapterForVisibleChanged == null)
  3789. eventAdapterForVisibleChanged = new UrhoEventAdapter<VisibleChangedEventArgs>(typeof(UIElement));
  3790. eventAdapterForVisibleChanged.AddManagedSubscriber(handle, value, SubscribeToVisibleChanged);
  3791. }
  3792. remove { eventAdapterForVisibleChanged.RemoveManagedSubscriber(handle, value); }
  3793. }
  3794. } /* class UIElement */
  3795. } /* namespace */
  3796. namespace Urho.Gui
  3797. {
  3798. public partial struct FocusedEventArgs
  3799. {
  3800. public EventDataContainer EventData;
  3801. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3802. public bool ByKey => EventData.get_bool(unchecked((int)860527848) /* ByKey (P_BYKEY) */);
  3803. } /* struct FocusedEventArgs */
  3804. public partial class UIElement
  3805. {
  3806. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Focused += ...' instead.")]
  3807. public Subscription SubscribeToFocused(Action<FocusedEventArgs> handler)
  3808. {
  3809. Action<IntPtr> proxy = (x) => { var d = new FocusedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3810. var s = new Subscription(proxy);
  3811. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3009767063) /* Focused (E_FOCUSED) */);
  3812. return s;
  3813. }
  3814. static UrhoEventAdapter<FocusedEventArgs> eventAdapterForFocused;
  3815. public event Action<FocusedEventArgs> Focused
  3816. {
  3817. add
  3818. {
  3819. if (eventAdapterForFocused == null)
  3820. eventAdapterForFocused = new UrhoEventAdapter<FocusedEventArgs>(typeof(UIElement));
  3821. eventAdapterForFocused.AddManagedSubscriber(handle, value, SubscribeToFocused);
  3822. }
  3823. remove { eventAdapterForFocused.RemoveManagedSubscriber(handle, value); }
  3824. }
  3825. } /* class UIElement */
  3826. } /* namespace */
  3827. namespace Urho.Gui
  3828. {
  3829. public partial struct DefocusedEventArgs
  3830. {
  3831. public EventDataContainer EventData;
  3832. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3833. } /* struct DefocusedEventArgs */
  3834. public partial class UIElement
  3835. {
  3836. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Defocused += ...' instead.")]
  3837. public Subscription SubscribeToDefocused(Action<DefocusedEventArgs> handler)
  3838. {
  3839. Action<IntPtr> proxy = (x) => { var d = new DefocusedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3840. var s = new Subscription(proxy);
  3841. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2137964374) /* Defocused (E_DEFOCUSED) */);
  3842. return s;
  3843. }
  3844. static UrhoEventAdapter<DefocusedEventArgs> eventAdapterForDefocused;
  3845. public event Action<DefocusedEventArgs> Defocused
  3846. {
  3847. add
  3848. {
  3849. if (eventAdapterForDefocused == null)
  3850. eventAdapterForDefocused = new UrhoEventAdapter<DefocusedEventArgs>(typeof(UIElement));
  3851. eventAdapterForDefocused.AddManagedSubscriber(handle, value, SubscribeToDefocused);
  3852. }
  3853. remove { eventAdapterForDefocused.RemoveManagedSubscriber(handle, value); }
  3854. }
  3855. } /* class UIElement */
  3856. } /* namespace */
  3857. namespace Urho.Gui
  3858. {
  3859. public partial struct LayoutUpdatedEventArgs
  3860. {
  3861. public EventDataContainer EventData;
  3862. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3863. } /* struct LayoutUpdatedEventArgs */
  3864. public partial class UIElement
  3865. {
  3866. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.LayoutUpdated += ...' instead.")]
  3867. public Subscription SubscribeToLayoutUpdated(Action<LayoutUpdatedEventArgs> handler)
  3868. {
  3869. Action<IntPtr> proxy = (x) => { var d = new LayoutUpdatedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3870. var s = new Subscription(proxy);
  3871. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4202066961) /* LayoutUpdated (E_LAYOUTUPDATED) */);
  3872. return s;
  3873. }
  3874. static UrhoEventAdapter<LayoutUpdatedEventArgs> eventAdapterForLayoutUpdated;
  3875. public event Action<LayoutUpdatedEventArgs> LayoutUpdated
  3876. {
  3877. add
  3878. {
  3879. if (eventAdapterForLayoutUpdated == null)
  3880. eventAdapterForLayoutUpdated = new UrhoEventAdapter<LayoutUpdatedEventArgs>(typeof(UIElement));
  3881. eventAdapterForLayoutUpdated.AddManagedSubscriber(handle, value, SubscribeToLayoutUpdated);
  3882. }
  3883. remove { eventAdapterForLayoutUpdated.RemoveManagedSubscriber(handle, value); }
  3884. }
  3885. } /* class UIElement */
  3886. } /* namespace */
  3887. namespace Urho.Gui
  3888. {
  3889. public partial struct PressedEventArgs
  3890. {
  3891. public EventDataContainer EventData;
  3892. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3893. } /* struct PressedEventArgs */
  3894. public partial class Button
  3895. {
  3896. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Pressed += ...' instead.")]
  3897. public Subscription SubscribeToPressed(Action<PressedEventArgs> handler)
  3898. {
  3899. Action<IntPtr> proxy = (x) => { var d = new PressedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3900. var s = new Subscription(proxy);
  3901. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2120415202) /* Pressed (E_PRESSED) */);
  3902. return s;
  3903. }
  3904. static UrhoEventAdapter<PressedEventArgs> eventAdapterForPressed;
  3905. public event Action<PressedEventArgs> Pressed
  3906. {
  3907. add
  3908. {
  3909. if (eventAdapterForPressed == null)
  3910. eventAdapterForPressed = new UrhoEventAdapter<PressedEventArgs>(typeof(Button));
  3911. eventAdapterForPressed.AddManagedSubscriber(handle, value, SubscribeToPressed);
  3912. }
  3913. remove { eventAdapterForPressed.RemoveManagedSubscriber(handle, value); }
  3914. }
  3915. } /* class Button */
  3916. } /* namespace */
  3917. namespace Urho.Gui
  3918. {
  3919. public partial struct ReleasedEventArgs
  3920. {
  3921. public EventDataContainer EventData;
  3922. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3923. } /* struct ReleasedEventArgs */
  3924. public partial class Button
  3925. {
  3926. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Released += ...' instead.")]
  3927. public Subscription SubscribeToReleased(Action<ReleasedEventArgs> handler)
  3928. {
  3929. Action<IntPtr> proxy = (x) => { var d = new ReleasedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3930. var s = new Subscription(proxy);
  3931. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)501672573) /* Released (E_RELEASED) */);
  3932. return s;
  3933. }
  3934. static UrhoEventAdapter<ReleasedEventArgs> eventAdapterForReleased;
  3935. public event Action<ReleasedEventArgs> Released
  3936. {
  3937. add
  3938. {
  3939. if (eventAdapterForReleased == null)
  3940. eventAdapterForReleased = new UrhoEventAdapter<ReleasedEventArgs>(typeof(Button));
  3941. eventAdapterForReleased.AddManagedSubscriber(handle, value, SubscribeToReleased);
  3942. }
  3943. remove { eventAdapterForReleased.RemoveManagedSubscriber(handle, value); }
  3944. }
  3945. } /* class Button */
  3946. } /* namespace */
  3947. namespace Urho.Gui
  3948. {
  3949. public partial struct ToggledEventArgs
  3950. {
  3951. public EventDataContainer EventData;
  3952. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3953. public bool State => EventData.get_bool(unchecked((int)3363651793) /* State (P_STATE) */);
  3954. } /* struct ToggledEventArgs */
  3955. public partial class CheckBox
  3956. {
  3957. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Toggled += ...' instead.")]
  3958. public Subscription SubscribeToToggled(Action<ToggledEventArgs> handler)
  3959. {
  3960. Action<IntPtr> proxy = (x) => { var d = new ToggledEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3961. var s = new Subscription(proxy);
  3962. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3936229040) /* Toggled (E_TOGGLED) */);
  3963. return s;
  3964. }
  3965. static UrhoEventAdapter<ToggledEventArgs> eventAdapterForToggled;
  3966. public event Action<ToggledEventArgs> Toggled
  3967. {
  3968. add
  3969. {
  3970. if (eventAdapterForToggled == null)
  3971. eventAdapterForToggled = new UrhoEventAdapter<ToggledEventArgs>(typeof(CheckBox));
  3972. eventAdapterForToggled.AddManagedSubscriber(handle, value, SubscribeToToggled);
  3973. }
  3974. remove { eventAdapterForToggled.RemoveManagedSubscriber(handle, value); }
  3975. }
  3976. } /* class CheckBox */
  3977. } /* namespace */
  3978. namespace Urho.Gui
  3979. {
  3980. public partial struct SliderChangedEventArgs
  3981. {
  3982. public EventDataContainer EventData;
  3983. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  3984. public float Value => EventData.get_float(unchecked((int)632064625) /* Value (P_VALUE) */);
  3985. } /* struct SliderChangedEventArgs */
  3986. public partial class Slider
  3987. {
  3988. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.SliderChanged += ...' instead.")]
  3989. public Subscription SubscribeToSliderChanged(Action<SliderChangedEventArgs> handler)
  3990. {
  3991. Action<IntPtr> proxy = (x) => { var d = new SliderChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  3992. var s = new Subscription(proxy);
  3993. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1822227731) /* SliderChanged (E_SLIDERCHANGED) */);
  3994. return s;
  3995. }
  3996. static UrhoEventAdapter<SliderChangedEventArgs> eventAdapterForSliderChanged;
  3997. public event Action<SliderChangedEventArgs> SliderChanged
  3998. {
  3999. add
  4000. {
  4001. if (eventAdapterForSliderChanged == null)
  4002. eventAdapterForSliderChanged = new UrhoEventAdapter<SliderChangedEventArgs>(typeof(Slider));
  4003. eventAdapterForSliderChanged.AddManagedSubscriber(handle, value, SubscribeToSliderChanged);
  4004. }
  4005. remove { eventAdapterForSliderChanged.RemoveManagedSubscriber(handle, value); }
  4006. }
  4007. } /* class Slider */
  4008. } /* namespace */
  4009. namespace Urho.Gui
  4010. {
  4011. public partial struct SliderPagedEventArgs
  4012. {
  4013. public EventDataContainer EventData;
  4014. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4015. public int Offset => EventData.get_int(unchecked((int)1881751827) /* Offset (P_OFFSET) */);
  4016. public bool Pressed => EventData.get_bool(unchecked((int)2120415202) /* Pressed (P_PRESSED) */);
  4017. } /* struct SliderPagedEventArgs */
  4018. public partial class Slider
  4019. {
  4020. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.SliderPaged += ...' instead.")]
  4021. public Subscription SubscribeToSliderPaged(Action<SliderPagedEventArgs> handler)
  4022. {
  4023. Action<IntPtr> proxy = (x) => { var d = new SliderPagedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4024. var s = new Subscription(proxy);
  4025. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)436602484) /* SliderPaged (E_SLIDERPAGED) */);
  4026. return s;
  4027. }
  4028. static UrhoEventAdapter<SliderPagedEventArgs> eventAdapterForSliderPaged;
  4029. public event Action<SliderPagedEventArgs> SliderPaged
  4030. {
  4031. add
  4032. {
  4033. if (eventAdapterForSliderPaged == null)
  4034. eventAdapterForSliderPaged = new UrhoEventAdapter<SliderPagedEventArgs>(typeof(Slider));
  4035. eventAdapterForSliderPaged.AddManagedSubscriber(handle, value, SubscribeToSliderPaged);
  4036. }
  4037. remove { eventAdapterForSliderPaged.RemoveManagedSubscriber(handle, value); }
  4038. }
  4039. } /* class Slider */
  4040. } /* namespace */
  4041. namespace Urho
  4042. {
  4043. public partial struct ProgressBarChangedEventArgs
  4044. {
  4045. public EventDataContainer EventData;
  4046. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4047. public float Value => EventData.get_float(unchecked((int)632064625) /* Value (P_VALUE) */);
  4048. } /* struct ProgressBarChangedEventArgs */
  4049. } /* namespace */
  4050. namespace Urho.Gui
  4051. {
  4052. public partial struct ScrollBarChangedEventArgs
  4053. {
  4054. public EventDataContainer EventData;
  4055. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4056. public float Value => EventData.get_float(unchecked((int)632064625) /* Value (P_VALUE) */);
  4057. } /* struct ScrollBarChangedEventArgs */
  4058. public partial class ScrollBar
  4059. {
  4060. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ScrollBarChanged += ...' instead.")]
  4061. public Subscription SubscribeToScrollBarChanged(Action<ScrollBarChangedEventArgs> handler)
  4062. {
  4063. Action<IntPtr> proxy = (x) => { var d = new ScrollBarChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4064. var s = new Subscription(proxy);
  4065. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2589580238) /* ScrollBarChanged (E_SCROLLBARCHANGED) */);
  4066. return s;
  4067. }
  4068. static UrhoEventAdapter<ScrollBarChangedEventArgs> eventAdapterForScrollBarChanged;
  4069. public event Action<ScrollBarChangedEventArgs> ScrollBarChanged
  4070. {
  4071. add
  4072. {
  4073. if (eventAdapterForScrollBarChanged == null)
  4074. eventAdapterForScrollBarChanged = new UrhoEventAdapter<ScrollBarChangedEventArgs>(typeof(ScrollBar));
  4075. eventAdapterForScrollBarChanged.AddManagedSubscriber(handle, value, SubscribeToScrollBarChanged);
  4076. }
  4077. remove { eventAdapterForScrollBarChanged.RemoveManagedSubscriber(handle, value); }
  4078. }
  4079. } /* class ScrollBar */
  4080. } /* namespace */
  4081. namespace Urho.Gui
  4082. {
  4083. public partial struct ViewChangedEventArgs
  4084. {
  4085. public EventDataContainer EventData;
  4086. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4087. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  4088. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  4089. } /* struct ViewChangedEventArgs */
  4090. public partial class ScrollView
  4091. {
  4092. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ViewChanged += ...' instead.")]
  4093. public Subscription SubscribeToViewChanged(Action<ViewChangedEventArgs> handler)
  4094. {
  4095. Action<IntPtr> proxy = (x) => { var d = new ViewChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4096. var s = new Subscription(proxy);
  4097. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3751985295) /* ViewChanged (E_VIEWCHANGED) */);
  4098. return s;
  4099. }
  4100. static UrhoEventAdapter<ViewChangedEventArgs> eventAdapterForViewChanged;
  4101. public event Action<ViewChangedEventArgs> ViewChanged
  4102. {
  4103. add
  4104. {
  4105. if (eventAdapterForViewChanged == null)
  4106. eventAdapterForViewChanged = new UrhoEventAdapter<ViewChangedEventArgs>(typeof(ScrollView));
  4107. eventAdapterForViewChanged.AddManagedSubscriber(handle, value, SubscribeToViewChanged);
  4108. }
  4109. remove { eventAdapterForViewChanged.RemoveManagedSubscriber(handle, value); }
  4110. }
  4111. } /* class ScrollView */
  4112. } /* namespace */
  4113. namespace Urho.Gui
  4114. {
  4115. public partial struct ModalChangedEventArgs
  4116. {
  4117. public EventDataContainer EventData;
  4118. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4119. public bool Modal => EventData.get_bool(unchecked((int)1236802797) /* Modal (P_MODAL) */);
  4120. } /* struct ModalChangedEventArgs */
  4121. public partial class Window
  4122. {
  4123. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ModalChanged += ...' instead.")]
  4124. public Subscription SubscribeToModalChanged(Action<ModalChangedEventArgs> handler)
  4125. {
  4126. Action<IntPtr> proxy = (x) => { var d = new ModalChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4127. var s = new Subscription(proxy);
  4128. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3780589287) /* ModalChanged (E_MODALCHANGED) */);
  4129. return s;
  4130. }
  4131. static UrhoEventAdapter<ModalChangedEventArgs> eventAdapterForModalChanged;
  4132. public event Action<ModalChangedEventArgs> ModalChanged
  4133. {
  4134. add
  4135. {
  4136. if (eventAdapterForModalChanged == null)
  4137. eventAdapterForModalChanged = new UrhoEventAdapter<ModalChangedEventArgs>(typeof(Window));
  4138. eventAdapterForModalChanged.AddManagedSubscriber(handle, value, SubscribeToModalChanged);
  4139. }
  4140. remove { eventAdapterForModalChanged.RemoveManagedSubscriber(handle, value); }
  4141. }
  4142. } /* class Window */
  4143. } /* namespace */
  4144. namespace Urho.Gui
  4145. {
  4146. public partial struct TextEntryEventArgs
  4147. {
  4148. public EventDataContainer EventData;
  4149. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4150. public String Text => EventData.get_String(unchecked((int)1196085869) /* Text (P_TEXT) */);
  4151. } /* struct TextEntryEventArgs */
  4152. public partial class LineEdit
  4153. {
  4154. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TextEntry += ...' instead.")]
  4155. public Subscription SubscribeToTextEntry(Action<TextEntryEventArgs> handler)
  4156. {
  4157. Action<IntPtr> proxy = (x) => { var d = new TextEntryEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4158. var s = new Subscription(proxy);
  4159. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1906402885) /* TextEntry (E_TEXTENTRY) */);
  4160. return s;
  4161. }
  4162. static UrhoEventAdapter<TextEntryEventArgs> eventAdapterForTextEntry;
  4163. public event Action<TextEntryEventArgs> TextEntry
  4164. {
  4165. add
  4166. {
  4167. if (eventAdapterForTextEntry == null)
  4168. eventAdapterForTextEntry = new UrhoEventAdapter<TextEntryEventArgs>(typeof(LineEdit));
  4169. eventAdapterForTextEntry.AddManagedSubscriber(handle, value, SubscribeToTextEntry);
  4170. }
  4171. remove { eventAdapterForTextEntry.RemoveManagedSubscriber(handle, value); }
  4172. }
  4173. } /* class LineEdit */
  4174. } /* namespace */
  4175. namespace Urho.Gui
  4176. {
  4177. public partial struct TextChangedEventArgs
  4178. {
  4179. public EventDataContainer EventData;
  4180. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4181. public String Text => EventData.get_String(unchecked((int)1196085869) /* Text (P_TEXT) */);
  4182. } /* struct TextChangedEventArgs */
  4183. public partial class LineEdit
  4184. {
  4185. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TextChanged += ...' instead.")]
  4186. public Subscription SubscribeToTextChanged(Action<TextChangedEventArgs> handler)
  4187. {
  4188. Action<IntPtr> proxy = (x) => { var d = new TextChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4189. var s = new Subscription(proxy);
  4190. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)248127847) /* TextChanged (E_TEXTCHANGED) */);
  4191. return s;
  4192. }
  4193. static UrhoEventAdapter<TextChangedEventArgs> eventAdapterForTextChanged;
  4194. public event Action<TextChangedEventArgs> TextChanged
  4195. {
  4196. add
  4197. {
  4198. if (eventAdapterForTextChanged == null)
  4199. eventAdapterForTextChanged = new UrhoEventAdapter<TextChangedEventArgs>(typeof(LineEdit));
  4200. eventAdapterForTextChanged.AddManagedSubscriber(handle, value, SubscribeToTextChanged);
  4201. }
  4202. remove { eventAdapterForTextChanged.RemoveManagedSubscriber(handle, value); }
  4203. }
  4204. } /* class LineEdit */
  4205. } /* namespace */
  4206. namespace Urho.Gui
  4207. {
  4208. public partial struct TextFinishedEventArgs
  4209. {
  4210. public EventDataContainer EventData;
  4211. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4212. public String Text => EventData.get_String(unchecked((int)1196085869) /* Text (P_TEXT) */);
  4213. public float Value => EventData.get_float(unchecked((int)632064625) /* Value (P_VALUE) */);
  4214. } /* struct TextFinishedEventArgs */
  4215. public partial class LineEdit
  4216. {
  4217. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TextFinished += ...' instead.")]
  4218. public Subscription SubscribeToTextFinished(Action<TextFinishedEventArgs> handler)
  4219. {
  4220. Action<IntPtr> proxy = (x) => { var d = new TextFinishedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4221. var s = new Subscription(proxy);
  4222. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2163558751) /* TextFinished (E_TEXTFINISHED) */);
  4223. return s;
  4224. }
  4225. static UrhoEventAdapter<TextFinishedEventArgs> eventAdapterForTextFinished;
  4226. public event Action<TextFinishedEventArgs> TextFinished
  4227. {
  4228. add
  4229. {
  4230. if (eventAdapterForTextFinished == null)
  4231. eventAdapterForTextFinished = new UrhoEventAdapter<TextFinishedEventArgs>(typeof(LineEdit));
  4232. eventAdapterForTextFinished.AddManagedSubscriber(handle, value, SubscribeToTextFinished);
  4233. }
  4234. remove { eventAdapterForTextFinished.RemoveManagedSubscriber(handle, value); }
  4235. }
  4236. } /* class LineEdit */
  4237. } /* namespace */
  4238. namespace Urho.Gui
  4239. {
  4240. public partial struct MenuSelectedEventArgs
  4241. {
  4242. public EventDataContainer EventData;
  4243. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4244. } /* struct MenuSelectedEventArgs */
  4245. public partial class Menu
  4246. {
  4247. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MenuSelected += ...' instead.")]
  4248. public Subscription SubscribeToMenuSelected(Action<MenuSelectedEventArgs> handler)
  4249. {
  4250. Action<IntPtr> proxy = (x) => { var d = new MenuSelectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4251. var s = new Subscription(proxy);
  4252. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3684051450) /* MenuSelected (E_MENUSELECTED) */);
  4253. return s;
  4254. }
  4255. static UrhoEventAdapter<MenuSelectedEventArgs> eventAdapterForMenuSelected;
  4256. public event Action<MenuSelectedEventArgs> MenuSelected
  4257. {
  4258. add
  4259. {
  4260. if (eventAdapterForMenuSelected == null)
  4261. eventAdapterForMenuSelected = new UrhoEventAdapter<MenuSelectedEventArgs>(typeof(Menu));
  4262. eventAdapterForMenuSelected.AddManagedSubscriber(handle, value, SubscribeToMenuSelected);
  4263. }
  4264. remove { eventAdapterForMenuSelected.RemoveManagedSubscriber(handle, value); }
  4265. }
  4266. } /* class Menu */
  4267. } /* namespace */
  4268. namespace Urho.Gui
  4269. {
  4270. public partial struct ItemSelectedEventArgs
  4271. {
  4272. public EventDataContainer EventData;
  4273. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4274. public int Selection => EventData.get_int(unchecked((int)3519890092) /* Selection (P_SELECTION) */);
  4275. } /* struct ItemSelectedEventArgs */
  4276. public partial class DropDownList
  4277. {
  4278. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ItemSelected += ...' instead.")]
  4279. public Subscription SubscribeToItemSelected(Action<ItemSelectedEventArgs> handler)
  4280. {
  4281. Action<IntPtr> proxy = (x) => { var d = new ItemSelectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4282. var s = new Subscription(proxy);
  4283. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3577816398) /* ItemSelected (E_ITEMSELECTED) */);
  4284. return s;
  4285. }
  4286. static UrhoEventAdapter<ItemSelectedEventArgs> eventAdapterForItemSelected;
  4287. public event Action<ItemSelectedEventArgs> ItemSelected
  4288. {
  4289. add
  4290. {
  4291. if (eventAdapterForItemSelected == null)
  4292. eventAdapterForItemSelected = new UrhoEventAdapter<ItemSelectedEventArgs>(typeof(DropDownList));
  4293. eventAdapterForItemSelected.AddManagedSubscriber(handle, value, SubscribeToItemSelected);
  4294. }
  4295. remove { eventAdapterForItemSelected.RemoveManagedSubscriber(handle, value); }
  4296. }
  4297. } /* class DropDownList */
  4298. public partial class ListView
  4299. {
  4300. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ItemSelected += ...' instead.")]
  4301. public Subscription SubscribeToItemSelected(Action<ItemSelectedEventArgs> handler)
  4302. {
  4303. Action<IntPtr> proxy = (x) => { var d = new ItemSelectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4304. var s = new Subscription(proxy);
  4305. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3577816398) /* ItemSelected (E_ITEMSELECTED) */);
  4306. return s;
  4307. }
  4308. static UrhoEventAdapter<ItemSelectedEventArgs> eventAdapterForItemSelected;
  4309. public event Action<ItemSelectedEventArgs> ItemSelected
  4310. {
  4311. add
  4312. {
  4313. if (eventAdapterForItemSelected == null)
  4314. eventAdapterForItemSelected = new UrhoEventAdapter<ItemSelectedEventArgs>(typeof(ListView));
  4315. eventAdapterForItemSelected.AddManagedSubscriber(handle, value, SubscribeToItemSelected);
  4316. }
  4317. remove { eventAdapterForItemSelected.RemoveManagedSubscriber(handle, value); }
  4318. }
  4319. } /* class ListView */
  4320. } /* namespace */
  4321. namespace Urho.Gui
  4322. {
  4323. public partial struct ItemDeselectedEventArgs
  4324. {
  4325. public EventDataContainer EventData;
  4326. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4327. public int Selection => EventData.get_int(unchecked((int)3519890092) /* Selection (P_SELECTION) */);
  4328. } /* struct ItemDeselectedEventArgs */
  4329. public partial class ListView
  4330. {
  4331. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ItemDeselected += ...' instead.")]
  4332. public Subscription SubscribeToItemDeselected(Action<ItemDeselectedEventArgs> handler)
  4333. {
  4334. Action<IntPtr> proxy = (x) => { var d = new ItemDeselectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4335. var s = new Subscription(proxy);
  4336. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)750527183) /* ItemDeselected (E_ITEMDESELECTED) */);
  4337. return s;
  4338. }
  4339. static UrhoEventAdapter<ItemDeselectedEventArgs> eventAdapterForItemDeselected;
  4340. public event Action<ItemDeselectedEventArgs> ItemDeselected
  4341. {
  4342. add
  4343. {
  4344. if (eventAdapterForItemDeselected == null)
  4345. eventAdapterForItemDeselected = new UrhoEventAdapter<ItemDeselectedEventArgs>(typeof(ListView));
  4346. eventAdapterForItemDeselected.AddManagedSubscriber(handle, value, SubscribeToItemDeselected);
  4347. }
  4348. remove { eventAdapterForItemDeselected.RemoveManagedSubscriber(handle, value); }
  4349. }
  4350. } /* class ListView */
  4351. } /* namespace */
  4352. namespace Urho.Gui
  4353. {
  4354. public partial struct SelectionChangedEventArgs
  4355. {
  4356. public EventDataContainer EventData;
  4357. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4358. } /* struct SelectionChangedEventArgs */
  4359. public partial class ListView
  4360. {
  4361. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.SelectionChanged += ...' instead.")]
  4362. public Subscription SubscribeToSelectionChanged(Action<SelectionChangedEventArgs> handler)
  4363. {
  4364. Action<IntPtr> proxy = (x) => { var d = new SelectionChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4365. var s = new Subscription(proxy);
  4366. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)652636008) /* SelectionChanged (E_SELECTIONCHANGED) */);
  4367. return s;
  4368. }
  4369. static UrhoEventAdapter<SelectionChangedEventArgs> eventAdapterForSelectionChanged;
  4370. public event Action<SelectionChangedEventArgs> SelectionChanged
  4371. {
  4372. add
  4373. {
  4374. if (eventAdapterForSelectionChanged == null)
  4375. eventAdapterForSelectionChanged = new UrhoEventAdapter<SelectionChangedEventArgs>(typeof(ListView));
  4376. eventAdapterForSelectionChanged.AddManagedSubscriber(handle, value, SubscribeToSelectionChanged);
  4377. }
  4378. remove { eventAdapterForSelectionChanged.RemoveManagedSubscriber(handle, value); }
  4379. }
  4380. } /* class ListView */
  4381. } /* namespace */
  4382. namespace Urho.Gui
  4383. {
  4384. public partial struct ItemClickedEventArgs
  4385. {
  4386. public EventDataContainer EventData;
  4387. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4388. public UIElement Item => EventData.get_UIElement(unchecked((int)1322237459) /* Item (P_ITEM) */);
  4389. public int Selection => EventData.get_int(unchecked((int)3519890092) /* Selection (P_SELECTION) */);
  4390. public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
  4391. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  4392. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  4393. } /* struct ItemClickedEventArgs */
  4394. public partial class ListView
  4395. {
  4396. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ItemClicked += ...' instead.")]
  4397. public Subscription SubscribeToItemClicked(Action<ItemClickedEventArgs> handler)
  4398. {
  4399. Action<IntPtr> proxy = (x) => { var d = new ItemClickedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4400. var s = new Subscription(proxy);
  4401. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1680571156) /* ItemClicked (E_ITEMCLICKED) */);
  4402. return s;
  4403. }
  4404. static UrhoEventAdapter<ItemClickedEventArgs> eventAdapterForItemClicked;
  4405. public event Action<ItemClickedEventArgs> ItemClicked
  4406. {
  4407. add
  4408. {
  4409. if (eventAdapterForItemClicked == null)
  4410. eventAdapterForItemClicked = new UrhoEventAdapter<ItemClickedEventArgs>(typeof(ListView));
  4411. eventAdapterForItemClicked.AddManagedSubscriber(handle, value, SubscribeToItemClicked);
  4412. }
  4413. remove { eventAdapterForItemClicked.RemoveManagedSubscriber(handle, value); }
  4414. }
  4415. } /* class ListView */
  4416. } /* namespace */
  4417. namespace Urho.Gui
  4418. {
  4419. public partial struct ItemDoubleClickedEventArgs
  4420. {
  4421. public EventDataContainer EventData;
  4422. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4423. public UIElement Item => EventData.get_UIElement(unchecked((int)1322237459) /* Item (P_ITEM) */);
  4424. public int Selection => EventData.get_int(unchecked((int)3519890092) /* Selection (P_SELECTION) */);
  4425. public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
  4426. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  4427. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  4428. } /* struct ItemDoubleClickedEventArgs */
  4429. public partial class ListView
  4430. {
  4431. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ItemDoubleClicked += ...' instead.")]
  4432. public Subscription SubscribeToItemDoubleClicked(Action<ItemDoubleClickedEventArgs> handler)
  4433. {
  4434. Action<IntPtr> proxy = (x) => { var d = new ItemDoubleClickedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4435. var s = new Subscription(proxy);
  4436. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1209953699) /* ItemDoubleClicked (E_ITEMDOUBLECLICKED) */);
  4437. return s;
  4438. }
  4439. static UrhoEventAdapter<ItemDoubleClickedEventArgs> eventAdapterForItemDoubleClicked;
  4440. public event Action<ItemDoubleClickedEventArgs> ItemDoubleClicked
  4441. {
  4442. add
  4443. {
  4444. if (eventAdapterForItemDoubleClicked == null)
  4445. eventAdapterForItemDoubleClicked = new UrhoEventAdapter<ItemDoubleClickedEventArgs>(typeof(ListView));
  4446. eventAdapterForItemDoubleClicked.AddManagedSubscriber(handle, value, SubscribeToItemDoubleClicked);
  4447. }
  4448. remove { eventAdapterForItemDoubleClicked.RemoveManagedSubscriber(handle, value); }
  4449. }
  4450. } /* class ListView */
  4451. } /* namespace */
  4452. namespace Urho.Gui
  4453. {
  4454. public partial struct UnhandledKeyEventArgs
  4455. {
  4456. public EventDataContainer EventData;
  4457. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4458. public Key Key => (Key)EventData.get_int(unchecked((int)890606655) /* Key (P_KEY) */);
  4459. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  4460. public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
  4461. } /* struct UnhandledKeyEventArgs */
  4462. public partial class LineEdit
  4463. {
  4464. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.UnhandledKey += ...' instead.")]
  4465. public Subscription SubscribeToUnhandledKey(Action<UnhandledKeyEventArgs> handler)
  4466. {
  4467. Action<IntPtr> proxy = (x) => { var d = new UnhandledKeyEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4468. var s = new Subscription(proxy);
  4469. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1583051260) /* UnhandledKey (E_UNHANDLEDKEY) */);
  4470. return s;
  4471. }
  4472. static UrhoEventAdapter<UnhandledKeyEventArgs> eventAdapterForUnhandledKey;
  4473. public event Action<UnhandledKeyEventArgs> UnhandledKey
  4474. {
  4475. add
  4476. {
  4477. if (eventAdapterForUnhandledKey == null)
  4478. eventAdapterForUnhandledKey = new UrhoEventAdapter<UnhandledKeyEventArgs>(typeof(LineEdit));
  4479. eventAdapterForUnhandledKey.AddManagedSubscriber(handle, value, SubscribeToUnhandledKey);
  4480. }
  4481. remove { eventAdapterForUnhandledKey.RemoveManagedSubscriber(handle, value); }
  4482. }
  4483. } /* class LineEdit */
  4484. public partial class ListView
  4485. {
  4486. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.UnhandledKey += ...' instead.")]
  4487. public Subscription SubscribeToUnhandledKey(Action<UnhandledKeyEventArgs> handler)
  4488. {
  4489. Action<IntPtr> proxy = (x) => { var d = new UnhandledKeyEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4490. var s = new Subscription(proxy);
  4491. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1583051260) /* UnhandledKey (E_UNHANDLEDKEY) */);
  4492. return s;
  4493. }
  4494. static UrhoEventAdapter<UnhandledKeyEventArgs> eventAdapterForUnhandledKey;
  4495. public event Action<UnhandledKeyEventArgs> UnhandledKey
  4496. {
  4497. add
  4498. {
  4499. if (eventAdapterForUnhandledKey == null)
  4500. eventAdapterForUnhandledKey = new UrhoEventAdapter<UnhandledKeyEventArgs>(typeof(ListView));
  4501. eventAdapterForUnhandledKey.AddManagedSubscriber(handle, value, SubscribeToUnhandledKey);
  4502. }
  4503. remove { eventAdapterForUnhandledKey.RemoveManagedSubscriber(handle, value); }
  4504. }
  4505. } /* class ListView */
  4506. } /* namespace */
  4507. namespace Urho.Gui
  4508. {
  4509. public partial struct FileSelectedEventArgs
  4510. {
  4511. public EventDataContainer EventData;
  4512. public String FileName => EventData.get_String(unchecked((int)633459751) /* FileName (P_FILENAME) */);
  4513. public String Filter => EventData.get_String(unchecked((int)2349197016) /* Filter (P_FILTER) */);
  4514. public bool Ok => EventData.get_bool(unchecked((int)7281596) /* Ok (P_OK) */);
  4515. } /* struct FileSelectedEventArgs */
  4516. public partial class FileSelector
  4517. {
  4518. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.FileSelected += ...' instead.")]
  4519. public Subscription SubscribeToFileSelected(Action<FileSelectedEventArgs> handler)
  4520. {
  4521. Action<IntPtr> proxy = (x) => { var d = new FileSelectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4522. var s = new Subscription(proxy);
  4523. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2247030839) /* FileSelected (E_FILESELECTED) */);
  4524. return s;
  4525. }
  4526. static UrhoEventAdapter<FileSelectedEventArgs> eventAdapterForFileSelected;
  4527. public event Action<FileSelectedEventArgs> FileSelected
  4528. {
  4529. add
  4530. {
  4531. if (eventAdapterForFileSelected == null)
  4532. eventAdapterForFileSelected = new UrhoEventAdapter<FileSelectedEventArgs>(typeof(FileSelector));
  4533. eventAdapterForFileSelected.AddManagedSubscriber(handle, value, SubscribeToFileSelected);
  4534. }
  4535. remove { eventAdapterForFileSelected.RemoveManagedSubscriber(handle, value); }
  4536. }
  4537. } /* class FileSelector */
  4538. } /* namespace */
  4539. namespace Urho.Gui
  4540. {
  4541. public partial struct MessageACKEventArgs
  4542. {
  4543. public EventDataContainer EventData;
  4544. public bool Ok => EventData.get_bool(unchecked((int)7281596) /* Ok (P_OK) */);
  4545. } /* struct MessageACKEventArgs */
  4546. public partial class MessageBox
  4547. {
  4548. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MessageACK += ...' instead.")]
  4549. public Subscription SubscribeToMessageACK(Action<MessageACKEventArgs> handler)
  4550. {
  4551. Action<IntPtr> proxy = (x) => { var d = new MessageACKEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4552. var s = new Subscription(proxy);
  4553. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2274823746) /* MessageACK (E_MESSAGEACK) */);
  4554. return s;
  4555. }
  4556. static UrhoEventAdapter<MessageACKEventArgs> eventAdapterForMessageACK;
  4557. public event Action<MessageACKEventArgs> MessageACK
  4558. {
  4559. add
  4560. {
  4561. if (eventAdapterForMessageACK == null)
  4562. eventAdapterForMessageACK = new UrhoEventAdapter<MessageACKEventArgs>(typeof(MessageBox));
  4563. eventAdapterForMessageACK.AddManagedSubscriber(handle, value, SubscribeToMessageACK);
  4564. }
  4565. remove { eventAdapterForMessageACK.RemoveManagedSubscriber(handle, value); }
  4566. }
  4567. } /* class MessageBox */
  4568. } /* namespace */
  4569. namespace Urho.Gui
  4570. {
  4571. public partial struct ElementAddedEventArgs
  4572. {
  4573. public EventDataContainer EventData;
  4574. public UIElement Root => EventData.get_UIElement(unchecked((int)4011903426) /* Root (P_ROOT) */);
  4575. public UIElement Parent => EventData.get_UIElement(unchecked((int)1512946026) /* Parent (P_PARENT) */);
  4576. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4577. } /* struct ElementAddedEventArgs */
  4578. public partial class UIElement
  4579. {
  4580. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ElementAdded += ...' instead.")]
  4581. public Subscription SubscribeToElementAdded(Action<ElementAddedEventArgs> handler)
  4582. {
  4583. Action<IntPtr> proxy = (x) => { var d = new ElementAddedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4584. var s = new Subscription(proxy);
  4585. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3505291012) /* ElementAdded (E_ELEMENTADDED) */);
  4586. return s;
  4587. }
  4588. static UrhoEventAdapter<ElementAddedEventArgs> eventAdapterForElementAdded;
  4589. public event Action<ElementAddedEventArgs> ElementAdded
  4590. {
  4591. add
  4592. {
  4593. if (eventAdapterForElementAdded == null)
  4594. eventAdapterForElementAdded = new UrhoEventAdapter<ElementAddedEventArgs>(typeof(UIElement));
  4595. eventAdapterForElementAdded.AddManagedSubscriber(handle, value, SubscribeToElementAdded);
  4596. }
  4597. remove { eventAdapterForElementAdded.RemoveManagedSubscriber(handle, value); }
  4598. }
  4599. } /* class UIElement */
  4600. } /* namespace */
  4601. namespace Urho.Gui
  4602. {
  4603. public partial struct ElementRemovedEventArgs
  4604. {
  4605. public EventDataContainer EventData;
  4606. public UIElement Root => EventData.get_UIElement(unchecked((int)4011903426) /* Root (P_ROOT) */);
  4607. public UIElement Parent => EventData.get_UIElement(unchecked((int)1512946026) /* Parent (P_PARENT) */);
  4608. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4609. } /* struct ElementRemovedEventArgs */
  4610. public partial class UIElement
  4611. {
  4612. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ElementRemoved += ...' instead.")]
  4613. public Subscription SubscribeToElementRemoved(Action<ElementRemovedEventArgs> handler)
  4614. {
  4615. Action<IntPtr> proxy = (x) => { var d = new ElementRemovedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4616. var s = new Subscription(proxy);
  4617. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1383277476) /* ElementRemoved (E_ELEMENTREMOVED) */);
  4618. return s;
  4619. }
  4620. static UrhoEventAdapter<ElementRemovedEventArgs> eventAdapterForElementRemoved;
  4621. public event Action<ElementRemovedEventArgs> ElementRemoved
  4622. {
  4623. add
  4624. {
  4625. if (eventAdapterForElementRemoved == null)
  4626. eventAdapterForElementRemoved = new UrhoEventAdapter<ElementRemovedEventArgs>(typeof(UIElement));
  4627. eventAdapterForElementRemoved.AddManagedSubscriber(handle, value, SubscribeToElementRemoved);
  4628. }
  4629. remove { eventAdapterForElementRemoved.RemoveManagedSubscriber(handle, value); }
  4630. }
  4631. } /* class UIElement */
  4632. } /* namespace */
  4633. namespace Urho.Gui
  4634. {
  4635. public partial struct HoverBeginEventArgs
  4636. {
  4637. public EventDataContainer EventData;
  4638. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4639. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  4640. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  4641. public int ElementX => EventData.get_int(unchecked((int)3977097692) /* ElementX (P_ELEMENTX) */);
  4642. public int ElementY => EventData.get_int(unchecked((int)3977097693) /* ElementY (P_ELEMENTY) */);
  4643. } /* struct HoverBeginEventArgs */
  4644. public partial class UIElement
  4645. {
  4646. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.HoverBegin += ...' instead.")]
  4647. public Subscription SubscribeToHoverBegin(Action<HoverBeginEventArgs> handler)
  4648. {
  4649. Action<IntPtr> proxy = (x) => { var d = new HoverBeginEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4650. var s = new Subscription(proxy);
  4651. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2870063597) /* HoverBegin (E_HOVERBEGIN) */);
  4652. return s;
  4653. }
  4654. static UrhoEventAdapter<HoverBeginEventArgs> eventAdapterForHoverBegin;
  4655. public event Action<HoverBeginEventArgs> HoverBegin
  4656. {
  4657. add
  4658. {
  4659. if (eventAdapterForHoverBegin == null)
  4660. eventAdapterForHoverBegin = new UrhoEventAdapter<HoverBeginEventArgs>(typeof(UIElement));
  4661. eventAdapterForHoverBegin.AddManagedSubscriber(handle, value, SubscribeToHoverBegin);
  4662. }
  4663. remove { eventAdapterForHoverBegin.RemoveManagedSubscriber(handle, value); }
  4664. }
  4665. } /* class UIElement */
  4666. } /* namespace */
  4667. namespace Urho.Gui
  4668. {
  4669. public partial struct HoverEndEventArgs
  4670. {
  4671. public EventDataContainer EventData;
  4672. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4673. } /* struct HoverEndEventArgs */
  4674. public partial class UIElement
  4675. {
  4676. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.HoverEnd += ...' instead.")]
  4677. public Subscription SubscribeToHoverEnd(Action<HoverEndEventArgs> handler)
  4678. {
  4679. Action<IntPtr> proxy = (x) => { var d = new HoverEndEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4680. var s = new Subscription(proxy);
  4681. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)179772511) /* HoverEnd (E_HOVEREND) */);
  4682. return s;
  4683. }
  4684. static UrhoEventAdapter<HoverEndEventArgs> eventAdapterForHoverEnd;
  4685. public event Action<HoverEndEventArgs> HoverEnd
  4686. {
  4687. add
  4688. {
  4689. if (eventAdapterForHoverEnd == null)
  4690. eventAdapterForHoverEnd = new UrhoEventAdapter<HoverEndEventArgs>(typeof(UIElement));
  4691. eventAdapterForHoverEnd.AddManagedSubscriber(handle, value, SubscribeToHoverEnd);
  4692. }
  4693. remove { eventAdapterForHoverEnd.RemoveManagedSubscriber(handle, value); }
  4694. }
  4695. } /* class UIElement */
  4696. } /* namespace */
  4697. namespace Urho.Gui
  4698. {
  4699. public partial struct DragBeginEventArgs
  4700. {
  4701. public EventDataContainer EventData;
  4702. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4703. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  4704. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  4705. public int ElementX => EventData.get_int(unchecked((int)3977097692) /* ElementX (P_ELEMENTX) */);
  4706. public int ElementY => EventData.get_int(unchecked((int)3977097693) /* ElementY (P_ELEMENTY) */);
  4707. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  4708. public int NumButtons => EventData.get_int(unchecked((int)1318335099) /* NumButtons (P_NUMBUTTONS) */);
  4709. } /* struct DragBeginEventArgs */
  4710. public partial class UIElement
  4711. {
  4712. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.DragBegin += ...' instead.")]
  4713. public Subscription SubscribeToDragBegin(Action<DragBeginEventArgs> handler)
  4714. {
  4715. Action<IntPtr> proxy = (x) => { var d = new DragBeginEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4716. var s = new Subscription(proxy);
  4717. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3034378133) /* DragBegin (E_DRAGBEGIN) */);
  4718. return s;
  4719. }
  4720. static UrhoEventAdapter<DragBeginEventArgs> eventAdapterForDragBegin;
  4721. public event Action<DragBeginEventArgs> DragBegin
  4722. {
  4723. add
  4724. {
  4725. if (eventAdapterForDragBegin == null)
  4726. eventAdapterForDragBegin = new UrhoEventAdapter<DragBeginEventArgs>(typeof(UIElement));
  4727. eventAdapterForDragBegin.AddManagedSubscriber(handle, value, SubscribeToDragBegin);
  4728. }
  4729. remove { eventAdapterForDragBegin.RemoveManagedSubscriber(handle, value); }
  4730. }
  4731. } /* class UIElement */
  4732. } /* namespace */
  4733. namespace Urho.Gui
  4734. {
  4735. public partial struct DragMoveEventArgs
  4736. {
  4737. public EventDataContainer EventData;
  4738. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4739. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  4740. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  4741. public int DX => EventData.get_int(unchecked((int)6560020) /* DX (P_DX) */);
  4742. public int DY => EventData.get_int(unchecked((int)6560021) /* DY (P_DY) */);
  4743. public int ElementX => EventData.get_int(unchecked((int)3977097692) /* ElementX (P_ELEMENTX) */);
  4744. public int ElementY => EventData.get_int(unchecked((int)3977097693) /* ElementY (P_ELEMENTY) */);
  4745. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  4746. public int NumButtons => EventData.get_int(unchecked((int)1318335099) /* NumButtons (P_NUMBUTTONS) */);
  4747. } /* struct DragMoveEventArgs */
  4748. public partial class UIElement
  4749. {
  4750. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.DragMove += ...' instead.")]
  4751. public Subscription SubscribeToDragMove(Action<DragMoveEventArgs> handler)
  4752. {
  4753. Action<IntPtr> proxy = (x) => { var d = new DragMoveEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4754. var s = new Subscription(proxy);
  4755. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3547885061) /* DragMove (E_DRAGMOVE) */);
  4756. return s;
  4757. }
  4758. static UrhoEventAdapter<DragMoveEventArgs> eventAdapterForDragMove;
  4759. public event Action<DragMoveEventArgs> DragMove
  4760. {
  4761. add
  4762. {
  4763. if (eventAdapterForDragMove == null)
  4764. eventAdapterForDragMove = new UrhoEventAdapter<DragMoveEventArgs>(typeof(UIElement));
  4765. eventAdapterForDragMove.AddManagedSubscriber(handle, value, SubscribeToDragMove);
  4766. }
  4767. remove { eventAdapterForDragMove.RemoveManagedSubscriber(handle, value); }
  4768. }
  4769. } /* class UIElement */
  4770. } /* namespace */
  4771. namespace Urho.Gui
  4772. {
  4773. public partial struct DragEndEventArgs
  4774. {
  4775. public EventDataContainer EventData;
  4776. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4777. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  4778. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  4779. public int ElementX => EventData.get_int(unchecked((int)3977097692) /* ElementX (P_ELEMENTX) */);
  4780. public int ElementY => EventData.get_int(unchecked((int)3977097693) /* ElementY (P_ELEMENTY) */);
  4781. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  4782. public int NumButtons => EventData.get_int(unchecked((int)1318335099) /* NumButtons (P_NUMBUTTONS) */);
  4783. } /* struct DragEndEventArgs */
  4784. public partial class UIElement
  4785. {
  4786. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.DragEnd += ...' instead.")]
  4787. public Subscription SubscribeToDragEnd(Action<DragEndEventArgs> handler)
  4788. {
  4789. Action<IntPtr> proxy = (x) => { var d = new DragEndEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4790. var s = new Subscription(proxy);
  4791. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)796962311) /* DragEnd (E_DRAGEND) */);
  4792. return s;
  4793. }
  4794. static UrhoEventAdapter<DragEndEventArgs> eventAdapterForDragEnd;
  4795. public event Action<DragEndEventArgs> DragEnd
  4796. {
  4797. add
  4798. {
  4799. if (eventAdapterForDragEnd == null)
  4800. eventAdapterForDragEnd = new UrhoEventAdapter<DragEndEventArgs>(typeof(UIElement));
  4801. eventAdapterForDragEnd.AddManagedSubscriber(handle, value, SubscribeToDragEnd);
  4802. }
  4803. remove { eventAdapterForDragEnd.RemoveManagedSubscriber(handle, value); }
  4804. }
  4805. } /* class UIElement */
  4806. } /* namespace */
  4807. namespace Urho.Gui
  4808. {
  4809. public partial struct DragCancelEventArgs
  4810. {
  4811. public EventDataContainer EventData;
  4812. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4813. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  4814. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  4815. public int ElementX => EventData.get_int(unchecked((int)3977097692) /* ElementX (P_ELEMENTX) */);
  4816. public int ElementY => EventData.get_int(unchecked((int)3977097693) /* ElementY (P_ELEMENTY) */);
  4817. public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
  4818. public int NumButtons => EventData.get_int(unchecked((int)1318335099) /* NumButtons (P_NUMBUTTONS) */);
  4819. } /* struct DragCancelEventArgs */
  4820. public partial class UIElement
  4821. {
  4822. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.DragCancel += ...' instead.")]
  4823. public Subscription SubscribeToDragCancel(Action<DragCancelEventArgs> handler)
  4824. {
  4825. Action<IntPtr> proxy = (x) => { var d = new DragCancelEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4826. var s = new Subscription(proxy);
  4827. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3139514702) /* DragCancel (E_DRAGCANCEL) */);
  4828. return s;
  4829. }
  4830. static UrhoEventAdapter<DragCancelEventArgs> eventAdapterForDragCancel;
  4831. public event Action<DragCancelEventArgs> DragCancel
  4832. {
  4833. add
  4834. {
  4835. if (eventAdapterForDragCancel == null)
  4836. eventAdapterForDragCancel = new UrhoEventAdapter<DragCancelEventArgs>(typeof(UIElement));
  4837. eventAdapterForDragCancel.AddManagedSubscriber(handle, value, SubscribeToDragCancel);
  4838. }
  4839. remove { eventAdapterForDragCancel.RemoveManagedSubscriber(handle, value); }
  4840. }
  4841. } /* class UIElement */
  4842. } /* namespace */
  4843. namespace Urho.Gui
  4844. {
  4845. public partial struct UIDropFileEventArgs
  4846. {
  4847. public EventDataContainer EventData;
  4848. public String FileName => EventData.get_String(unchecked((int)633459751) /* FileName (P_FILENAME) */);
  4849. public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
  4850. public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
  4851. public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
  4852. public int ElementX => EventData.get_int(unchecked((int)3977097692) /* ElementX (P_ELEMENTX) */);
  4853. public int ElementY => EventData.get_int(unchecked((int)3977097693) /* ElementY (P_ELEMENTY) */);
  4854. } /* struct UIDropFileEventArgs */
  4855. public partial class UI
  4856. {
  4857. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.UIDropFile += ...' instead.")]
  4858. public Subscription SubscribeToUIDropFile(Action<UIDropFileEventArgs> handler)
  4859. {
  4860. Action<IntPtr> proxy = (x) => { var d = new UIDropFileEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4861. var s = new Subscription(proxy);
  4862. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3334256383) /* UIDropFile (E_UIDROPFILE) */);
  4863. return s;
  4864. }
  4865. static UrhoEventAdapter<UIDropFileEventArgs> eventAdapterForUIDropFile;
  4866. public event Action<UIDropFileEventArgs> UIDropFile
  4867. {
  4868. add
  4869. {
  4870. if (eventAdapterForUIDropFile == null)
  4871. eventAdapterForUIDropFile = new UrhoEventAdapter<UIDropFileEventArgs>(typeof(UI));
  4872. eventAdapterForUIDropFile.AddManagedSubscriber(handle, value, SubscribeToUIDropFile);
  4873. }
  4874. remove { eventAdapterForUIDropFile.RemoveManagedSubscriber(handle, value); }
  4875. }
  4876. } /* class UI */
  4877. } /* namespace */
  4878. namespace Urho
  4879. {
  4880. public partial struct PhysicsUpdateContact2DEventArgs
  4881. {
  4882. public EventDataContainer EventData;
  4883. public PhysicsWorld2D World => EventData.get_PhysicsWorld2D(unchecked((int)4158893746) /* World (P_WORLD) */);
  4884. public RigidBody2D BodyA => EventData.get_RigidBody2D(unchecked((int)1588071871) /* BodyA (P_BODYA) */);
  4885. public RigidBody2D BodyB => EventData.get_RigidBody2D(unchecked((int)1588071872) /* BodyB (P_BODYB) */);
  4886. public Node NodeA => EventData.get_Node(unchecked((int)2376629471) /* NodeA (P_NODEA) */);
  4887. public Node NodeB => EventData.get_Node(unchecked((int)2376629472) /* NodeB (P_NODEB) */);
  4888. public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
  4889. public CollisionShape2D ShapeA => EventData.get_CollisionShape2D(unchecked((int)1721188800) /* ShapeA (P_SHAPEA) */);
  4890. public CollisionShape2D ShapeB => EventData.get_CollisionShape2D(unchecked((int)1721188801) /* ShapeB (P_SHAPEB) */);
  4891. public bool Enabled => EventData.get_bool(unchecked((int)3351342625) /* Enabled (P_ENABLED) */);
  4892. } /* struct PhysicsUpdateContact2DEventArgs */
  4893. } /* namespace */
  4894. namespace Urho.Urho2D
  4895. {
  4896. public partial struct PhysicsBeginContact2DEventArgs
  4897. {
  4898. public EventDataContainer EventData;
  4899. public PhysicsWorld2D World => EventData.get_PhysicsWorld2D(unchecked((int)4158893746) /* World (P_WORLD) */);
  4900. public RigidBody2D BodyA => EventData.get_RigidBody2D(unchecked((int)1588071871) /* BodyA (P_BODYA) */);
  4901. public RigidBody2D BodyB => EventData.get_RigidBody2D(unchecked((int)1588071872) /* BodyB (P_BODYB) */);
  4902. public Node NodeA => EventData.get_Node(unchecked((int)2376629471) /* NodeA (P_NODEA) */);
  4903. public Node NodeB => EventData.get_Node(unchecked((int)2376629472) /* NodeB (P_NODEB) */);
  4904. public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
  4905. public CollisionShape2D ShapeA => EventData.get_CollisionShape2D(unchecked((int)1721188800) /* ShapeA (P_SHAPEA) */);
  4906. public CollisionShape2D ShapeB => EventData.get_CollisionShape2D(unchecked((int)1721188801) /* ShapeB (P_SHAPEB) */);
  4907. } /* struct PhysicsBeginContact2DEventArgs */
  4908. public partial class PhysicsWorld2D
  4909. {
  4910. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PhysicsBeginContact2D += ...' instead.")]
  4911. public Subscription SubscribeToPhysicsBeginContact2D(Action<PhysicsBeginContact2DEventArgs> handler)
  4912. {
  4913. Action<IntPtr> proxy = (x) => { var d = new PhysicsBeginContact2DEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4914. var s = new Subscription(proxy);
  4915. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3421721456) /* PhysicsBeginContact2D (E_PHYSICSBEGINCONTACT2D) */);
  4916. return s;
  4917. }
  4918. static UrhoEventAdapter<PhysicsBeginContact2DEventArgs> eventAdapterForPhysicsBeginContact2D;
  4919. public event Action<PhysicsBeginContact2DEventArgs> PhysicsBeginContact2D
  4920. {
  4921. add
  4922. {
  4923. if (eventAdapterForPhysicsBeginContact2D == null)
  4924. eventAdapterForPhysicsBeginContact2D = new UrhoEventAdapter<PhysicsBeginContact2DEventArgs>(typeof(PhysicsWorld2D));
  4925. eventAdapterForPhysicsBeginContact2D.AddManagedSubscriber(handle, value, SubscribeToPhysicsBeginContact2D);
  4926. }
  4927. remove { eventAdapterForPhysicsBeginContact2D.RemoveManagedSubscriber(handle, value); }
  4928. }
  4929. } /* class PhysicsWorld2D */
  4930. } /* namespace */
  4931. namespace Urho.Urho2D
  4932. {
  4933. public partial struct PhysicsEndContact2DEventArgs
  4934. {
  4935. public EventDataContainer EventData;
  4936. public PhysicsWorld2D World => EventData.get_PhysicsWorld2D(unchecked((int)4158893746) /* World (P_WORLD) */);
  4937. public RigidBody2D BodyA => EventData.get_RigidBody2D(unchecked((int)1588071871) /* BodyA (P_BODYA) */);
  4938. public RigidBody2D BodyB => EventData.get_RigidBody2D(unchecked((int)1588071872) /* BodyB (P_BODYB) */);
  4939. public Node NodeA => EventData.get_Node(unchecked((int)2376629471) /* NodeA (P_NODEA) */);
  4940. public Node NodeB => EventData.get_Node(unchecked((int)2376629472) /* NodeB (P_NODEB) */);
  4941. public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
  4942. public CollisionShape2D ShapeA => EventData.get_CollisionShape2D(unchecked((int)1721188800) /* ShapeA (P_SHAPEA) */);
  4943. public CollisionShape2D ShapeB => EventData.get_CollisionShape2D(unchecked((int)1721188801) /* ShapeB (P_SHAPEB) */);
  4944. } /* struct PhysicsEndContact2DEventArgs */
  4945. public partial class PhysicsWorld2D
  4946. {
  4947. [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PhysicsEndContact2D += ...' instead.")]
  4948. public Subscription SubscribeToPhysicsEndContact2D(Action<PhysicsEndContact2DEventArgs> handler)
  4949. {
  4950. Action<IntPtr> proxy = (x) => { var d = new PhysicsEndContact2DEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
  4951. var s = new Subscription(proxy);
  4952. s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3071590142) /* PhysicsEndContact2D (E_PHYSICSENDCONTACT2D) */);
  4953. return s;
  4954. }
  4955. static UrhoEventAdapter<PhysicsEndContact2DEventArgs> eventAdapterForPhysicsEndContact2D;
  4956. public event Action<PhysicsEndContact2DEventArgs> PhysicsEndContact2D
  4957. {
  4958. add
  4959. {
  4960. if (eventAdapterForPhysicsEndContact2D == null)
  4961. eventAdapterForPhysicsEndContact2D = new UrhoEventAdapter<PhysicsEndContact2DEventArgs>(typeof(PhysicsWorld2D));
  4962. eventAdapterForPhysicsEndContact2D.AddManagedSubscriber(handle, value, SubscribeToPhysicsEndContact2D);
  4963. }
  4964. remove { eventAdapterForPhysicsEndContact2D.RemoveManagedSubscriber(handle, value); }
  4965. }
  4966. } /* class PhysicsWorld2D */
  4967. } /* namespace */
  4968. namespace Urho
  4969. {
  4970. public partial struct NodeUpdateContact2DEventArgs
  4971. {
  4972. public EventDataContainer EventData;
  4973. public RigidBody2D Body => EventData.get_RigidBody2D(unchecked((int)111721250) /* Body (P_BODY) */);
  4974. public Node OtherNode => EventData.get_Node(unchecked((int)2707292594) /* OtherNode (P_OTHERNODE) */);
  4975. public RigidBody2D OtherBody => EventData.get_RigidBody2D(unchecked((int)1930180818) /* OtherBody (P_OTHERBODY) */);
  4976. public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
  4977. public CollisionShape2D Shape => EventData.get_CollisionShape2D(unchecked((int)2586277601) /* Shape (P_SHAPE) */);
  4978. public CollisionShape2D OtherShape => EventData.get_CollisionShape2D(unchecked((int)3293799729) /* OtherShape (P_OTHERSHAPE) */);
  4979. public bool Enabled => EventData.get_bool(unchecked((int)3351342625) /* Enabled (P_ENABLED) */);
  4980. } /* struct NodeUpdateContact2DEventArgs */
  4981. } /* namespace */
  4982. namespace Urho
  4983. {
  4984. public partial struct NodeBeginContact2DEventArgs
  4985. {
  4986. public EventDataContainer EventData;
  4987. public RigidBody2D Body => EventData.get_RigidBody2D(unchecked((int)111721250) /* Body (P_BODY) */);
  4988. public Node OtherNode => EventData.get_Node(unchecked((int)2707292594) /* OtherNode (P_OTHERNODE) */);
  4989. public RigidBody2D OtherBody => EventData.get_RigidBody2D(unchecked((int)1930180818) /* OtherBody (P_OTHERBODY) */);
  4990. public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
  4991. public CollisionShape2D Shape => EventData.get_CollisionShape2D(unchecked((int)2586277601) /* Shape (P_SHAPE) */);
  4992. public CollisionShape2D OtherShape => EventData.get_CollisionShape2D(unchecked((int)3293799729) /* OtherShape (P_OTHERSHAPE) */);
  4993. } /* struct NodeBeginContact2DEventArgs */
  4994. } /* namespace */
  4995. namespace Urho
  4996. {
  4997. public partial struct NodeEndContact2DEventArgs
  4998. {
  4999. public EventDataContainer EventData;
  5000. public RigidBody2D Body => EventData.get_RigidBody2D(unchecked((int)111721250) /* Body (P_BODY) */);
  5001. public Node OtherNode => EventData.get_Node(unchecked((int)2707292594) /* OtherNode (P_OTHERNODE) */);
  5002. public RigidBody2D OtherBody => EventData.get_RigidBody2D(unchecked((int)1930180818) /* OtherBody (P_OTHERBODY) */);
  5003. public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
  5004. public CollisionShape2D Shape => EventData.get_CollisionShape2D(unchecked((int)2586277601) /* Shape (P_SHAPE) */);
  5005. public CollisionShape2D OtherShape => EventData.get_CollisionShape2D(unchecked((int)3293799729) /* OtherShape (P_OTHERSHAPE) */);
  5006. } /* struct NodeEndContact2DEventArgs */
  5007. } /* namespace */
  5008. namespace Urho
  5009. {
  5010. public partial struct ParticlesEndEventArgs
  5011. {
  5012. public EventDataContainer EventData;
  5013. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  5014. public ParticleEffect2D Effect => EventData.get_ParticleEffect2D(unchecked((int)2340854545) /* Effect (P_EFFECT) */);
  5015. } /* struct ParticlesEndEventArgs */
  5016. } /* namespace */
  5017. namespace Urho
  5018. {
  5019. public partial struct ParticlesDurationEventArgs
  5020. {
  5021. public EventDataContainer EventData;
  5022. public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
  5023. public ParticleEffect2D Effect => EventData.get_ParticleEffect2D(unchecked((int)2340854545) /* Effect (P_EFFECT) */);
  5024. } /* struct ParticlesDurationEventArgs */
  5025. } /* namespace */
  5026. #pragma warning restore CS0618, CS0649