예제 #1
0
static void soy_widgets_vbox_class_init (soywidgetsVBoxClass * klass) {
	soy_widgets_vbox_parent_class = g_type_class_peek_parent (klass);
	SOY_WIDGETS_WIDGET_CLASS (klass)->add = soy_widgets_vbox_real_add;
	SOY_WIDGETS_WIDGET_CLASS (klass)->remove = soy_widgets_vbox_real_remove;
	SOY_WIDGETS_WIDGET_CLASS (klass)->render = soy_widgets_vbox_real_render;
	SOY_WIDGETS_CONTAINER_CLASS (klass)->resize_children = soy_widgets_vbox_real_resize_children;
}
예제 #2
0
파일: VScroll.c 프로젝트: RONNCC/pysoy
static void soy_widgets_vscroll_class_init (soywidgetsVScrollClass * klass) {
	soy_widgets_vscroll_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (soywidgetsVScrollPrivate));
	SOY_WIDGETS_WIDGET_CLASS (klass)->render = soy_widgets_vscroll_real_render;
	SOY_WIDGETS_CONTAINER_CLASS (klass)->resize_children = soy_widgets_vscroll_real_resize_children;
	SOY_WIDGETS_SCROLLER_CLASS (klass)->motion_handler = soy_widgets_vscroll_real_motion_handler;
	SOY_WIDGETS_SCROLLER_CLASS (klass)->scroll_handler = soy_widgets_vscroll_real_scroll_handler;
	G_OBJECT_CLASS (klass)->finalize = soy_widgets_vscroll_finalize;
}