示例#1
0
文件: control.c 项目: Geekbruce/libui
void uiUnixFinishControl(uiControl *c)
{
	g_object_ref_sink(GTK_WIDGET(uiControlHandle(c)));
	if (!isToplevel(c))
		gtk_widget_show(GTK_WIDGET(uiControlHandle(c)));
	c->CommitShow = defaultCommitShow;
	c->CommitHide = defaultCommitHide;
}
示例#2
0
	void Widget::mapLocal( int& x, int& y ) const
	{
		int gx, gy;

		if( isToplevel() )
			return;

		position( gx, gy );
		x -= gx;
		y -= gy;
	}
示例#3
0
	void Widget::mapGlobal( int&x, int& y ) const
	{
		int gx, gy;

		if( isToplevel() )
			return;

		position( gx, gy );
		x += gx;
		y += gy;
	}