Object.Events.cs 301 KB

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