| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684 |
- using System;
- using System.Runtime.InteropServices;
- using Urho.Physics;
- using Urho.Navigation;
- using Urho.Network;
- using Urho.Urho2D;
- using Urho.Gui;
- using Urho.Actions;
- using Urho.Audio;
- using Urho.Resources;
- using Urho.IO;
- #pragma warning disable CS0618, CS0649
- namespace Urho
- {
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate void ObjectCallbackSignature(IntPtr data, int stringhash, IntPtr variantMap);
- }
- namespace Urho
- {
- public partial struct SoundFinishedEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public SoundSource SoundSource => EventData.get_SoundSource(unchecked((int)368456554) /* SoundSource (P_SOUNDSOURCE) */);
- public Sound Sound => EventData.get_Sound(unchecked((int)3920519599) /* Sound (P_SOUND) */);
- } /* struct SoundFinishedEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct FrameStartedEventArgs
- {
- public EventDataContainer EventData;
- public uint FrameNumber => EventData.get_uint(unchecked((int)1441088918) /* FrameNumber (P_FRAMENUMBER) */);
- public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
- } /* struct FrameStartedEventArgs */
- public partial class Time
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.FrameStarted += ...' instead.")]
- public Subscription SubscribeToFrameStarted(Action<FrameStartedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new FrameStartedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)529677540) /* BeginFrame (E_BEGINFRAME) */);
- return s;
- }
- static UrhoEventAdapter<FrameStartedEventArgs> eventAdapterForFrameStarted;
- public event Action<FrameStartedEventArgs> FrameStarted
- {
- add
- {
- if (eventAdapterForFrameStarted == null)
- eventAdapterForFrameStarted = new UrhoEventAdapter<FrameStartedEventArgs>(typeof(Time));
- eventAdapterForFrameStarted.AddManagedSubscriber(handle, value, SubscribeToFrameStarted);
- }
- remove { eventAdapterForFrameStarted.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Time */
- } /* namespace */
- namespace Urho
- {
- public partial struct UpdateEventArgs
- {
- public EventDataContainer EventData;
- public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
- } /* struct UpdateEventArgs */
- public partial class Engine
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Update += ...' instead.")]
- internal Subscription SubscribeToUpdate(Action<UpdateEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new UpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)915638697) /* Update (E_UPDATE) */);
- return s;
- }
- static UrhoEventAdapter<UpdateEventArgs> eventAdapterForUpdate;
- public event Action<UpdateEventArgs> Update
- {
- add
- {
- if (eventAdapterForUpdate == null)
- eventAdapterForUpdate = new UrhoEventAdapter<UpdateEventArgs>(typeof(Engine));
- eventAdapterForUpdate.AddManagedSubscriber(handle, value, SubscribeToUpdate);
- }
- remove { eventAdapterForUpdate.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Engine */
- } /* namespace */
- namespace Urho
- {
- public partial struct PostUpdateEventArgs
- {
- public EventDataContainer EventData;
- public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
- } /* struct PostUpdateEventArgs */
- public partial class Engine
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PostUpdate += ...' instead.")]
- public Subscription SubscribeToPostUpdate(Action<PostUpdateEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new PostUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2702758633) /* PostUpdate (E_POSTUPDATE) */);
- return s;
- }
- static UrhoEventAdapter<PostUpdateEventArgs> eventAdapterForPostUpdate;
- public event Action<PostUpdateEventArgs> PostUpdate
- {
- add
- {
- if (eventAdapterForPostUpdate == null)
- eventAdapterForPostUpdate = new UrhoEventAdapter<PostUpdateEventArgs>(typeof(Engine));
- eventAdapterForPostUpdate.AddManagedSubscriber(handle, value, SubscribeToPostUpdate);
- }
- remove { eventAdapterForPostUpdate.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Engine */
- } /* namespace */
- namespace Urho
- {
- public partial struct RenderUpdateEventArgs
- {
- public EventDataContainer EventData;
- public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
- } /* struct RenderUpdateEventArgs */
- public partial class Engine
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.RenderUpdate += ...' instead.")]
- public Subscription SubscribeToRenderUpdate(Action<RenderUpdateEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new RenderUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3851615199) /* RenderUpdate (E_RENDERUPDATE) */);
- return s;
- }
- static UrhoEventAdapter<RenderUpdateEventArgs> eventAdapterForRenderUpdate;
- public event Action<RenderUpdateEventArgs> RenderUpdate
- {
- add
- {
- if (eventAdapterForRenderUpdate == null)
- eventAdapterForRenderUpdate = new UrhoEventAdapter<RenderUpdateEventArgs>(typeof(Engine));
- eventAdapterForRenderUpdate.AddManagedSubscriber(handle, value, SubscribeToRenderUpdate);
- }
- remove { eventAdapterForRenderUpdate.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Engine */
- } /* namespace */
- namespace Urho
- {
- public partial struct PostRenderUpdateEventArgs
- {
- public EventDataContainer EventData;
- public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
- } /* struct PostRenderUpdateEventArgs */
- public partial class Engine
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PostRenderUpdate += ...' instead.")]
- public Subscription SubscribeToPostRenderUpdate(Action<PostRenderUpdateEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new PostRenderUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)22439199) /* PostRenderUpdate (E_POSTRENDERUPDATE) */);
- return s;
- }
- static UrhoEventAdapter<PostRenderUpdateEventArgs> eventAdapterForPostRenderUpdate;
- public event Action<PostRenderUpdateEventArgs> PostRenderUpdate
- {
- add
- {
- if (eventAdapterForPostRenderUpdate == null)
- eventAdapterForPostRenderUpdate = new UrhoEventAdapter<PostRenderUpdateEventArgs>(typeof(Engine));
- eventAdapterForPostRenderUpdate.AddManagedSubscriber(handle, value, SubscribeToPostRenderUpdate);
- }
- remove { eventAdapterForPostRenderUpdate.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Engine */
- } /* namespace */
- namespace Urho
- {
- public partial struct FrameEndedEventArgs
- {
- public EventDataContainer EventData;
- } /* struct FrameEndedEventArgs */
- public partial class Time
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.FrameEnded += ...' instead.")]
- public Subscription SubscribeToFrameEnded(Action<FrameEndedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new FrameEndedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4264256242) /* EndFrame (E_ENDFRAME) */);
- return s;
- }
- static UrhoEventAdapter<FrameEndedEventArgs> eventAdapterForFrameEnded;
- public event Action<FrameEndedEventArgs> FrameEnded
- {
- add
- {
- if (eventAdapterForFrameEnded == null)
- eventAdapterForFrameEnded = new UrhoEventAdapter<FrameEndedEventArgs>(typeof(Time));
- eventAdapterForFrameEnded.AddManagedSubscriber(handle, value, SubscribeToFrameEnded);
- }
- remove { eventAdapterForFrameEnded.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Time */
- } /* namespace */
- namespace Urho
- {
- public partial struct WorkItemCompletedEventArgs
- {
- public EventDataContainer EventData;
- public WorkItem Item => EventData.get_WorkItem(unchecked((int)1322237459) /* Item (P_ITEM) */);
- } /* struct WorkItemCompletedEventArgs */
- public partial class WorkQueue
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.WorkItemCompleted += ...' instead.")]
- public Subscription SubscribeToWorkItemCompleted(Action<WorkItemCompletedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new WorkItemCompletedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1507705319) /* WorkItemCompleted (E_WORKITEMCOMPLETED) */);
- return s;
- }
- static UrhoEventAdapter<WorkItemCompletedEventArgs> eventAdapterForWorkItemCompleted;
- public event Action<WorkItemCompletedEventArgs> WorkItemCompleted
- {
- add
- {
- if (eventAdapterForWorkItemCompleted == null)
- eventAdapterForWorkItemCompleted = new UrhoEventAdapter<WorkItemCompletedEventArgs>(typeof(WorkQueue));
- eventAdapterForWorkItemCompleted.AddManagedSubscriber(handle, value, SubscribeToWorkItemCompleted);
- }
- remove { eventAdapterForWorkItemCompleted.RemoveManagedSubscriber(handle, value); }
- }
- } /* class WorkQueue */
- } /* namespace */
- namespace Urho
- {
- public partial struct ConsoleCommandEventArgs
- {
- public EventDataContainer EventData;
- public String Command => EventData.get_String(unchecked((int)1528149579) /* Command (P_COMMAND) */);
- public String Id => EventData.get_String(unchecked((int)6887995) /* Id (P_ID) */);
- } /* struct ConsoleCommandEventArgs */
- public partial class UrhoConsole
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ConsoleCommand += ...' instead.")]
- public Subscription SubscribeToConsoleCommand(Action<ConsoleCommandEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ConsoleCommandEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1402653748) /* ConsoleCommand (E_CONSOLECOMMAND) */);
- return s;
- }
- static UrhoEventAdapter<ConsoleCommandEventArgs> eventAdapterForConsoleCommand;
- public event Action<ConsoleCommandEventArgs> ConsoleCommand
- {
- add
- {
- if (eventAdapterForConsoleCommand == null)
- eventAdapterForConsoleCommand = new UrhoEventAdapter<ConsoleCommandEventArgs>(typeof(UrhoConsole));
- eventAdapterForConsoleCommand.AddManagedSubscriber(handle, value, SubscribeToConsoleCommand);
- }
- remove { eventAdapterForConsoleCommand.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UrhoConsole */
- } /* namespace */
- namespace Urho
- {
- public partial struct BoneHierarchyCreatedEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- } /* struct BoneHierarchyCreatedEventArgs */
- public partial class Node
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.BoneHierarchyCreated += ...' instead.")]
- public Subscription SubscribeToBoneHierarchyCreated(Action<BoneHierarchyCreatedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new BoneHierarchyCreatedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1724904343) /* BoneHierarchyCreated (E_BONEHIERARCHYCREATED) */);
- return s;
- }
- static UrhoEventAdapter<BoneHierarchyCreatedEventArgs> eventAdapterForBoneHierarchyCreated;
- public event Action<BoneHierarchyCreatedEventArgs> BoneHierarchyCreated
- {
- add
- {
- if (eventAdapterForBoneHierarchyCreated == null)
- eventAdapterForBoneHierarchyCreated = new UrhoEventAdapter<BoneHierarchyCreatedEventArgs>(typeof(Node));
- eventAdapterForBoneHierarchyCreated.AddManagedSubscriber(handle, value, SubscribeToBoneHierarchyCreated);
- }
- remove { eventAdapterForBoneHierarchyCreated.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Node */
- } /* namespace */
- namespace Urho
- {
- public partial struct AnimationTriggerEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public Animation Animation => EventData.get_Animation(unchecked((int)1554425540) /* Animation (P_ANIMATION) */);
- public String Name => EventData.get_String(unchecked((int)773762347) /* Name (P_NAME) */);
- public float Time => EventData.get_float(unchecked((int)1228410285) /* Time (P_TIME) */);
- public IntPtr Data => EventData.get_IntPtr(unchecked((int)1558284138) /* Data (P_DATA) */);
- } /* struct AnimationTriggerEventArgs */
- public partial class Node
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AnimationTrigger += ...' instead.")]
- public Subscription SubscribeToAnimationTrigger(Action<AnimationTriggerEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new AnimationTriggerEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3945634612) /* AnimationTrigger (E_ANIMATIONTRIGGER) */);
- return s;
- }
- static UrhoEventAdapter<AnimationTriggerEventArgs> eventAdapterForAnimationTrigger;
- public event Action<AnimationTriggerEventArgs> AnimationTrigger
- {
- add
- {
- if (eventAdapterForAnimationTrigger == null)
- eventAdapterForAnimationTrigger = new UrhoEventAdapter<AnimationTriggerEventArgs>(typeof(Node));
- eventAdapterForAnimationTrigger.AddManagedSubscriber(handle, value, SubscribeToAnimationTrigger);
- }
- remove { eventAdapterForAnimationTrigger.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Node */
- } /* namespace */
- namespace Urho
- {
- public partial struct AnimationFinishedEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public Animation Animation => EventData.get_Animation(unchecked((int)1554425540) /* Animation (P_ANIMATION) */);
- public String Name => EventData.get_String(unchecked((int)773762347) /* Name (P_NAME) */);
- public bool Looped => EventData.get_bool(unchecked((int)842439811) /* Looped (P_LOOPED) */);
- } /* struct AnimationFinishedEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct ParticleEffectFinishedEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public ParticleEffect Effect => EventData.get_ParticleEffect(unchecked((int)2340854545) /* Effect (P_EFFECT) */);
- } /* struct ParticleEffectFinishedEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct TerrainCreatedEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- } /* struct TerrainCreatedEventArgs */
- public partial class Terrain
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TerrainCreated += ...' instead.")]
- public Subscription SubscribeToTerrainCreated(Action<TerrainCreatedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new TerrainCreatedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1280797747) /* TerrainCreated (E_TERRAINCREATED) */);
- return s;
- }
- static UrhoEventAdapter<TerrainCreatedEventArgs> eventAdapterForTerrainCreated;
- public event Action<TerrainCreatedEventArgs> TerrainCreated
- {
- add
- {
- if (eventAdapterForTerrainCreated == null)
- eventAdapterForTerrainCreated = new UrhoEventAdapter<TerrainCreatedEventArgs>(typeof(Terrain));
- eventAdapterForTerrainCreated.AddManagedSubscriber(handle, value, SubscribeToTerrainCreated);
- }
- remove { eventAdapterForTerrainCreated.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Terrain */
- } /* namespace */
- namespace Urho
- {
- public partial struct ScreenModeEventArgs
- {
- public EventDataContainer EventData;
- public int Width => EventData.get_int(unchecked((int)3655201574) /* Width (P_WIDTH) */);
- public int Height => EventData.get_int(unchecked((int)380957255) /* Height (P_HEIGHT) */);
- public bool Fullscreen => EventData.get_bool(unchecked((int)1835757435) /* Fullscreen (P_FULLSCREEN) */);
- public bool Borderless => EventData.get_bool(unchecked((int)2212104069) /* Borderless (P_BORDERLESS) */);
- public bool Resizable => EventData.get_bool(unchecked((int)3579260107) /* Resizable (P_RESIZABLE) */);
- public bool HighDPI => EventData.get_bool(unchecked((int)2251421851) /* HighDPI (P_HIGHDPI) */);
- public int Monitor => EventData.get_int(unchecked((int)1274038842) /* Monitor (P_MONITOR) */);
- public int RefreshRate => EventData.get_int(unchecked((int)1452299323) /* RefreshRate (P_REFRESHRATE) */);
- } /* struct ScreenModeEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct WindowPosEventArgs
- {
- public EventDataContainer EventData;
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- } /* struct WindowPosEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct RenderSurfaceUpdateEventArgs
- {
- public EventDataContainer EventData;
- } /* struct RenderSurfaceUpdateEventArgs */
- public partial class Renderer
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.RenderSurfaceUpdate += ...' instead.")]
- public Subscription SubscribeToRenderSurfaceUpdate(Action<RenderSurfaceUpdateEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new RenderSurfaceUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)530312032) /* RenderSurfaceUpdate (E_RENDERSURFACEUPDATE) */);
- return s;
- }
- static UrhoEventAdapter<RenderSurfaceUpdateEventArgs> eventAdapterForRenderSurfaceUpdate;
- public event Action<RenderSurfaceUpdateEventArgs> RenderSurfaceUpdate
- {
- add
- {
- if (eventAdapterForRenderSurfaceUpdate == null)
- eventAdapterForRenderSurfaceUpdate = new UrhoEventAdapter<RenderSurfaceUpdateEventArgs>(typeof(Renderer));
- eventAdapterForRenderSurfaceUpdate.AddManagedSubscriber(handle, value, SubscribeToRenderSurfaceUpdate);
- }
- remove { eventAdapterForRenderSurfaceUpdate.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Renderer */
- } /* namespace */
- namespace Urho
- {
- public partial struct BeginRenderingEventArgs
- {
- public EventDataContainer EventData;
- } /* struct BeginRenderingEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct EndRenderingEventArgs
- {
- public EventDataContainer EventData;
- } /* struct EndRenderingEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct BeginViewUpdateEventArgs
- {
- public EventDataContainer EventData;
- public View View => EventData.get_View(unchecked((int)2789059909) /* View (P_VIEW) */);
- public Texture Texture => EventData.get_Texture(unchecked((int)4041785787) /* Texture (P_TEXTURE) */);
- public RenderSurface Surface => EventData.get_RenderSurface(unchecked((int)1353844973) /* Surface (P_SURFACE) */);
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Camera Camera => EventData.get_Camera(unchecked((int)1364112997) /* Camera (P_CAMERA) */);
- } /* struct BeginViewUpdateEventArgs */
- public partial class View
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.BeginViewUpdate += ...' instead.")]
- public Subscription SubscribeToBeginViewUpdate(Action<BeginViewUpdateEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new BeginViewUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1204361687) /* BeginViewUpdate (E_BEGINVIEWUPDATE) */);
- return s;
- }
- static UrhoEventAdapter<BeginViewUpdateEventArgs> eventAdapterForBeginViewUpdate;
- public event Action<BeginViewUpdateEventArgs> BeginViewUpdate
- {
- add
- {
- if (eventAdapterForBeginViewUpdate == null)
- eventAdapterForBeginViewUpdate = new UrhoEventAdapter<BeginViewUpdateEventArgs>(typeof(View));
- eventAdapterForBeginViewUpdate.AddManagedSubscriber(handle, value, SubscribeToBeginViewUpdate);
- }
- remove { eventAdapterForBeginViewUpdate.RemoveManagedSubscriber(handle, value); }
- }
- } /* class View */
- } /* namespace */
- namespace Urho
- {
- public partial struct EndViewUpdateEventArgs
- {
- public EventDataContainer EventData;
- public View View => EventData.get_View(unchecked((int)2789059909) /* View (P_VIEW) */);
- public Texture Texture => EventData.get_Texture(unchecked((int)4041785787) /* Texture (P_TEXTURE) */);
- public RenderSurface Surface => EventData.get_RenderSurface(unchecked((int)1353844973) /* Surface (P_SURFACE) */);
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Camera Camera => EventData.get_Camera(unchecked((int)1364112997) /* Camera (P_CAMERA) */);
- } /* struct EndViewUpdateEventArgs */
- public partial class View
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.EndViewUpdate += ...' instead.")]
- public Subscription SubscribeToEndViewUpdate(Action<EndViewUpdateEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new EndViewUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3578578249) /* EndViewUpdate (E_ENDVIEWUPDATE) */);
- return s;
- }
- static UrhoEventAdapter<EndViewUpdateEventArgs> eventAdapterForEndViewUpdate;
- public event Action<EndViewUpdateEventArgs> EndViewUpdate
- {
- add
- {
- if (eventAdapterForEndViewUpdate == null)
- eventAdapterForEndViewUpdate = new UrhoEventAdapter<EndViewUpdateEventArgs>(typeof(View));
- eventAdapterForEndViewUpdate.AddManagedSubscriber(handle, value, SubscribeToEndViewUpdate);
- }
- remove { eventAdapterForEndViewUpdate.RemoveManagedSubscriber(handle, value); }
- }
- } /* class View */
- } /* namespace */
- namespace Urho
- {
- public partial struct BeginViewRenderEventArgs
- {
- public EventDataContainer EventData;
- public View View => EventData.get_View(unchecked((int)2789059909) /* View (P_VIEW) */);
- public Texture Texture => EventData.get_Texture(unchecked((int)4041785787) /* Texture (P_TEXTURE) */);
- public RenderSurface Surface => EventData.get_RenderSurface(unchecked((int)1353844973) /* Surface (P_SURFACE) */);
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Camera Camera => EventData.get_Camera(unchecked((int)1364112997) /* Camera (P_CAMERA) */);
- } /* struct BeginViewRenderEventArgs */
- public partial class Renderer
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.BeginViewRender += ...' instead.")]
- public Subscription SubscribeToBeginViewRender(Action<BeginViewRenderEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new BeginViewRenderEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3972739940) /* BeginViewRender (E_BEGINVIEWRENDER) */);
- return s;
- }
- static UrhoEventAdapter<BeginViewRenderEventArgs> eventAdapterForBeginViewRender;
- public event Action<BeginViewRenderEventArgs> BeginViewRender
- {
- add
- {
- if (eventAdapterForBeginViewRender == null)
- eventAdapterForBeginViewRender = new UrhoEventAdapter<BeginViewRenderEventArgs>(typeof(Renderer));
- eventAdapterForBeginViewRender.AddManagedSubscriber(handle, value, SubscribeToBeginViewRender);
- }
- remove { eventAdapterForBeginViewRender.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Renderer */
- } /* namespace */
- namespace Urho
- {
- public partial struct ViewBuffersReadyEventArgs
- {
- public EventDataContainer EventData;
- public View View => EventData.get_View(unchecked((int)2789059909) /* View (P_VIEW) */);
- public Texture Texture => EventData.get_Texture(unchecked((int)4041785787) /* Texture (P_TEXTURE) */);
- public RenderSurface Surface => EventData.get_RenderSurface(unchecked((int)1353844973) /* Surface (P_SURFACE) */);
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Camera Camera => EventData.get_Camera(unchecked((int)1364112997) /* Camera (P_CAMERA) */);
- } /* struct ViewBuffersReadyEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct ViewGlobalShaderParametersEventArgs
- {
- public EventDataContainer EventData;
- public View View => EventData.get_View(unchecked((int)2789059909) /* View (P_VIEW) */);
- public Texture Texture => EventData.get_Texture(unchecked((int)4041785787) /* Texture (P_TEXTURE) */);
- public RenderSurface Surface => EventData.get_RenderSurface(unchecked((int)1353844973) /* Surface (P_SURFACE) */);
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Camera Camera => EventData.get_Camera(unchecked((int)1364112997) /* Camera (P_CAMERA) */);
- } /* struct ViewGlobalShaderParametersEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct EndViewRenderEventArgs
- {
- public EventDataContainer EventData;
- public View View => EventData.get_View(unchecked((int)2789059909) /* View (P_VIEW) */);
- public Texture Texture => EventData.get_Texture(unchecked((int)4041785787) /* Texture (P_TEXTURE) */);
- public RenderSurface Surface => EventData.get_RenderSurface(unchecked((int)1353844973) /* Surface (P_SURFACE) */);
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Camera Camera => EventData.get_Camera(unchecked((int)1364112997) /* Camera (P_CAMERA) */);
- } /* struct EndViewRenderEventArgs */
- public partial class Renderer
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.EndViewRender += ...' instead.")]
- public Subscription SubscribeToEndViewRender(Action<EndViewRenderEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new EndViewRenderEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2051989206) /* EndViewRender (E_ENDVIEWRENDER) */);
- return s;
- }
- static UrhoEventAdapter<EndViewRenderEventArgs> eventAdapterForEndViewRender;
- public event Action<EndViewRenderEventArgs> EndViewRender
- {
- add
- {
- if (eventAdapterForEndViewRender == null)
- eventAdapterForEndViewRender = new UrhoEventAdapter<EndViewRenderEventArgs>(typeof(Renderer));
- eventAdapterForEndViewRender.AddManagedSubscriber(handle, value, SubscribeToEndViewRender);
- }
- remove { eventAdapterForEndViewRender.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Renderer */
- } /* namespace */
- namespace Urho
- {
- public partial struct EndAllViewsRenderEventArgs
- {
- public EventDataContainer EventData;
- } /* struct EndAllViewsRenderEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct RenderPathEventEventArgs
- {
- public EventDataContainer EventData;
- public String Name => EventData.get_String(unchecked((int)773762347) /* Name (P_NAME) */);
- } /* struct RenderPathEventEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct DeviceLostEventArgs
- {
- public EventDataContainer EventData;
- } /* struct DeviceLostEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct DeviceResetEventArgs
- {
- public EventDataContainer EventData;
- } /* struct DeviceResetEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct IKEffectorTargetChangedEventArgs
- {
- public EventDataContainer EventData;
- public Node EffectorNode => EventData.get_Node(unchecked((int)725806678) /* EffectorNode (P_EFFECTORNODE) */);
- public Node TargetNode => EventData.get_Node(unchecked((int)3704622643) /* TargetNode (P_TARGETNODE) */);
- } /* struct IKEffectorTargetChangedEventArgs */
- } /* namespace */
- namespace Urho.IO
- {
- public partial struct LogMessageEventArgs
- {
- public EventDataContainer EventData;
- public String Message => EventData.get_String(unchecked((int)2310231975) /* Message (P_MESSAGE) */);
- public int Level => EventData.get_int(unchecked((int)1030270596) /* Level (P_LEVEL) */);
- } /* struct LogMessageEventArgs */
- public partial class Log
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.LogMessage += ...' instead.")]
- public Subscription SubscribeToLogMessage(Action<LogMessageEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new LogMessageEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2123706499) /* LogMessage (E_LOGMESSAGE) */);
- return s;
- }
- static UrhoEventAdapter<LogMessageEventArgs> eventAdapterForLogMessage;
- public event Action<LogMessageEventArgs> LogMessage
- {
- add
- {
- if (eventAdapterForLogMessage == null)
- eventAdapterForLogMessage = new UrhoEventAdapter<LogMessageEventArgs>(typeof(Log));
- eventAdapterForLogMessage.AddManagedSubscriber(handle, value, SubscribeToLogMessage);
- }
- remove { eventAdapterForLogMessage.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Log */
- } /* namespace */
- namespace Urho.IO
- {
- public partial struct AsyncExecFinishedEventArgs
- {
- public EventDataContainer EventData;
- public uint RequestID => EventData.get_uint(unchecked((int)4010202986) /* RequestID (P_REQUESTID) */);
- public int ExitCode => EventData.get_int(unchecked((int)3466160107) /* ExitCode (P_EXITCODE) */);
- } /* struct AsyncExecFinishedEventArgs */
- public partial class FileSystem
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AsyncExecFinished += ...' instead.")]
- public Subscription SubscribeToAsyncExecFinished(Action<AsyncExecFinishedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new AsyncExecFinishedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1250019487) /* AsyncExecFinished (E_ASYNCEXECFINISHED) */);
- return s;
- }
- static UrhoEventAdapter<AsyncExecFinishedEventArgs> eventAdapterForAsyncExecFinished;
- public event Action<AsyncExecFinishedEventArgs> AsyncExecFinished
- {
- add
- {
- if (eventAdapterForAsyncExecFinished == null)
- eventAdapterForAsyncExecFinished = new UrhoEventAdapter<AsyncExecFinishedEventArgs>(typeof(FileSystem));
- eventAdapterForAsyncExecFinished.AddManagedSubscriber(handle, value, SubscribeToAsyncExecFinished);
- }
- remove { eventAdapterForAsyncExecFinished.RemoveManagedSubscriber(handle, value); }
- }
- } /* class FileSystem */
- } /* namespace */
- namespace Urho
- {
- public partial struct MouseButtonDownEventArgs
- {
- public EventDataContainer EventData;
- public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- } /* struct MouseButtonDownEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MouseButtonDown += ...' instead.")]
- public Subscription SubscribeToMouseButtonDown(Action<MouseButtonDownEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new MouseButtonDownEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1619012089) /* MouseButtonDown (E_MOUSEBUTTONDOWN) */);
- return s;
- }
- static UrhoEventAdapter<MouseButtonDownEventArgs> eventAdapterForMouseButtonDown;
- public event Action<MouseButtonDownEventArgs> MouseButtonDown
- {
- add
- {
- if (eventAdapterForMouseButtonDown == null)
- eventAdapterForMouseButtonDown = new UrhoEventAdapter<MouseButtonDownEventArgs>(typeof(Input));
- eventAdapterForMouseButtonDown.AddManagedSubscriber(handle, value, SubscribeToMouseButtonDown);
- }
- remove { eventAdapterForMouseButtonDown.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct MouseButtonUpEventArgs
- {
- public EventDataContainer EventData;
- public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- } /* struct MouseButtonUpEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MouseButtonUp += ...' instead.")]
- public Subscription SubscribeToMouseButtonUp(Action<MouseButtonUpEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new MouseButtonUpEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)546345330) /* MouseButtonUp (E_MOUSEBUTTONUP) */);
- return s;
- }
- static UrhoEventAdapter<MouseButtonUpEventArgs> eventAdapterForMouseButtonUp;
- public event Action<MouseButtonUpEventArgs> MouseButtonUp
- {
- add
- {
- if (eventAdapterForMouseButtonUp == null)
- eventAdapterForMouseButtonUp = new UrhoEventAdapter<MouseButtonUpEventArgs>(typeof(Input));
- eventAdapterForMouseButtonUp.AddManagedSubscriber(handle, value, SubscribeToMouseButtonUp);
- }
- remove { eventAdapterForMouseButtonUp.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct MouseMovedEventArgs
- {
- public EventDataContainer EventData;
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public int DX => EventData.get_int(unchecked((int)6560020) /* DX (P_DX) */);
- public int DY => EventData.get_int(unchecked((int)6560021) /* DY (P_DY) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- } /* struct MouseMovedEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MouseMoved += ...' instead.")]
- public Subscription SubscribeToMouseMoved(Action<MouseMovedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new MouseMovedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1089985430) /* MouseMove (E_MOUSEMOVE) */);
- return s;
- }
- static UrhoEventAdapter<MouseMovedEventArgs> eventAdapterForMouseMoved;
- public event Action<MouseMovedEventArgs> MouseMoved
- {
- add
- {
- if (eventAdapterForMouseMoved == null)
- eventAdapterForMouseMoved = new UrhoEventAdapter<MouseMovedEventArgs>(typeof(Input));
- eventAdapterForMouseMoved.AddManagedSubscriber(handle, value, SubscribeToMouseMoved);
- }
- remove { eventAdapterForMouseMoved.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct MouseWheelEventArgs
- {
- public EventDataContainer EventData;
- public int Wheel => EventData.get_int(unchecked((int)2881891899) /* Wheel (P_WHEEL) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- } /* struct MouseWheelEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MouseWheel += ...' instead.")]
- public Subscription SubscribeToMouseWheel(Action<MouseWheelEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new MouseWheelEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)834798486) /* MouseWheel (E_MOUSEWHEEL) */);
- return s;
- }
- static UrhoEventAdapter<MouseWheelEventArgs> eventAdapterForMouseWheel;
- public event Action<MouseWheelEventArgs> MouseWheel
- {
- add
- {
- if (eventAdapterForMouseWheel == null)
- eventAdapterForMouseWheel = new UrhoEventAdapter<MouseWheelEventArgs>(typeof(Input));
- eventAdapterForMouseWheel.AddManagedSubscriber(handle, value, SubscribeToMouseWheel);
- }
- remove { eventAdapterForMouseWheel.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct KeyDownEventArgs
- {
- public EventDataContainer EventData;
- public Key Key => (Key)EventData.get_int(unchecked((int)890606655) /* Key (P_KEY) */);
- public int Scancode => EventData.get_int(unchecked((int)3743304650) /* Scancode (P_SCANCODE) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- public bool Repeat => EventData.get_bool(unchecked((int)958223163) /* Repeat (P_REPEAT) */);
- } /* struct KeyDownEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.KeyDown += ...' instead.")]
- public Subscription SubscribeToKeyDown(Action<KeyDownEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new KeyDownEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3254146689) /* KeyDown (E_KEYDOWN) */);
- return s;
- }
- static UrhoEventAdapter<KeyDownEventArgs> eventAdapterForKeyDown;
- public event Action<KeyDownEventArgs> KeyDown
- {
- add
- {
- if (eventAdapterForKeyDown == null)
- eventAdapterForKeyDown = new UrhoEventAdapter<KeyDownEventArgs>(typeof(Input));
- eventAdapterForKeyDown.AddManagedSubscriber(handle, value, SubscribeToKeyDown);
- }
- remove { eventAdapterForKeyDown.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct KeyUpEventArgs
- {
- public EventDataContainer EventData;
- public Key Key => (Key)EventData.get_int(unchecked((int)890606655) /* Key (P_KEY) */);
- public int Scancode => EventData.get_int(unchecked((int)3743304650) /* Scancode (P_SCANCODE) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- } /* struct KeyUpEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.KeyUp += ...' instead.")]
- public Subscription SubscribeToKeyUp(Action<KeyUpEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new KeyUpEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4211507706) /* KeyUp (E_KEYUP) */);
- return s;
- }
- static UrhoEventAdapter<KeyUpEventArgs> eventAdapterForKeyUp;
- public event Action<KeyUpEventArgs> KeyUp
- {
- add
- {
- if (eventAdapterForKeyUp == null)
- eventAdapterForKeyUp = new UrhoEventAdapter<KeyUpEventArgs>(typeof(Input));
- eventAdapterForKeyUp.AddManagedSubscriber(handle, value, SubscribeToKeyUp);
- }
- remove { eventAdapterForKeyUp.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct TextInputEventArgs
- {
- public EventDataContainer EventData;
- public String Text => EventData.get_String(unchecked((int)1196085869) /* Text (P_TEXT) */);
- } /* struct TextInputEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TextInput += ...' instead.")]
- public Subscription SubscribeToTextInput(Action<TextInputEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new TextInputEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2136843517) /* TextInput (E_TEXTINPUT) */);
- return s;
- }
- static UrhoEventAdapter<TextInputEventArgs> eventAdapterForTextInput;
- public event Action<TextInputEventArgs> TextInput
- {
- add
- {
- if (eventAdapterForTextInput == null)
- eventAdapterForTextInput = new UrhoEventAdapter<TextInputEventArgs>(typeof(Input));
- eventAdapterForTextInput.AddManagedSubscriber(handle, value, SubscribeToTextInput);
- }
- remove { eventAdapterForTextInput.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct TextEditingEventArgs
- {
- public EventDataContainer EventData;
- public String Composition => EventData.get_String(unchecked((int)3273882378) /* Composition (P_COMPOSITION) */);
- public int Cursor => EventData.get_int(unchecked((int)2403995286) /* Cursor (P_CURSOR) */);
- public int SelectionLength => EventData.get_int(unchecked((int)2629242514) /* SelectionLength (P_SELECTION_LENGTH) */);
- } /* struct TextEditingEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct JoystickConnectedEventArgs
- {
- public EventDataContainer EventData;
- public int JoystickID => EventData.get_int(unchecked((int)1510428343) /* JoystickID (P_JOYSTICKID) */);
- } /* struct JoystickConnectedEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.JoystickConnected += ...' instead.")]
- public Subscription SubscribeToJoystickConnected(Action<JoystickConnectedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new JoystickConnectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2560363053) /* JoystickConnected (E_JOYSTICKCONNECTED) */);
- return s;
- }
- static UrhoEventAdapter<JoystickConnectedEventArgs> eventAdapterForJoystickConnected;
- public event Action<JoystickConnectedEventArgs> JoystickConnected
- {
- add
- {
- if (eventAdapterForJoystickConnected == null)
- eventAdapterForJoystickConnected = new UrhoEventAdapter<JoystickConnectedEventArgs>(typeof(Input));
- eventAdapterForJoystickConnected.AddManagedSubscriber(handle, value, SubscribeToJoystickConnected);
- }
- remove { eventAdapterForJoystickConnected.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct JoystickDisconnectedEventArgs
- {
- public EventDataContainer EventData;
- public int JoystickID => EventData.get_int(unchecked((int)1510428343) /* JoystickID (P_JOYSTICKID) */);
- } /* struct JoystickDisconnectedEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.JoystickDisconnected += ...' instead.")]
- public Subscription SubscribeToJoystickDisconnected(Action<JoystickDisconnectedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new JoystickDisconnectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)819446519) /* JoystickDisconnected (E_JOYSTICKDISCONNECTED) */);
- return s;
- }
- static UrhoEventAdapter<JoystickDisconnectedEventArgs> eventAdapterForJoystickDisconnected;
- public event Action<JoystickDisconnectedEventArgs> JoystickDisconnected
- {
- add
- {
- if (eventAdapterForJoystickDisconnected == null)
- eventAdapterForJoystickDisconnected = new UrhoEventAdapter<JoystickDisconnectedEventArgs>(typeof(Input));
- eventAdapterForJoystickDisconnected.AddManagedSubscriber(handle, value, SubscribeToJoystickDisconnected);
- }
- remove { eventAdapterForJoystickDisconnected.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct JoystickButtonDownEventArgs
- {
- public EventDataContainer EventData;
- public int JoystickID => EventData.get_int(unchecked((int)1510428343) /* JoystickID (P_JOYSTICKID) */);
- public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
- } /* struct JoystickButtonDownEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.JoystickButtonDown += ...' instead.")]
- public Subscription SubscribeToJoystickButtonDown(Action<JoystickButtonDownEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new JoystickButtonDownEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2528733712) /* JoystickButtonDown (E_JOYSTICKBUTTONDOWN) */);
- return s;
- }
- static UrhoEventAdapter<JoystickButtonDownEventArgs> eventAdapterForJoystickButtonDown;
- public event Action<JoystickButtonDownEventArgs> JoystickButtonDown
- {
- add
- {
- if (eventAdapterForJoystickButtonDown == null)
- eventAdapterForJoystickButtonDown = new UrhoEventAdapter<JoystickButtonDownEventArgs>(typeof(Input));
- eventAdapterForJoystickButtonDown.AddManagedSubscriber(handle, value, SubscribeToJoystickButtonDown);
- }
- remove { eventAdapterForJoystickButtonDown.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct JoystickButtonUpEventArgs
- {
- public EventDataContainer EventData;
- public int JoystickID => EventData.get_int(unchecked((int)1510428343) /* JoystickID (P_JOYSTICKID) */);
- public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
- } /* struct JoystickButtonUpEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.JoystickButtonUp += ...' instead.")]
- public Subscription SubscribeToJoystickButtonUp(Action<JoystickButtonUpEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new JoystickButtonUpEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)109849865) /* JoystickButtonUp (E_JOYSTICKBUTTONUP) */);
- return s;
- }
- static UrhoEventAdapter<JoystickButtonUpEventArgs> eventAdapterForJoystickButtonUp;
- public event Action<JoystickButtonUpEventArgs> JoystickButtonUp
- {
- add
- {
- if (eventAdapterForJoystickButtonUp == null)
- eventAdapterForJoystickButtonUp = new UrhoEventAdapter<JoystickButtonUpEventArgs>(typeof(Input));
- eventAdapterForJoystickButtonUp.AddManagedSubscriber(handle, value, SubscribeToJoystickButtonUp);
- }
- remove { eventAdapterForJoystickButtonUp.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct JoystickAxisMoveEventArgs
- {
- public EventDataContainer EventData;
- public int JoystickID => EventData.get_int(unchecked((int)1510428343) /* JoystickID (P_JOYSTICKID) */);
- public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_AXIS) */);
- public float Position => EventData.get_float(unchecked((int)1333256809) /* Position (P_POSITION) */);
- } /* struct JoystickAxisMoveEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.JoystickAxisMove += ...' instead.")]
- public Subscription SubscribeToJoystickAxisMove(Action<JoystickAxisMoveEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new JoystickAxisMoveEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1368926286) /* JoystickAxisMove (E_JOYSTICKAXISMOVE) */);
- return s;
- }
- static UrhoEventAdapter<JoystickAxisMoveEventArgs> eventAdapterForJoystickAxisMove;
- public event Action<JoystickAxisMoveEventArgs> JoystickAxisMove
- {
- add
- {
- if (eventAdapterForJoystickAxisMove == null)
- eventAdapterForJoystickAxisMove = new UrhoEventAdapter<JoystickAxisMoveEventArgs>(typeof(Input));
- eventAdapterForJoystickAxisMove.AddManagedSubscriber(handle, value, SubscribeToJoystickAxisMove);
- }
- remove { eventAdapterForJoystickAxisMove.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct JoystickHatMoveEventArgs
- {
- public EventDataContainer EventData;
- public int JoystickID => EventData.get_int(unchecked((int)1510428343) /* JoystickID (P_JOYSTICKID) */);
- public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_HAT) */);
- public int Position => EventData.get_int(unchecked((int)1333256809) /* Position (P_POSITION) */);
- } /* struct JoystickHatMoveEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.JoystickHatMove += ...' instead.")]
- public Subscription SubscribeToJoystickHatMove(Action<JoystickHatMoveEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new JoystickHatMoveEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3808716784) /* JoystickHatMove (E_JOYSTICKHATMOVE) */);
- return s;
- }
- static UrhoEventAdapter<JoystickHatMoveEventArgs> eventAdapterForJoystickHatMove;
- public event Action<JoystickHatMoveEventArgs> JoystickHatMove
- {
- add
- {
- if (eventAdapterForJoystickHatMove == null)
- eventAdapterForJoystickHatMove = new UrhoEventAdapter<JoystickHatMoveEventArgs>(typeof(Input));
- eventAdapterForJoystickHatMove.AddManagedSubscriber(handle, value, SubscribeToJoystickHatMove);
- }
- remove { eventAdapterForJoystickHatMove.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct TouchBeginEventArgs
- {
- public EventDataContainer EventData;
- public int TouchID => EventData.get_int(unchecked((int)3850094778) /* TouchID (P_TOUCHID) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public float Pressure => EventData.get_float(unchecked((int)439090309) /* Pressure (P_PRESSURE) */);
- } /* struct TouchBeginEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TouchBegin += ...' instead.")]
- public Subscription SubscribeToTouchBegin(Action<TouchBeginEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new TouchBeginEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3456070058) /* TouchBegin (E_TOUCHBEGIN) */);
- return s;
- }
- static UrhoEventAdapter<TouchBeginEventArgs> eventAdapterForTouchBegin;
- public event Action<TouchBeginEventArgs> TouchBegin
- {
- add
- {
- if (eventAdapterForTouchBegin == null)
- eventAdapterForTouchBegin = new UrhoEventAdapter<TouchBeginEventArgs>(typeof(Input));
- eventAdapterForTouchBegin.AddManagedSubscriber(handle, value, SubscribeToTouchBegin);
- }
- remove { eventAdapterForTouchBegin.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct TouchEndEventArgs
- {
- public EventDataContainer EventData;
- public int TouchID => EventData.get_int(unchecked((int)3850094778) /* TouchID (P_TOUCHID) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- } /* struct TouchEndEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TouchEnd += ...' instead.")]
- public Subscription SubscribeToTouchEnd(Action<TouchEndEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new TouchEndEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1078078108) /* TouchEnd (E_TOUCHEND) */);
- return s;
- }
- static UrhoEventAdapter<TouchEndEventArgs> eventAdapterForTouchEnd;
- public event Action<TouchEndEventArgs> TouchEnd
- {
- add
- {
- if (eventAdapterForTouchEnd == null)
- eventAdapterForTouchEnd = new UrhoEventAdapter<TouchEndEventArgs>(typeof(Input));
- eventAdapterForTouchEnd.AddManagedSubscriber(handle, value, SubscribeToTouchEnd);
- }
- remove { eventAdapterForTouchEnd.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct TouchMoveEventArgs
- {
- public EventDataContainer EventData;
- public int TouchID => EventData.get_int(unchecked((int)3850094778) /* TouchID (P_TOUCHID) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public int DX => EventData.get_int(unchecked((int)6560020) /* DX (P_DX) */);
- public int DY => EventData.get_int(unchecked((int)6560021) /* DY (P_DY) */);
- public float Pressure => EventData.get_float(unchecked((int)439090309) /* Pressure (P_PRESSURE) */);
- } /* struct TouchMoveEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TouchMove += ...' instead.")]
- public Subscription SubscribeToTouchMove(Action<TouchMoveEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new TouchMoveEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1873483440) /* TouchMove (E_TOUCHMOVE) */);
- return s;
- }
- static UrhoEventAdapter<TouchMoveEventArgs> eventAdapterForTouchMove;
- public event Action<TouchMoveEventArgs> TouchMove
- {
- add
- {
- if (eventAdapterForTouchMove == null)
- eventAdapterForTouchMove = new UrhoEventAdapter<TouchMoveEventArgs>(typeof(Input));
- eventAdapterForTouchMove.AddManagedSubscriber(handle, value, SubscribeToTouchMove);
- }
- remove { eventAdapterForTouchMove.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct GestureRecordedEventArgs
- {
- public EventDataContainer EventData;
- public uint GestureID => EventData.get_uint(unchecked((int)2079416292) /* GestureID (P_GESTUREID) */);
- } /* struct GestureRecordedEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.GestureRecorded += ...' instead.")]
- public Subscription SubscribeToGestureRecorded(Action<GestureRecordedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new GestureRecordedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2974572953) /* GestureRecorded (E_GESTURERECORDED) */);
- return s;
- }
- static UrhoEventAdapter<GestureRecordedEventArgs> eventAdapterForGestureRecorded;
- public event Action<GestureRecordedEventArgs> GestureRecorded
- {
- add
- {
- if (eventAdapterForGestureRecorded == null)
- eventAdapterForGestureRecorded = new UrhoEventAdapter<GestureRecordedEventArgs>(typeof(Input));
- eventAdapterForGestureRecorded.AddManagedSubscriber(handle, value, SubscribeToGestureRecorded);
- }
- remove { eventAdapterForGestureRecorded.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct GestureInputEventArgs
- {
- public EventDataContainer EventData;
- public uint GestureID => EventData.get_uint(unchecked((int)2079416292) /* GestureID (P_GESTUREID) */);
- public int CenterX => EventData.get_int(unchecked((int)150093091) /* CenterX (P_CENTERX) */);
- public int CenterY => EventData.get_int(unchecked((int)150093092) /* CenterY (P_CENTERY) */);
- public int NumFingers => EventData.get_int(unchecked((int)2749362116) /* NumFingers (P_NUMFINGERS) */);
- public float Error => EventData.get_float(unchecked((int)3168564136) /* Error (P_ERROR) */);
- } /* struct GestureInputEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.GestureInput += ...' instead.")]
- public Subscription SubscribeToGestureInput(Action<GestureInputEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new GestureInputEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3375880257) /* GestureInput (E_GESTUREINPUT) */);
- return s;
- }
- static UrhoEventAdapter<GestureInputEventArgs> eventAdapterForGestureInput;
- public event Action<GestureInputEventArgs> GestureInput
- {
- add
- {
- if (eventAdapterForGestureInput == null)
- eventAdapterForGestureInput = new UrhoEventAdapter<GestureInputEventArgs>(typeof(Input));
- eventAdapterForGestureInput.AddManagedSubscriber(handle, value, SubscribeToGestureInput);
- }
- remove { eventAdapterForGestureInput.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct MultiGestureEventArgs
- {
- public EventDataContainer EventData;
- public int CenterX => EventData.get_int(unchecked((int)150093091) /* CenterX (P_CENTERX) */);
- public int CenterY => EventData.get_int(unchecked((int)150093092) /* CenterY (P_CENTERY) */);
- public int NumFingers => EventData.get_int(unchecked((int)2749362116) /* NumFingers (P_NUMFINGERS) */);
- public float DTheta => EventData.get_float(unchecked((int)2305167738) /* DTheta (P_DTHETA) */);
- public float DDist => EventData.get_float(unchecked((int)3911589802) /* DDist (P_DDIST) */);
- } /* struct MultiGestureEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MultiGesture += ...' instead.")]
- public Subscription SubscribeToMultiGesture(Action<MultiGestureEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new MultiGestureEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2419467216) /* MultiGesture (E_MULTIGESTURE) */);
- return s;
- }
- static UrhoEventAdapter<MultiGestureEventArgs> eventAdapterForMultiGesture;
- public event Action<MultiGestureEventArgs> MultiGesture
- {
- add
- {
- if (eventAdapterForMultiGesture == null)
- eventAdapterForMultiGesture = new UrhoEventAdapter<MultiGestureEventArgs>(typeof(Input));
- eventAdapterForMultiGesture.AddManagedSubscriber(handle, value, SubscribeToMultiGesture);
- }
- remove { eventAdapterForMultiGesture.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct DropFileEventArgs
- {
- public EventDataContainer EventData;
- public String FileName => EventData.get_String(unchecked((int)633459751) /* FileName (P_FILENAME) */);
- } /* struct DropFileEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.DropFile += ...' instead.")]
- public Subscription SubscribeToDropFile(Action<DropFileEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new DropFileEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)612827595) /* DropFile (E_DROPFILE) */);
- return s;
- }
- static UrhoEventAdapter<DropFileEventArgs> eventAdapterForDropFile;
- public event Action<DropFileEventArgs> DropFile
- {
- add
- {
- if (eventAdapterForDropFile == null)
- eventAdapterForDropFile = new UrhoEventAdapter<DropFileEventArgs>(typeof(Input));
- eventAdapterForDropFile.AddManagedSubscriber(handle, value, SubscribeToDropFile);
- }
- remove { eventAdapterForDropFile.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct InputFocusEventArgs
- {
- public EventDataContainer EventData;
- public bool Focus => EventData.get_bool(unchecked((int)1842837848) /* Focus (P_FOCUS) */);
- public bool Minimized => EventData.get_bool(unchecked((int)541506182) /* Minimized (P_MINIMIZED) */);
- } /* struct InputFocusEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.InputFocus += ...' instead.")]
- public Subscription SubscribeToInputFocus(Action<InputFocusEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new InputFocusEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)620076718) /* InputFocus (E_INPUTFOCUS) */);
- return s;
- }
- static UrhoEventAdapter<InputFocusEventArgs> eventAdapterForInputFocus;
- public event Action<InputFocusEventArgs> InputFocus
- {
- add
- {
- if (eventAdapterForInputFocus == null)
- eventAdapterForInputFocus = new UrhoEventAdapter<InputFocusEventArgs>(typeof(Input));
- eventAdapterForInputFocus.AddManagedSubscriber(handle, value, SubscribeToInputFocus);
- }
- remove { eventAdapterForInputFocus.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct MouseVisibleChangedEventArgs
- {
- public EventDataContainer EventData;
- public bool Visible => EventData.get_bool(unchecked((int)2569414770) /* Visible (P_VISIBLE) */);
- } /* struct MouseVisibleChangedEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MouseVisibleChanged += ...' instead.")]
- public Subscription SubscribeToMouseVisibleChanged(Action<MouseVisibleChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new MouseVisibleChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)360201095) /* MouseVisibleChanged (E_MOUSEVISIBLECHANGED) */);
- return s;
- }
- static UrhoEventAdapter<MouseVisibleChangedEventArgs> eventAdapterForMouseVisibleChanged;
- public event Action<MouseVisibleChangedEventArgs> MouseVisibleChanged
- {
- add
- {
- if (eventAdapterForMouseVisibleChanged == null)
- eventAdapterForMouseVisibleChanged = new UrhoEventAdapter<MouseVisibleChangedEventArgs>(typeof(Input));
- eventAdapterForMouseVisibleChanged.AddManagedSubscriber(handle, value, SubscribeToMouseVisibleChanged);
- }
- remove { eventAdapterForMouseVisibleChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct MouseModeChangedEventArgs
- {
- public EventDataContainer EventData;
- public MouseMode Mode => EventData.get_MouseMode(unchecked((int)108245827) /* Mode (P_MODE) */);
- public bool MouseLocked => EventData.get_bool(unchecked((int)3485665135) /* MouseLocked (P_MOUSELOCKED) */);
- } /* struct MouseModeChangedEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MouseModeChanged += ...' instead.")]
- public Subscription SubscribeToMouseModeChanged(Action<MouseModeChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new MouseModeChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3642946540) /* MouseModeChanged (E_MOUSEMODECHANGED) */);
- return s;
- }
- static UrhoEventAdapter<MouseModeChangedEventArgs> eventAdapterForMouseModeChanged;
- public event Action<MouseModeChangedEventArgs> MouseModeChanged
- {
- add
- {
- if (eventAdapterForMouseModeChanged == null)
- eventAdapterForMouseModeChanged = new UrhoEventAdapter<MouseModeChangedEventArgs>(typeof(Input));
- eventAdapterForMouseModeChanged.AddManagedSubscriber(handle, value, SubscribeToMouseModeChanged);
- }
- remove { eventAdapterForMouseModeChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct ExitRequestedEventArgs
- {
- public EventDataContainer EventData;
- } /* struct ExitRequestedEventArgs */
- public partial class Input
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ExitRequested += ...' instead.")]
- public Subscription SubscribeToExitRequested(Action<ExitRequestedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ExitRequestedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)899637200) /* ExitRequested (E_EXITREQUESTED) */);
- return s;
- }
- static UrhoEventAdapter<ExitRequestedEventArgs> eventAdapterForExitRequested;
- public event Action<ExitRequestedEventArgs> ExitRequested
- {
- add
- {
- if (eventAdapterForExitRequested == null)
- eventAdapterForExitRequested = new UrhoEventAdapter<ExitRequestedEventArgs>(typeof(Input));
- eventAdapterForExitRequested.AddManagedSubscriber(handle, value, SubscribeToExitRequested);
- }
- remove { eventAdapterForExitRequested.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Input */
- } /* namespace */
- namespace Urho
- {
- public partial struct SDLRawInputEventArgs
- {
- public EventDataContainer EventData;
- public IntPtr SDLEvent => EventData.get_IntPtr(unchecked((int)3036739231) /* SDLEvent (P_SDLEVENT) */);
- public bool Consumed => EventData.get_bool(unchecked((int)1885648840) /* Consumed (P_CONSUMED) */);
- } /* struct SDLRawInputEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct InputBeginEventArgs
- {
- public EventDataContainer EventData;
- } /* struct InputBeginEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct InputEndEventArgs
- {
- public EventDataContainer EventData;
- } /* struct InputEndEventArgs */
- } /* namespace */
- namespace Urho.Navigation
- {
- public partial struct NavigationMeshRebuiltEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public NavigationMesh Mesh => EventData.get_NavigationMesh(unchecked((int)26614765) /* Mesh (P_MESH) */);
- } /* struct NavigationMeshRebuiltEventArgs */
- public partial class NavigationMesh
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NavigationMeshRebuilt += ...' instead.")]
- public Subscription SubscribeToNavigationMeshRebuilt(Action<NavigationMeshRebuiltEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NavigationMeshRebuiltEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1184056682) /* NavigationMeshRebuilt (E_NAVIGATION_MESH_REBUILT) */);
- return s;
- }
- static UrhoEventAdapter<NavigationMeshRebuiltEventArgs> eventAdapterForNavigationMeshRebuilt;
- public event Action<NavigationMeshRebuiltEventArgs> NavigationMeshRebuilt
- {
- add
- {
- if (eventAdapterForNavigationMeshRebuilt == null)
- eventAdapterForNavigationMeshRebuilt = new UrhoEventAdapter<NavigationMeshRebuiltEventArgs>(typeof(NavigationMesh));
- eventAdapterForNavigationMeshRebuilt.AddManagedSubscriber(handle, value, SubscribeToNavigationMeshRebuilt);
- }
- remove { eventAdapterForNavigationMeshRebuilt.RemoveManagedSubscriber(handle, value); }
- }
- } /* class NavigationMesh */
- } /* namespace */
- namespace Urho.Navigation
- {
- public partial struct NavigationAreaRebuiltEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public NavigationMesh Mesh => EventData.get_NavigationMesh(unchecked((int)26614765) /* Mesh (P_MESH) */);
- public Vector3 BoundsMin => EventData.get_Vector3(unchecked((int)2452762269) /* BoundsMin (P_BOUNDSMIN) */);
- public Vector3 BoundsMax => EventData.get_Vector3(unchecked((int)2452237487) /* BoundsMax (P_BOUNDSMAX) */);
- } /* struct NavigationAreaRebuiltEventArgs */
- public partial class NavigationMesh
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NavigationAreaRebuilt += ...' instead.")]
- public Subscription SubscribeToNavigationAreaRebuilt(Action<NavigationAreaRebuiltEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NavigationAreaRebuiltEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2012037194) /* NavigationAreaRebuilt (E_NAVIGATION_AREA_REBUILT) */);
- return s;
- }
- static UrhoEventAdapter<NavigationAreaRebuiltEventArgs> eventAdapterForNavigationAreaRebuilt;
- public event Action<NavigationAreaRebuiltEventArgs> NavigationAreaRebuilt
- {
- add
- {
- if (eventAdapterForNavigationAreaRebuilt == null)
- eventAdapterForNavigationAreaRebuilt = new UrhoEventAdapter<NavigationAreaRebuiltEventArgs>(typeof(NavigationMesh));
- eventAdapterForNavigationAreaRebuilt.AddManagedSubscriber(handle, value, SubscribeToNavigationAreaRebuilt);
- }
- remove { eventAdapterForNavigationAreaRebuilt.RemoveManagedSubscriber(handle, value); }
- }
- } /* class NavigationMesh */
- } /* namespace */
- namespace Urho
- {
- public partial struct NavigationTileAddedEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public NavigationMesh Mesh => EventData.get_NavigationMesh(unchecked((int)26614765) /* Mesh (P_MESH) */);
- public IntVector2 Tile => EventData.get_IntVector2(unchecked((int)1228344686) /* Tile (P_TILE) */);
- } /* struct NavigationTileAddedEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct NavigationTileRemovedEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public NavigationMesh Mesh => EventData.get_NavigationMesh(unchecked((int)26614765) /* Mesh (P_MESH) */);
- public IntVector2 Tile => EventData.get_IntVector2(unchecked((int)1228344686) /* Tile (P_TILE) */);
- } /* struct NavigationTileRemovedEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct NavigationAllTilesRemovedEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public NavigationMesh Mesh => EventData.get_NavigationMesh(unchecked((int)26614765) /* Mesh (P_MESH) */);
- } /* struct NavigationAllTilesRemovedEventArgs */
- } /* namespace */
- namespace Urho.Navigation
- {
- public partial struct CrowdAgentFormationEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
- public uint Index => EventData.get_uint(unchecked((int)193188146) /* Index (P_INDEX) */);
- public uint Size => EventData.get_uint(unchecked((int)448675873) /* Size (P_SIZE) */);
- public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
- } /* struct CrowdAgentFormationEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct CrowdAgentNodeFormationEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
- public uint Index => EventData.get_uint(unchecked((int)193188146) /* Index (P_INDEX) */);
- public uint Size => EventData.get_uint(unchecked((int)448675873) /* Size (P_SIZE) */);
- public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
- } /* struct CrowdAgentNodeFormationEventArgs */
- } /* namespace */
- namespace Urho.Navigation
- {
- public partial struct CrowdAgentRepositionEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
- public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
- public Vector3 Velocity => EventData.get_Vector3(unchecked((int)2845405629) /* Velocity (P_VELOCITY) */);
- public bool Arrived => EventData.get_bool(unchecked((int)2501236845) /* Arrived (P_ARRIVED) */);
- public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
- } /* struct CrowdAgentRepositionEventArgs */
- public partial class CrowdManager
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.CrowdAgentReposition += ...' instead.")]
- public Subscription SubscribeToCrowdAgentReposition(Action<CrowdAgentRepositionEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new CrowdAgentRepositionEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3736902068) /* CrowdAgentReposition (E_CROWD_AGENT_REPOSITION) */);
- return s;
- }
- static UrhoEventAdapter<CrowdAgentRepositionEventArgs> eventAdapterForCrowdAgentReposition;
- public event Action<CrowdAgentRepositionEventArgs> CrowdAgentReposition
- {
- add
- {
- if (eventAdapterForCrowdAgentReposition == null)
- eventAdapterForCrowdAgentReposition = new UrhoEventAdapter<CrowdAgentRepositionEventArgs>(typeof(CrowdManager));
- eventAdapterForCrowdAgentReposition.AddManagedSubscriber(handle, value, SubscribeToCrowdAgentReposition);
- }
- remove { eventAdapterForCrowdAgentReposition.RemoveManagedSubscriber(handle, value); }
- }
- } /* class CrowdManager */
- } /* namespace */
- namespace Urho
- {
- public partial struct CrowdAgentNodeRepositionEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
- public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
- public Vector3 Velocity => EventData.get_Vector3(unchecked((int)2845405629) /* Velocity (P_VELOCITY) */);
- public bool Arrived => EventData.get_bool(unchecked((int)2501236845) /* Arrived (P_ARRIVED) */);
- public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
- } /* struct CrowdAgentNodeRepositionEventArgs */
- } /* namespace */
- namespace Urho.Navigation
- {
- public partial struct CrowdAgentFailureEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
- public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
- public Vector3 Velocity => EventData.get_Vector3(unchecked((int)2845405629) /* Velocity (P_VELOCITY) */);
- public int CrowdAgentState => EventData.get_int(unchecked((int)1729065465) /* CrowdAgentState (P_CROWD_AGENT_STATE) */);
- public int CrowdTargetState => EventData.get_int(unchecked((int)928574867) /* CrowdTargetState (P_CROWD_TARGET_STATE) */);
- } /* struct CrowdAgentFailureEventArgs */
- public partial class CrowdManager
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.CrowdAgentFailure += ...' instead.")]
- public Subscription SubscribeToCrowdAgentFailure(Action<CrowdAgentFailureEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new CrowdAgentFailureEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)487208914) /* CrowdAgentFailure (E_CROWD_AGENT_FAILURE) */);
- return s;
- }
- static UrhoEventAdapter<CrowdAgentFailureEventArgs> eventAdapterForCrowdAgentFailure;
- public event Action<CrowdAgentFailureEventArgs> CrowdAgentFailure
- {
- add
- {
- if (eventAdapterForCrowdAgentFailure == null)
- eventAdapterForCrowdAgentFailure = new UrhoEventAdapter<CrowdAgentFailureEventArgs>(typeof(CrowdManager));
- eventAdapterForCrowdAgentFailure.AddManagedSubscriber(handle, value, SubscribeToCrowdAgentFailure);
- }
- remove { eventAdapterForCrowdAgentFailure.RemoveManagedSubscriber(handle, value); }
- }
- } /* class CrowdManager */
- } /* namespace */
- namespace Urho
- {
- public partial struct CrowdAgentNodeFailureEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
- public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
- public Vector3 Velocity => EventData.get_Vector3(unchecked((int)2845405629) /* Velocity (P_VELOCITY) */);
- public int CrowdAgentState => EventData.get_int(unchecked((int)1729065465) /* CrowdAgentState (P_CROWD_AGENT_STATE) */);
- public int CrowdTargetState => EventData.get_int(unchecked((int)928574867) /* CrowdTargetState (P_CROWD_TARGET_STATE) */);
- } /* struct CrowdAgentNodeFailureEventArgs */
- } /* namespace */
- namespace Urho.Navigation
- {
- public partial struct CrowdAgentStateChangedEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
- public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
- public Vector3 Velocity => EventData.get_Vector3(unchecked((int)2845405629) /* Velocity (P_VELOCITY) */);
- public int CrowdAgentState => EventData.get_int(unchecked((int)1729065465) /* CrowdAgentState (P_CROWD_AGENT_STATE) */);
- public int CrowdTargetState => EventData.get_int(unchecked((int)928574867) /* CrowdTargetState (P_CROWD_TARGET_STATE) */);
- } /* struct CrowdAgentStateChangedEventArgs */
- public partial class CrowdManager
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.CrowdAgentStateChanged += ...' instead.")]
- public Subscription SubscribeToCrowdAgentStateChanged(Action<CrowdAgentStateChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new CrowdAgentStateChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1897461467) /* CrowdAgentStateChanged (E_CROWD_AGENT_STATE_CHANGED) */);
- return s;
- }
- static UrhoEventAdapter<CrowdAgentStateChangedEventArgs> eventAdapterForCrowdAgentStateChanged;
- public event Action<CrowdAgentStateChangedEventArgs> CrowdAgentStateChanged
- {
- add
- {
- if (eventAdapterForCrowdAgentStateChanged == null)
- eventAdapterForCrowdAgentStateChanged = new UrhoEventAdapter<CrowdAgentStateChangedEventArgs>(typeof(CrowdManager));
- eventAdapterForCrowdAgentStateChanged.AddManagedSubscriber(handle, value, SubscribeToCrowdAgentStateChanged);
- }
- remove { eventAdapterForCrowdAgentStateChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class CrowdManager */
- } /* namespace */
- namespace Urho
- {
- public partial struct CrowdAgentNodeStateChangedEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public CrowdAgent CrowdAgent => EventData.get_CrowdAgent(unchecked((int)687004888) /* CrowdAgent (P_CROWD_AGENT) */);
- public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
- public Vector3 Velocity => EventData.get_Vector3(unchecked((int)2845405629) /* Velocity (P_VELOCITY) */);
- public int CrowdAgentState => EventData.get_int(unchecked((int)1729065465) /* CrowdAgentState (P_CROWD_AGENT_STATE) */);
- public int CrowdTargetState => EventData.get_int(unchecked((int)928574867) /* CrowdTargetState (P_CROWD_TARGET_STATE) */);
- } /* struct CrowdAgentNodeStateChangedEventArgs */
- } /* namespace */
- namespace Urho.Navigation
- {
- public partial struct NavigationObstacleAddedEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public Obstacle Obstacle => EventData.get_Obstacle(unchecked((int)1080511791) /* Obstacle (P_OBSTACLE) */);
- public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
- public float Radius => EventData.get_float(unchecked((int)4247146802) /* Radius (P_RADIUS) */);
- public float Height => EventData.get_float(unchecked((int)380957255) /* Height (P_HEIGHT) */);
- } /* struct NavigationObstacleAddedEventArgs */
- public partial class DynamicNavigationMesh
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NavigationObstacleAdded += ...' instead.")]
- public Subscription SubscribeToNavigationObstacleAdded(Action<NavigationObstacleAddedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NavigationObstacleAddedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)842705885) /* NavigationObstacleAdded (E_NAVIGATION_OBSTACLE_ADDED) */);
- return s;
- }
- static UrhoEventAdapter<NavigationObstacleAddedEventArgs> eventAdapterForNavigationObstacleAdded;
- public event Action<NavigationObstacleAddedEventArgs> NavigationObstacleAdded
- {
- add
- {
- if (eventAdapterForNavigationObstacleAdded == null)
- eventAdapterForNavigationObstacleAdded = new UrhoEventAdapter<NavigationObstacleAddedEventArgs>(typeof(DynamicNavigationMesh));
- eventAdapterForNavigationObstacleAdded.AddManagedSubscriber(handle, value, SubscribeToNavigationObstacleAdded);
- }
- remove { eventAdapterForNavigationObstacleAdded.RemoveManagedSubscriber(handle, value); }
- }
- } /* class DynamicNavigationMesh */
- } /* namespace */
- namespace Urho.Navigation
- {
- public partial struct NavigationObstacleRemovedEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public Obstacle Obstacle => EventData.get_Obstacle(unchecked((int)1080511791) /* Obstacle (P_OBSTACLE) */);
- public Vector3 Position => EventData.get_Vector3(unchecked((int)1333256809) /* Position (P_POSITION) */);
- public float Radius => EventData.get_float(unchecked((int)4247146802) /* Radius (P_RADIUS) */);
- public float Height => EventData.get_float(unchecked((int)380957255) /* Height (P_HEIGHT) */);
- } /* struct NavigationObstacleRemovedEventArgs */
- public partial class DynamicNavigationMesh
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NavigationObstacleRemoved += ...' instead.")]
- public Subscription SubscribeToNavigationObstacleRemoved(Action<NavigationObstacleRemovedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NavigationObstacleRemovedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3812914173) /* NavigationObstacleRemoved (E_NAVIGATION_OBSTACLE_REMOVED) */);
- return s;
- }
- static UrhoEventAdapter<NavigationObstacleRemovedEventArgs> eventAdapterForNavigationObstacleRemoved;
- public event Action<NavigationObstacleRemovedEventArgs> NavigationObstacleRemoved
- {
- add
- {
- if (eventAdapterForNavigationObstacleRemoved == null)
- eventAdapterForNavigationObstacleRemoved = new UrhoEventAdapter<NavigationObstacleRemovedEventArgs>(typeof(DynamicNavigationMesh));
- eventAdapterForNavigationObstacleRemoved.AddManagedSubscriber(handle, value, SubscribeToNavigationObstacleRemoved);
- }
- remove { eventAdapterForNavigationObstacleRemoved.RemoveManagedSubscriber(handle, value); }
- }
- } /* class DynamicNavigationMesh */
- } /* namespace */
- namespace Urho.Network
- {
- public partial struct ServerConnectedEventArgs
- {
- public EventDataContainer EventData;
- } /* struct ServerConnectedEventArgs */
- public partial class Network
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ServerConnected += ...' instead.")]
- public Subscription SubscribeToServerConnected(Action<ServerConnectedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ServerConnectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4052463078) /* ServerConnected (E_SERVERCONNECTED) */);
- return s;
- }
- static UrhoEventAdapter<ServerConnectedEventArgs> eventAdapterForServerConnected;
- public event Action<ServerConnectedEventArgs> ServerConnected
- {
- add
- {
- if (eventAdapterForServerConnected == null)
- eventAdapterForServerConnected = new UrhoEventAdapter<ServerConnectedEventArgs>(typeof(Network));
- eventAdapterForServerConnected.AddManagedSubscriber(handle, value, SubscribeToServerConnected);
- }
- remove { eventAdapterForServerConnected.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Network */
- } /* namespace */
- namespace Urho.Network
- {
- public partial struct ServerDisconnectedEventArgs
- {
- public EventDataContainer EventData;
- } /* struct ServerDisconnectedEventArgs */
- public partial class Network
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ServerDisconnected += ...' instead.")]
- public Subscription SubscribeToServerDisconnected(Action<ServerDisconnectedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ServerDisconnectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)830421502) /* ServerDisconnected (E_SERVERDISCONNECTED) */);
- return s;
- }
- static UrhoEventAdapter<ServerDisconnectedEventArgs> eventAdapterForServerDisconnected;
- public event Action<ServerDisconnectedEventArgs> ServerDisconnected
- {
- add
- {
- if (eventAdapterForServerDisconnected == null)
- eventAdapterForServerDisconnected = new UrhoEventAdapter<ServerDisconnectedEventArgs>(typeof(Network));
- eventAdapterForServerDisconnected.AddManagedSubscriber(handle, value, SubscribeToServerDisconnected);
- }
- remove { eventAdapterForServerDisconnected.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Network */
- } /* namespace */
- namespace Urho.Network
- {
- public partial struct ConnectFailedEventArgs
- {
- public EventDataContainer EventData;
- } /* struct ConnectFailedEventArgs */
- public partial class Network
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ConnectFailed += ...' instead.")]
- public Subscription SubscribeToConnectFailed(Action<ConnectFailedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ConnectFailedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1377395431) /* ConnectFailed (E_CONNECTFAILED) */);
- return s;
- }
- static UrhoEventAdapter<ConnectFailedEventArgs> eventAdapterForConnectFailed;
- public event Action<ConnectFailedEventArgs> ConnectFailed
- {
- add
- {
- if (eventAdapterForConnectFailed == null)
- eventAdapterForConnectFailed = new UrhoEventAdapter<ConnectFailedEventArgs>(typeof(Network));
- eventAdapterForConnectFailed.AddManagedSubscriber(handle, value, SubscribeToConnectFailed);
- }
- remove { eventAdapterForConnectFailed.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Network */
- } /* namespace */
- namespace Urho.Network
- {
- public partial struct ClientConnectedEventArgs
- {
- public EventDataContainer EventData;
- public Connection Connection => EventData.get_Connection(unchecked((int)2179499454) /* Connection (P_CONNECTION) */);
- } /* struct ClientConnectedEventArgs */
- public partial class Network
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ClientConnected += ...' instead.")]
- public Subscription SubscribeToClientConnected(Action<ClientConnectedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ClientConnectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4110472926) /* ClientConnected (E_CLIENTCONNECTED) */);
- return s;
- }
- static UrhoEventAdapter<ClientConnectedEventArgs> eventAdapterForClientConnected;
- public event Action<ClientConnectedEventArgs> ClientConnected
- {
- add
- {
- if (eventAdapterForClientConnected == null)
- eventAdapterForClientConnected = new UrhoEventAdapter<ClientConnectedEventArgs>(typeof(Network));
- eventAdapterForClientConnected.AddManagedSubscriber(handle, value, SubscribeToClientConnected);
- }
- remove { eventAdapterForClientConnected.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Network */
- } /* namespace */
- namespace Urho.Network
- {
- public partial struct ClientDisconnectedEventArgs
- {
- public EventDataContainer EventData;
- public Connection Connection => EventData.get_Connection(unchecked((int)2179499454) /* Connection (P_CONNECTION) */);
- } /* struct ClientDisconnectedEventArgs */
- public partial class Network
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ClientDisconnected += ...' instead.")]
- public Subscription SubscribeToClientDisconnected(Action<ClientDisconnectedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ClientDisconnectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4177677062) /* ClientDisconnected (E_CLIENTDISCONNECTED) */);
- return s;
- }
- static UrhoEventAdapter<ClientDisconnectedEventArgs> eventAdapterForClientDisconnected;
- public event Action<ClientDisconnectedEventArgs> ClientDisconnected
- {
- add
- {
- if (eventAdapterForClientDisconnected == null)
- eventAdapterForClientDisconnected = new UrhoEventAdapter<ClientDisconnectedEventArgs>(typeof(Network));
- eventAdapterForClientDisconnected.AddManagedSubscriber(handle, value, SubscribeToClientDisconnected);
- }
- remove { eventAdapterForClientDisconnected.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Network */
- } /* namespace */
- namespace Urho.Network
- {
- public partial struct ClientIdentityEventArgs
- {
- public EventDataContainer EventData;
- public Connection Connection => EventData.get_Connection(unchecked((int)2179499454) /* Connection (P_CONNECTION) */);
- public bool Allow => EventData.get_bool(unchecked((int)2467149353) /* Allow (P_ALLOW) */);
- } /* struct ClientIdentityEventArgs */
- public partial class Connection
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ClientIdentity += ...' instead.")]
- public Subscription SubscribeToClientIdentity(Action<ClientIdentityEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ClientIdentityEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)165479177) /* ClientIdentity (E_CLIENTIDENTITY) */);
- return s;
- }
- static UrhoEventAdapter<ClientIdentityEventArgs> eventAdapterForClientIdentity;
- public event Action<ClientIdentityEventArgs> ClientIdentity
- {
- add
- {
- if (eventAdapterForClientIdentity == null)
- eventAdapterForClientIdentity = new UrhoEventAdapter<ClientIdentityEventArgs>(typeof(Connection));
- eventAdapterForClientIdentity.AddManagedSubscriber(handle, value, SubscribeToClientIdentity);
- }
- remove { eventAdapterForClientIdentity.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Connection */
- } /* namespace */
- namespace Urho.Network
- {
- public partial struct ClientSceneLoadedEventArgs
- {
- public EventDataContainer EventData;
- public Connection Connection => EventData.get_Connection(unchecked((int)2179499454) /* Connection (P_CONNECTION) */);
- } /* struct ClientSceneLoadedEventArgs */
- public partial class Connection
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ClientSceneLoaded += ...' instead.")]
- public Subscription SubscribeToClientSceneLoaded(Action<ClientSceneLoadedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ClientSceneLoadedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2870394214) /* ClientSceneLoaded (E_CLIENTSCENELOADED) */);
- return s;
- }
- static UrhoEventAdapter<ClientSceneLoadedEventArgs> eventAdapterForClientSceneLoaded;
- public event Action<ClientSceneLoadedEventArgs> ClientSceneLoaded
- {
- add
- {
- if (eventAdapterForClientSceneLoaded == null)
- eventAdapterForClientSceneLoaded = new UrhoEventAdapter<ClientSceneLoadedEventArgs>(typeof(Connection));
- eventAdapterForClientSceneLoaded.AddManagedSubscriber(handle, value, SubscribeToClientSceneLoaded);
- }
- remove { eventAdapterForClientSceneLoaded.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Connection */
- } /* namespace */
- namespace Urho.Network
- {
- public partial struct NetworkMessageEventArgs
- {
- public EventDataContainer EventData;
- public Connection Connection => EventData.get_Connection(unchecked((int)2179499454) /* Connection (P_CONNECTION) */);
- public int MessageID => EventData.get_int(unchecked((int)169676386) /* MessageID (P_MESSAGEID) */);
- public byte[] Data => EventData.get_Buffer(unchecked((int)1558284138) /* Data (P_DATA) */);
- } /* struct NetworkMessageEventArgs */
- public partial class Network
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NetworkMessage += ...' instead.")]
- public Subscription SubscribeToNetworkMessage(Action<NetworkMessageEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NetworkMessageEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)511054905) /* NetworkMessage (E_NETWORKMESSAGE) */);
- return s;
- }
- static UrhoEventAdapter<NetworkMessageEventArgs> eventAdapterForNetworkMessage;
- public event Action<NetworkMessageEventArgs> NetworkMessage
- {
- add
- {
- if (eventAdapterForNetworkMessage == null)
- eventAdapterForNetworkMessage = new UrhoEventAdapter<NetworkMessageEventArgs>(typeof(Network));
- eventAdapterForNetworkMessage.AddManagedSubscriber(handle, value, SubscribeToNetworkMessage);
- }
- remove { eventAdapterForNetworkMessage.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Network */
- } /* namespace */
- namespace Urho.Network
- {
- public partial struct NetworkUpdateEventArgs
- {
- public EventDataContainer EventData;
- } /* struct NetworkUpdateEventArgs */
- public partial class Network
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NetworkUpdate += ...' instead.")]
- public Subscription SubscribeToNetworkUpdate(Action<NetworkUpdateEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NetworkUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3682502807) /* NetworkUpdate (E_NETWORKUPDATE) */);
- return s;
- }
- static UrhoEventAdapter<NetworkUpdateEventArgs> eventAdapterForNetworkUpdate;
- public event Action<NetworkUpdateEventArgs> NetworkUpdate
- {
- add
- {
- if (eventAdapterForNetworkUpdate == null)
- eventAdapterForNetworkUpdate = new UrhoEventAdapter<NetworkUpdateEventArgs>(typeof(Network));
- eventAdapterForNetworkUpdate.AddManagedSubscriber(handle, value, SubscribeToNetworkUpdate);
- }
- remove { eventAdapterForNetworkUpdate.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Network */
- } /* namespace */
- namespace Urho.Network
- {
- public partial struct NetworkUpdateSentEventArgs
- {
- public EventDataContainer EventData;
- } /* struct NetworkUpdateSentEventArgs */
- public partial class Network
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NetworkUpdateSent += ...' instead.")]
- public Subscription SubscribeToNetworkUpdateSent(Action<NetworkUpdateSentEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NetworkUpdateSentEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1495044303) /* NetworkUpdateSent (E_NETWORKUPDATESENT) */);
- return s;
- }
- static UrhoEventAdapter<NetworkUpdateSentEventArgs> eventAdapterForNetworkUpdateSent;
- public event Action<NetworkUpdateSentEventArgs> NetworkUpdateSent
- {
- add
- {
- if (eventAdapterForNetworkUpdateSent == null)
- eventAdapterForNetworkUpdateSent = new UrhoEventAdapter<NetworkUpdateSentEventArgs>(typeof(Network));
- eventAdapterForNetworkUpdateSent.AddManagedSubscriber(handle, value, SubscribeToNetworkUpdateSent);
- }
- remove { eventAdapterForNetworkUpdateSent.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Network */
- } /* namespace */
- namespace Urho.Network
- {
- public partial struct NetworkSceneLoadFailedEventArgs
- {
- public EventDataContainer EventData;
- public Connection Connection => EventData.get_Connection(unchecked((int)2179499454) /* Connection (P_CONNECTION) */);
- } /* struct NetworkSceneLoadFailedEventArgs */
- public partial class Network
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NetworkSceneLoadFailed += ...' instead.")]
- public Subscription SubscribeToNetworkSceneLoadFailed(Action<NetworkSceneLoadFailedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NetworkSceneLoadFailedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3832128641) /* NetworkSceneLoadFailed (E_NETWORKSCENELOADFAILED) */);
- return s;
- }
- static UrhoEventAdapter<NetworkSceneLoadFailedEventArgs> eventAdapterForNetworkSceneLoadFailed;
- public event Action<NetworkSceneLoadFailedEventArgs> NetworkSceneLoadFailed
- {
- add
- {
- if (eventAdapterForNetworkSceneLoadFailed == null)
- eventAdapterForNetworkSceneLoadFailed = new UrhoEventAdapter<NetworkSceneLoadFailedEventArgs>(typeof(Network));
- eventAdapterForNetworkSceneLoadFailed.AddManagedSubscriber(handle, value, SubscribeToNetworkSceneLoadFailed);
- }
- remove { eventAdapterForNetworkSceneLoadFailed.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Network */
- } /* namespace */
- namespace Urho.Network
- {
- public partial struct RemoteEventDataEventArgs
- {
- public EventDataContainer EventData;
- public Connection Connection => EventData.get_Connection(unchecked((int)2179499454) /* Connection (P_CONNECTION) */);
- } /* struct RemoteEventDataEventArgs */
- } /* namespace */
- namespace Urho.Physics
- {
- public partial struct PhysicsPreStepEventArgs
- {
- public EventDataContainer EventData;
- public PhysicsWorld World => EventData.get_PhysicsWorld(unchecked((int)4158893746) /* World (P_WORLD) */);
- public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
- } /* struct PhysicsPreStepEventArgs */
- public partial class PhysicsWorld
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PhysicsPreStep += ...' instead.")]
- public Subscription SubscribeToPhysicsPreStep(Action<PhysicsPreStepEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new PhysicsPreStepEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2540038056) /* PhysicsPreStep (E_PHYSICSPRESTEP) */);
- return s;
- }
- static UrhoEventAdapter<PhysicsPreStepEventArgs> eventAdapterForPhysicsPreStep;
- public event Action<PhysicsPreStepEventArgs> PhysicsPreStep
- {
- add
- {
- if (eventAdapterForPhysicsPreStep == null)
- eventAdapterForPhysicsPreStep = new UrhoEventAdapter<PhysicsPreStepEventArgs>(typeof(PhysicsWorld));
- eventAdapterForPhysicsPreStep.AddManagedSubscriber(handle, value, SubscribeToPhysicsPreStep);
- }
- remove { eventAdapterForPhysicsPreStep.RemoveManagedSubscriber(handle, value); }
- }
- } /* class PhysicsWorld */
- } /* namespace */
- namespace Urho.Physics
- {
- public partial struct PhysicsPostStepEventArgs
- {
- public EventDataContainer EventData;
- public PhysicsWorld World => EventData.get_PhysicsWorld(unchecked((int)4158893746) /* World (P_WORLD) */);
- public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
- } /* struct PhysicsPostStepEventArgs */
- public partial class PhysicsWorld
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PhysicsPostStep += ...' instead.")]
- public Subscription SubscribeToPhysicsPostStep(Action<PhysicsPostStepEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new PhysicsPostStepEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4200987859) /* PhysicsPostStep (E_PHYSICSPOSTSTEP) */);
- return s;
- }
- static UrhoEventAdapter<PhysicsPostStepEventArgs> eventAdapterForPhysicsPostStep;
- public event Action<PhysicsPostStepEventArgs> PhysicsPostStep
- {
- add
- {
- if (eventAdapterForPhysicsPostStep == null)
- eventAdapterForPhysicsPostStep = new UrhoEventAdapter<PhysicsPostStepEventArgs>(typeof(PhysicsWorld));
- eventAdapterForPhysicsPostStep.AddManagedSubscriber(handle, value, SubscribeToPhysicsPostStep);
- }
- remove { eventAdapterForPhysicsPostStep.RemoveManagedSubscriber(handle, value); }
- }
- } /* class PhysicsWorld */
- } /* namespace */
- namespace Urho.Physics
- {
- public partial struct PhysicsCollisionStartEventArgs
- {
- public EventDataContainer EventData;
- public PhysicsWorld World => EventData.get_PhysicsWorld(unchecked((int)4158893746) /* World (P_WORLD) */);
- public Node NodeA => EventData.get_Node(unchecked((int)2376629471) /* NodeA (P_NODEA) */);
- public Node NodeB => EventData.get_Node(unchecked((int)2376629472) /* NodeB (P_NODEB) */);
- public RigidBody BodyA => EventData.get_RigidBody(unchecked((int)1588071871) /* BodyA (P_BODYA) */);
- public RigidBody BodyB => EventData.get_RigidBody(unchecked((int)1588071872) /* BodyB (P_BODYB) */);
- public bool Trigger => EventData.get_bool(unchecked((int)2995104504) /* Trigger (P_TRIGGER) */);
- public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
- } /* struct PhysicsCollisionStartEventArgs */
- public partial class PhysicsWorld
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PhysicsCollisionStart += ...' instead.")]
- public Subscription SubscribeToPhysicsCollisionStart(Action<PhysicsCollisionStartEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new PhysicsCollisionStartEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3207652439) /* PhysicsCollisionStart (E_PHYSICSCOLLISIONSTART) */);
- return s;
- }
- static UrhoEventAdapter<PhysicsCollisionStartEventArgs> eventAdapterForPhysicsCollisionStart;
- public event Action<PhysicsCollisionStartEventArgs> PhysicsCollisionStart
- {
- add
- {
- if (eventAdapterForPhysicsCollisionStart == null)
- eventAdapterForPhysicsCollisionStart = new UrhoEventAdapter<PhysicsCollisionStartEventArgs>(typeof(PhysicsWorld));
- eventAdapterForPhysicsCollisionStart.AddManagedSubscriber(handle, value, SubscribeToPhysicsCollisionStart);
- }
- remove { eventAdapterForPhysicsCollisionStart.RemoveManagedSubscriber(handle, value); }
- }
- } /* class PhysicsWorld */
- } /* namespace */
- namespace Urho.Physics
- {
- public partial struct PhysicsCollisionEventArgs
- {
- public EventDataContainer EventData;
- public PhysicsWorld World => EventData.get_PhysicsWorld(unchecked((int)4158893746) /* World (P_WORLD) */);
- public Node NodeA => EventData.get_Node(unchecked((int)2376629471) /* NodeA (P_NODEA) */);
- public Node NodeB => EventData.get_Node(unchecked((int)2376629472) /* NodeB (P_NODEB) */);
- public RigidBody BodyA => EventData.get_RigidBody(unchecked((int)1588071871) /* BodyA (P_BODYA) */);
- public RigidBody BodyB => EventData.get_RigidBody(unchecked((int)1588071872) /* BodyB (P_BODYB) */);
- public bool Trigger => EventData.get_bool(unchecked((int)2995104504) /* Trigger (P_TRIGGER) */);
- public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
- } /* struct PhysicsCollisionEventArgs */
- public partial class PhysicsWorld
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PhysicsCollision += ...' instead.")]
- public Subscription SubscribeToPhysicsCollision(Action<PhysicsCollisionEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new PhysicsCollisionEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2202188235) /* PhysicsCollision (E_PHYSICSCOLLISION) */);
- return s;
- }
- static UrhoEventAdapter<PhysicsCollisionEventArgs> eventAdapterForPhysicsCollision;
- public event Action<PhysicsCollisionEventArgs> PhysicsCollision
- {
- add
- {
- if (eventAdapterForPhysicsCollision == null)
- eventAdapterForPhysicsCollision = new UrhoEventAdapter<PhysicsCollisionEventArgs>(typeof(PhysicsWorld));
- eventAdapterForPhysicsCollision.AddManagedSubscriber(handle, value, SubscribeToPhysicsCollision);
- }
- remove { eventAdapterForPhysicsCollision.RemoveManagedSubscriber(handle, value); }
- }
- } /* class PhysicsWorld */
- } /* namespace */
- namespace Urho.Physics
- {
- public partial struct PhysicsCollisionEndEventArgs
- {
- public EventDataContainer EventData;
- public PhysicsWorld World => EventData.get_PhysicsWorld(unchecked((int)4158893746) /* World (P_WORLD) */);
- public Node NodeA => EventData.get_Node(unchecked((int)2376629471) /* NodeA (P_NODEA) */);
- public Node NodeB => EventData.get_Node(unchecked((int)2376629472) /* NodeB (P_NODEB) */);
- public RigidBody BodyA => EventData.get_RigidBody(unchecked((int)1588071871) /* BodyA (P_BODYA) */);
- public RigidBody BodyB => EventData.get_RigidBody(unchecked((int)1588071872) /* BodyB (P_BODYB) */);
- public bool Trigger => EventData.get_bool(unchecked((int)2995104504) /* Trigger (P_TRIGGER) */);
- } /* struct PhysicsCollisionEndEventArgs */
- public partial class PhysicsWorld
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PhysicsCollisionEnd += ...' instead.")]
- public Subscription SubscribeToPhysicsCollisionEnd(Action<PhysicsCollisionEndEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new PhysicsCollisionEndEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)304728016) /* PhysicsCollisionEnd (E_PHYSICSCOLLISIONEND) */);
- return s;
- }
- static UrhoEventAdapter<PhysicsCollisionEndEventArgs> eventAdapterForPhysicsCollisionEnd;
- public event Action<PhysicsCollisionEndEventArgs> PhysicsCollisionEnd
- {
- add
- {
- if (eventAdapterForPhysicsCollisionEnd == null)
- eventAdapterForPhysicsCollisionEnd = new UrhoEventAdapter<PhysicsCollisionEndEventArgs>(typeof(PhysicsWorld));
- eventAdapterForPhysicsCollisionEnd.AddManagedSubscriber(handle, value, SubscribeToPhysicsCollisionEnd);
- }
- remove { eventAdapterForPhysicsCollisionEnd.RemoveManagedSubscriber(handle, value); }
- }
- } /* class PhysicsWorld */
- } /* namespace */
- namespace Urho
- {
- public partial struct NodeCollisionStartEventArgs
- {
- public EventDataContainer EventData;
- public RigidBody Body => EventData.get_RigidBody(unchecked((int)111721250) /* Body (P_BODY) */);
- public Node OtherNode => EventData.get_Node(unchecked((int)2707292594) /* OtherNode (P_OTHERNODE) */);
- public RigidBody OtherBody => EventData.get_RigidBody(unchecked((int)1930180818) /* OtherBody (P_OTHERBODY) */);
- public bool Trigger => EventData.get_bool(unchecked((int)2995104504) /* Trigger (P_TRIGGER) */);
- public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
- } /* struct NodeCollisionStartEventArgs */
- public partial class Node
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeCollisionStart += ...' instead.")]
- public Subscription SubscribeToNodeCollisionStart(Action<NodeCollisionStartEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NodeCollisionStartEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2797145554) /* NodeCollisionStart (E_NODECOLLISIONSTART) */);
- return s;
- }
- static UrhoEventAdapter<NodeCollisionStartEventArgs> eventAdapterForNodeCollisionStart;
- public event Action<NodeCollisionStartEventArgs> NodeCollisionStart
- {
- add
- {
- if (eventAdapterForNodeCollisionStart == null)
- eventAdapterForNodeCollisionStart = new UrhoEventAdapter<NodeCollisionStartEventArgs>(typeof(Node));
- eventAdapterForNodeCollisionStart.AddManagedSubscriber(handle, value, SubscribeToNodeCollisionStart);
- }
- remove { eventAdapterForNodeCollisionStart.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Node */
- } /* namespace */
- namespace Urho
- {
- public partial struct NodeCollisionEventArgs
- {
- public EventDataContainer EventData;
- public RigidBody Body => EventData.get_RigidBody(unchecked((int)111721250) /* Body (P_BODY) */);
- public Node OtherNode => EventData.get_Node(unchecked((int)2707292594) /* OtherNode (P_OTHERNODE) */);
- public RigidBody OtherBody => EventData.get_RigidBody(unchecked((int)1930180818) /* OtherBody (P_OTHERBODY) */);
- public bool Trigger => EventData.get_bool(unchecked((int)2995104504) /* Trigger (P_TRIGGER) */);
- public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
- } /* struct NodeCollisionEventArgs */
- public partial class Node
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeCollision += ...' instead.")]
- public Subscription SubscribeToNodeCollision(Action<NodeCollisionEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NodeCollisionEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2675467920) /* NodeCollision (E_NODECOLLISION) */);
- return s;
- }
- static UrhoEventAdapter<NodeCollisionEventArgs> eventAdapterForNodeCollision;
- public event Action<NodeCollisionEventArgs> NodeCollision
- {
- add
- {
- if (eventAdapterForNodeCollision == null)
- eventAdapterForNodeCollision = new UrhoEventAdapter<NodeCollisionEventArgs>(typeof(Node));
- eventAdapterForNodeCollision.AddManagedSubscriber(handle, value, SubscribeToNodeCollision);
- }
- remove { eventAdapterForNodeCollision.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Node */
- } /* namespace */
- namespace Urho
- {
- public partial struct NodeCollisionEndEventArgs
- {
- public EventDataContainer EventData;
- public RigidBody Body => EventData.get_RigidBody(unchecked((int)111721250) /* Body (P_BODY) */);
- public Node OtherNode => EventData.get_Node(unchecked((int)2707292594) /* OtherNode (P_OTHERNODE) */);
- public RigidBody OtherBody => EventData.get_RigidBody(unchecked((int)1930180818) /* OtherBody (P_OTHERBODY) */);
- public bool Trigger => EventData.get_bool(unchecked((int)2995104504) /* Trigger (P_TRIGGER) */);
- } /* struct NodeCollisionEndEventArgs */
- public partial class Node
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeCollisionEnd += ...' instead.")]
- public Subscription SubscribeToNodeCollisionEnd(Action<NodeCollisionEndEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NodeCollisionEndEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2410921675) /* NodeCollisionEnd (E_NODECOLLISIONEND) */);
- return s;
- }
- static UrhoEventAdapter<NodeCollisionEndEventArgs> eventAdapterForNodeCollisionEnd;
- public event Action<NodeCollisionEndEventArgs> NodeCollisionEnd
- {
- add
- {
- if (eventAdapterForNodeCollisionEnd == null)
- eventAdapterForNodeCollisionEnd = new UrhoEventAdapter<NodeCollisionEndEventArgs>(typeof(Node));
- eventAdapterForNodeCollisionEnd.AddManagedSubscriber(handle, value, SubscribeToNodeCollisionEnd);
- }
- remove { eventAdapterForNodeCollisionEnd.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Node */
- } /* namespace */
- namespace Urho.Resources
- {
- public partial struct ReloadStartedEventArgs
- {
- public EventDataContainer EventData;
- } /* struct ReloadStartedEventArgs */
- public partial class Resource
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ReloadStarted += ...' instead.")]
- public Subscription SubscribeToReloadStarted(Action<ReloadStartedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ReloadStartedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)213872936) /* ReloadStarted (E_RELOADSTARTED) */);
- return s;
- }
- static UrhoEventAdapter<ReloadStartedEventArgs> eventAdapterForReloadStarted;
- public event Action<ReloadStartedEventArgs> ReloadStarted
- {
- add
- {
- if (eventAdapterForReloadStarted == null)
- eventAdapterForReloadStarted = new UrhoEventAdapter<ReloadStartedEventArgs>(typeof(Resource));
- eventAdapterForReloadStarted.AddManagedSubscriber(handle, value, SubscribeToReloadStarted);
- }
- remove { eventAdapterForReloadStarted.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Resource */
- } /* namespace */
- namespace Urho.Resources
- {
- public partial struct ReloadFinishedEventArgs
- {
- public EventDataContainer EventData;
- } /* struct ReloadFinishedEventArgs */
- public partial class Resource
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ReloadFinished += ...' instead.")]
- public Subscription SubscribeToReloadFinished(Action<ReloadFinishedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ReloadFinishedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2825685547) /* ReloadFinished (E_RELOADFINISHED) */);
- return s;
- }
- static UrhoEventAdapter<ReloadFinishedEventArgs> eventAdapterForReloadFinished;
- public event Action<ReloadFinishedEventArgs> ReloadFinished
- {
- add
- {
- if (eventAdapterForReloadFinished == null)
- eventAdapterForReloadFinished = new UrhoEventAdapter<ReloadFinishedEventArgs>(typeof(Resource));
- eventAdapterForReloadFinished.AddManagedSubscriber(handle, value, SubscribeToReloadFinished);
- }
- remove { eventAdapterForReloadFinished.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Resource */
- } /* namespace */
- namespace Urho.Resources
- {
- public partial struct ReloadFailedEventArgs
- {
- public EventDataContainer EventData;
- } /* struct ReloadFailedEventArgs */
- public partial class Resource
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ReloadFailed += ...' instead.")]
- public Subscription SubscribeToReloadFailed(Action<ReloadFailedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ReloadFailedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4176168502) /* ReloadFailed (E_RELOADFAILED) */);
- return s;
- }
- static UrhoEventAdapter<ReloadFailedEventArgs> eventAdapterForReloadFailed;
- public event Action<ReloadFailedEventArgs> ReloadFailed
- {
- add
- {
- if (eventAdapterForReloadFailed == null)
- eventAdapterForReloadFailed = new UrhoEventAdapter<ReloadFailedEventArgs>(typeof(Resource));
- eventAdapterForReloadFailed.AddManagedSubscriber(handle, value, SubscribeToReloadFailed);
- }
- remove { eventAdapterForReloadFailed.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Resource */
- } /* namespace */
- namespace Urho.Resources
- {
- public partial struct FileChangedEventArgs
- {
- public EventDataContainer EventData;
- public String FileName => EventData.get_String(unchecked((int)633459751) /* FileName (P_FILENAME) */);
- public String ResourceName => EventData.get_String(unchecked((int)4134618969) /* ResourceName (P_RESOURCENAME) */);
- } /* struct FileChangedEventArgs */
- public partial class ResourceCache
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.FileChanged += ...' instead.")]
- public Subscription SubscribeToFileChanged(Action<FileChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new FileChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3297483544) /* FileChanged (E_FILECHANGED) */);
- return s;
- }
- static UrhoEventAdapter<FileChangedEventArgs> eventAdapterForFileChanged;
- public event Action<FileChangedEventArgs> FileChanged
- {
- add
- {
- if (eventAdapterForFileChanged == null)
- eventAdapterForFileChanged = new UrhoEventAdapter<FileChangedEventArgs>(typeof(ResourceCache));
- eventAdapterForFileChanged.AddManagedSubscriber(handle, value, SubscribeToFileChanged);
- }
- remove { eventAdapterForFileChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ResourceCache */
- } /* namespace */
- namespace Urho.Resources
- {
- public partial struct LoadFailedEventArgs
- {
- public EventDataContainer EventData;
- public String ResourceName => EventData.get_String(unchecked((int)4134618969) /* ResourceName (P_RESOURCENAME) */);
- } /* struct LoadFailedEventArgs */
- public partial class ResourceCache
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.LoadFailed += ...' instead.")]
- public Subscription SubscribeToLoadFailed(Action<LoadFailedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new LoadFailedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2824526147) /* LoadFailed (E_LOADFAILED) */);
- return s;
- }
- static UrhoEventAdapter<LoadFailedEventArgs> eventAdapterForLoadFailed;
- public event Action<LoadFailedEventArgs> LoadFailed
- {
- add
- {
- if (eventAdapterForLoadFailed == null)
- eventAdapterForLoadFailed = new UrhoEventAdapter<LoadFailedEventArgs>(typeof(ResourceCache));
- eventAdapterForLoadFailed.AddManagedSubscriber(handle, value, SubscribeToLoadFailed);
- }
- remove { eventAdapterForLoadFailed.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ResourceCache */
- } /* namespace */
- namespace Urho.Resources
- {
- public partial struct ResourceNotFoundEventArgs
- {
- public EventDataContainer EventData;
- public String ResourceName => EventData.get_String(unchecked((int)4134618969) /* ResourceName (P_RESOURCENAME) */);
- } /* struct ResourceNotFoundEventArgs */
- public partial class ResourceCache
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ResourceNotFound += ...' instead.")]
- public Subscription SubscribeToResourceNotFound(Action<ResourceNotFoundEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ResourceNotFoundEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)217257309) /* ResourceNotFound (E_RESOURCENOTFOUND) */);
- return s;
- }
- static UrhoEventAdapter<ResourceNotFoundEventArgs> eventAdapterForResourceNotFound;
- public event Action<ResourceNotFoundEventArgs> ResourceNotFound
- {
- add
- {
- if (eventAdapterForResourceNotFound == null)
- eventAdapterForResourceNotFound = new UrhoEventAdapter<ResourceNotFoundEventArgs>(typeof(ResourceCache));
- eventAdapterForResourceNotFound.AddManagedSubscriber(handle, value, SubscribeToResourceNotFound);
- }
- remove { eventAdapterForResourceNotFound.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ResourceCache */
- } /* namespace */
- namespace Urho.Resources
- {
- public partial struct UnknownResourceTypeEventArgs
- {
- public EventDataContainer EventData;
- public StringHash ResourceType => EventData.get_StringHash(unchecked((int)426680488) /* ResourceType (P_RESOURCETYPE) */);
- } /* struct UnknownResourceTypeEventArgs */
- public partial class ResourceCache
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.UnknownResourceType += ...' instead.")]
- public Subscription SubscribeToUnknownResourceType(Action<UnknownResourceTypeEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new UnknownResourceTypeEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2352310994) /* UnknownResourceType (E_UNKNOWNRESOURCETYPE) */);
- return s;
- }
- static UrhoEventAdapter<UnknownResourceTypeEventArgs> eventAdapterForUnknownResourceType;
- public event Action<UnknownResourceTypeEventArgs> UnknownResourceType
- {
- add
- {
- if (eventAdapterForUnknownResourceType == null)
- eventAdapterForUnknownResourceType = new UrhoEventAdapter<UnknownResourceTypeEventArgs>(typeof(ResourceCache));
- eventAdapterForUnknownResourceType.AddManagedSubscriber(handle, value, SubscribeToUnknownResourceType);
- }
- remove { eventAdapterForUnknownResourceType.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ResourceCache */
- } /* namespace */
- namespace Urho.Resources
- {
- public partial struct ResourceBackgroundLoadedEventArgs
- {
- public EventDataContainer EventData;
- public String ResourceName => EventData.get_String(unchecked((int)4134618969) /* ResourceName (P_RESOURCENAME) */);
- public bool Success => EventData.get_bool(unchecked((int)3427551139) /* Success (P_SUCCESS) */);
- public Resource Resource => EventData.get_Resource(unchecked((int)39946286) /* Resource (P_RESOURCE) */);
- } /* struct ResourceBackgroundLoadedEventArgs */
- public partial class ResourceCache
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ResourceBackgroundLoaded += ...' instead.")]
- public Subscription SubscribeToResourceBackgroundLoaded(Action<ResourceBackgroundLoadedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ResourceBackgroundLoadedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4263239041) /* ResourceBackgroundLoaded (E_RESOURCEBACKGROUNDLOADED) */);
- return s;
- }
- static UrhoEventAdapter<ResourceBackgroundLoadedEventArgs> eventAdapterForResourceBackgroundLoaded;
- public event Action<ResourceBackgroundLoadedEventArgs> ResourceBackgroundLoaded
- {
- add
- {
- if (eventAdapterForResourceBackgroundLoaded == null)
- eventAdapterForResourceBackgroundLoaded = new UrhoEventAdapter<ResourceBackgroundLoadedEventArgs>(typeof(ResourceCache));
- eventAdapterForResourceBackgroundLoaded.AddManagedSubscriber(handle, value, SubscribeToResourceBackgroundLoaded);
- }
- remove { eventAdapterForResourceBackgroundLoaded.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ResourceCache */
- } /* namespace */
- namespace Urho.Resources
- {
- public partial struct ChangeLanguageEventArgs
- {
- public EventDataContainer EventData;
- } /* struct ChangeLanguageEventArgs */
- public partial class Localization
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ChangeLanguage += ...' instead.")]
- public Subscription SubscribeToChangeLanguage(Action<ChangeLanguageEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ChangeLanguageEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1337208360) /* ChangeLanguage (E_CHANGELANGUAGE) */);
- return s;
- }
- static UrhoEventAdapter<ChangeLanguageEventArgs> eventAdapterForChangeLanguage;
- public event Action<ChangeLanguageEventArgs> ChangeLanguage
- {
- add
- {
- if (eventAdapterForChangeLanguage == null)
- eventAdapterForChangeLanguage = new UrhoEventAdapter<ChangeLanguageEventArgs>(typeof(Localization));
- eventAdapterForChangeLanguage.AddManagedSubscriber(handle, value, SubscribeToChangeLanguage);
- }
- remove { eventAdapterForChangeLanguage.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Localization */
- } /* namespace */
- namespace Urho
- {
- public partial struct SceneUpdateEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
- } /* struct SceneUpdateEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.SceneUpdate += ...' instead.")]
- public Subscription SubscribeToSceneUpdate(Action<SceneUpdateEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new SceneUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3145164885) /* SceneUpdate (E_SCENEUPDATE) */);
- return s;
- }
- static UrhoEventAdapter<SceneUpdateEventArgs> eventAdapterForSceneUpdate;
- public event Action<SceneUpdateEventArgs> SceneUpdate
- {
- add
- {
- if (eventAdapterForSceneUpdate == null)
- eventAdapterForSceneUpdate = new UrhoEventAdapter<SceneUpdateEventArgs>(typeof(Scene));
- eventAdapterForSceneUpdate.AddManagedSubscriber(handle, value, SubscribeToSceneUpdate);
- }
- remove { eventAdapterForSceneUpdate.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct SceneSubsystemUpdateEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
- } /* struct SceneSubsystemUpdateEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.SceneSubsystemUpdate += ...' instead.")]
- public Subscription SubscribeToSceneSubsystemUpdate(Action<SceneSubsystemUpdateEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new SceneSubsystemUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1997371372) /* SceneSubsystemUpdate (E_SCENESUBSYSTEMUPDATE) */);
- return s;
- }
- static UrhoEventAdapter<SceneSubsystemUpdateEventArgs> eventAdapterForSceneSubsystemUpdate;
- public event Action<SceneSubsystemUpdateEventArgs> SceneSubsystemUpdate
- {
- add
- {
- if (eventAdapterForSceneSubsystemUpdate == null)
- eventAdapterForSceneSubsystemUpdate = new UrhoEventAdapter<SceneSubsystemUpdateEventArgs>(typeof(Scene));
- eventAdapterForSceneSubsystemUpdate.AddManagedSubscriber(handle, value, SubscribeToSceneSubsystemUpdate);
- }
- remove { eventAdapterForSceneSubsystemUpdate.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct UpdateSmoothingEventArgs
- {
- public EventDataContainer EventData;
- public float Constant => EventData.get_float(unchecked((int)1006513988) /* Constant (P_CONSTANT) */);
- public float SquaredSnapThreshold => EventData.get_float(unchecked((int)4276457658) /* SquaredSnapThreshold (P_SQUAREDSNAPTHRESHOLD) */);
- } /* struct UpdateSmoothingEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.UpdateSmoothing += ...' instead.")]
- public Subscription SubscribeToUpdateSmoothing(Action<UpdateSmoothingEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new UpdateSmoothingEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4083015947) /* UpdateSmoothing (E_UPDATESMOOTHING) */);
- return s;
- }
- static UrhoEventAdapter<UpdateSmoothingEventArgs> eventAdapterForUpdateSmoothing;
- public event Action<UpdateSmoothingEventArgs> UpdateSmoothing
- {
- add
- {
- if (eventAdapterForUpdateSmoothing == null)
- eventAdapterForUpdateSmoothing = new UrhoEventAdapter<UpdateSmoothingEventArgs>(typeof(Scene));
- eventAdapterForUpdateSmoothing.AddManagedSubscriber(handle, value, SubscribeToUpdateSmoothing);
- }
- remove { eventAdapterForUpdateSmoothing.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct SceneDrawableUpdateFinishedEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
- } /* struct SceneDrawableUpdateFinishedEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.SceneDrawableUpdateFinished += ...' instead.")]
- public Subscription SubscribeToSceneDrawableUpdateFinished(Action<SceneDrawableUpdateFinishedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new SceneDrawableUpdateFinishedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)228472677) /* SceneDrawableUpdateFinished (E_SCENEDRAWABLEUPDATEFINISHED) */);
- return s;
- }
- static UrhoEventAdapter<SceneDrawableUpdateFinishedEventArgs> eventAdapterForSceneDrawableUpdateFinished;
- public event Action<SceneDrawableUpdateFinishedEventArgs> SceneDrawableUpdateFinished
- {
- add
- {
- if (eventAdapterForSceneDrawableUpdateFinished == null)
- eventAdapterForSceneDrawableUpdateFinished = new UrhoEventAdapter<SceneDrawableUpdateFinishedEventArgs>(typeof(Scene));
- eventAdapterForSceneDrawableUpdateFinished.AddManagedSubscriber(handle, value, SubscribeToSceneDrawableUpdateFinished);
- }
- remove { eventAdapterForSceneDrawableUpdateFinished.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct TargetPositionChangedEventArgs
- {
- public EventDataContainer EventData;
- } /* struct TargetPositionChangedEventArgs */
- public partial class SmoothedTransform
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TargetPositionChanged += ...' instead.")]
- public Subscription SubscribeToTargetPositionChanged(Action<TargetPositionChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new TargetPositionChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3850327802) /* TargetPositionChanged (E_TARGETPOSITION) */);
- return s;
- }
- static UrhoEventAdapter<TargetPositionChangedEventArgs> eventAdapterForTargetPositionChanged;
- public event Action<TargetPositionChangedEventArgs> TargetPositionChanged
- {
- add
- {
- if (eventAdapterForTargetPositionChanged == null)
- eventAdapterForTargetPositionChanged = new UrhoEventAdapter<TargetPositionChangedEventArgs>(typeof(SmoothedTransform));
- eventAdapterForTargetPositionChanged.AddManagedSubscriber(handle, value, SubscribeToTargetPositionChanged);
- }
- remove { eventAdapterForTargetPositionChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class SmoothedTransform */
- } /* namespace */
- namespace Urho
- {
- public partial struct TargetRotationChangedEventArgs
- {
- public EventDataContainer EventData;
- } /* struct TargetRotationChangedEventArgs */
- public partial class SmoothedTransform
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TargetRotationChanged += ...' instead.")]
- public Subscription SubscribeToTargetRotationChanged(Action<TargetRotationChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new TargetRotationChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3938072325) /* TargetRotationChanged (E_TARGETROTATION) */);
- return s;
- }
- static UrhoEventAdapter<TargetRotationChangedEventArgs> eventAdapterForTargetRotationChanged;
- public event Action<TargetRotationChangedEventArgs> TargetRotationChanged
- {
- add
- {
- if (eventAdapterForTargetRotationChanged == null)
- eventAdapterForTargetRotationChanged = new UrhoEventAdapter<TargetRotationChangedEventArgs>(typeof(SmoothedTransform));
- eventAdapterForTargetRotationChanged.AddManagedSubscriber(handle, value, SubscribeToTargetRotationChanged);
- }
- remove { eventAdapterForTargetRotationChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class SmoothedTransform */
- } /* namespace */
- namespace Urho
- {
- public partial struct AttributeAnimationUpdateEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
- } /* struct AttributeAnimationUpdateEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AttributeAnimationUpdate += ...' instead.")]
- public Subscription SubscribeToAttributeAnimationUpdate(Action<AttributeAnimationUpdateEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new AttributeAnimationUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1013401233) /* AttributeAnimationUpdate (E_ATTRIBUTEANIMATIONUPDATE) */);
- return s;
- }
- static UrhoEventAdapter<AttributeAnimationUpdateEventArgs> eventAdapterForAttributeAnimationUpdate;
- public event Action<AttributeAnimationUpdateEventArgs> AttributeAnimationUpdate
- {
- add
- {
- if (eventAdapterForAttributeAnimationUpdate == null)
- eventAdapterForAttributeAnimationUpdate = new UrhoEventAdapter<AttributeAnimationUpdateEventArgs>(typeof(Scene));
- eventAdapterForAttributeAnimationUpdate.AddManagedSubscriber(handle, value, SubscribeToAttributeAnimationUpdate);
- }
- remove { eventAdapterForAttributeAnimationUpdate.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct AttributeAnimationAddedEventArgs
- {
- public EventDataContainer EventData;
- public Object ObjectAnimation => EventData.get_Object(unchecked((int)485250565) /* ObjectAnimation (P_OBJECTANIMATION) */);
- public String AttributeAnimationName => EventData.get_String(unchecked((int)4253834771) /* AttributeAnimationName (P_ATTRIBUTEANIMATIONNAME) */);
- } /* struct AttributeAnimationAddedEventArgs */
- public partial class ObjectAnimation
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AttributeAnimationAdded += ...' instead.")]
- public Subscription SubscribeToAttributeAnimationAdded(Action<AttributeAnimationAddedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new AttributeAnimationAddedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3619895992) /* AttributeAnimationAdded (E_ATTRIBUTEANIMATIONADDED) */);
- return s;
- }
- static UrhoEventAdapter<AttributeAnimationAddedEventArgs> eventAdapterForAttributeAnimationAdded;
- public event Action<AttributeAnimationAddedEventArgs> AttributeAnimationAdded
- {
- add
- {
- if (eventAdapterForAttributeAnimationAdded == null)
- eventAdapterForAttributeAnimationAdded = new UrhoEventAdapter<AttributeAnimationAddedEventArgs>(typeof(ObjectAnimation));
- eventAdapterForAttributeAnimationAdded.AddManagedSubscriber(handle, value, SubscribeToAttributeAnimationAdded);
- }
- remove { eventAdapterForAttributeAnimationAdded.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ObjectAnimation */
- } /* namespace */
- namespace Urho
- {
- public partial struct AttributeAnimationRemovedEventArgs
- {
- public EventDataContainer EventData;
- public Object ObjectAnimation => EventData.get_Object(unchecked((int)485250565) /* ObjectAnimation (P_OBJECTANIMATION) */);
- public String AttributeAnimationName => EventData.get_String(unchecked((int)4253834771) /* AttributeAnimationName (P_ATTRIBUTEANIMATIONNAME) */);
- } /* struct AttributeAnimationRemovedEventArgs */
- public partial class ObjectAnimation
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AttributeAnimationRemoved += ...' instead.")]
- public Subscription SubscribeToAttributeAnimationRemoved(Action<AttributeAnimationRemovedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new AttributeAnimationRemovedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2638038360) /* AttributeAnimationRemoved (E_ATTRIBUTEANIMATIONREMOVED) */);
- return s;
- }
- static UrhoEventAdapter<AttributeAnimationRemovedEventArgs> eventAdapterForAttributeAnimationRemoved;
- public event Action<AttributeAnimationRemovedEventArgs> AttributeAnimationRemoved
- {
- add
- {
- if (eventAdapterForAttributeAnimationRemoved == null)
- eventAdapterForAttributeAnimationRemoved = new UrhoEventAdapter<AttributeAnimationRemovedEventArgs>(typeof(ObjectAnimation));
- eventAdapterForAttributeAnimationRemoved.AddManagedSubscriber(handle, value, SubscribeToAttributeAnimationRemoved);
- }
- remove { eventAdapterForAttributeAnimationRemoved.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ObjectAnimation */
- } /* namespace */
- namespace Urho
- {
- public partial struct ScenePostUpdateEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public float TimeStep => EventData.get_float(unchecked((int)417015353) /* TimeStep (P_TIMESTEP) */);
- } /* struct ScenePostUpdateEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ScenePostUpdate += ...' instead.")]
- public Subscription SubscribeToScenePostUpdate(Action<ScenePostUpdateEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ScenePostUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3048853) /* ScenePostUpdate (E_SCENEPOSTUPDATE) */);
- return s;
- }
- static UrhoEventAdapter<ScenePostUpdateEventArgs> eventAdapterForScenePostUpdate;
- public event Action<ScenePostUpdateEventArgs> ScenePostUpdate
- {
- add
- {
- if (eventAdapterForScenePostUpdate == null)
- eventAdapterForScenePostUpdate = new UrhoEventAdapter<ScenePostUpdateEventArgs>(typeof(Scene));
- eventAdapterForScenePostUpdate.AddManagedSubscriber(handle, value, SubscribeToScenePostUpdate);
- }
- remove { eventAdapterForScenePostUpdate.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct AsyncLoadProgressEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public float Progress => EventData.get_float(unchecked((int)2456587373) /* Progress (P_PROGRESS) */);
- public int LoadedNodes => EventData.get_int(unchecked((int)2460871468) /* LoadedNodes (P_LOADEDNODES) */);
- public int TotalNodes => EventData.get_int(unchecked((int)3592672237) /* TotalNodes (P_TOTALNODES) */);
- public int LoadedResources => EventData.get_int(unchecked((int)914347776) /* LoadedResources (P_LOADEDRESOURCES) */);
- public int TotalResources => EventData.get_int(unchecked((int)1346461377) /* TotalResources (P_TOTALRESOURCES) */);
- } /* struct AsyncLoadProgressEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AsyncLoadProgress += ...' instead.")]
- public Subscription SubscribeToAsyncLoadProgress(Action<AsyncLoadProgressEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new AsyncLoadProgressEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1563837135) /* AsyncLoadProgress (E_ASYNCLOADPROGRESS) */);
- return s;
- }
- static UrhoEventAdapter<AsyncLoadProgressEventArgs> eventAdapterForAsyncLoadProgress;
- public event Action<AsyncLoadProgressEventArgs> AsyncLoadProgress
- {
- add
- {
- if (eventAdapterForAsyncLoadProgress == null)
- eventAdapterForAsyncLoadProgress = new UrhoEventAdapter<AsyncLoadProgressEventArgs>(typeof(Scene));
- eventAdapterForAsyncLoadProgress.AddManagedSubscriber(handle, value, SubscribeToAsyncLoadProgress);
- }
- remove { eventAdapterForAsyncLoadProgress.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct AsyncLoadFinishedEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- } /* struct AsyncLoadFinishedEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.AsyncLoadFinished += ...' instead.")]
- public Subscription SubscribeToAsyncLoadFinished(Action<AsyncLoadFinishedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new AsyncLoadFinishedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)413288276) /* AsyncLoadFinished (E_ASYNCLOADFINISHED) */);
- return s;
- }
- static UrhoEventAdapter<AsyncLoadFinishedEventArgs> eventAdapterForAsyncLoadFinished;
- public event Action<AsyncLoadFinishedEventArgs> AsyncLoadFinished
- {
- add
- {
- if (eventAdapterForAsyncLoadFinished == null)
- eventAdapterForAsyncLoadFinished = new UrhoEventAdapter<AsyncLoadFinishedEventArgs>(typeof(Scene));
- eventAdapterForAsyncLoadFinished.AddManagedSubscriber(handle, value, SubscribeToAsyncLoadFinished);
- }
- remove { eventAdapterForAsyncLoadFinished.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct NodeAddedEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Node Parent => EventData.get_Node(unchecked((int)1512946026) /* Parent (P_PARENT) */);
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- } /* struct NodeAddedEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeAdded += ...' instead.")]
- public Subscription SubscribeToNodeAdded(Action<NodeAddedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NodeAddedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3974098974) /* NodeAdded (E_NODEADDED) */);
- return s;
- }
- static UrhoEventAdapter<NodeAddedEventArgs> eventAdapterForNodeAdded;
- public event Action<NodeAddedEventArgs> NodeAdded
- {
- add
- {
- if (eventAdapterForNodeAdded == null)
- eventAdapterForNodeAdded = new UrhoEventAdapter<NodeAddedEventArgs>(typeof(Scene));
- eventAdapterForNodeAdded.AddManagedSubscriber(handle, value, SubscribeToNodeAdded);
- }
- remove { eventAdapterForNodeAdded.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct NodeRemovedEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Node Parent => EventData.get_Node(unchecked((int)1512946026) /* Parent (P_PARENT) */);
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- } /* struct NodeRemovedEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeRemoved += ...' instead.")]
- public Subscription SubscribeToNodeRemoved(Action<NodeRemovedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NodeRemovedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)931768254) /* NodeRemoved (E_NODEREMOVED) */);
- return s;
- }
- static UrhoEventAdapter<NodeRemovedEventArgs> eventAdapterForNodeRemoved;
- public event Action<NodeRemovedEventArgs> NodeRemoved
- {
- add
- {
- if (eventAdapterForNodeRemoved == null)
- eventAdapterForNodeRemoved = new UrhoEventAdapter<NodeRemovedEventArgs>(typeof(Scene));
- eventAdapterForNodeRemoved.AddManagedSubscriber(handle, value, SubscribeToNodeRemoved);
- }
- remove { eventAdapterForNodeRemoved.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct ComponentAddedEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public Component Component => EventData.get_Component(unchecked((int)3739730333) /* Component (P_COMPONENT) */);
- } /* struct ComponentAddedEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ComponentAdded += ...' instead.")]
- public Subscription SubscribeToComponentAdded(Action<ComponentAddedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ComponentAddedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2336085059) /* ComponentAdded (E_COMPONENTADDED) */);
- return s;
- }
- static UrhoEventAdapter<ComponentAddedEventArgs> eventAdapterForComponentAdded;
- public event Action<ComponentAddedEventArgs> ComponentAdded
- {
- add
- {
- if (eventAdapterForComponentAdded == null)
- eventAdapterForComponentAdded = new UrhoEventAdapter<ComponentAddedEventArgs>(typeof(Scene));
- eventAdapterForComponentAdded.AddManagedSubscriber(handle, value, SubscribeToComponentAdded);
- }
- remove { eventAdapterForComponentAdded.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct ComponentRemovedEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public Component Component => EventData.get_Component(unchecked((int)3739730333) /* Component (P_COMPONENT) */);
- } /* struct ComponentRemovedEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ComponentRemoved += ...' instead.")]
- public Subscription SubscribeToComponentRemoved(Action<ComponentRemovedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ComponentRemovedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3480078691) /* ComponentRemoved (E_COMPONENTREMOVED) */);
- return s;
- }
- static UrhoEventAdapter<ComponentRemovedEventArgs> eventAdapterForComponentRemoved;
- public event Action<ComponentRemovedEventArgs> ComponentRemoved
- {
- add
- {
- if (eventAdapterForComponentRemoved == null)
- eventAdapterForComponentRemoved = new UrhoEventAdapter<ComponentRemovedEventArgs>(typeof(Scene));
- eventAdapterForComponentRemoved.AddManagedSubscriber(handle, value, SubscribeToComponentRemoved);
- }
- remove { eventAdapterForComponentRemoved.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct NodeNameChangedEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- } /* struct NodeNameChangedEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeNameChanged += ...' instead.")]
- public Subscription SubscribeToNodeNameChanged(Action<NodeNameChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NodeNameChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2921157799) /* NodeNameChanged (E_NODENAMECHANGED) */);
- return s;
- }
- static UrhoEventAdapter<NodeNameChangedEventArgs> eventAdapterForNodeNameChanged;
- public event Action<NodeNameChangedEventArgs> NodeNameChanged
- {
- add
- {
- if (eventAdapterForNodeNameChanged == null)
- eventAdapterForNodeNameChanged = new UrhoEventAdapter<NodeNameChangedEventArgs>(typeof(Scene));
- eventAdapterForNodeNameChanged.AddManagedSubscriber(handle, value, SubscribeToNodeNameChanged);
- }
- remove { eventAdapterForNodeNameChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct NodeEnabledChangedEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- } /* struct NodeEnabledChangedEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeEnabledChanged += ...' instead.")]
- public Subscription SubscribeToNodeEnabledChanged(Action<NodeEnabledChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NodeEnabledChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)476028341) /* NodeEnabledChanged (E_NODEENABLEDCHANGED) */);
- return s;
- }
- static UrhoEventAdapter<NodeEnabledChangedEventArgs> eventAdapterForNodeEnabledChanged;
- public event Action<NodeEnabledChangedEventArgs> NodeEnabledChanged
- {
- add
- {
- if (eventAdapterForNodeEnabledChanged == null)
- eventAdapterForNodeEnabledChanged = new UrhoEventAdapter<NodeEnabledChangedEventArgs>(typeof(Scene));
- eventAdapterForNodeEnabledChanged.AddManagedSubscriber(handle, value, SubscribeToNodeEnabledChanged);
- }
- remove { eventAdapterForNodeEnabledChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct NodeTagAddedEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public String Tag => EventData.get_String(unchecked((int)964697786) /* Tag (P_TAG) */);
- } /* struct NodeTagAddedEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct NodeTagRemovedEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public String Tag => EventData.get_String(unchecked((int)964697786) /* Tag (P_TAG) */);
- } /* struct NodeTagRemovedEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct ComponentEnabledChangedEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public Component Component => EventData.get_Component(unchecked((int)3739730333) /* Component (P_COMPONENT) */);
- } /* struct ComponentEnabledChangedEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ComponentEnabledChanged += ...' instead.")]
- public Subscription SubscribeToComponentEnabledChanged(Action<ComponentEnabledChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ComponentEnabledChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1976356048) /* ComponentEnabledChanged (E_COMPONENTENABLEDCHANGED) */);
- return s;
- }
- static UrhoEventAdapter<ComponentEnabledChangedEventArgs> eventAdapterForComponentEnabledChanged;
- public event Action<ComponentEnabledChangedEventArgs> ComponentEnabledChanged
- {
- add
- {
- if (eventAdapterForComponentEnabledChanged == null)
- eventAdapterForComponentEnabledChanged = new UrhoEventAdapter<ComponentEnabledChangedEventArgs>(typeof(Scene));
- eventAdapterForComponentEnabledChanged.AddManagedSubscriber(handle, value, SubscribeToComponentEnabledChanged);
- }
- remove { eventAdapterForComponentEnabledChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct TemporaryChangedEventArgs
- {
- public EventDataContainer EventData;
- public Serializable Serializable => EventData.get_Serializable(unchecked((int)1481290239) /* Serializable (P_SERIALIZABLE) */);
- } /* struct TemporaryChangedEventArgs */
- public partial class Serializable
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TemporaryChanged += ...' instead.")]
- public Subscription SubscribeToTemporaryChanged(Action<TemporaryChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new TemporaryChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2975291043) /* TemporaryChanged (E_TEMPORARYCHANGED) */);
- return s;
- }
- static UrhoEventAdapter<TemporaryChangedEventArgs> eventAdapterForTemporaryChanged;
- public event Action<TemporaryChangedEventArgs> TemporaryChanged
- {
- add
- {
- if (eventAdapterForTemporaryChanged == null)
- eventAdapterForTemporaryChanged = new UrhoEventAdapter<TemporaryChangedEventArgs>(typeof(Serializable));
- eventAdapterForTemporaryChanged.AddManagedSubscriber(handle, value, SubscribeToTemporaryChanged);
- }
- remove { eventAdapterForTemporaryChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Serializable */
- } /* namespace */
- namespace Urho
- {
- public partial struct NodeClonedEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public Node CloneNode => EventData.get_Node(unchecked((int)3545672031) /* CloneNode (P_CLONENODE) */);
- } /* struct NodeClonedEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NodeCloned += ...' instead.")]
- public Subscription SubscribeToNodeCloned(Action<NodeClonedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NodeClonedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2335200841) /* NodeCloned (E_NODECLONED) */);
- return s;
- }
- static UrhoEventAdapter<NodeClonedEventArgs> eventAdapterForNodeCloned;
- public event Action<NodeClonedEventArgs> NodeCloned
- {
- add
- {
- if (eventAdapterForNodeCloned == null)
- eventAdapterForNodeCloned = new UrhoEventAdapter<NodeClonedEventArgs>(typeof(Scene));
- eventAdapterForNodeCloned.AddManagedSubscriber(handle, value, SubscribeToNodeCloned);
- }
- remove { eventAdapterForNodeCloned.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct ComponentClonedEventArgs
- {
- public EventDataContainer EventData;
- public Scene Scene => EventData.get_Scene(unchecked((int)3011223724) /* Scene (P_SCENE) */);
- public Component Component => EventData.get_Component(unchecked((int)3739730333) /* Component (P_COMPONENT) */);
- public Component CloneComponent => EventData.get_Component(unchecked((int)733556864) /* CloneComponent (P_CLONECOMPONENT) */);
- } /* struct ComponentClonedEventArgs */
- public partial class Scene
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ComponentCloned += ...' instead.")]
- public Subscription SubscribeToComponentCloned(Action<ComponentClonedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ComponentClonedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1752202084) /* ComponentCloned (E_COMPONENTCLONED) */);
- return s;
- }
- static UrhoEventAdapter<ComponentClonedEventArgs> eventAdapterForComponentCloned;
- public event Action<ComponentClonedEventArgs> ComponentCloned
- {
- add
- {
- if (eventAdapterForComponentCloned == null)
- eventAdapterForComponentCloned = new UrhoEventAdapter<ComponentClonedEventArgs>(typeof(Scene));
- eventAdapterForComponentCloned.AddManagedSubscriber(handle, value, SubscribeToComponentCloned);
- }
- remove { eventAdapterForComponentCloned.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Scene */
- } /* namespace */
- namespace Urho
- {
- public partial struct InterceptNetworkUpdateEventArgs
- {
- public EventDataContainer EventData;
- public Serializable Serializable => EventData.get_Serializable(unchecked((int)1481290239) /* Serializable (P_SERIALIZABLE) */);
- public uint TimeStamp => EventData.get_uint(unchecked((int)1110190518) /* TimeStamp (P_TIMESTAMP) */);
- public uint Index => EventData.get_uint(unchecked((int)193188146) /* Index (P_INDEX) */);
- public String Name => EventData.get_String(unchecked((int)773762347) /* Name (P_NAME) */);
- public Variant Value => EventData.get_Variant(unchecked((int)632064625) /* Value (P_VALUE) */);
- } /* struct InterceptNetworkUpdateEventArgs */
- public partial class Serializable
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.InterceptNetworkUpdate += ...' instead.")]
- public Subscription SubscribeToInterceptNetworkUpdate(Action<InterceptNetworkUpdateEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new InterceptNetworkUpdateEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4264627733) /* InterceptNetworkUpdate (E_INTERCEPTNETWORKUPDATE) */);
- return s;
- }
- static UrhoEventAdapter<InterceptNetworkUpdateEventArgs> eventAdapterForInterceptNetworkUpdate;
- public event Action<InterceptNetworkUpdateEventArgs> InterceptNetworkUpdate
- {
- add
- {
- if (eventAdapterForInterceptNetworkUpdate == null)
- eventAdapterForInterceptNetworkUpdate = new UrhoEventAdapter<InterceptNetworkUpdateEventArgs>(typeof(Serializable));
- eventAdapterForInterceptNetworkUpdate.AddManagedSubscriber(handle, value, SubscribeToInterceptNetworkUpdate);
- }
- remove { eventAdapterForInterceptNetworkUpdate.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Serializable */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct UIMouseClickEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- } /* struct UIMouseClickEventArgs */
- public partial class UI
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.UIMouseClick += ...' instead.")]
- public Subscription SubscribeToUIMouseClick(Action<UIMouseClickEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new UIMouseClickEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2980213559) /* UIMouseClick (E_UIMOUSECLICK) */);
- return s;
- }
- static UrhoEventAdapter<UIMouseClickEventArgs> eventAdapterForUIMouseClick;
- public event Action<UIMouseClickEventArgs> UIMouseClick
- {
- add
- {
- if (eventAdapterForUIMouseClick == null)
- eventAdapterForUIMouseClick = new UrhoEventAdapter<UIMouseClickEventArgs>(typeof(UI));
- eventAdapterForUIMouseClick.AddManagedSubscriber(handle, value, SubscribeToUIMouseClick);
- }
- remove { eventAdapterForUIMouseClick.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UI */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct UIMouseClickEndEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public UIElement BeginElement => EventData.get_UIElement(unchecked((int)660892787) /* BeginElement (P_BEGINELEMENT) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- } /* struct UIMouseClickEndEventArgs */
- public partial class UI
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.UIMouseClickEnd += ...' instead.")]
- public Subscription SubscribeToUIMouseClickEnd(Action<UIMouseClickEndEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new UIMouseClickEndEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3905216356) /* UIMouseClickEnd (E_UIMOUSECLICKEND) */);
- return s;
- }
- static UrhoEventAdapter<UIMouseClickEndEventArgs> eventAdapterForUIMouseClickEnd;
- public event Action<UIMouseClickEndEventArgs> UIMouseClickEnd
- {
- add
- {
- if (eventAdapterForUIMouseClickEnd == null)
- eventAdapterForUIMouseClickEnd = new UrhoEventAdapter<UIMouseClickEndEventArgs>(typeof(UI));
- eventAdapterForUIMouseClickEnd.AddManagedSubscriber(handle, value, SubscribeToUIMouseClickEnd);
- }
- remove { eventAdapterForUIMouseClickEnd.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UI */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct UIMouseDoubleClickEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- } /* struct UIMouseDoubleClickEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct ClickEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- } /* struct ClickEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct ClickEndEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public UIElement BeginElement => EventData.get_UIElement(unchecked((int)660892787) /* BeginElement (P_BEGINELEMENT) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- } /* struct ClickEndEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct DoubleClickEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- } /* struct DoubleClickEventArgs */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct DragDropTestEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Source => EventData.get_UIElement(unchecked((int)3851438139) /* Source (P_SOURCE) */);
- public UIElement Target => EventData.get_UIElement(unchecked((int)3016907569) /* Target (P_TARGET) */);
- public bool Accept => EventData.get_bool(unchecked((int)3683158536) /* Accept (P_ACCEPT) */);
- } /* struct DragDropTestEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.DragDropTest += ...' instead.")]
- public Subscription SubscribeToDragDropTest(Action<DragDropTestEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new DragDropTestEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2650870357) /* DragDropTest (E_DRAGDROPTEST) */);
- return s;
- }
- static UrhoEventAdapter<DragDropTestEventArgs> eventAdapterForDragDropTest;
- public event Action<DragDropTestEventArgs> DragDropTest
- {
- add
- {
- if (eventAdapterForDragDropTest == null)
- eventAdapterForDragDropTest = new UrhoEventAdapter<DragDropTestEventArgs>(typeof(UIElement));
- eventAdapterForDragDropTest.AddManagedSubscriber(handle, value, SubscribeToDragDropTest);
- }
- remove { eventAdapterForDragDropTest.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct DragDropFinishEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Source => EventData.get_UIElement(unchecked((int)3851438139) /* Source (P_SOURCE) */);
- public UIElement Target => EventData.get_UIElement(unchecked((int)3016907569) /* Target (P_TARGET) */);
- public bool Accept => EventData.get_bool(unchecked((int)3683158536) /* Accept (P_ACCEPT) */);
- } /* struct DragDropFinishEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.DragDropFinish += ...' instead.")]
- public Subscription SubscribeToDragDropFinish(Action<DragDropFinishEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new DragDropFinishEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2686304470) /* DragDropFinish (E_DRAGDROPFINISH) */);
- return s;
- }
- static UrhoEventAdapter<DragDropFinishEventArgs> eventAdapterForDragDropFinish;
- public event Action<DragDropFinishEventArgs> DragDropFinish
- {
- add
- {
- if (eventAdapterForDragDropFinish == null)
- eventAdapterForDragDropFinish = new UrhoEventAdapter<DragDropFinishEventArgs>(typeof(UIElement));
- eventAdapterForDragDropFinish.AddManagedSubscriber(handle, value, SubscribeToDragDropFinish);
- }
- remove { eventAdapterForDragDropFinish.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct FocusChangedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public UIElement ClickedElement => EventData.get_UIElement(unchecked((int)1630589429) /* ClickedElement (P_CLICKEDELEMENT) */);
- } /* struct FocusChangedEventArgs */
- public partial class UI
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.FocusChanged += ...' instead.")]
- public Subscription SubscribeToFocusChanged(Action<FocusChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new FocusChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3351127484) /* FocusChanged (E_FOCUSCHANGED) */);
- return s;
- }
- static UrhoEventAdapter<FocusChangedEventArgs> eventAdapterForFocusChanged;
- public event Action<FocusChangedEventArgs> FocusChanged
- {
- add
- {
- if (eventAdapterForFocusChanged == null)
- eventAdapterForFocusChanged = new UrhoEventAdapter<FocusChangedEventArgs>(typeof(UI));
- eventAdapterForFocusChanged.AddManagedSubscriber(handle, value, SubscribeToFocusChanged);
- }
- remove { eventAdapterForFocusChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UI */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct NameChangedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- } /* struct NameChangedEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.NameChanged += ...' instead.")]
- public Subscription SubscribeToNameChanged(Action<NameChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new NameChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1102426921) /* NameChanged (E_NAMECHANGED) */);
- return s;
- }
- static UrhoEventAdapter<NameChangedEventArgs> eventAdapterForNameChanged;
- public event Action<NameChangedEventArgs> NameChanged
- {
- add
- {
- if (eventAdapterForNameChanged == null)
- eventAdapterForNameChanged = new UrhoEventAdapter<NameChangedEventArgs>(typeof(UIElement));
- eventAdapterForNameChanged.AddManagedSubscriber(handle, value, SubscribeToNameChanged);
- }
- remove { eventAdapterForNameChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct ResizedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int Width => EventData.get_int(unchecked((int)3655201574) /* Width (P_WIDTH) */);
- public int Height => EventData.get_int(unchecked((int)380957255) /* Height (P_HEIGHT) */);
- public int DX => EventData.get_int(unchecked((int)6560020) /* DX (P_DX) */);
- public int DY => EventData.get_int(unchecked((int)6560021) /* DY (P_DY) */);
- } /* struct ResizedEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Resized += ...' instead.")]
- public Subscription SubscribeToResized(Action<ResizedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ResizedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4086520784) /* Resized (E_RESIZED) */);
- return s;
- }
- static UrhoEventAdapter<ResizedEventArgs> eventAdapterForResized;
- public event Action<ResizedEventArgs> Resized
- {
- add
- {
- if (eventAdapterForResized == null)
- eventAdapterForResized = new UrhoEventAdapter<ResizedEventArgs>(typeof(UIElement));
- eventAdapterForResized.AddManagedSubscriber(handle, value, SubscribeToResized);
- }
- remove { eventAdapterForResized.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct PositionedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- } /* struct PositionedEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Positioned += ...' instead.")]
- public Subscription SubscribeToPositioned(Action<PositionedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new PositionedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2176866088) /* Positioned (E_POSITIONED) */);
- return s;
- }
- static UrhoEventAdapter<PositionedEventArgs> eventAdapterForPositioned;
- public event Action<PositionedEventArgs> Positioned
- {
- add
- {
- if (eventAdapterForPositioned == null)
- eventAdapterForPositioned = new UrhoEventAdapter<PositionedEventArgs>(typeof(UIElement));
- eventAdapterForPositioned.AddManagedSubscriber(handle, value, SubscribeToPositioned);
- }
- remove { eventAdapterForPositioned.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct VisibleChangedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public bool Visible => EventData.get_bool(unchecked((int)2569414770) /* Visible (P_VISIBLE) */);
- } /* struct VisibleChangedEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.VisibleChanged += ...' instead.")]
- public Subscription SubscribeToVisibleChanged(Action<VisibleChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new VisibleChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2906506274) /* VisibleChanged (E_VISIBLECHANGED) */);
- return s;
- }
- static UrhoEventAdapter<VisibleChangedEventArgs> eventAdapterForVisibleChanged;
- public event Action<VisibleChangedEventArgs> VisibleChanged
- {
- add
- {
- if (eventAdapterForVisibleChanged == null)
- eventAdapterForVisibleChanged = new UrhoEventAdapter<VisibleChangedEventArgs>(typeof(UIElement));
- eventAdapterForVisibleChanged.AddManagedSubscriber(handle, value, SubscribeToVisibleChanged);
- }
- remove { eventAdapterForVisibleChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct FocusedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public bool ByKey => EventData.get_bool(unchecked((int)860527848) /* ByKey (P_BYKEY) */);
- } /* struct FocusedEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Focused += ...' instead.")]
- public Subscription SubscribeToFocused(Action<FocusedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new FocusedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3009767063) /* Focused (E_FOCUSED) */);
- return s;
- }
- static UrhoEventAdapter<FocusedEventArgs> eventAdapterForFocused;
- public event Action<FocusedEventArgs> Focused
- {
- add
- {
- if (eventAdapterForFocused == null)
- eventAdapterForFocused = new UrhoEventAdapter<FocusedEventArgs>(typeof(UIElement));
- eventAdapterForFocused.AddManagedSubscriber(handle, value, SubscribeToFocused);
- }
- remove { eventAdapterForFocused.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct DefocusedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- } /* struct DefocusedEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Defocused += ...' instead.")]
- public Subscription SubscribeToDefocused(Action<DefocusedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new DefocusedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2137964374) /* Defocused (E_DEFOCUSED) */);
- return s;
- }
- static UrhoEventAdapter<DefocusedEventArgs> eventAdapterForDefocused;
- public event Action<DefocusedEventArgs> Defocused
- {
- add
- {
- if (eventAdapterForDefocused == null)
- eventAdapterForDefocused = new UrhoEventAdapter<DefocusedEventArgs>(typeof(UIElement));
- eventAdapterForDefocused.AddManagedSubscriber(handle, value, SubscribeToDefocused);
- }
- remove { eventAdapterForDefocused.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct LayoutUpdatedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- } /* struct LayoutUpdatedEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.LayoutUpdated += ...' instead.")]
- public Subscription SubscribeToLayoutUpdated(Action<LayoutUpdatedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new LayoutUpdatedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)4202066961) /* LayoutUpdated (E_LAYOUTUPDATED) */);
- return s;
- }
- static UrhoEventAdapter<LayoutUpdatedEventArgs> eventAdapterForLayoutUpdated;
- public event Action<LayoutUpdatedEventArgs> LayoutUpdated
- {
- add
- {
- if (eventAdapterForLayoutUpdated == null)
- eventAdapterForLayoutUpdated = new UrhoEventAdapter<LayoutUpdatedEventArgs>(typeof(UIElement));
- eventAdapterForLayoutUpdated.AddManagedSubscriber(handle, value, SubscribeToLayoutUpdated);
- }
- remove { eventAdapterForLayoutUpdated.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct PressedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- } /* struct PressedEventArgs */
- public partial class Button
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Pressed += ...' instead.")]
- public Subscription SubscribeToPressed(Action<PressedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new PressedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2120415202) /* Pressed (E_PRESSED) */);
- return s;
- }
- static UrhoEventAdapter<PressedEventArgs> eventAdapterForPressed;
- public event Action<PressedEventArgs> Pressed
- {
- add
- {
- if (eventAdapterForPressed == null)
- eventAdapterForPressed = new UrhoEventAdapter<PressedEventArgs>(typeof(Button));
- eventAdapterForPressed.AddManagedSubscriber(handle, value, SubscribeToPressed);
- }
- remove { eventAdapterForPressed.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Button */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct ReleasedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- } /* struct ReleasedEventArgs */
- public partial class Button
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Released += ...' instead.")]
- public Subscription SubscribeToReleased(Action<ReleasedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ReleasedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)501672573) /* Released (E_RELEASED) */);
- return s;
- }
- static UrhoEventAdapter<ReleasedEventArgs> eventAdapterForReleased;
- public event Action<ReleasedEventArgs> Released
- {
- add
- {
- if (eventAdapterForReleased == null)
- eventAdapterForReleased = new UrhoEventAdapter<ReleasedEventArgs>(typeof(Button));
- eventAdapterForReleased.AddManagedSubscriber(handle, value, SubscribeToReleased);
- }
- remove { eventAdapterForReleased.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Button */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct ToggledEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public bool State => EventData.get_bool(unchecked((int)3363651793) /* State (P_STATE) */);
- } /* struct ToggledEventArgs */
- public partial class CheckBox
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.Toggled += ...' instead.")]
- public Subscription SubscribeToToggled(Action<ToggledEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ToggledEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3936229040) /* Toggled (E_TOGGLED) */);
- return s;
- }
- static UrhoEventAdapter<ToggledEventArgs> eventAdapterForToggled;
- public event Action<ToggledEventArgs> Toggled
- {
- add
- {
- if (eventAdapterForToggled == null)
- eventAdapterForToggled = new UrhoEventAdapter<ToggledEventArgs>(typeof(CheckBox));
- eventAdapterForToggled.AddManagedSubscriber(handle, value, SubscribeToToggled);
- }
- remove { eventAdapterForToggled.RemoveManagedSubscriber(handle, value); }
- }
- } /* class CheckBox */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct SliderChangedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public float Value => EventData.get_float(unchecked((int)632064625) /* Value (P_VALUE) */);
- } /* struct SliderChangedEventArgs */
- public partial class Slider
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.SliderChanged += ...' instead.")]
- public Subscription SubscribeToSliderChanged(Action<SliderChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new SliderChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1822227731) /* SliderChanged (E_SLIDERCHANGED) */);
- return s;
- }
- static UrhoEventAdapter<SliderChangedEventArgs> eventAdapterForSliderChanged;
- public event Action<SliderChangedEventArgs> SliderChanged
- {
- add
- {
- if (eventAdapterForSliderChanged == null)
- eventAdapterForSliderChanged = new UrhoEventAdapter<SliderChangedEventArgs>(typeof(Slider));
- eventAdapterForSliderChanged.AddManagedSubscriber(handle, value, SubscribeToSliderChanged);
- }
- remove { eventAdapterForSliderChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Slider */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct SliderPagedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int Offset => EventData.get_int(unchecked((int)1881751827) /* Offset (P_OFFSET) */);
- public bool Pressed => EventData.get_bool(unchecked((int)2120415202) /* Pressed (P_PRESSED) */);
- } /* struct SliderPagedEventArgs */
- public partial class Slider
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.SliderPaged += ...' instead.")]
- public Subscription SubscribeToSliderPaged(Action<SliderPagedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new SliderPagedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)436602484) /* SliderPaged (E_SLIDERPAGED) */);
- return s;
- }
- static UrhoEventAdapter<SliderPagedEventArgs> eventAdapterForSliderPaged;
- public event Action<SliderPagedEventArgs> SliderPaged
- {
- add
- {
- if (eventAdapterForSliderPaged == null)
- eventAdapterForSliderPaged = new UrhoEventAdapter<SliderPagedEventArgs>(typeof(Slider));
- eventAdapterForSliderPaged.AddManagedSubscriber(handle, value, SubscribeToSliderPaged);
- }
- remove { eventAdapterForSliderPaged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Slider */
- } /* namespace */
- namespace Urho
- {
- public partial struct ProgressBarChangedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public float Value => EventData.get_float(unchecked((int)632064625) /* Value (P_VALUE) */);
- } /* struct ProgressBarChangedEventArgs */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct ScrollBarChangedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public float Value => EventData.get_float(unchecked((int)632064625) /* Value (P_VALUE) */);
- } /* struct ScrollBarChangedEventArgs */
- public partial class ScrollBar
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ScrollBarChanged += ...' instead.")]
- public Subscription SubscribeToScrollBarChanged(Action<ScrollBarChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ScrollBarChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2589580238) /* ScrollBarChanged (E_SCROLLBARCHANGED) */);
- return s;
- }
- static UrhoEventAdapter<ScrollBarChangedEventArgs> eventAdapterForScrollBarChanged;
- public event Action<ScrollBarChangedEventArgs> ScrollBarChanged
- {
- add
- {
- if (eventAdapterForScrollBarChanged == null)
- eventAdapterForScrollBarChanged = new UrhoEventAdapter<ScrollBarChangedEventArgs>(typeof(ScrollBar));
- eventAdapterForScrollBarChanged.AddManagedSubscriber(handle, value, SubscribeToScrollBarChanged);
- }
- remove { eventAdapterForScrollBarChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ScrollBar */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct ViewChangedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- } /* struct ViewChangedEventArgs */
- public partial class ScrollView
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ViewChanged += ...' instead.")]
- public Subscription SubscribeToViewChanged(Action<ViewChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ViewChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3751985295) /* ViewChanged (E_VIEWCHANGED) */);
- return s;
- }
- static UrhoEventAdapter<ViewChangedEventArgs> eventAdapterForViewChanged;
- public event Action<ViewChangedEventArgs> ViewChanged
- {
- add
- {
- if (eventAdapterForViewChanged == null)
- eventAdapterForViewChanged = new UrhoEventAdapter<ViewChangedEventArgs>(typeof(ScrollView));
- eventAdapterForViewChanged.AddManagedSubscriber(handle, value, SubscribeToViewChanged);
- }
- remove { eventAdapterForViewChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ScrollView */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct ModalChangedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public bool Modal => EventData.get_bool(unchecked((int)1236802797) /* Modal (P_MODAL) */);
- } /* struct ModalChangedEventArgs */
- public partial class Window
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ModalChanged += ...' instead.")]
- public Subscription SubscribeToModalChanged(Action<ModalChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ModalChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3780589287) /* ModalChanged (E_MODALCHANGED) */);
- return s;
- }
- static UrhoEventAdapter<ModalChangedEventArgs> eventAdapterForModalChanged;
- public event Action<ModalChangedEventArgs> ModalChanged
- {
- add
- {
- if (eventAdapterForModalChanged == null)
- eventAdapterForModalChanged = new UrhoEventAdapter<ModalChangedEventArgs>(typeof(Window));
- eventAdapterForModalChanged.AddManagedSubscriber(handle, value, SubscribeToModalChanged);
- }
- remove { eventAdapterForModalChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Window */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct TextEntryEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public String Text => EventData.get_String(unchecked((int)1196085869) /* Text (P_TEXT) */);
- } /* struct TextEntryEventArgs */
- public partial class LineEdit
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TextEntry += ...' instead.")]
- public Subscription SubscribeToTextEntry(Action<TextEntryEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new TextEntryEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1906402885) /* TextEntry (E_TEXTENTRY) */);
- return s;
- }
- static UrhoEventAdapter<TextEntryEventArgs> eventAdapterForTextEntry;
- public event Action<TextEntryEventArgs> TextEntry
- {
- add
- {
- if (eventAdapterForTextEntry == null)
- eventAdapterForTextEntry = new UrhoEventAdapter<TextEntryEventArgs>(typeof(LineEdit));
- eventAdapterForTextEntry.AddManagedSubscriber(handle, value, SubscribeToTextEntry);
- }
- remove { eventAdapterForTextEntry.RemoveManagedSubscriber(handle, value); }
- }
- } /* class LineEdit */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct TextChangedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public String Text => EventData.get_String(unchecked((int)1196085869) /* Text (P_TEXT) */);
- } /* struct TextChangedEventArgs */
- public partial class LineEdit
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TextChanged += ...' instead.")]
- public Subscription SubscribeToTextChanged(Action<TextChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new TextChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)248127847) /* TextChanged (E_TEXTCHANGED) */);
- return s;
- }
- static UrhoEventAdapter<TextChangedEventArgs> eventAdapterForTextChanged;
- public event Action<TextChangedEventArgs> TextChanged
- {
- add
- {
- if (eventAdapterForTextChanged == null)
- eventAdapterForTextChanged = new UrhoEventAdapter<TextChangedEventArgs>(typeof(LineEdit));
- eventAdapterForTextChanged.AddManagedSubscriber(handle, value, SubscribeToTextChanged);
- }
- remove { eventAdapterForTextChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class LineEdit */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct TextFinishedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public String Text => EventData.get_String(unchecked((int)1196085869) /* Text (P_TEXT) */);
- public float Value => EventData.get_float(unchecked((int)632064625) /* Value (P_VALUE) */);
- } /* struct TextFinishedEventArgs */
- public partial class LineEdit
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.TextFinished += ...' instead.")]
- public Subscription SubscribeToTextFinished(Action<TextFinishedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new TextFinishedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2163558751) /* TextFinished (E_TEXTFINISHED) */);
- return s;
- }
- static UrhoEventAdapter<TextFinishedEventArgs> eventAdapterForTextFinished;
- public event Action<TextFinishedEventArgs> TextFinished
- {
- add
- {
- if (eventAdapterForTextFinished == null)
- eventAdapterForTextFinished = new UrhoEventAdapter<TextFinishedEventArgs>(typeof(LineEdit));
- eventAdapterForTextFinished.AddManagedSubscriber(handle, value, SubscribeToTextFinished);
- }
- remove { eventAdapterForTextFinished.RemoveManagedSubscriber(handle, value); }
- }
- } /* class LineEdit */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct MenuSelectedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- } /* struct MenuSelectedEventArgs */
- public partial class Menu
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MenuSelected += ...' instead.")]
- public Subscription SubscribeToMenuSelected(Action<MenuSelectedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new MenuSelectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3684051450) /* MenuSelected (E_MENUSELECTED) */);
- return s;
- }
- static UrhoEventAdapter<MenuSelectedEventArgs> eventAdapterForMenuSelected;
- public event Action<MenuSelectedEventArgs> MenuSelected
- {
- add
- {
- if (eventAdapterForMenuSelected == null)
- eventAdapterForMenuSelected = new UrhoEventAdapter<MenuSelectedEventArgs>(typeof(Menu));
- eventAdapterForMenuSelected.AddManagedSubscriber(handle, value, SubscribeToMenuSelected);
- }
- remove { eventAdapterForMenuSelected.RemoveManagedSubscriber(handle, value); }
- }
- } /* class Menu */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct ItemSelectedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int Selection => EventData.get_int(unchecked((int)3519890092) /* Selection (P_SELECTION) */);
- } /* struct ItemSelectedEventArgs */
- public partial class DropDownList
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ItemSelected += ...' instead.")]
- public Subscription SubscribeToItemSelected(Action<ItemSelectedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ItemSelectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3577816398) /* ItemSelected (E_ITEMSELECTED) */);
- return s;
- }
- static UrhoEventAdapter<ItemSelectedEventArgs> eventAdapterForItemSelected;
- public event Action<ItemSelectedEventArgs> ItemSelected
- {
- add
- {
- if (eventAdapterForItemSelected == null)
- eventAdapterForItemSelected = new UrhoEventAdapter<ItemSelectedEventArgs>(typeof(DropDownList));
- eventAdapterForItemSelected.AddManagedSubscriber(handle, value, SubscribeToItemSelected);
- }
- remove { eventAdapterForItemSelected.RemoveManagedSubscriber(handle, value); }
- }
- } /* class DropDownList */
- public partial class ListView
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ItemSelected += ...' instead.")]
- public Subscription SubscribeToItemSelected(Action<ItemSelectedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ItemSelectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3577816398) /* ItemSelected (E_ITEMSELECTED) */);
- return s;
- }
- static UrhoEventAdapter<ItemSelectedEventArgs> eventAdapterForItemSelected;
- public event Action<ItemSelectedEventArgs> ItemSelected
- {
- add
- {
- if (eventAdapterForItemSelected == null)
- eventAdapterForItemSelected = new UrhoEventAdapter<ItemSelectedEventArgs>(typeof(ListView));
- eventAdapterForItemSelected.AddManagedSubscriber(handle, value, SubscribeToItemSelected);
- }
- remove { eventAdapterForItemSelected.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ListView */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct ItemDeselectedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int Selection => EventData.get_int(unchecked((int)3519890092) /* Selection (P_SELECTION) */);
- } /* struct ItemDeselectedEventArgs */
- public partial class ListView
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ItemDeselected += ...' instead.")]
- public Subscription SubscribeToItemDeselected(Action<ItemDeselectedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ItemDeselectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)750527183) /* ItemDeselected (E_ITEMDESELECTED) */);
- return s;
- }
- static UrhoEventAdapter<ItemDeselectedEventArgs> eventAdapterForItemDeselected;
- public event Action<ItemDeselectedEventArgs> ItemDeselected
- {
- add
- {
- if (eventAdapterForItemDeselected == null)
- eventAdapterForItemDeselected = new UrhoEventAdapter<ItemDeselectedEventArgs>(typeof(ListView));
- eventAdapterForItemDeselected.AddManagedSubscriber(handle, value, SubscribeToItemDeselected);
- }
- remove { eventAdapterForItemDeselected.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ListView */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct SelectionChangedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- } /* struct SelectionChangedEventArgs */
- public partial class ListView
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.SelectionChanged += ...' instead.")]
- public Subscription SubscribeToSelectionChanged(Action<SelectionChangedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new SelectionChangedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)652636008) /* SelectionChanged (E_SELECTIONCHANGED) */);
- return s;
- }
- static UrhoEventAdapter<SelectionChangedEventArgs> eventAdapterForSelectionChanged;
- public event Action<SelectionChangedEventArgs> SelectionChanged
- {
- add
- {
- if (eventAdapterForSelectionChanged == null)
- eventAdapterForSelectionChanged = new UrhoEventAdapter<SelectionChangedEventArgs>(typeof(ListView));
- eventAdapterForSelectionChanged.AddManagedSubscriber(handle, value, SubscribeToSelectionChanged);
- }
- remove { eventAdapterForSelectionChanged.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ListView */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct ItemClickedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public UIElement Item => EventData.get_UIElement(unchecked((int)1322237459) /* Item (P_ITEM) */);
- public int Selection => EventData.get_int(unchecked((int)3519890092) /* Selection (P_SELECTION) */);
- public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- } /* struct ItemClickedEventArgs */
- public partial class ListView
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ItemClicked += ...' instead.")]
- public Subscription SubscribeToItemClicked(Action<ItemClickedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ItemClickedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1680571156) /* ItemClicked (E_ITEMCLICKED) */);
- return s;
- }
- static UrhoEventAdapter<ItemClickedEventArgs> eventAdapterForItemClicked;
- public event Action<ItemClickedEventArgs> ItemClicked
- {
- add
- {
- if (eventAdapterForItemClicked == null)
- eventAdapterForItemClicked = new UrhoEventAdapter<ItemClickedEventArgs>(typeof(ListView));
- eventAdapterForItemClicked.AddManagedSubscriber(handle, value, SubscribeToItemClicked);
- }
- remove { eventAdapterForItemClicked.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ListView */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct ItemDoubleClickedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public UIElement Item => EventData.get_UIElement(unchecked((int)1322237459) /* Item (P_ITEM) */);
- public int Selection => EventData.get_int(unchecked((int)3519890092) /* Selection (P_SELECTION) */);
- public int Button => EventData.get_int(unchecked((int)3601423954) /* Button (P_BUTTON) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- } /* struct ItemDoubleClickedEventArgs */
- public partial class ListView
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ItemDoubleClicked += ...' instead.")]
- public Subscription SubscribeToItemDoubleClicked(Action<ItemDoubleClickedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ItemDoubleClickedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1209953699) /* ItemDoubleClicked (E_ITEMDOUBLECLICKED) */);
- return s;
- }
- static UrhoEventAdapter<ItemDoubleClickedEventArgs> eventAdapterForItemDoubleClicked;
- public event Action<ItemDoubleClickedEventArgs> ItemDoubleClicked
- {
- add
- {
- if (eventAdapterForItemDoubleClicked == null)
- eventAdapterForItemDoubleClicked = new UrhoEventAdapter<ItemDoubleClickedEventArgs>(typeof(ListView));
- eventAdapterForItemDoubleClicked.AddManagedSubscriber(handle, value, SubscribeToItemDoubleClicked);
- }
- remove { eventAdapterForItemDoubleClicked.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ListView */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct UnhandledKeyEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public Key Key => (Key)EventData.get_int(unchecked((int)890606655) /* Key (P_KEY) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int Qualifiers => EventData.get_int(unchecked((int)1438392841) /* Qualifiers (P_QUALIFIERS) */);
- } /* struct UnhandledKeyEventArgs */
- public partial class LineEdit
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.UnhandledKey += ...' instead.")]
- public Subscription SubscribeToUnhandledKey(Action<UnhandledKeyEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new UnhandledKeyEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1583051260) /* UnhandledKey (E_UNHANDLEDKEY) */);
- return s;
- }
- static UrhoEventAdapter<UnhandledKeyEventArgs> eventAdapterForUnhandledKey;
- public event Action<UnhandledKeyEventArgs> UnhandledKey
- {
- add
- {
- if (eventAdapterForUnhandledKey == null)
- eventAdapterForUnhandledKey = new UrhoEventAdapter<UnhandledKeyEventArgs>(typeof(LineEdit));
- eventAdapterForUnhandledKey.AddManagedSubscriber(handle, value, SubscribeToUnhandledKey);
- }
- remove { eventAdapterForUnhandledKey.RemoveManagedSubscriber(handle, value); }
- }
- } /* class LineEdit */
- public partial class ListView
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.UnhandledKey += ...' instead.")]
- public Subscription SubscribeToUnhandledKey(Action<UnhandledKeyEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new UnhandledKeyEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1583051260) /* UnhandledKey (E_UNHANDLEDKEY) */);
- return s;
- }
- static UrhoEventAdapter<UnhandledKeyEventArgs> eventAdapterForUnhandledKey;
- public event Action<UnhandledKeyEventArgs> UnhandledKey
- {
- add
- {
- if (eventAdapterForUnhandledKey == null)
- eventAdapterForUnhandledKey = new UrhoEventAdapter<UnhandledKeyEventArgs>(typeof(ListView));
- eventAdapterForUnhandledKey.AddManagedSubscriber(handle, value, SubscribeToUnhandledKey);
- }
- remove { eventAdapterForUnhandledKey.RemoveManagedSubscriber(handle, value); }
- }
- } /* class ListView */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct FileSelectedEventArgs
- {
- public EventDataContainer EventData;
- public String FileName => EventData.get_String(unchecked((int)633459751) /* FileName (P_FILENAME) */);
- public String Filter => EventData.get_String(unchecked((int)2349197016) /* Filter (P_FILTER) */);
- public bool Ok => EventData.get_bool(unchecked((int)7281596) /* Ok (P_OK) */);
- } /* struct FileSelectedEventArgs */
- public partial class FileSelector
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.FileSelected += ...' instead.")]
- public Subscription SubscribeToFileSelected(Action<FileSelectedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new FileSelectedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2247030839) /* FileSelected (E_FILESELECTED) */);
- return s;
- }
- static UrhoEventAdapter<FileSelectedEventArgs> eventAdapterForFileSelected;
- public event Action<FileSelectedEventArgs> FileSelected
- {
- add
- {
- if (eventAdapterForFileSelected == null)
- eventAdapterForFileSelected = new UrhoEventAdapter<FileSelectedEventArgs>(typeof(FileSelector));
- eventAdapterForFileSelected.AddManagedSubscriber(handle, value, SubscribeToFileSelected);
- }
- remove { eventAdapterForFileSelected.RemoveManagedSubscriber(handle, value); }
- }
- } /* class FileSelector */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct MessageACKEventArgs
- {
- public EventDataContainer EventData;
- public bool Ok => EventData.get_bool(unchecked((int)7281596) /* Ok (P_OK) */);
- } /* struct MessageACKEventArgs */
- public partial class MessageBox
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.MessageACK += ...' instead.")]
- public Subscription SubscribeToMessageACK(Action<MessageACKEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new MessageACKEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2274823746) /* MessageACK (E_MESSAGEACK) */);
- return s;
- }
- static UrhoEventAdapter<MessageACKEventArgs> eventAdapterForMessageACK;
- public event Action<MessageACKEventArgs> MessageACK
- {
- add
- {
- if (eventAdapterForMessageACK == null)
- eventAdapterForMessageACK = new UrhoEventAdapter<MessageACKEventArgs>(typeof(MessageBox));
- eventAdapterForMessageACK.AddManagedSubscriber(handle, value, SubscribeToMessageACK);
- }
- remove { eventAdapterForMessageACK.RemoveManagedSubscriber(handle, value); }
- }
- } /* class MessageBox */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct ElementAddedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Root => EventData.get_UIElement(unchecked((int)4011903426) /* Root (P_ROOT) */);
- public UIElement Parent => EventData.get_UIElement(unchecked((int)1512946026) /* Parent (P_PARENT) */);
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- } /* struct ElementAddedEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ElementAdded += ...' instead.")]
- public Subscription SubscribeToElementAdded(Action<ElementAddedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ElementAddedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3505291012) /* ElementAdded (E_ELEMENTADDED) */);
- return s;
- }
- static UrhoEventAdapter<ElementAddedEventArgs> eventAdapterForElementAdded;
- public event Action<ElementAddedEventArgs> ElementAdded
- {
- add
- {
- if (eventAdapterForElementAdded == null)
- eventAdapterForElementAdded = new UrhoEventAdapter<ElementAddedEventArgs>(typeof(UIElement));
- eventAdapterForElementAdded.AddManagedSubscriber(handle, value, SubscribeToElementAdded);
- }
- remove { eventAdapterForElementAdded.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct ElementRemovedEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Root => EventData.get_UIElement(unchecked((int)4011903426) /* Root (P_ROOT) */);
- public UIElement Parent => EventData.get_UIElement(unchecked((int)1512946026) /* Parent (P_PARENT) */);
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- } /* struct ElementRemovedEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.ElementRemoved += ...' instead.")]
- public Subscription SubscribeToElementRemoved(Action<ElementRemovedEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new ElementRemovedEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)1383277476) /* ElementRemoved (E_ELEMENTREMOVED) */);
- return s;
- }
- static UrhoEventAdapter<ElementRemovedEventArgs> eventAdapterForElementRemoved;
- public event Action<ElementRemovedEventArgs> ElementRemoved
- {
- add
- {
- if (eventAdapterForElementRemoved == null)
- eventAdapterForElementRemoved = new UrhoEventAdapter<ElementRemovedEventArgs>(typeof(UIElement));
- eventAdapterForElementRemoved.AddManagedSubscriber(handle, value, SubscribeToElementRemoved);
- }
- remove { eventAdapterForElementRemoved.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct HoverBeginEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public int ElementX => EventData.get_int(unchecked((int)3977097692) /* ElementX (P_ELEMENTX) */);
- public int ElementY => EventData.get_int(unchecked((int)3977097693) /* ElementY (P_ELEMENTY) */);
- } /* struct HoverBeginEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.HoverBegin += ...' instead.")]
- public Subscription SubscribeToHoverBegin(Action<HoverBeginEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new HoverBeginEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)2870063597) /* HoverBegin (E_HOVERBEGIN) */);
- return s;
- }
- static UrhoEventAdapter<HoverBeginEventArgs> eventAdapterForHoverBegin;
- public event Action<HoverBeginEventArgs> HoverBegin
- {
- add
- {
- if (eventAdapterForHoverBegin == null)
- eventAdapterForHoverBegin = new UrhoEventAdapter<HoverBeginEventArgs>(typeof(UIElement));
- eventAdapterForHoverBegin.AddManagedSubscriber(handle, value, SubscribeToHoverBegin);
- }
- remove { eventAdapterForHoverBegin.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct HoverEndEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- } /* struct HoverEndEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.HoverEnd += ...' instead.")]
- public Subscription SubscribeToHoverEnd(Action<HoverEndEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new HoverEndEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)179772511) /* HoverEnd (E_HOVEREND) */);
- return s;
- }
- static UrhoEventAdapter<HoverEndEventArgs> eventAdapterForHoverEnd;
- public event Action<HoverEndEventArgs> HoverEnd
- {
- add
- {
- if (eventAdapterForHoverEnd == null)
- eventAdapterForHoverEnd = new UrhoEventAdapter<HoverEndEventArgs>(typeof(UIElement));
- eventAdapterForHoverEnd.AddManagedSubscriber(handle, value, SubscribeToHoverEnd);
- }
- remove { eventAdapterForHoverEnd.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct DragBeginEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public int ElementX => EventData.get_int(unchecked((int)3977097692) /* ElementX (P_ELEMENTX) */);
- public int ElementY => EventData.get_int(unchecked((int)3977097693) /* ElementY (P_ELEMENTY) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int NumButtons => EventData.get_int(unchecked((int)1318335099) /* NumButtons (P_NUMBUTTONS) */);
- } /* struct DragBeginEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.DragBegin += ...' instead.")]
- public Subscription SubscribeToDragBegin(Action<DragBeginEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new DragBeginEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3034378133) /* DragBegin (E_DRAGBEGIN) */);
- return s;
- }
- static UrhoEventAdapter<DragBeginEventArgs> eventAdapterForDragBegin;
- public event Action<DragBeginEventArgs> DragBegin
- {
- add
- {
- if (eventAdapterForDragBegin == null)
- eventAdapterForDragBegin = new UrhoEventAdapter<DragBeginEventArgs>(typeof(UIElement));
- eventAdapterForDragBegin.AddManagedSubscriber(handle, value, SubscribeToDragBegin);
- }
- remove { eventAdapterForDragBegin.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct DragMoveEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public int DX => EventData.get_int(unchecked((int)6560020) /* DX (P_DX) */);
- public int DY => EventData.get_int(unchecked((int)6560021) /* DY (P_DY) */);
- public int ElementX => EventData.get_int(unchecked((int)3977097692) /* ElementX (P_ELEMENTX) */);
- public int ElementY => EventData.get_int(unchecked((int)3977097693) /* ElementY (P_ELEMENTY) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int NumButtons => EventData.get_int(unchecked((int)1318335099) /* NumButtons (P_NUMBUTTONS) */);
- } /* struct DragMoveEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.DragMove += ...' instead.")]
- public Subscription SubscribeToDragMove(Action<DragMoveEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new DragMoveEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3547885061) /* DragMove (E_DRAGMOVE) */);
- return s;
- }
- static UrhoEventAdapter<DragMoveEventArgs> eventAdapterForDragMove;
- public event Action<DragMoveEventArgs> DragMove
- {
- add
- {
- if (eventAdapterForDragMove == null)
- eventAdapterForDragMove = new UrhoEventAdapter<DragMoveEventArgs>(typeof(UIElement));
- eventAdapterForDragMove.AddManagedSubscriber(handle, value, SubscribeToDragMove);
- }
- remove { eventAdapterForDragMove.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct DragEndEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public int ElementX => EventData.get_int(unchecked((int)3977097692) /* ElementX (P_ELEMENTX) */);
- public int ElementY => EventData.get_int(unchecked((int)3977097693) /* ElementY (P_ELEMENTY) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int NumButtons => EventData.get_int(unchecked((int)1318335099) /* NumButtons (P_NUMBUTTONS) */);
- } /* struct DragEndEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.DragEnd += ...' instead.")]
- public Subscription SubscribeToDragEnd(Action<DragEndEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new DragEndEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)796962311) /* DragEnd (E_DRAGEND) */);
- return s;
- }
- static UrhoEventAdapter<DragEndEventArgs> eventAdapterForDragEnd;
- public event Action<DragEndEventArgs> DragEnd
- {
- add
- {
- if (eventAdapterForDragEnd == null)
- eventAdapterForDragEnd = new UrhoEventAdapter<DragEndEventArgs>(typeof(UIElement));
- eventAdapterForDragEnd.AddManagedSubscriber(handle, value, SubscribeToDragEnd);
- }
- remove { eventAdapterForDragEnd.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct DragCancelEventArgs
- {
- public EventDataContainer EventData;
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public int ElementX => EventData.get_int(unchecked((int)3977097692) /* ElementX (P_ELEMENTX) */);
- public int ElementY => EventData.get_int(unchecked((int)3977097693) /* ElementY (P_ELEMENTY) */);
- public int Buttons => EventData.get_int(unchecked((int)838874785) /* Buttons (P_BUTTONS) */);
- public int NumButtons => EventData.get_int(unchecked((int)1318335099) /* NumButtons (P_NUMBUTTONS) */);
- } /* struct DragCancelEventArgs */
- public partial class UIElement
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.DragCancel += ...' instead.")]
- public Subscription SubscribeToDragCancel(Action<DragCancelEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new DragCancelEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3139514702) /* DragCancel (E_DRAGCANCEL) */);
- return s;
- }
- static UrhoEventAdapter<DragCancelEventArgs> eventAdapterForDragCancel;
- public event Action<DragCancelEventArgs> DragCancel
- {
- add
- {
- if (eventAdapterForDragCancel == null)
- eventAdapterForDragCancel = new UrhoEventAdapter<DragCancelEventArgs>(typeof(UIElement));
- eventAdapterForDragCancel.AddManagedSubscriber(handle, value, SubscribeToDragCancel);
- }
- remove { eventAdapterForDragCancel.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UIElement */
- } /* namespace */
- namespace Urho.Gui
- {
- public partial struct UIDropFileEventArgs
- {
- public EventDataContainer EventData;
- public String FileName => EventData.get_String(unchecked((int)633459751) /* FileName (P_FILENAME) */);
- public UIElement Element => EventData.get_UIElement(unchecked((int)2809902492) /* Element (P_ELEMENT) */);
- public int X => EventData.get_int(unchecked((int)120) /* X (P_X) */);
- public int Y => EventData.get_int(unchecked((int)121) /* Y (P_Y) */);
- public int ElementX => EventData.get_int(unchecked((int)3977097692) /* ElementX (P_ELEMENTX) */);
- public int ElementY => EventData.get_int(unchecked((int)3977097693) /* ElementY (P_ELEMENTY) */);
- } /* struct UIDropFileEventArgs */
- public partial class UI
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.UIDropFile += ...' instead.")]
- public Subscription SubscribeToUIDropFile(Action<UIDropFileEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new UIDropFileEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3334256383) /* UIDropFile (E_UIDROPFILE) */);
- return s;
- }
- static UrhoEventAdapter<UIDropFileEventArgs> eventAdapterForUIDropFile;
- public event Action<UIDropFileEventArgs> UIDropFile
- {
- add
- {
- if (eventAdapterForUIDropFile == null)
- eventAdapterForUIDropFile = new UrhoEventAdapter<UIDropFileEventArgs>(typeof(UI));
- eventAdapterForUIDropFile.AddManagedSubscriber(handle, value, SubscribeToUIDropFile);
- }
- remove { eventAdapterForUIDropFile.RemoveManagedSubscriber(handle, value); }
- }
- } /* class UI */
- } /* namespace */
- namespace Urho
- {
- public partial struct PhysicsUpdateContact2DEventArgs
- {
- public EventDataContainer EventData;
- public PhysicsWorld2D World => EventData.get_PhysicsWorld2D(unchecked((int)4158893746) /* World (P_WORLD) */);
- public RigidBody2D BodyA => EventData.get_RigidBody2D(unchecked((int)1588071871) /* BodyA (P_BODYA) */);
- public RigidBody2D BodyB => EventData.get_RigidBody2D(unchecked((int)1588071872) /* BodyB (P_BODYB) */);
- public Node NodeA => EventData.get_Node(unchecked((int)2376629471) /* NodeA (P_NODEA) */);
- public Node NodeB => EventData.get_Node(unchecked((int)2376629472) /* NodeB (P_NODEB) */);
- public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
- public CollisionShape2D ShapeA => EventData.get_CollisionShape2D(unchecked((int)1721188800) /* ShapeA (P_SHAPEA) */);
- public CollisionShape2D ShapeB => EventData.get_CollisionShape2D(unchecked((int)1721188801) /* ShapeB (P_SHAPEB) */);
- public bool Enabled => EventData.get_bool(unchecked((int)3351342625) /* Enabled (P_ENABLED) */);
- } /* struct PhysicsUpdateContact2DEventArgs */
- } /* namespace */
- namespace Urho.Urho2D
- {
- public partial struct PhysicsBeginContact2DEventArgs
- {
- public EventDataContainer EventData;
- public PhysicsWorld2D World => EventData.get_PhysicsWorld2D(unchecked((int)4158893746) /* World (P_WORLD) */);
- public RigidBody2D BodyA => EventData.get_RigidBody2D(unchecked((int)1588071871) /* BodyA (P_BODYA) */);
- public RigidBody2D BodyB => EventData.get_RigidBody2D(unchecked((int)1588071872) /* BodyB (P_BODYB) */);
- public Node NodeA => EventData.get_Node(unchecked((int)2376629471) /* NodeA (P_NODEA) */);
- public Node NodeB => EventData.get_Node(unchecked((int)2376629472) /* NodeB (P_NODEB) */);
- public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
- public CollisionShape2D ShapeA => EventData.get_CollisionShape2D(unchecked((int)1721188800) /* ShapeA (P_SHAPEA) */);
- public CollisionShape2D ShapeB => EventData.get_CollisionShape2D(unchecked((int)1721188801) /* ShapeB (P_SHAPEB) */);
- } /* struct PhysicsBeginContact2DEventArgs */
- public partial class PhysicsWorld2D
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PhysicsBeginContact2D += ...' instead.")]
- public Subscription SubscribeToPhysicsBeginContact2D(Action<PhysicsBeginContact2DEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new PhysicsBeginContact2DEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3421721456) /* PhysicsBeginContact2D (E_PHYSICSBEGINCONTACT2D) */);
- return s;
- }
- static UrhoEventAdapter<PhysicsBeginContact2DEventArgs> eventAdapterForPhysicsBeginContact2D;
- public event Action<PhysicsBeginContact2DEventArgs> PhysicsBeginContact2D
- {
- add
- {
- if (eventAdapterForPhysicsBeginContact2D == null)
- eventAdapterForPhysicsBeginContact2D = new UrhoEventAdapter<PhysicsBeginContact2DEventArgs>(typeof(PhysicsWorld2D));
- eventAdapterForPhysicsBeginContact2D.AddManagedSubscriber(handle, value, SubscribeToPhysicsBeginContact2D);
- }
- remove { eventAdapterForPhysicsBeginContact2D.RemoveManagedSubscriber(handle, value); }
- }
- } /* class PhysicsWorld2D */
- } /* namespace */
- namespace Urho.Urho2D
- {
- public partial struct PhysicsEndContact2DEventArgs
- {
- public EventDataContainer EventData;
- public PhysicsWorld2D World => EventData.get_PhysicsWorld2D(unchecked((int)4158893746) /* World (P_WORLD) */);
- public RigidBody2D BodyA => EventData.get_RigidBody2D(unchecked((int)1588071871) /* BodyA (P_BODYA) */);
- public RigidBody2D BodyB => EventData.get_RigidBody2D(unchecked((int)1588071872) /* BodyB (P_BODYB) */);
- public Node NodeA => EventData.get_Node(unchecked((int)2376629471) /* NodeA (P_NODEA) */);
- public Node NodeB => EventData.get_Node(unchecked((int)2376629472) /* NodeB (P_NODEB) */);
- public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
- public CollisionShape2D ShapeA => EventData.get_CollisionShape2D(unchecked((int)1721188800) /* ShapeA (P_SHAPEA) */);
- public CollisionShape2D ShapeB => EventData.get_CollisionShape2D(unchecked((int)1721188801) /* ShapeB (P_SHAPEB) */);
- } /* struct PhysicsEndContact2DEventArgs */
- public partial class PhysicsWorld2D
- {
- [Obsolete("SubscribeTo API may lead to unxpected behaviour and will be removed in a future version. Use C# event '.PhysicsEndContact2D += ...' instead.")]
- public Subscription SubscribeToPhysicsEndContact2D(Action<PhysicsEndContact2DEventArgs> handler)
- {
- Action<IntPtr> proxy = (x) => { var d = new PhysicsEndContact2DEventArgs() { EventData = new EventDataContainer(x) }; handler(d); };
- var s = new Subscription(proxy);
- s.UnmanagedProxy = UrhoObject.urho_subscribe_event(handle, UrhoObject.ObjectCallbackInstance, GCHandle.ToIntPtr(s.gch), unchecked((int)3071590142) /* PhysicsEndContact2D (E_PHYSICSENDCONTACT2D) */);
- return s;
- }
- static UrhoEventAdapter<PhysicsEndContact2DEventArgs> eventAdapterForPhysicsEndContact2D;
- public event Action<PhysicsEndContact2DEventArgs> PhysicsEndContact2D
- {
- add
- {
- if (eventAdapterForPhysicsEndContact2D == null)
- eventAdapterForPhysicsEndContact2D = new UrhoEventAdapter<PhysicsEndContact2DEventArgs>(typeof(PhysicsWorld2D));
- eventAdapterForPhysicsEndContact2D.AddManagedSubscriber(handle, value, SubscribeToPhysicsEndContact2D);
- }
- remove { eventAdapterForPhysicsEndContact2D.RemoveManagedSubscriber(handle, value); }
- }
- } /* class PhysicsWorld2D */
- } /* namespace */
- namespace Urho
- {
- public partial struct NodeUpdateContact2DEventArgs
- {
- public EventDataContainer EventData;
- public RigidBody2D Body => EventData.get_RigidBody2D(unchecked((int)111721250) /* Body (P_BODY) */);
- public Node OtherNode => EventData.get_Node(unchecked((int)2707292594) /* OtherNode (P_OTHERNODE) */);
- public RigidBody2D OtherBody => EventData.get_RigidBody2D(unchecked((int)1930180818) /* OtherBody (P_OTHERBODY) */);
- public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
- public CollisionShape2D Shape => EventData.get_CollisionShape2D(unchecked((int)2586277601) /* Shape (P_SHAPE) */);
- public CollisionShape2D OtherShape => EventData.get_CollisionShape2D(unchecked((int)3293799729) /* OtherShape (P_OTHERSHAPE) */);
- public bool Enabled => EventData.get_bool(unchecked((int)3351342625) /* Enabled (P_ENABLED) */);
- } /* struct NodeUpdateContact2DEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct NodeBeginContact2DEventArgs
- {
- public EventDataContainer EventData;
- public RigidBody2D Body => EventData.get_RigidBody2D(unchecked((int)111721250) /* Body (P_BODY) */);
- public Node OtherNode => EventData.get_Node(unchecked((int)2707292594) /* OtherNode (P_OTHERNODE) */);
- public RigidBody2D OtherBody => EventData.get_RigidBody2D(unchecked((int)1930180818) /* OtherBody (P_OTHERBODY) */);
- public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
- public CollisionShape2D Shape => EventData.get_CollisionShape2D(unchecked((int)2586277601) /* Shape (P_SHAPE) */);
- public CollisionShape2D OtherShape => EventData.get_CollisionShape2D(unchecked((int)3293799729) /* OtherShape (P_OTHERSHAPE) */);
- } /* struct NodeBeginContact2DEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct NodeEndContact2DEventArgs
- {
- public EventDataContainer EventData;
- public RigidBody2D Body => EventData.get_RigidBody2D(unchecked((int)111721250) /* Body (P_BODY) */);
- public Node OtherNode => EventData.get_Node(unchecked((int)2707292594) /* OtherNode (P_OTHERNODE) */);
- public RigidBody2D OtherBody => EventData.get_RigidBody2D(unchecked((int)1930180818) /* OtherBody (P_OTHERBODY) */);
- public CollisionData[] Contacts => EventData.get_CollisionData(unchecked((int)216739987) /* Contacts (P_CONTACTS) */);
- public CollisionShape2D Shape => EventData.get_CollisionShape2D(unchecked((int)2586277601) /* Shape (P_SHAPE) */);
- public CollisionShape2D OtherShape => EventData.get_CollisionShape2D(unchecked((int)3293799729) /* OtherShape (P_OTHERSHAPE) */);
- } /* struct NodeEndContact2DEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct ParticlesEndEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public ParticleEffect2D Effect => EventData.get_ParticleEffect2D(unchecked((int)2340854545) /* Effect (P_EFFECT) */);
- } /* struct ParticlesEndEventArgs */
- } /* namespace */
- namespace Urho
- {
- public partial struct ParticlesDurationEventArgs
- {
- public EventDataContainer EventData;
- public Node Node => EventData.get_Node(unchecked((int)888833026) /* Node (P_NODE) */);
- public ParticleEffect2D Effect => EventData.get_ParticleEffect2D(unchecked((int)2340854545) /* Effect (P_EFFECT) */);
- } /* struct ParticlesDurationEventArgs */
- } /* namespace */
- #pragma warning restore CS0618, CS0649
|