Ejemplo n.º 1
0
static void
attached(struct rtb_element *elem,
		struct rtb_element *parent, struct rtb_window *window)
{
	SELF_FROM(elem);

	super.attached(elem, parent, window);
	self->type = rtb_type_ref(window, self->type,
			"net.illest.rutabaga.widgets.button");

	self->outer_pad.x = self->label.outer_pad.x;
	self->outer_pad.y = self->label.outer_pad.y;
}
Ejemplo n.º 2
0
static void
attached(struct rtb_element *elem,
		struct rtb_element *parent, struct rtb_window *window)
{
	SELF_FROM(elem);

	super.attached(elem, parent, window);
	self->type = rtb_type_ref(window, self->type,
			"net.illest.rutabaga.window");

	rtb_style_resolve_list(self, self->style_list);
	self->restyle(RTB_ELEMENT(self));
}
Ejemplo n.º 3
0
static void
attached(struct rtb_element *self,
		struct rtb_element *parent, struct rtb_window *window)
{
	struct rtb_element *iter;

	self->parent = parent;
	self->window = window;

	self->type = rtb_type_ref(window, NULL, "net.illest.rutabaga.element");

	self->layout_cb(self);

	TAILQ_FOREACH(iter, &self->children, child)
		self->child_attached(self, iter);

	change_state(self, RTB_STATE_NORMAL);
}