Type [gd] | function |
Return value | boolean (true or false) |
Overview | This is a function to check if an object is the instance of a given class. |
See also | class |
Syntax
isObject() returns true if object is the instance of the given class.
Examples
local img = Image('moon.png')
if isObject(img, Image) then print('img is Image object') end |
댓글 없음:
댓글 쓰기