开发者

What is the equivalent of g_param_spec_boxed() in Vala?

开发者 https://www.devze.com 2023-03-13 09:08 出处:网络
What is the equivalent of g_param_spec_boxed() in V开发者_开发技巧ala?These functions are not bound. It wouldn\'t be a big deal to bind them, so you can request them by reporting a bug.

What is the equivalent of g_param_spec_boxed() in V开发者_开发技巧ala?


These functions are not bound. It wouldn't be a big deal to bind them, so you can request them by reporting a bug. Anyway, unless you're doing something at run-time, you should use Vala properties such as:

public class Foo {
    public YourStruct your_struct { get; set; }
}

Which will create a property named your_struct for the boxed type YourStruct.

0

精彩评论

暂无评论...
验证码 换一张
取 消