love.textinput

love.textinput Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when text has been entered by the user. For example if shift-2 is pressed on an American keyboard layout, the text "@" will be generated. Function Synopsis love.textinput( text ) Arguments string text The UTF-8 encoded unicode text. Returns Nothing. Notes Although Lua strings can store UTF-8 encoded unicode text just fine, many functions in Lua's string library will not treat the text a

Canvas:getFilter

Canvas:getFilter Available since LÖVE 0.8.0 This function is not supported in earlier versions. Gets the filter mode of the Canvas. Function Synopsis min, mag = Canvas:getFilter( ) Arguments None. Returns FilterMode min Filter mode used when minifying the canvas. FilterMode mag Filter mode used when magnifying the canvas. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis min, mag, anisotropy = Canvas:getFilter( ) Arguments None. Retur

Font:getWidth

Font:getWidth Determines the horizontal size a line of text needs. Does not support line-breaks. Function Synopsis width = Font:getWidth( line ) Arguments string line A string. Returns number width The width of the line. See Also Font

Joint:destroy

Joint:destroy Explicitly destroys the Joint. An error will occur if you attempt to use the object after calling this function. In 0.7.2, when you don't have time to wait for garbage collection, this function may be used to free the object immediately. Function Synopsis Joint:destroy( ) Arguments None. Returns Nothing. See Also Joint

PulleyJoint:getRatio

PulleyJoint:getRatio Get the pulley ratio. Function Synopsis ratio = PulleyJoint:getRatio( ) Arguments None. Returns number ratio The pulley ratio of the joint. See Also PulleyJoint

MouseJoint:getTarget

MouseJoint:getTarget Gets the target point. Function Synopsis x, y = MouseJoint:getTarget( ) Arguments None. Returns number x The x-component of the target. number y The x-component of the target. See Also MouseJoint

CircleShape:getRadius

CircleShape:getRadius Gets the radius of the circle shape. Function Synopsis radius = CircleShape:getRadius( ) Arguments None. Returns number radius The radius of the circle See Also CircleShape

Fixture:getFilterData

Fixture:getFilterData Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the filter data of the fixture. Categories and masks are encoded as the bits of a 16-bit integer. Function Synopsis categories, mask, group = Fixture:getFilterData( ) Arguments None. Returns number categories The categories as an integer from 0 to 65535. number mask The mask as an integer from 0 to 65535. number group The group as an integer from -32768 to 32767. See Also Fixtu

Shape:computeAABB

Shape:computeAABB Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns the points of the bounding box for the transformed shape. Function Synopsis topLeftX, topLeftY, bottomRightX, bottomRightY = Shape:computeAABB( tx, ty, tr, childIndex ) Arguments number tx The translation of the shape on the x-axis. number ty The translation of the shape on the y-axis. number tr The shape rotation. number childIndex (1) The index of the child to compute the bounding

Joint:getCollideConnected

Joint:getCollideConnected Gets whether the connected Bodies collide. Function Synopsis c = Joint:getCollideConnected( ) Arguments None. Returns boolean c True if they collide, false otherwise. See Also Joint