Difference between revisions of "DroppedFile"
(Created page with "{{newin|0.10.0|100|type=type}} Represents a file dropped from the window. Note that DroppedFile type can only be obtained from love.filedropped callback and can't be...") |
m (grammar edits) |
||
Line 1: | Line 1: | ||
{{newin|[[0.10.0]]|100|type=type}} | {{newin|[[0.10.0]]|100|type=type}} | ||
− | Represents a file dropped | + | Represents a file dropped onto the window. |
− | Note that DroppedFile type can only be obtained from [[love.filedropped]] callback and can't be constructed manually by user. | + | Note that the DroppedFile type can only be obtained from [[love.filedropped]] callback, and can't be constructed manually by the user. |
== Functions == | == Functions == |
Latest revision as of 11:34, 15 December 2018
Available since LÖVE 0.10.0 |
This type is not supported in earlier versions. |
Represents a file dropped onto the window.
Note that the DroppedFile type can only be obtained from love.filedropped callback, and can't be constructed manually by the user.
Functions
These functions have parentheses in odd places. This is because the File: namespace is reserved in Mediawiki.
(File):close | Closes a File. | ||
(File):eof | If the end-of-file has been reached | 0.10.0 | |
(File):flush | Flushes any buffered written data in the file to disk. | 0.9.0 | |
(File):getBuffer | Gets the buffer mode of a file. | 0.9.0 | |
(File):getFilename | Gets the filename that the File object was created with. | 0.10.0 | |
(File):getMode | Gets the FileMode the file has been opened with. | 0.9.0 | |
(File):getSize | Returns the file size. | ||
(File):isEOF | Gets whether end-of-file has been reached. | 0.10.0 | |
(File):isOpen | Gets whether the file is open. | 0.9.0 | |
(File):lines | Iterate over all the lines in a file. | ||
(File):open | Open the file for write, read or append. | ||
(File):read | Read a number of bytes from a file | ||
(File):seek | Seek to a position in a file | ||
(File):setBuffer | Sets the buffer mode for a file opened for writing or appending. | 0.9.0 | |
(File):tell | Returns the position in the file. | ||
(File):write | Write data to a file. | ||
Object:release | Immediately destroys the object's Lua reference. | 11.0 | |
Object:type | Gets the type of the object as a string. | ||
Object:typeOf | Checks whether an object is of a certain type. |
Supertypes
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info