コード例 #1
0
/*----------------------------------------------------------------------*/
static void
ClassPartInit(WidgetClass wc)
{
	XfePrimitiveWidgetClass cc = (XfePrimitiveWidgetClass) wc;
	XfePrimitiveWidgetClass sc = (XfePrimitiveWidgetClass) wc->core_class.superclass;

	/* Resolve inheritance of all XfePrimitive class methods */
	_XfeResolve(cc,sc,xfe_primitive_class,bit_gravity,
				XfeInheritBitGravity);
   
	_XfeResolve(cc,sc,xfe_primitive_class,preferred_geometry,
				XfeInheritPreferredGeometry);

	_XfeResolve(cc,sc,xfe_primitive_class,minimum_geometry,
				XfeInheritMinimumGeometry);
   
	_XfeResolve(cc,sc,xfe_primitive_class,update_rect,
				XfeInheritUpdateRect);

	_XfeResolve(cc,sc,xfe_primitive_class,layout_components,
				XfeInheritLayoutComponents);
   
	_XfeResolve(cc,sc,xfe_primitive_class,draw_background,
				XfeInheritDrawBackground);
   
	_XfeResolve(cc,sc,xfe_primitive_class,draw_shadow,
				XfeInheritDrawShadow);
   
	_XfeResolve(cc,sc,xfe_primitive_class,draw_components,
				XfeInheritDrawComponents);
}
コード例 #2
0
/*----------------------------------------------------------------------*/
static void
ClassPartInit(WidgetClass wc)
{
    XfeComboBoxWidgetClass cc = (XfeComboBoxWidgetClass) wc;
    XfeComboBoxWidgetClass sc = (XfeComboBoxWidgetClass) wc->core_class.superclass;

    _XfeResolve(cc,sc,xfe_combo_box_class,layout_title,
				XfeInheritLayoutTitle);

    _XfeResolve(cc,sc,xfe_combo_box_class,layout_arrow,
				XfeInheritLayoutArrow);

    _XfeResolve(cc,sc,xfe_combo_box_class,draw_highlight,
				XfeInheritDrawHighlight);
   
    _XfeResolve(cc,sc,xfe_combo_box_class,draw_title_shadow,
				XfeInheritDrawTitleShadow);
}