Difference between revisions of "IUP"

From Vendetta Lua
Jump to: navigation, search
(IUP moved to IUP Intro: Raison)
 
Line 1: Line 1:
#REDIRECT [[IUP Intro]]
+
=== Alarm ===
 +
'''Definition:'''
 +
<br>
 +
'''Description:'''<br>
 +
[http://www.tecgraf.puc-rio.br/iup/en/dlg/iupalarm.html]
 +
The ICON and PARENTDIALOG globals seem to be ignored
 +
<br>
 +
 
 +
=== Animate ===
 +
'''Definition:'''<br>
 +
Animate(userdate ctl, float xstart, ystart, wstart, hstart, xend, yend, wend, hend, length, int type) -> userdata dialog
 +
<br>
 +
'''Description:'''<br>
 +
Move and resize a control or dialog according to given parameters.
 +
<br>
 +
'''Arguments:'''<br>
 +
''ctl'' control or dialog to animate. The animation of controls i clipped to their parent dialog<br>
 +
''xstart'' initial horizontal position. value is relative to the screen. if nil the current position is used (0 - screenwidth)<br>
 +
''ystart'' initial vertical position<br>
 +
''wstart'' initial width<br>
 +
''hstart'' initial height<br>
 +
''xend'' final horizontal position<br>
 +
''yend'' final vertical position<br>
 +
''wend'' final width<br>
 +
''hend'' final height<br>
 +
''length'' animation time in milliseconds<br>
 +
''type'' animation type. if 1 bounce between initial and final state otherwise transform lineary from initial to final state
 +
<br>
 +
'''Example''' <br>
 +
<source lang="lua">
 +
 
 +
-- make a dialog and resize it to a size of 200x200
 +
do
 +
  local d = iup.dialog{iup.label{title="bla"}}
 +
  d:show()
 +
  iup.Animate(d, nil, nil, nil, nil, nil, nil, 200, 200, 1000, 0)
 +
end
 +
 
 +
-- make a dialog and bounce between the positions 10,10 and 200,10
 +
do
 +
  local d = iup.dialog{iup.label{title="bla"}}
 +
  d:show()
 +
  iup.Animate(d, 10, 10, nil, nil, 200, 10, nil, nil, 1000, 0)
 +
end
 +
</source>
 +
 
 +
 
 +
=== Appand ===
 +
'''Definition:'''
 +
<br>
 +
'''Description:'''<br>
 +
[http://www.tecgraf.puc-rio.br/iup/en/func/iupappend.html]
 +
<br>
 +
 
 +
 
 +
=== Button ===
 +
'''Definition:'''<br>
 +
Button(string title) -> userdata button
 +
<br>
 +
'''Description:''' <br>
 +
Create a button control. see [[API_iup_button|iup.button]]
 +
<br>
 +
'''Arguments:'''<br>
 +
''title'' button title
 +
<br>
 +
'''Returns:'''<br>
 +
''button'' [[API_iup_button|button]]
 +
<br>
 +
 
 +
 
 +
=== CancelDragDrop ===
 +
'''Definition:'''
 +
CancelDragDrop() -> nil
 +
<br>
 +
'''Description:'''<br>
 +
[[DragDrop]]
 +
<br>
 +
 
 +
 
 +
=== Canvas ===
 +
'''Definition:'''<br>
 +
Canvas() -> userdata canvas
 +
<br>
 +
'''Description:''' <br>
 +
Create a canvas. see [[API_iup_canvas|iup.canvas]]
 +
<br>
 +
'''Returns:'''<br>
 +
''canvas'' [[API_iup_canvas|canvas]]
 +
<br>
 +
 
 +
=== Cboxv ===
 +
'''Definition:'''<br>
 +
Cboxv(table controls) -> userdata canvas
 +
<br>
 +
'''Description:''' <br>
 +
Create a cbox. see [[API_iup_cbox|iup.cbox]]
 +
<br>
 +
'''Arguments:'''<br>
 +
''controls'' table with children of the box (optional)
 +
<br>
 +
'''Returns:'''<br>
 +
''canvas'' [[API_iup_cbox|cbox]]
 +
<br>
 +
 
 +
=== Destroy ===
 +
'''Definition:'''
 +
<br>
 +
'''Description:'''<br>
 +
[http://www.tecgraf.puc-rio.br/iup/en/func/iupdestroy.html]
 +
<br>
 +
 
 +
=== Detach ===
 +
'''Definition:'''
 +
<br>
 +
'''Description:'''<br>
 +
[http://www.tecgraf.puc-rio.br/iup/en/func/iupdetach.html]
 +
<br>
 +
 
 +
=== Dialog ===
 +
'''Definition:'''<br>
 +
Dialog(userdata control) -> userdata dialog
 +
<br>
 +
'''Description:''' <br>
 +
Create a dialog. see [[API_iup_dialog|iup.dialog]]
 +
<br>
 +
'''Arguments:'''<br>
 +
''control'' child of the dialog
 +
<br>
 +
'''Returns:'''<br>
 +
''canvas'' [[API_iup_dialog|dialog]]
 +
<br>
 +
 
 +
=== DoDragDrop ===
 +
'''Definition:'''
 +
DoDragDrop(dataobject, datasource, effectsallowed) -> nil
 +
<br>
 +
'''Description:'''<br>
 +
[[DragDrop]]
 +
<br>
 +
 
 +
=== FileDlg ===
 +
'''Definition:'''
 +
FileDlg() -> nil
 +
<br>
 +
'''Description:'''<br>
 +
does nothing
 +
<br>
 +
 
 +
=== Fill ===
 +
'''Definition:'''<br>
 +
Fill() -> userdata fill
 +
<br>
 +
'''Description:''' <br>
 +
Create a fill. see [[API_iup_fill|iup.fill]]
 +
<br>
 +
'''Returns:'''<br>
 +
''fill'' [[API_iup_fill|fill]]
 +
<br>
 +
 
 +
 
 +
=== Flush ===
 +
'''Definition:'''
 +
<br>
 +
'''Description:'''<br>
 +
[http://www.tecgraf.puc-rio.br/iup/en/func/iupflush.html]
 +
<br>
 +
 
 +
 
 +
=== Frame ===
 +
'''Definition:'''<br>
 +
Frame(userdata control) -> userdata frame
 +
<br>
 +
'''Description:''' <br>
 +
Create a frame. see [[API_iup_frame|iup.frame]]
 +
<br>
 +
'''Arguments:'''<br>
 +
''control'' child of the frame
 +
<br>
 +
'''Returns:'''<br>
 +
''frame'' [[API_iup_frame|frame]]
 +
<br>

Revision as of 22:48, 11 May 2010

Alarm

Definition:
Description:
[1] The ICON and PARENTDIALOG globals seem to be ignored

Animate

Definition:
Animate(userdate ctl, float xstart, ystart, wstart, hstart, xend, yend, wend, hend, length, int type) -> userdata dialog
Description:
Move and resize a control or dialog according to given parameters.
Arguments:
ctl control or dialog to animate. The animation of controls i clipped to their parent dialog
xstart initial horizontal position. value is relative to the screen. if nil the current position is used (0 - screenwidth)
ystart initial vertical position
wstart initial width
hstart initial height
xend final horizontal position
yend final vertical position
wend final width
hend final height
length animation time in milliseconds
type animation type. if 1 bounce between initial and final state otherwise transform lineary from initial to final state
Example

-- make a dialog and resize it to a size of 200x200
do 
   local d = iup.dialog{iup.label{title="bla"}} 
   d:show() 
   iup.Animate(d, nil, nil, nil, nil, nil, nil, 200, 200, 1000, 0) 
end
 
-- make a dialog and bounce between the positions 10,10 and 200,10
do 
   local d = iup.dialog{iup.label{title="bla"}} 
   d:show() 
   iup.Animate(d, 10, 10, nil, nil, 200, 10, nil, nil, 1000, 0) 
end


Appand

Definition:
Description:
[2]


Button

Definition:
Button(string title) -> userdata button
Description:
Create a button control. see iup.button
Arguments:
title button title
Returns:
button button


CancelDragDrop

Definition: CancelDragDrop() -> nil
Description:
DragDrop


Canvas

Definition:
Canvas() -> userdata canvas
Description:
Create a canvas. see iup.canvas
Returns:
canvas canvas

Cboxv

Definition:
Cboxv(table controls) -> userdata canvas
Description:
Create a cbox. see iup.cbox
Arguments:
controls table with children of the box (optional)
Returns:
canvas cbox

Destroy

Definition:
Description:
[3]

Detach

Definition:
Description:
[4]

Dialog

Definition:
Dialog(userdata control) -> userdata dialog
Description:
Create a dialog. see iup.dialog
Arguments:
control child of the dialog
Returns:
canvas dialog

DoDragDrop

Definition: DoDragDrop(dataobject, datasource, effectsallowed) -> nil
Description:
DragDrop

FileDlg

Definition: FileDlg() -> nil
Description:
does nothing

Fill

Definition:
Fill() -> userdata fill
Description:
Create a fill. see iup.fill
Returns:
fill fill


Flush

Definition:
Description:
[5]


Frame

Definition:
Frame(userdata control) -> userdata frame
Description:
Create a frame. see iup.frame
Arguments:
control child of the frame
Returns:
frame frame