1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003 |
- class IUP
-
- inherit
- ANY
- ARGUMENTS
- IUP_GET_POINTER
- create {IUP_INTERFACE}
- init
- feature {IUP_INTERFACE}
-
- init
-
- local
- i, r: INTEGER
- argsv: ARRAY[STRING_8]
- do
-
- create objects.make(0)
-
- set_iup_callbacks ($Current,
- $launch_help_cb_fn, $launch_idle_action_fidle, $launch_map_cb_fn,
- $launch_unmap_cb_fn, $launch_destroy_cb_fn, $launch_ldestroy_cb_fn,
- $launch_getfocus_cb_fn, $launch_killfocus_cb_fn, $launch_enterwindow_cb_fn,
- $launch_leavewindow_cb_fn, $launch_action_fn, $launch_k_any_fni,
- $launch_close_cb_fn, $launch_copydata_cb_fnsi, $launch_dropfiles_cb_fnsiii,
- $launch_mdiactivate_cb_fn, $launch_move_cb_fnii, $launch_resize_cb_fnii,
- $launch_show_cb_fni, $launch_trayclick_cb_fniii, $launch_file_cb_fnss,
- $launch_colorupdate_cb_fn, $launch_cancel_cb_fn, $launch_tabchange_cb_fnnn,
- $launch_tabchangepos_cb_fnii, $launch_tabclose_cb_fni, $launch_rightclick_cb_fni,
- $launch_detached_cb_fnnii, $launch_restored_cb_fnnii, $launch_openclose_cb_fni,
- $launch_extrabutton_cb_fnii, $launch_valuechanged_cb_fn, $launch_button_cb_fniiiis,
- $launch_action_fnff, $launch_focus_cb_fni, $launch_motion_cb_fniis, $launch_keypress_cb_fnii,
- $launch_scroll_cb_fniff, $launch_wheel_cb_fndiis, $launch_click_cb_fns,
- $launch_action_fnsii, $launch_caret_cb_fniii, $launch_dblclick_cb_fnis,
- $launch_dragdrop_cb_fniiii, $launch_dropdown_cb_fni, $launch_edit_cb_fnis,
- $launch_multiselect_cb_fns, $launch_spin_cb_fni, $launch_action_fnis,
- $launch_action_fni, $launch_selection_cb_fnii, $launch_multiselection_cb_fnpi,
- $launch_multiunselection_cb_fnpi, $launch_branchopen_cb_fni, $launch_branchclose_cb_fni,
- $launch_executeleaf_cb_fni, $launch_showrename_cb_fni, $launch_rename_cb_fnis,
- $launch_noderemoved_cb_fns, $launch_togglevalue_cb_fnii, $launch_highlight_cb_fn,
- $launch_open_cb_fn, $launch_menuclose_cb_fn, $launch_dragbegin_cb_fnii,
- $launch_dragdatasize_cb_fns, $launch_dragdata_cb_fnsvi, $launch_dragend_cb_fni,
- $launch_dropdata_cb_fnsviii, $launch_dropmotion_cb_fniis, $launch_recent_cb_fn,
- $launch_param_cb_fniv, $launch_flat_action_fn, $launch_flat_button_cb_fniiiis,
- $launch_flat_focus_cb_fni, $launch_flat_enterwindow_cb_fn, $launch_flat_leavewindow_cb_fn,
- $launch_draw_cb_fniiiiiic, $launch_height_cb_fni, $launch_hspan_cb_fnii,
- $launch_mouseclick_cb_fniiiiiis, $launch_mousemotion_cb_fniiiis, $launch_ncols_cb_fn,
- $launch_nlines_cb_fn, $launch_scrolling_cb_fnii, $launch_vspan_cb_fnii,
- $launch_width_cb_fni, $launch_cell_fni, $launch_extended_fni,
- $launch_select_fnii, $launch_switch_fnii, $launch_action_fniiiis,
- $launch_click_fniis, $launch_colresize_fni, $launch_release_fniis,
- $launch_resizematrix_fnii, $launch_mousemove_fnii, $launch_enteritem_fnii,
- $launch_leaveitem_fnii, $launch_scrolltop_fnii, $launch_bgcolor_fniivvv,
- $launch_fgcolor_fniivvv, $launch_font_fnii, $launch_type_fnii,
- $launch_dropcheck_fnii, $launch_translatevalue_fniis, $launch_togglevalue_fniii,
- $launch_drop_fnnii, $launch_menudrop_fnnii, $launch_dropselect_fniinsii,
- $launch_edition_fniiii, $launch_value_fnii, $launch_value_edit_fniis,
- $launch_mark_fnii, $launch_markedit_fniii, $launch_flat_motion_cb_fniis,
- $launch_dropshow_cb_fni, $launch_button_press_cb_fnd, $launch_button_release_cb_fnd,
- $launch_mousemove_cb_fnd, $launch_change_cb_fnvvv, $launch_drag_cb_fnvvv)
-
- create argsv.make_filled(" ", 0, argument_count)
- i := -1
- across
- Argument_array as ic
- loop
- i := i + 1
- argsv.put(ic.item, i)
- end
-
- r := int_iup_open ($i, get_pointer(argsv.to_c))
-
- if r.is_equal(1) then
- io.put_string("An error occurred when try to open IUP interface. %N")
- end
- end
- int_iup_open (int, p: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupOpen($int, $p);"
- end
- feature {IUP_GET_PARAM}
- set_get_param (wgt: IUP_GET_PARAM)
- do
- get_param := wgt
- end
- feature {ANY}
-
-
-
- main_loop
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupMainLoop();"
- end
- main_loop_level: INTEGER
-
-
-
-
-
-
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupMainLoopLevel();"
- end
- loop_step: STRING
-
-
-
-
-
-
-
-
-
-
-
-
-
- local
- rtn: INTEGER
- do
- rtn := int_loop_step
- if rtn.is_equal(-2) then
- Result := "IUP_DEFAULT"
- else
- Result := "IUP_CLOSE"
- end
- end
- loop_step_wait: STRING
-
- local
- rtn: INTEGER
- do
- rtn := int_loop_step_wait
- if rtn.is_equal(-2) then
- Result := "IUP_DEFAULT"
- else
- Result := "IUP_CLOSE"
- end
- end
- flush
-
-
-
-
-
-
-
-
-
-
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupFlush();"
- end
- exit_loop
-
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupExitLoop();"
- end
- close
-
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupClose();"
- end
-
- help (url: STRING): INTEGER
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- do
- Result := int_help(get_pointer(url.to_c))
- end
-
- load_images
-
-
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupImageLibOpen();"
- end
- load_iup_controls
-
-
-
-
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupControlsOpen();"
- end
-
-
- get_focus: detachable IUP_WIDGET
-
-
-
- local
- p: POINTER
- do
- p := int_get_focus
- if p /= default_pointer then
- Result := widget_for_object(p)
- end
- end
-
- set_global_attribute (name: STRING; value: STRING)
- do
- int_set_global (get_pointer(name.to_c), get_pointer(value.to_c))
- end
- get_global_attribute (name: STRING): STRING
- local
- str: STRING
- do
- create str.make_from_c(int_get_global (get_pointer(name.to_c)))
- Result := str
- end
-
- set_global_parent_dialog_widget (dlg: IUP_DIALOG)
-
- local
- p: POINTER
- str: STRING
- do
- str := once "PARENTDIALOG"
- int_set_attribute_handle (p, get_pointer(str.to_c), dlg.widget)
- end
- set_global_icon_widget (icon: IUP_IMAGE)
-
- local
- p: POINTER
- str: STRING
- do
- str := once "ICON"
- int_set_attribute_handle (p, get_pointer(str.to_c), icon.widget)
- end
-
- copy_attributes(src, dst: IUP_WIDGET)
-
-
-
-
-
- do
- int_copy_attributes(src.widget, dst.widget)
- end
-
- set_language_english
- do
- set_global_attribute ("LANGUAGE", "ENGLISH")
- end
- set_language_spanish
- do
- set_global_attribute ("LANGUAGE", "SPANISH")
- end
- set_language_portuguese
- do
- set_global_attribute ("LANGUAGE", "PORTUGUESE")
- end
- set_language (language: STRING)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- do
- set_global_attribute ("LANGUAGE", language)
- end
- get_language: STRING
- do
- Result := get_global_attribute("LANGUAGE")
- end
- set_language_string (name, value: STRING)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- do
- int_set_language_string(get_pointer(name.to_c), get_pointer(value.to_c))
- end
- store_language_string (name, value: STRING)
-
- do
- int_store_language_string(get_pointer(name.to_c), get_pointer(value.to_c))
- end
- get_language_string(name: STRING): STRING
-
- local
- str: STRING
- do
- create str.make_from_c(int_get_language_string(get_pointer(name.to_c)))
- Result := str
- end
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- get_driver: STRING
-
-
- do
- Result := get_global_attribute("DRIVER")
- end
-
- set_lock_loop_yes
-
-
- do
- set_global_attribute ("LOCKLOOP", "YES")
- end
- set_lock_loop_no
- do
- set_global_attribute ("LOCKLOOP", "NO")
- end
- set_exit_loop_yes
-
-
-
- do
- set_global_attribute ("EXITLOOP", "YES")
- end
- set_exit_loop_no
- do
- set_global_attribute ("EXITLOOP", "NO")
- end
- set_default_precision (value: INTEGER)
-
-
-
- do
- set_global_attribute ("DEFAULTPRECISION", value.out)
- end
- get_default_precision: INTEGER
- local
- str: STRING
- do
- str := get_global_attribute("DEFAULTPRECISION")
- Result := str.to_integer
- end
- set_default_decimal_symbol_period
- do
- set_global_attribute ("DEFAULTDECIMALSYMBOL", ".")
- end
- set_default_decimal_symbol_comma
- do
- set_global_attribute ("DEFAULTDECIMALSYMBOL", ",")
- end
- is_default_decimal_symbol_period: BOOLEAN
- local
- str: STRING
- do
- str := get_global_attribute("DEFAULTPRECISION")
- if str.is_equal(".") then
- Result := True
- else
- Result := False
- end
- end
- is_default_decimal_symbol_comma: BOOLEAN
- local
- str: STRING
- do
- str := get_global_attribute("DEFAULTPRECISION")
- if str.is_equal(",") then
- Result := True
- else
- Result := False
- end
- end
- set_global_menu (state: BOOLEAN)
-
-
- do
- set_global_attribute ("GLOBALMENU", boolean_to_yesno(state))
- end
-
- set_default_theme (name: STRING)
- do
- set_global_attribute ("DEFAULTTHEME", name)
- end
-
- set_cursor_position (x, y: INTEGER)
-
-
-
-
-
- local
- str: STRING
- do
- create str.make_from_string(x.out)
- str.append_string("x")
- str.append_string(y.out)
-
- set_global_attribute("CURSORPOS", str)
- end
- get_cursor_position: TUPLE[INTEGER, INTEGER]
- local
- str: STRING
- do
- str := get_global_attribute("CURSORPOS")
-
- Result := components_of (str, 'x')
- end
- get_shift_key_state: BOOLEAN
- local
- str: STRING
- do
- str := get_global_attribute("SHIFTKEY")
- Result := yesno_to_boolean(str)
- end
- get_control_key_state: BOOLEAN
- local
- str: STRING
- do
- str := get_global_attribute("CONTROLKEY")
- Result := yesno_to_boolean(str)
- end
- get_modifier_keys_state: STRING
-
-
-
- do
- Result := get_global_attribute("MODKEYSTATE")
- end
-
- is_print_key (key: INTEGER): BOOLEAN
-
- local
- rv: INTEGER
- do
- rv := int_is_print_key(key)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
- is_x_key (key: INTEGER): BOOLEAN
-
- local
- rv: INTEGER
- do
- rv := int_is_x_key(key)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
-
- is_shift_x_key (key: INTEGER): BOOLEAN
-
- local
- rv: INTEGER
- do
- rv := int_is_shift_x_key(key)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
- is_ctrl_x_key (key: CHARACTER): BOOLEAN
-
- local
- rv: INTEGER
- do
- rv := int_is_ctrl_x_key(key)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
- is_alt_x_key (key: CHARACTER): BOOLEAN
-
- local
- rv: INTEGER
- do
- rv := int_is_alt_x_key(key)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
- is_sys_x_key (key: CHARACTER): BOOLEAN
-
-
- local
- rv: INTEGER
- do
- rv := int_is_sys_x_key(key)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
- x_key_base (key: CHARACTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_XkeyBase ($key);"
- end
- x_key_shift (key: CHARACTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_XkeyShift ($key);"
- end
- x_key_ctrl (key: CHARACTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_XkeyCtrl ($key);"
- end
- x_key_alt (key: CHARACTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_XkeyAlt ($key);"
- end
- x_key_sys (key: CHARACTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_XkeySys ($key);"
- end
-
- is_shift (status: STRING): BOOLEAN
- local
- a: POINTER
- rv: INTEGER
- do
- a := convert_string_to_array(status)
- rv := int_is_shift(a)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
- is_control (status: STRING): BOOLEAN
- local
- a: POINTER
- rv: INTEGER
- do
- a := convert_string_to_array(status)
- rv := int_is_control(a)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
- is_button_1 (status: STRING): BOOLEAN
- local
- a: POINTER
- rv: INTEGER
- do
- a := convert_string_to_array(status)
- rv := int_is_button_1(a)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
- is_button_2 (status: STRING): BOOLEAN
- local
- a: POINTER
- rv: INTEGER
- do
- a := convert_string_to_array(status)
- rv := int_is_button_2(a)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
- is_button_3 (status: STRING): BOOLEAN
- local
- a: POINTER
- rv: INTEGER
- do
- a := convert_string_to_array(status)
- rv := int_is_button_3(a)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
- is_button_4 (status: STRING): BOOLEAN
- local
- a: POINTER
- rv: INTEGER
- do
- a := convert_string_to_array(status)
- rv := int_is_button_4(a)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
- is_button_5 (status: STRING): BOOLEAN
- local
- a: POINTER
- rv: INTEGER
- do
- a := convert_string_to_array(status)
- rv := int_is_button_5(a)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
- is_double (status: STRING): BOOLEAN
- local
- a: POINTER
- rv: INTEGER
- do
- a := convert_string_to_array(status)
- rv := int_is_double(a)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
- is_alt (status: STRING): BOOLEAN
- local
- a: POINTER
- rv: INTEGER
- do
- a := convert_string_to_array(status)
- rv := int_is_alt(a)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
- is_sys (status: STRING): BOOLEAN
- local
- a: POINTER
- rv: INTEGER
- do
- a := convert_string_to_array(status)
- rv := int_is_sys(a)
-
- if rv.is_equal(0) then
- Result := False
- else
- Result := True
- end
- end
-
- init_context_plus
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "cdInitContextPlus();"
- end
- use_context_plus (status: BOOLEAN): BOOLEAN
- local
- prev: INTEGER
- do
- if status then
- prev := int_use_context_plus(1)
- else
- prev := int_use_context_plus(0)
- end
- if prev.is_equal (0) then
- Result := False
- else
- Result := True
- end
- end
- feature {IUP_WIDGET, IUP_CLIPBOARD}
-
- position_to_integer (i: STRING): INTEGER
- do
- if i.is_equal("IUP_CENTER") then
- Result := 65535
- elseif i.is_equal("IUP_LEFT") or i.is_equal("IUP_TOP") then
- Result := 65534
- elseif i.is_equal("IUP_RIGHT") or i.is_equal("IUP_BOTTOM") then
- Result := 65533
- elseif i.is_equal("IUP_MOUSEPOS") then
- Result := 65532
- elseif i.is_equal("IUP_CURRENT") then
- Result := 65531
- elseif i.is_equal("IUP_CENTERPARENT") then
- Result := 65530
- else
- Result := i.to_integer
- end
- end
-
- popup_predefined_xy (wgt: IUP_WIDGET; x, y: STRING): STRING
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- require
- is_valid_position(x, y)
- do
- Result := popup(wgt, position_to_integer(x), position_to_integer(y))
- end
- popup (wgt: IUP_WIDGET; x, y: INTEGER): STRING
-
-
-
-
-
-
-
-
- local
- r: INTEGER
- do
- r := int_popup(wgt.widget, x, y)
- if r.is_equal(-1) then
- Result := "IUP_INVALID"
- elseif r.is_equal(0) then
- Result := "IUP_NOERROR"
- else
- Result := "IUP_ERROR"
- end
- end
-
- set_widget_for_object (wgt: POINTER; eiffel_object: IUP_WIDGET)
- do
- objects.put(eiffel_object, wgt)
- set_callback (eiffel_object, "LDESTROY_CB", "NONEEDED", 1)
- end
- get_widget_for_object (wgt: POINTER): detachable IUP_WIDGET
- do
- Result := widget_for_object(wgt)
- end
- delete_widget_for_object (wgt: POINTER; eiffel_object: IUP_WIDGET)
- do
- if objects.has(wgt) then
- objects.remove(wgt)
- set_callback(eiffel_object, "LDESTROY_CB", "NONEEDED", 0)
- int_destroy(wgt)
- end
- end
- set_callback (wgt: IUP_WIDGET; name: STRING; type: STRING; operation: INTEGER)
- do
- int_set_callback (wgt.widget, get_pointer(name.to_c), get_pointer(type.to_c), operation)
- end
- set_idle_action (act: detachable FUNCTION[TUPLE, STRING])
- do
- if act /= Void then
- int_set_function (get_pointer(("IDLE_ACTION").to_c), 1)
- else
- int_set_function (get_pointer(("IDLE_ACTION").to_c), 0)
- end
- idle_action := act
- end
-
-
- iup_append (control: IUP_WIDGET; new_child: IUP_WIDGET): detachable IUP_WIDGET
-
-
- local
- p: POINTER
- do
- p := int_append(control.widget, new_child.widget)
- if p /= default_pointer then
- Result := widget_for_object(p)
- end
- end
- iup_detach (control: IUP_WIDGET)
-
- do
- int_detach(control.widget)
- end
-
- iup_insert (control: IUP_WIDGET; ref_child: IUP_WIDGET; new_child: IUP_WIDGET): detachable IUP_WIDGET
-
-
- local
- p: POINTER
- do
- p := int_insert(control.widget, ref_child.widget, new_child.widget)
- if p /= default_pointer then
- Result := widget_for_object(p)
- end
- end
- iup_reparent (child: IUP_WIDGET; new_parent: IUP_WIDGET; ref_child: IUP_WIDGET): STRING
-
-
- local
- r: INTEGER
- do
- r := int_reparent(child.widget, new_parent.widget, ref_child.widget)
- if r.is_equal(0) then
- Result := "IUP_NOERROR"
- else
- Result := "IUP_ERROR"
- end
- end
- iup_get_parent (child: IUP_WIDGET): detachable IUP_WIDGET
-
- local
- p: POINTER
- do
- p := int_get_parent(child.widget)
- if p /= default_pointer then
- Result := widget_for_object(p)
- end
- end
- iup_get_child (control: IUP_WIDGET; position: INTEGER): detachable IUP_WIDGET
-
-
- local
- p: POINTER
- do
- p := int_get_child(control.widget, position)
- if p /= default_pointer then
- Result := widget_for_object(p)
- end
- end
- iup_get_child_pos (control: IUP_WIDGET; child: IUP_WIDGET): INTEGER
-
-
-
- do
- Result := int_get_child_pos(control.widget, child.widget)
- end
- iup_get_child_count (control: IUP_WIDGET): INTEGER
-
- do
- Result := int_get_child_count(control.widget)
- end
- iup_get_next_child (control: IUP_WIDGET; child: IUP_WIDGET): detachable IUP_WIDGET
-
-
- local
- p: POINTER
- do
- p := int_get_next_child(control.widget, child.widget)
- if p /= default_pointer then
- Result := widget_for_object(p)
- end
- end
- iup_get_brother (control: IUP_WIDGET): detachable IUP_WIDGET
-
-
- local
- p: POINTER
- do
- p := int_get_brother(control.widget)
- if p /= default_pointer then
- Result := widget_for_object(p)
- end
- end
- iup_get_dialog (control: IUP_WIDGET): detachable IUP_DIALOG
-
-
-
- local
- p: POINTER
- do
- p := int_get_dialog(control.widget)
- if p /= default_pointer and
- attached {IUP_DIALOG} objects.at(p) as dlg then
- Result := dlg
- end
- end
- iup_get_dialog_child (control: IUP_WIDGET; name: STRING): detachable IUP_WIDGET
-
-
-
-
- local
- p: POINTER
- do
- p := int_get_dialog_child(control.widget, get_pointer(name.to_c))
- if p /= default_pointer then
- Result := widget_for_object(p)
- end
- end
- iup_refresh (control: IUP_WIDGET)
-
- do
- int_refresh(control.widget)
- end
- iup_refresh_children (control: IUP_WIDGET)
-
-
-
-
-
- do
- int_refresh_children(control.widget)
- end
-
- iup_update (control: IUP_WIDGET)
-
-
- do
- int_update(control.widget)
- end
- iup_update_children (control: IUP_WIDGET)
-
-
- do
- int_update_children(control.widget)
- end
- iup_redraw (control: IUP_WIDGET; flag: INTEGER)
-
- do
- int_redraw(control.widget, flag)
- end
- iup_convert_xy_to_pos(control: IUP_WIDGET; x, y: INTEGER): INTEGER
- do
- Result := int_convert_xy_to_pos(control.widget, x, y)
- end
-
-
- set_attribute (wgt: IUP_WIDGET; name: STRING; value: STRING)
- do
- int_set_attribute (wgt.widget, get_pointer(name.to_c), get_pointer(value.to_c))
- end
- set_attribute_in_handle (handle: POINTER; name: STRING; value: STRING)
- do
- int_set_attribute (handle, get_pointer(name.to_c), get_pointer(value.to_c))
- end
- set_attribute_widget (wgt: IUP_WIDGET; name: STRING; other_wgt: IUP_WIDGET)
- do
- int_set_attribute_handle (wgt.widget, get_pointer(name.to_c), other_wgt.widget)
- end
- set_attribute_null (wgt: IUP_WIDGET; name: STRING)
- local
- p: POINTER
- do
- int_set_attribute (wgt.widget, get_pointer(name.to_c), p)
- end
- set_attribute_null_in_handle (wgt: POINTER; name: STRING)
- local
- p: POINTER
- do
- int_set_attribute (wgt, get_pointer(name.to_c), p)
- end
- set_str_attribute (wgt: IUP_WIDGET; name: STRING; value: STRING)
- do
- int_set_str_attribute (wgt.widget, get_pointer(name.to_c), get_pointer(value.to_c))
- end
- set_attribute_id (wgt: IUP_WIDGET; name: STRING; id: INTEGER; value: STRING)
- do
- int_set_attribute_id (wgt.widget, get_pointer(name.to_c), id, get_pointer(value.to_c))
- end
- set_str_attribute_id (wgt: IUP_WIDGET; name: STRING; id: INTEGER; value: STRING)
- do
- int_set_str_attribute_id (wgt.widget, get_pointer(name.to_c), id, get_pointer(value.to_c))
- end
- set_attribute_id2 (wgt: IUP_WIDGET; name: STRING; lin: INTEGER; col: INTEGER; value: STRING)
- do
- int_set_attribute_id2 (wgt.widget, get_pointer(name.to_c), lin, col, get_pointer(value.to_c))
- end
- set_attribute_id2_null (wgt: IUP_WIDGET; name: STRING; lin: INTEGER; col: INTEGER)
- local
- p: POINTER
- do
- int_set_attribute_id2 (wgt.widget, get_pointer(name.to_c), lin, col, p)
- end
- set_str_attribute_id2 (wgt: IUP_WIDGET; name: STRING; lin: INTEGER; col: INTEGER; value: STRING)
- do
- int_set_str_attribute_id2 (wgt.widget, get_pointer(name.to_c), lin, col, get_pointer(value.to_c))
- end
- set_int (wgt: IUP_WIDGET; name: STRING; value: INTEGER)
- do
- int_set_int (wgt.widget, get_pointer(name.to_c), value)
- end
- set_float (wgt: IUP_WIDGET; name: STRING; value: REAL_32)
- do
- int_set_float (wgt.widget, get_pointer(name.to_c), value)
- end
- set_double (wgt: IUP_WIDGET; name: STRING; value: REAL_64)
- do
- int_set_double (wgt.widget, get_pointer(name.to_c), value)
- end
- set_rgb (wgt: IUP_WIDGET; name: STRING; r: CHARACTER; g: CHARACTER; b: CHARACTER)
- do
- int_set_rgb (wgt.widget, get_pointer(name.to_c), r, g, b)
- end
- set_int_id (wgt: IUP_WIDGET; name: STRING; id: INTEGER; value: INTEGER)
- do
- int_set_int_id (wgt.widget, get_pointer(name.to_c), id, value)
- end
- set_float_id (wgt: IUP_WIDGET; name: STRING; id: INTEGER; value: REAL_32)
- do
- int_set_float_id (wgt.widget, get_pointer(name.to_c), id, value)
- end
- set_double_id (wgt: IUP_WIDGET; name: STRING; id: INTEGER; value: REAL_64)
- do
- int_set_double_id (wgt.widget, get_pointer(name.to_c), id, value)
- end
- set_rgb_id (wgt: IUP_WIDGET; name: STRING; id: INTEGER; r: CHARACTER; g: CHARACTER; b: CHARACTER)
- do
- int_set_rgb_id (wgt.widget, get_pointer(name.to_c), id, r, g, b)
- end
- set_int_id2 (wgt: IUP_WIDGET; name: STRING; lin: INTEGER; col: INTEGER; value: INTEGER)
- do
- int_set_int_id2 (wgt.widget, get_pointer(name.to_c), lin, col, value)
- end
- set_float_id2 (wgt: IUP_WIDGET; name: STRING; lin: INTEGER; col: INTEGER; value: REAL_32)
- do
- int_set_float_id2 (wgt.widget, get_pointer(name.to_c), lin, col, value)
- end
- set_double_id2 (wgt: IUP_WIDGET; name: STRING; lin: INTEGER; col: INTEGER; value: REAL_64)
- do
- int_set_double_id2 (wgt.widget, get_pointer(name.to_c), lin, col, value)
- end
- set_rgb_id2 (wgt: IUP_WIDGET; name: STRING; lin: INTEGER; col: INTEGER; r: CHARACTER; g: CHARACTER; b: CHARACTER)
- do
- int_set_rgb_id2 (wgt.widget, get_pointer(name.to_c), lin, col, r, g, b)
- end
- reset_attribute (wgt: IUP_WIDGET; name: STRING)
- do
- int_reset_attribute (wgt.widget, get_pointer(name.to_c))
- end
- set_attribute_handle (wgt: IUP_WIDGET; name: STRING; wgt_named: IUP_WIDGET)
- do
- int_set_attribute (wgt.widget, get_pointer(name.to_c), wgt_named.widget)
- end
- get_attribute (wgt: IUP_WIDGET; name: STRING): STRING
- local
- p: POINTER
- str: STRING
- do
- p := int_get_attribute (wgt.widget, get_pointer(name.to_c))
- if p /= default_pointer then
- create str.make_from_c(p)
- Result := str
- else
- Result := ""
- end
- end
- get_attribute_from_handle (handle: POINTER; name: STRING): STRING
- local
- p: POINTER
- str: STRING
- do
- p := int_get_attribute (handle, get_pointer(name.to_c))
-
- if p /= default_pointer then
- create str.make_from_c(p)
- Result := str
- else
- create Result.make_empty
- end
- end
- get_attribute_widget (wgt: IUP_WIDGET; name: STRING): IUP_WIDGET
- local
- p: POINTER
- do
- p := int_get_attribute (wgt.widget, get_pointer(name.to_c))
- Result := widget_for_object(p)
- end
- get_attribute_ihandle (wgt: IUP_WIDGET; name: STRING): detachable POINTER
- local
- p: POINTER
- do
- p := int_get_attribute (wgt.widget, get_pointer(name.to_c))
-
- if p /= default_pointer then
- Result := p
- end
- end
- get_attribute_ihandle_from_handle (handle: POINTER; name: STRING): POINTER
- do
- Result := int_get_attribute (handle, get_pointer(name.to_c))
- end
- get_attribute_id (wgt: IUP_WIDGET; name: STRING; id: INTEGER): STRING
- local
- p: POINTER
- str: STRING
- do
- p := int_get_attribute_id (wgt.widget, get_pointer(name.to_c), id)
- if p /= default_pointer then
- create str.make_from_c(p)
- Result := str
- else
- Result := ""
- end
- end
- get_attribute_id2 (wgt: IUP_WIDGET; name: STRING; lin: INTEGER; col: INTEGER): STRING
- local
- p: POINTER
- str: STRING
- do
- p := int_get_attribute_id2 (wgt.widget, get_pointer(name.to_c), lin, col)
- if p /= default_pointer then
- create str.make_from_c(p)
- Result := str
- else
- Result := ""
- end
- end
- get_int (wgt: IUP_WIDGET; name: STRING): INTEGER
- do
- Result := int_get_int (wgt.widget, get_pointer(name.to_c))
- end
- get_int_int (wgt: IUP_WIDGET; name: STRING; i1: POINTER; i2: POINTER): TUPLE[INTEGER, INTEGER]
- local
- a, b: STRING
- count: INTEGER
- tup: TUPLE[INTEGER, INTEGER]
- do
- count := int_get_int_int (wgt.widget, get_pointer(name.to_c), i1, i2)
- create a.make_from_c(i1)
- create b.make_from_c(i2)
- tup := [a.to_integer, b.to_integer]
- Result := tup
- end
-
- get_int2 (wgt: IUP_WIDGET; name: STRING): INTEGER
- do
- Result := int_get_int2 (wgt.widget, get_pointer(name.to_c))
- end
- get_float (wgt: IUP_WIDGET; name: STRING): REAL_32
- do
- Result := int_get_float (wgt.widget, get_pointer(name.to_c))
- end
- get_double (wgt: IUP_WIDGET; name: STRING): REAL_64
- do
- Result := int_get_double (wgt.widget, get_pointer(name.to_c))
- end
- get_rgb (wgt: IUP_WIDGET; name: STRING): TUPLE[INTEGER, INTEGER, INTEGER]
- local
- color: STRING
- values: LIST[STRING]
- tup: TUPLE[INTEGER, INTEGER, INTEGER]
- do
- color := get_attribute(wgt, name)
- values := color.split(' ')
- if values.count.is_equal(3) and
- values.at(1).is_integer and
- values.at(2).is_integer and
- values.at(3).is_integer then
-
- tup := [values.at(1).to_integer, values.at(2).to_integer,
- values.at(3).to_integer]
- Result := tup
- else
- io.put_string("Something goes wrong %N")
- Result := [0, 0, 0]
- end
- end
- get_rgba (wgt: IUP_WIDGET; name: STRING): TUPLE[INTEGER, INTEGER, INTEGER, INTEGER]
- local
- color: STRING
- values: LIST[STRING]
- tup: TUPLE[INTEGER, INTEGER, INTEGER, INTEGER]
- do
- color := get_attribute(wgt, name)
- values := color.split(' ')
- if values.count.is_equal(3) and
- values.at(1).is_integer and
- values.at(2).is_integer and
- values.at(3).is_integer then
-
- tup := [values.at(1).to_integer, values.at(2).to_integer,
- values.at(3).to_integer, 0]
- Result := tup
- elseif values.at(1).is_integer and
- values.at(2).is_integer and
- values.at(3).is_integer and
- values.at(4).is_integer then
-
- tup := [values.at(1).to_integer, values.at(2).to_integer,
- values.at(3).to_integer, values.at(4).to_integer]
- Result := tup
- else
- io.put_string("Something goes wrong %N")
- Result := [0, 0, 0, 0]
- end
- end
- get_rgb_id (wgt: IUP_WIDGET; name: STRING; id: INTEGER): TUPLE[INTEGER, INTEGER, INTEGER]
- local
- color: STRING
- values: LIST[STRING]
- tup: TUPLE[INTEGER, INTEGER, INTEGER]
- do
- color := get_attribute_id(wgt, name, id)
- values := color.split(' ')
- if values.count.is_equal(3) and
- values.at(1).is_integer and
- values.at(2).is_integer and
- values.at(3).is_integer then
-
- tup := [values.at(1).to_integer, values.at(2).to_integer,
- values.at(3).to_integer]
- Result := tup
- else
- io.put_string("Something goes wrong %N")
- Result := [0, 0, 0]
- end
- end
- get_hsi (wgt: IUP_WIDGET; name: STRING): TUPLE[INTEGER, INTEGER, INTEGER]
- do
- Result := get_rgb(wgt, name)
- end
- get_hsi_real (wgt: IUP_WIDGET; name: STRING): TUPLE[REAL_64, REAL_64, REAL_64]
- local
- color: STRING
- values: LIST[STRING]
- tup: TUPLE[REAL_64, REAL_64, REAL_64]
- do
- color := get_attribute(wgt, name)
- values := color.split(' ')
- if values.count.is_equal(3) and
- values.at(1).is_real_64 and
- values.at(2).is_real_64 and
- values.at(3).is_real_64 then
- tup := [values.at(1).to_real_64, values.at(2).to_real_64,
- values.at(3).to_real_64]
- Result := tup
- else
- io.put_string("Something goes wrong %N")
- Result := [(0).to_double, (0).to_double, (0).to_double]
- end
- end
-
- get_attribute_handle (wgt: IUP_WIDGET; name: STRING): IUP_WIDGET
- local
- p: POINTER
- do
- p := int_get_attribute_handle (wgt.widget, get_pointer(name.to_c))
- Result := widget_for_object(p)
- end
- feature {IUP}
-
-
-
- launch_idle_action_fidle: INTEGER
- local
- v: STRING
- do
- if attached idle_action as int_cb then
- v := int_cb.item([])
- Result := return_value(v)
- end
- end
- launch_help_cb_fn (obj: POINTER)
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- iup_widget.execute_help
- end
- end
- launch_map_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_map
- Result := return_value(v)
- end
- end
- launch_unmap_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_unmap
- Result := return_value(v)
- end
- end
- launch_destroy_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_destroy
- Result := return_value(v)
- end
- end
- launch_ldestroy_cb_fn (obj: POINTER): INTEGER
-
-
- do
-
-
-
-
-
-
- Result := return_value("IUP_DEFAULT")
-
- end
- launch_getfocus_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_getfocus
- Result := return_value(v)
- end
- end
- launch_killfocus_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_killfocus
- Result := return_value(v)
- end
- end
- launch_enterwindow_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_enterwindow
- Result := return_value(v)
- end
- end
- launch_leavewindow_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_leavewindow
- Result := return_value(v)
- end
- end
- launch_k_any_fni (obj: POINTER; int: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_k_any(int)
- Result := return_value(v)
- end
- end
- launch_action_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_action
- Result := return_value(v)
- end
- end
-
- launch_close_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_close
- Result := return_value(v)
- end
- end
- launch_copydata_cb_fnsi (obj, cmdline: POINTER; size: INTEGER): INTEGER
- local
- v, cl: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if cmdline /= default_pointer then
- create cl.make_from_c(cmdline)
- else
- cl := ""
- end
-
- v := iup_widget.execute_copydata(cl, size)
- Result := return_value(v)
- end
- end
-
- launch_dropfiles_cb_fnsiii (obj: POINTER; filename: POINTER; num: INTEGER; x: INTEGER; y: INTEGER): INTEGER
- local
- v, file: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
-
- if filename /= default_pointer then
- create file.make_from_c(filename)
- else
- file := ""
- end
-
- v := iup_widget.execute_dropfiles(file, num, x, y)
- Result := return_value(v)
- end
- end
- launch_mdiactivate_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_mdiactivate
- Result := return_value(v)
- end
- end
- launch_move_cb_fnii (obj: POINTER; x: INTEGER; y: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_move(x, y)
- Result := return_value(v)
- end
- end
-
- launch_resize_cb_fnii (obj: POINTER; width: INTEGER; height: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_resize(width, height)
- Result := return_value(v)
- end
- end
- launch_show_cb_fni (obj: POINTER; state: INTEGER): INTEGER
- local
- v, s: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
-
- if state.is_equal(0) then
- s := "IUP_SHOW"
- elseif state.is_equal(1) then
- s := "IUP_RESTORE"
- elseif state.is_equal(2) then
- s := "IUP_MINIMIZE"
- elseif state.is_equal(3) then
- s := "IUP_MAXIMIZE"
- else
- s := "IUP_HIDE"
- end
-
- v := iup_widget.execute_show(s)
- Result := return_value(v)
- end
- end
- launch_trayclick_cb_fniii (obj: POINTER; but: INTEGER; pressed: INTEGER; dclick: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_trayclick(but, pressed, dclick)
- Result := return_value(v)
- end
- end
-
- launch_file_cb_fnss (obj, file_name, status: POINTER): INTEGER
- local
- v, file, st: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if file_name /= default_pointer then
- create file.make_from_c(file_name)
- else
- file := ""
- end
- if status /= default_pointer then
- create st.make_from_c(status)
- else
- st := ""
- end
-
- v := iup_widget.execute_file(file, st)
- Result := return_value(v)
- end
- end
-
- launch_colorupdate_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_colorupdate
- Result := return_value(v)
- end
- end
-
- launch_cancel_cb_fn(obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_cancel
- Result := return_value(v)
- end
- end
-
- launch_tabchange_cb_fnnn (obj, new_tab, old_tab: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget and
- new_tab /= default_pointer and old_tab /= default_pointer and
- attached objects.at(new_tab) as ntab and
- attached objects.at(old_tab) as otab then
-
- v := iup_widget.execute_tabchange(ntab, otab)
- Result := return_value(v)
- end
- end
- launch_tabchangepos_cb_fnii (obj: POINTER; new_pos, old_pos: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_tabchangepos(new_pos, old_pos)
- Result := return_value(v)
- end
- end
- launch_tabclose_cb_fni (obj: POINTER; pos: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_tabclose(pos)
- Result := return_value(v)
- end
- end
- launch_rightclick_cb_fni (obj: POINTER; pos: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_rightclick(pos)
- Result := return_value(v)
- end
- end
-
- launch_detached_cb_fnnii (obj, new_parent: POINTER; x, y: INTEGER): INTEGER
- local
- v: STRING
- nparent: IUP_DIALOG
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- create nparent.dialog_widget(new_parent)
- v := iup_widget.execute_detached(nparent, x, y)
- Result := return_value(v)
- end
- end
- launch_restored_cb_fnnii (obj, old_parent: POINTER; x, y: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and objects.has(old_parent) and
- attached objects.at(obj) as iup_widget and
- attached objects.at(old_parent) as oparent then
- v := iup_widget.execute_restored(oparent, x, y)
- Result := return_value(v)
- end
- end
-
- launch_openclose_cb_fni (obj: POINTER; state: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_openclose(state)
- Result := return_value(v)
- end
- end
- launch_extrabutton_cb_fnii (obj: POINTER; button, pressed: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_extrabutton(button, pressed)
- Result := return_value(v)
- end
- end
-
- launch_valuechanged_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_valuechanged
- Result := return_value(v)
- end
- end
-
- launch_button_cb_fniiiis (obj: POINTER; button, pressed, x, y: INTEGER; status: POINTER): INTEGER
- local
- v, st: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if status /= default_pointer then
- create st.make_from_c(status)
- else
- st := ""
- end
-
- v := iup_widget.execute_button(button.to_character_8.out.to_integer_32,
- pressed, x, y, st)
- Result := return_value(v)
- end
- end
-
- launch_action_fnff (obj: POINTER; posx, posy: REAL_32): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_action_fnff(posx, posy)
- Result := return_value(v)
- end
- end
- launch_focus_cb_fni (obj: POINTER; focus: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_focus(focus)
- Result := return_value(v)
- end
- end
-
- launch_motion_cb_fniis (obj: POINTER; x, y: INTEGER; status: POINTER): INTEGER
- local
- v, st: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if status /= default_pointer then
- create st.make_from_c(status)
- else
- st := ""
- end
-
- v := iup_widget.execute_motion(x, y, st)
- Result := return_value(v)
- end
- end
- launch_keypress_cb_fnii (obj: POINTER; c, press: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_keypress(c, press)
- Result := return_value(v)
- end
- end
- launch_scroll_cb_fniff (obj: POINTER; op: INTEGER; posx, posy: REAL_32): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_scroll(op, posx, posy)
- Result := return_value(v)
- end
- end
- launch_wheel_cb_fndiis (obj: POINTER; delta: REAL_32; x, y: INTEGER; status: POINTER): INTEGER
- local
- v, st: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if status /= default_pointer then
- create st.make_from_c(status)
- else
- st := ""
- end
-
- v := iup_widget.execute_wheel(delta, x, y, st)
- Result := return_value(v)
- end
- end
-
- launch_click_cb_fns (obj, url: POINTER): INTEGER
- local
- v, u: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if url /= default_pointer then
- create u.make_from_c(url)
- else
- u := ""
- end
-
- v := iup_widget.execute_click(u)
- Result := return_value(v)
- end
- end
-
- launch_action_fnsii (obj, text: POINTER; item, state: INTEGER): INTEGER
- local
- v, t: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if text /= default_pointer then
- create t.make_from_c(text)
- else
- t := ""
- end
-
- v := iup_widget.execute_action_fnsii(t, item, state)
- Result := return_value(v)
- end
- end
- launch_caret_cb_fniii (obj: POINTER; lin, col, pos: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_caret(lin, col, pos)
- Result := return_value(v)
- end
- end
- launch_dblclick_cb_fnis (obj: POINTER; item: INTEGER; text: POINTER): INTEGER
- local
- v, t: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if text /= default_pointer then
- create t.make_from_c(text)
- else
- t := ""
- end
-
- v := iup_widget.execute_dblclick(item, t)
- Result := return_value(v)
- end
- end
- launch_dragdrop_cb_fniiii (obj: POINTER; drag_id, drop_id, isshift, iscontrol: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_dragdrop(drag_id, drop_id, isshift, iscontrol)
- Result := return_value(v)
- end
- end
- launch_dropdown_cb_fni (obj: POINTER; state: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_dropdown(state)
- Result := return_value(v)
- end
- end
- launch_edit_cb_fnis (obj: POINTER; c: INTEGER; new_value: POINTER): INTEGER
- local
- v, nv: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if new_value /= default_pointer then
- create nv.make_from_c(new_value)
- else
- nv := ""
- end
-
- v := iup_widget.execute_edit(c, nv)
- Result := return_value(v)
- end
- end
- launch_multiselect_cb_fns (obj, value: POINTER): INTEGER
- local
- v, tv: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if value /= default_pointer then
- create tv.make_from_c(value)
- else
- tv := ""
- end
-
- v := iup_widget.execute_multiselect(tv)
- Result := return_value(v)
- end
- end
-
- launch_spin_cb_fni (obj: POINTER; inc: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_spin(inc)
- Result := return_value(v)
- end
- end
-
- launch_action_fnis (obj: POINTER; c: INTEGER; new_value: POINTER): INTEGER
- local
- v, nv: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if new_value /= default_pointer then
- create nv.make_from_c(new_value)
- else
- nv := ""
- end
-
- v := iup_widget.execute_action_fnis(c, nv)
- Result := return_value(v)
- end
- end
-
- launch_action_fni (obj: POINTER; state: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_action_fni(state)
- Result := return_value(v)
- end
- end
-
- launch_selection_cb_fnii (obj: POINTER; id, status: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_selection(id, status)
- Result := return_value(v)
- end
- end
- launch_multiselection_cb_fnpi (obj: POINTER; ids: POINTER; n: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_multiselection(ids, n)
- Result := return_value(v)
- end
- end
- launch_multiunselection_cb_fnpi (obj: POINTER; ids: POINTER; n: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_multiunselection(ids, n)
- Result := return_value(v)
- end
- end
- launch_branchopen_cb_fni (obj: POINTER; id: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_branchopen(id)
- Result := return_value(v)
- end
- end
- launch_branchclose_cb_fni (obj: POINTER; id: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_branchclose(id)
- Result := return_value(v)
- end
- end
- launch_executeleaf_cb_fni (obj: POINTER; id: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_executeleaf(id)
- Result := return_value(v)
- end
- end
- launch_showrename_cb_fni (obj: POINTER; id: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_showrename(id)
- Result := return_value(v)
- end
- end
- launch_rename_cb_fnis (obj: POINTER; id: INTEGER; title: POINTER): INTEGER
- local
- v, t: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if title /= default_pointer then
- create t.make_from_c(title)
- else
- t := ""
- end
-
- v := iup_widget.execute_rename(id, t)
- Result := return_value(v)
- end
- end
- launch_noderemoved_cb_fns (obj: POINTER; userdata: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_noderemoved(userdata)
- Result := return_value(v)
- end
- end
- launch_togglevalue_cb_fnii (obj: POINTER; id, state: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_togglevalue(id, state)
- Result := return_value(v)
- end
- end
-
- launch_highlight_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_highlight
- Result := return_value(v)
- end
- end
-
- launch_open_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_open
- Result := return_value(v)
- end
- end
- launch_menuclose_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_menuclose
- Result := return_value(v)
- end
- end
-
- launch_dragbegin_cb_fnii (obj: POINTER; x, y: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_dragbegin(x, y)
- Result := return_value(v)
- end
- end
- launch_dragdatasize_cb_fns (obj, type: POINTER): INTEGER
- local
- t: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if type /= default_pointer then
- create t.make_from_c(type)
- else
- t := ""
- end
-
- Result := iup_widget.execute_dragdatasize(t)
- end
- end
- launch_dragdata_cb_fnsvi (obj, type, data: POINTER; size: INTEGER): INTEGER
- local
- v, t: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if type /= default_pointer then
- create t.make_from_c(type)
- else
- t := ""
- end
-
- v := iup_widget.execute_dragdata(t, data, size)
- Result := return_value(v)
- end
- end
- launch_dragend_cb_fni (obj: POINTER; action: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_dragend(action)
- Result := return_value(v)
- end
- end
- launch_dropdata_cb_fnsviii (obj, type, data: POINTER; size, x, y: INTEGER): INTEGER
- local
- v, t: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if type /= default_pointer then
- create t.make_from_c(type)
- else
- t := ""
- end
-
- v := iup_widget.execute_dropdata(t, data, size, x, y)
- Result := return_value(v)
- end
- end
- launch_dropmotion_cb_fniis (obj: POINTER; x, y: INTEGER; status: POINTER): INTEGER
- local
- v, st: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if status /= default_pointer then
- create st.make_from_c(status)
- else
- st := ""
- end
-
- v := iup_widget.execute_dropmotion(x, y, st)
- Result := return_value(v)
- end
- end
-
- launch_recent_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_recent
- Result := return_value(v)
- end
- end
-
- launch_param_cb_fniv (obj: POINTER; param_index: INTEGER; user_data: POINTER): INTEGER
- do
- if attached get_param as int_cb then
- Result := int_cb.execute_param(obj, param_index, user_data)
- end
- end
-
- launch_flat_action_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_flat_action
- Result := return_value(v)
- end
- end
- launch_flat_button_cb_fniiiis (obj: POINTER; button, pressed, x, y: INTEGER; status: POINTER): INTEGER
- local
- v, st: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if status /= default_pointer then
- create st.make_from_c(status)
- else
- st := ""
- end
- v := iup_widget.execute_flat_button(button.to_character_8.out.to_integer_32,
- pressed, x, y, st)
- Result := return_value(v)
- end
- end
- launch_flat_focus_cb_fni (obj: POINTER; focus: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_flat_focus(focus)
- Result := return_value(v)
- end
- end
- launch_flat_enterwindow_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_flat_enterwindow
- Result := return_value(v)
- end
- end
- launch_flat_leavewindow_cb_fn (obj: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_flat_leavewindow
- Result := return_value(v)
- end
- end
-
-
- launch_draw_cb_fniiiiiic (obj: POINTER; line, column, xmin, xmax, ymin, ymax: INTEGER; canvas: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_draw(line, column, xmin, xmax, ymin, ymax, canvas)
- Result := return_value(v)
- end
- end
-
- launch_height_cb_fni (obj: POINTER; line: INTEGER): INTEGER
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- Result := iup_widget.execute_height(line)
- end
- end
-
- launch_hspan_cb_fnii (obj: POINTER; line, column: INTEGER): INTEGER
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- Result := iup_widget.execute_hspan(line, column)
- end
- end
- launch_mouseclick_cb_fniiiiiis (obj: POINTER; button, pressed, line, column, x, y: INTEGER; status: POINTER): INTEGER
- local
- v, st: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if status /= default_pointer then
- create st.make_from_c(status)
- else
- st := ""
- end
-
- v := iup_widget.execute_mouseclick(button.to_character_8.out.to_integer_32,
- pressed, line, column, x, y, st)
- Result := return_value(v)
- end
- end
-
- launch_mousemotion_cb_fniiiis (obj: POINTER; line, column, x, y: INTEGER; r: POINTER): INTEGER
- local
- v, rs: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if r /= default_pointer then
- create rs.make_from_c(r)
- else
- rs := ""
- end
-
- v := iup_widget.execute_mousemotion(line, column, x, y, rs)
- Result := return_value(v)
- end
- end
- launch_ncols_cb_fn (obj: POINTER): INTEGER
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- Result := iup_widget.execute_ncols
- end
- end
-
- launch_nlines_cb_fn (obj: POINTER): INTEGER
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- Result := iup_widget.execute_nlines
- end
- end
-
- launch_scrolling_cb_fnii (obj: POINTER; line, column: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_scrolling(line, column)
- Result := return_value(v)
- end
- end
- launch_vspan_cb_fnii (obj: POINTER; line, column: INTEGER): INTEGER
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- Result := iup_widget.execute_vspan(line, column)
- end
- end
-
- launch_width_cb_fni (obj: POINTER; column: INTEGER): INTEGER
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- Result := iup_widget.execute_width(column)
- end
- end
-
- launch_cell_fni (obj: POINTER; cell: INTEGER): INTEGER
- local
- cl: TUPLE[INTEGER, INTEGER, INTEGER]
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- cl := iup_widget.execute_cell(cell)
- if cl /= Void then
- Result := int_encode_color (cl.integer_32_item(1),
- cl.integer_32_item(2),
- cl.integer_32_item(3))
- else
- Result := -1
- end
- end
- end
- launch_extended_fni (obj: POINTER; cell: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_extended(cell)
- Result := return_value(v)
- end
- end
- launch_select_fnii (obj: POINTER; cell, type: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_select(cell, type)
- Result := return_value(v)
- end
- end
- launch_switch_fnii (obj: POINTER; prim_cell, sec_cell: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_switch(prim_cell, sec_cell)
- Result := return_value(v)
- end
- end
-
- launch_action_fniiiis (obj: POINTER; key, lin, col, edition: INTEGER; value: POINTER): INTEGER
- local
- v, vs: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if value /= default_pointer then
- create vs.make_from_c(value)
- else
- vs := ""
- end
-
- v := iup_widget.execute_action_fniiiis(key, lin, col, edition, vs)
- Result := return_value(v)
- end
- end
- launch_click_fniis (obj: POINTER; lin, col: INTEGER; status: POINTER): INTEGER
- local
- v, st: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if status /= default_pointer then
- create st.make_from_c(status)
- else
- st := ""
- end
-
- v := iup_widget.execute_click_fniis(lin, col, st)
- Result := return_value(v)
- end
- end
- launch_colresize_fni (obj: POINTER; col: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_colresize(col)
- Result := return_value(v)
- end
- end
- launch_release_fniis (obj: POINTER; lin, col: INTEGER; status: POINTER): INTEGER
- local
- v, st: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if status /= default_pointer then
- create st.make_from_c(status)
- else
- st := ""
- end
-
- v := iup_widget.execute_release(lin, col, st)
- Result := return_value(v)
- end
- end
- launch_resizematrix_fnii (obj: POINTER; width, height: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_resizematrix(width, height)
- Result := return_value(v)
- end
- end
- launch_mousemove_fnii (obj: POINTER; lin, col: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_mousemove(lin, col)
- Result := return_value(v)
- end
- end
- launch_enteritem_fnii (obj: POINTER; lin, col: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_enteritem(lin, col)
- Result := return_value(v)
- end
- end
- launch_leaveitem_fnii (obj: POINTER; lin, col: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_leaveitem(lin, col)
- Result := return_value(v)
- end
- end
- launch_scrolltop_fnii (obj: POINTER; lin, col: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_scrolltop(lin, col)
- Result := return_value(v)
- end
- end
- launch_bgcolor_fniivvv (obj: POINTER; lin, col: INTEGER; red, green, blue: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_bgcolor(lin, col, red, green, blue)
- Result := return_value(v)
- end
- end
- launch_fgcolor_fniivvv (obj: POINTER; lin, col: INTEGER; red, green, blue: POINTER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_fgcolor(lin, col, red, green, blue)
- Result := return_value(v)
- end
- end
- launch_font_fnii (obj: POINTER; lin, col: INTEGER): POINTER
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- Result := get_pointer(iup_widget.execute_font(lin, col).to_c)
- end
- end
- launch_type_fnii (obj: POINTER; lin, col: INTEGER): POINTER
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- Result := get_pointer(iup_widget.execute_type(lin, col).to_c)
- end
- end
- launch_dropcheck_fnii (obj: POINTER; lin, col: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_dropcheck(lin, col)
- Result := return_value(v)
- end
- end
- launch_translatevalue_fniis (obj: POINTER; lin, col: INTEGER; value: POINTER): POINTER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if value /= default_pointer then
- create v.make_from_c(value)
- else
- v := ""
- end
-
- Result := get_pointer(iup_widget.execute_translatevalue(lin, col, v).to_c)
- end
- end
-
- launch_togglevalue_fniii (obj: POINTER; lin, col, status: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_togglevalue_fniii(lin, col, status)
- Result := return_value(v)
- end
- end
- launch_drop_fnnii (obj, drop: POINTER; lin, col: INTEGER): INTEGER
- local
- v: STRING
- iup_drop: IUP_DROP
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if objects.has(drop) and
- attached {IUP_DROP} objects.at(drop) as iup_d then
-
- iup_drop := iup_d
- else
- create iup_drop.drop_widget(drop)
- end
-
- v := iup_widget.execute_drop(iup_drop, lin, col)
- Result := return_value(v)
- end
- end
- launch_menudrop_fnnii (obj, drop: POINTER; lin, col: INTEGER): INTEGER
- local
- v: STRING
- iup_drop: IUP_DROP
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if objects.has(drop) and
- attached {IUP_DROP} objects.at(drop) as iup_d then
-
- iup_drop := iup_d
- else
- create iup_drop.drop_widget(drop)
- end
-
- v := iup_widget.execute_menudrop(iup_drop, lin, col)
- Result := return_value(v)
- end
- end
- launch_dropselect_fniinsii (obj: POINTER; lin, col: INTEGER; drop, t: POINTER; i, v: INTEGER): INTEGER
- local
- r, ts: STRING
- iup_drop: IUP_DROP
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if t /= default_pointer then
- create ts.make_from_c(t)
- else
- ts := ""
- end
- if objects.has(drop) and
- attached {IUP_DROP} objects.at(drop) as iup_d then
-
- iup_drop := iup_d
- else
- create iup_drop.drop_widget(drop)
- end
-
- r := iup_widget.execute_dropselect(lin, col, iup_drop, ts, i, v)
- Result := return_value(r)
- end
- end
- launch_edition_fniiii (obj: POINTER; lin, col, mode, update: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_edition(lin, col, mode, update)
- Result := return_value(v)
- end
- end
- launch_value_fnii (obj: POINTER; lin, col: INTEGER): POINTER
- local
- s: STRING
- cs: C_STRING
- do
-
-
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- s := iup_widget.execute_value(lin, col)
-
-
- create cs.make_by_pointer(get_pointer(s.to_c))
- Result := cs.item
- end
- end
- launch_value_edit_fniis (obj: POINTER; lin, col: INTEGER; newval: POINTER): INTEGER
- local
- v, nv: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if newval /= default_pointer then
- create nv.make_from_c(newval)
- else
- nv := ""
- end
-
- v := iup_widget.execute_value_edit(lin, col, nv)
- Result := return_value(v)
- end
- end
- launch_mark_fnii (obj: POINTER; lin, col: INTEGER): INTEGER
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- Result := iup_widget.execute_mark(lin, col)
- end
- end
- launch_markedit_fniii (obj: POINTER; lin, col, marked: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_markedit(lin, col, marked)
- Result := return_value(v)
- end
- end
-
- launch_flat_motion_cb_fniis (obj: POINTER; x, y: INTEGER; status: POINTER): INTEGER
- local
- v, st: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- if status /= default_pointer then
- create st.make_from_c(status)
- else
- st := ""
- end
-
- v := iup_widget.execute_flat_motion(x, y, st)
- Result := return_value(v)
- end
- end
-
- launch_dropshow_cb_fni (obj: POINTER; state: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_dropshow(state)
- Result := return_value(v)
- end
- end
-
- launch_button_press_cb_fnd (obj: POINTER; angle: REAL_64): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_button_press(angle)
- Result := return_value(v)
- end
- end
- launch_button_release_cb_fnd (obj: POINTER; angle: REAL_64): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_button_release(angle)
- Result := return_value(v)
- end
- end
- launch_mousemove_cb_fnd (obj: POINTER; angle: REAL_64): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_mousemove_fnd(angle)
- Result := return_value(v)
- end
- end
-
- launch_change_cb_fnvvv (obj: POINTER; red, green, blue: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_change(red, green, blue)
- Result := return_value(v)
- end
- end
- launch_drag_cb_fnvvv (obj: POINTER; red, green, blue: INTEGER): INTEGER
- local
- v: STRING
- do
- if objects.has(obj) and
- attached objects.at(obj) as iup_widget then
- v := iup_widget.execute_drag(red, green, blue)
- Result := return_value(v)
- end
- end
- feature {IUP_DIALOG}
- get_drop_button_for_dialog (dlg: IUP_DIALOG): detachable IUP_DROP_BUTTON
- local
- p: POINTER
- do
- p := get_attribute_ihandle(dlg, "DROPBUTTON")
-
- if objects.has(p) and
- attached {IUP_DROP_BUTTON} objects.at(p) as iup_drop_button then
-
- Result := iup_drop_button
- end
- end
- feature {IUP_WIDGET, IUP_CLIPBOARD}
-
- is_valid_position (x, y: STRING): BOOLEAN
- local
- xs, ys: BOOLEAN
- do
- if x.is_equal("IUP_LEFT") or
- x.is_equal("IUP_CENTER") or
- x.is_equal("IUP_RIGHT") or
- x.is_equal("IUP_MOUSEPOS") or
- x.is_equal("IUP_CENTERPARENT") or
- x.is_equal("IUP_CURRENT") then
- xs := True
- elseif x.is_integer and x.to_integer >= 0 then
- xs := True
- else
- xs := False
- end
- if y.is_equal("IUP_TOP") or
- y.is_equal("IUP_CENTER") or
- y.is_equal("IUP_BOTTOM") or
- y.is_equal("IUP_MOUSEPOS") or
- y.is_equal("IUP_CENTERPARENT") or
- y.is_equal("IUP_CURRENT") then
- ys := True
- elseif y.is_integer and y.to_integer >= 0 then
- ys := True
- else
- ys := False
- end
- if xs and ys then
- Result := True
- else
- Result := False
- end
- end
- is_valid_buttons (value: STRING): BOOLEAN
- do
- if value.is_equal("OK") or
- value.is_equal("OKCANCEL") or
- value.is_equal("RETRYCANCEL") or
- value.is_equal("YESNO") or
- value.is_equal("YESNOCANCEL") then
- Result := True
- else
- Result := False
- end
- end
- feature {NONE}
- idle_action: detachable FUNCTION[TUPLE, STRING]
- objects: HASH_TABLE[IUP_WIDGET, POINTER]
- callbacks: detachable HASH_TABLE[IUP_WIDGET, POINTER]
- get_param: detachable IUP_GET_PARAM
-
- yesno_to_boolean (value: STRING): BOOLEAN
- do
- if value.is_equal("YES") then
- Result := True
- else
- Result := False
- end
- end
- boolean_to_yesno (value: BOOLEAN): STRING
- do
- if value then
- Result := "YES"
- else
- Result := "NO"
- end
- end
- components_of (size: STRING; separator: CHARACTER): TUPLE[INTEGER, INTEGER]
- local
- i, c: INTEGER
- width, height: STRING
- tup: TUPLE[INTEGER, INTEGER]
- do
- if size.has(separator) then
- i := size.index_of(separator, 1)
- c := size.count
-
- if not i.is_equal(1) then
- width := size.substring(1, i - 1)
- else
- width := "0"
- end
-
- if not i.is_equal(c) then
- height := size.substring(i + 1, c)
- else
- height := "0"
- end
- tup := [width.to_integer, height.to_integer]
- Result := tup
- else
- io.put_string("Unable to get the components %N")
- Result := [0, 0]
- end
- end
- convert_string_to_array (data: STRING): POINTER
- local
- v: CHARACTER
- arg: MANAGED_POINTER
- x: INTEGER
- do
- create arg.make(data.count)
-
- from
- x := 1
- until
- x = data.count
- loop
- v := data.item(x)
- arg.put_character(v.to_character_8, x - 1)
- x := x + 1
- end
-
- Result := arg.item
- end
-
- get_class_name (wgt: POINTER): STRING
- local
- p: POINTER
- str: STRING
- do
- p := int_get_class_name (wgt)
-
- if p /= default_pointer then
- create str.make_from_c(p)
- Result := str
- else
- Result := ""
- end
- end
- int_get_class_name (wgt: POINTER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetClassName ($wgt);"
- end
-
-
- int_loop_step: INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupLoopStep();"
- end
- int_loop_step_wait: INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupLoopStepWait();"
- end
-
- int_popup (wgt: POINTER; x, y: INTEGER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupPopup ($wgt, $x, $y);"
- end
-
- int_help (u: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupHelp ($u);"
- end
-
-
-
- int_set_global (name: POINTER; value: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetGlobal ($name, $value)"
- end
- int_get_global (name: POINTER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetGlobal ($name)"
- end
- -- Focus
- int_get_focus: POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetFocus();"
- end
-
- int_destroy (wgt: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupDestroy ($wgt);"
- end
-
- widget_for_object (wgt: POINTER): IUP_WIDGET
- do
- if objects.has(wgt) and
- attached objects.at(wgt) as w then
- Result := w
- else
- create Result.make
- end
- end
-
- return_value (type: STRING): INTEGER
- do
- if type /= Void then
- if (type.is_equal("IUP_IGNORE")) then
- Result := -1
- elseif (type.is_equal("IUP_DEFAULT")) then
- Result := -2
- elseif (type.is_equal("IUP_CLOSE")) then
- Result := -3
- elseif (type.is_equal("IUP_CONTINUE")) then
- Result := -4
- else
- Result := -1
- end
- else
- Result := -1
- end
- end
- int_set_callback (object: POINTER; name: POINTER; type: POINTER; operation: INTEGER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "connect_callback ($object, $name, $type, $operation);"
- end
- int_set_function (object: POINTER; operation: INTEGER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "connect_function ($object, $operation);"
- end
-
-
- int_append (control: POINTER; new_child: POINTER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupAppend ($control, $new_child);"
- end
- int_detach (control: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupDetach ($control);"
- end
-
- int_insert (control: POINTER; ref_child: POINTER; new_child: POINTER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupInsert ($control, $ref_child, $new_child);"
- end
- int_reparent (child: POINTER; new_parent: POINTER; ref_child: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupReparent ($child, $new_parent, $ref_child);"
- end
- int_get_parent (child: POINTER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetParent ($child);"
- end
- int_get_child (control: POINTER; position: INTEGER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetChild ($control, $position);"
- end
- int_get_child_pos (control: POINTER; child: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetChildPos ($control, $child);"
- end
- int_get_child_count (control: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetChildCount ($control);"
- end
- int_get_next_child (control: POINTER; child: POINTER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetNextChild ($control, $child);"
- end
- int_get_brother (control: POINTER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetBrother ($control);"
- end
- int_get_dialog (control: POINTER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetDialog ($control);"
- end
- int_get_dialog_child (control: POINTER; child: POINTER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetDialogChild ($control, $child);"
- end
- int_refresh (control: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupRefresh ($control);"
- end
- int_refresh_children (control: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupRefreshChildren ($control);"
- end
- int_update (control: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupUpdate ($control);"
- end
- int_update_children (control: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupUpdateChildren ($control);"
- end
- int_redraw (control: POINTER; ch: INTEGER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupRedraw ($control, $ch);"
- end
- int_convert_xy_to_pos (control: POINTER; x, y: INTEGER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupConvertXYToPos ($control, $x, $y);"
- end
-
-
-
- int_set_attribute (wgt: POINTER; name: POINTER; value: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetAttribute ($wgt, $name, $value);"
- end
- int_set_str_attribute (wgt: POINTER; name: POINTER; value: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetStrAttribute ($wgt, $name, $value);"
- end
- int_set_attribute_id (wgt: POINTER; name: POINTER; id: INTEGER; value: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetAttributeId ($wgt, $name, $id, $value);"
- end
- int_set_str_attribute_id (wgt: POINTER; name: POINTER; id: INTEGER; value: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetStrAttributeId ($wgt, $name, $id, $value);"
- end
- int_set_attribute_id2 (wgt: POINTER; name: POINTER; lin: INTEGER; col: INTEGER; value: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetAttributeId2 ($wgt, $name, $lin, $col, $value);"
- end
- int_set_str_attribute_id2 (wgt: POINTER; name: POINTER; lin: INTEGER; col: INTEGER; value: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetStrAttributeId2 ($wgt, $name, $lin, $col, $value);"
- end
- int_set_int (wgt: POINTER; name: POINTER; value: INTEGER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetInt ($wgt, $name, $value);"
- end
- int_set_float (wgt: POINTER; name: POINTER; value: REAL_32)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetFloat ($wgt, $name, $value);"
- end
- int_set_double (wgt: POINTER; name: POINTER; value: REAL_64)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetDouble ($wgt, $name, $value);"
- end
- int_set_rgb (wgt: POINTER; name: POINTER; r: CHARACTER; g: CHARACTER; b: CHARACTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetRGB ($wgt, $name, $r, $g, $b);"
- end
- int_set_int_id (wgt: POINTER; name: POINTER; id: INTEGER; value: INTEGER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetIntId ($wgt, $name, $id, $value);"
- end
- int_set_float_id (wgt: POINTER; name: POINTER; id: INTEGER; value: REAL_32)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetFloatId ($wgt, $name, $id, $value);"
- end
- int_set_double_id (wgt: POINTER; name: POINTER; id: INTEGER; value: REAL_64)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetDoubleId ($wgt, $name, $id, $value);"
- end
- int_set_rgb_id (wgt: POINTER; name: POINTER; id: INTEGER; r: CHARACTER; g: CHARACTER; b: CHARACTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetRGBId ($wgt, $name, $id, $r, $g, $b);"
- end
- int_set_int_id2 (wgt: POINTER; name: POINTER; lin: INTEGER; col: INTEGER; value: INTEGER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetIntId2 ($wgt, $name, $lin, $col, $value);"
- end
- int_set_float_id2 (wgt: POINTER; name: POINTER; lin: INTEGER; col: INTEGER; value: REAL_32)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetFloatId2 ($wgt, $name, $lin, $col, $value);"
- end
- int_set_double_id2 (wgt: POINTER; name: POINTER; lin: INTEGER; col: INTEGER; value: REAL_64)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetDoubleId2 ($wgt, $name, $lin, $col, $value);"
- end
- int_set_rgb_id2 (wgt: POINTER; name: POINTER; lin: INTEGER; col: INTEGER; r: CHARACTER; g: CHARACTER; b: CHARACTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetRGBId2 ($wgt, $name, $lin, $col, $r, $g, $b);"
- end
- int_reset_attribute (wgt: POINTER; name: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupResetAttribute ($wgt, $name);"
- end
- int_set_attribute_handle (wgt: POINTER; name: POINTER; wgt_named: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetAttributeHandle ($wgt, $name, $wgt_named);"
- end
- int_get_attribute (wgt: POINTER; name: POINTER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetAttribute ($wgt, $name);"
- end
- int_get_attribute_id (wgt: POINTER; name: POINTER; id: INTEGER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetAttributeId ($wgt, $name, $id);"
- end
- int_get_attribute_id2 (wgt: POINTER; name: POINTER; lin: INTEGER; col: INTEGER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetAttributeId2 ($wgt, $name, $lin, $col);"
- end
- int_get_int (wgt: POINTER; name: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetInt ($wgt, $name);"
- end
- int_get_int_int (wgt: POINTER; name: POINTER; i1: POINTER; i2: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetIntInt ($wgt, $name, $i1, $i2);"
- end
- int_get_int2 (wgt: POINTER; name: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetInt2 ($wgt, $name);"
- end
- int_get_float (wgt: POINTER; name: POINTER): REAL_32
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetFloat ($wgt, $name);"
- end
- int_get_double (wgt: POINTER; name: POINTER): REAL_64
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetDouble ($wgt, $name);"
- end
- int_get_rgb (wgt: POINTER; name, r, g, b: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupGetRGB ($wgt, $name, $r, $g, $b);"
- end
- int_get_attribute_handle (wgt: POINTER; name: POINTER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetAttributeHandle ($wgt, $name);"
- end
-
- int_is_print_key(key: INTEGER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_isprint ($key);"
- end
- int_is_x_key(key: INTEGER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_isXkey ($key);"
- end
-
- int_is_shift_x_key(key: INTEGER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_isShiftXkey ($key);"
- end
- int_is_ctrl_x_key(key: CHARACTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_isCtrlXkey ($key);"
- end
- int_is_alt_x_key(key: CHARACTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_isAltXkey ($key);"
- end
- int_is_sys_x_key(key: CHARACTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_isSysXkey ($key);"
- end
-
- int_is_shift(status: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_isshift (((char *) $status));"
- end
- int_is_control(status: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_iscontrol (((char *) $status));"
- end
- int_is_button_1(status: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_isbutton1 (((char *) $status));"
- end
- int_is_button_2(status: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_isbutton2 (((char *) $status));"
- end
- int_is_button_3(status: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_isbutton3 (((char *) $status));"
- end
- int_is_button_4(status: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_isbutton4 (((char *) $status));"
- end
- int_is_button_5(status: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_isbutton5 (((char *) $status));"
- end
- int_is_double(status: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_isdouble (((char *) $status));"
- end
- int_is_alt(status: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_isalt (((char *) $status));"
- end
- int_is_sys(status: POINTER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return iup_issys (((char *) $status));"
- end
-
- int_use_context_plus(status: INTEGER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return cdUseContextPlus ($status);"
- end
- int_encode_color (r, g, b: INTEGER): INTEGER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return cdEncodeColor ($r, $g, $b);"
- end
-
- int_set_language_string (n, v: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetLanguageString ($n, $v);"
- end
- int_store_language_string (n, v: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupStoreLanguageString ($n, $v);"
- end
- int_get_language_string (n: POINTER): POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupGetLanguageString($n);"
- end
- int_set_language_pack (p: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupSetLanguagePack ($p);"
- end
-
- int_copy_attributes (s, d: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "IupCopyAttributes ($s, $d);"
- end
-
- set_iup_callbacks (obj,
- l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19,
- l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39,
- l40, l41, l42, l43, l44, l45, l46, l47, l48, l49, l50, l51, l52, l53, l54, l55, l56, l57, l58, l59,
- l60, l61, l62, l63, l64, l65, l66, l67, l68, l69, l70, l71, l72, l73, l74, l75, l76, l77, l78, l79,
- l80, l81, l82, l83, l84, l85, l86, l87, l88, l89, l90, l91, l92, l93, l94, l95, l96, l97, l98, l99,
- l100, l101, l102, l103, l104, l105, l106, l107, l108, l109, l110, l111, l112, l113, l114, l115, l116, l117, l118, l119,
- l120, l121: POINTER)
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "set_callbacks ($obj,%
- %$l1, $l2, $l3, $l4, $l5, $l6, $l7, $l8, $l9, $l10, $l11, $l12, $l13, $l14, $l15, $l16, $l17, $l18, $l19,%
- %$l20, $l21, $l22, $l23, $l24, $l25, $l26, $l27, $l28, $l29, $l30, $l31, $l32, $l33, $l34, $l35, $l36, $l37, $l38, $l39,%
- %$l40, $l41, $l42, $l43, $l44, $l45, $l46, $l47, $l48, $l49, $l50, $l51, $l52, $l53, $l54, $l55, $l56, $l57, $l58, $l59,%
- %$l60, $l61, $l62, $l63, $l64, $l65, $l66, $l67, $l68, $l69, $l70, $l71, $l72, $l73, $l74, $l75, $l76, $l77, $l78, $l79,%
- %$l80, $l81, $l82, $l83, $l84, $l85, $l86, $l87, $l88, $l89, $l90, $l91, $l92, $l93, $l94, $l95, $l96, $l97, $l98, $l99,%
- %$l100, $l101, $l102, $l103, $l104, $l105, $l106, $l107, $l108, $l109, $l110, $l111, $l112, $l113, $l114, $l115, $l116, $l117, $l118, $l119,%
- %$l120, $l121);"
- end
- end
|