Open
Description
So, im trying to make a custom GObject.Object with custom props/signals but idk how to
atm i know how to define custom props
local MyClass = GObject.Object:derive('MyClass')
MyClass._property.my_property =
GObject.ParamSpecString('my_property', 'my_property', 'my_property', '', { 'READWRITE' })
MyClass._signal.my_signal = {} -- ????? idk what goes here
local obj = MyClass { my_property = 'Hello, World!' }
obj.my_property = 'New Value'
obj.on_my_signal = function() end -- do something
Metadata
Metadata
Assignees
Labels
No labels