def is_attr_resizable()
self.is_attr_xxx("resizable");
end
+ def is_attr_opencheckable()
+ self.is_attr_xxx("opencheckable");
+ end
def is_exportevent_draw()
self.is_exportevent_xxx("draw");
end
IMPORT W <%= self.struct_name() %>_scrollworkarea(<%= self.struct_name() %>_t *window, W dh, W dv);
IMPORT W <%= self.struct_name() %>_getworkrect(<%= self.struct_name() %>_t *window, RECT *r);
<%- end -%>
+<%- if self.is_attr_opencheckable() -%>
+IMPORT Bool <%= self.struct_name() %>_isopen(<%= self.struct_name() %>_t *window);
+<%- end -%>
<%- if self.is_exportevent_paste() -%>
IMPORT VOID <%= self.struct_name() %>_responsepasterequest(<%= self.struct_name() %>_t *window, W nak, PNT *pos);
<%- end -%>
}
<%- end -%>
+<%- if self.is_attr_opencheckable() -%>
+EXPORT Bool <%= self.struct_name() %>_isopen(<%= self.struct_name() %>_t *window)
+{
+ if (window->wid < 0) {
+ return False;
+ }
+ return True;
+}
+
+<%- end -%>
<%- if self.is_exportevent_paste() -%>
EXPORT VOID <%= self.struct_name() %>_responsepasterequest(<%= self.struct_name() %>_t *window, W nak, PNT *pos)
{