Пример #1
0
	// Constructor.
	public XClockEmbed(String title, int width, int height)
		: base(title, width, height)
	{
		embed = new EmbeddedApplication(this, 0, 0, width, height);
		embed.Program = "xclock";
		embed.Launch();
	}
Пример #2
0
 // Constructor.
 public AppGroupWidget(Display dpy, Screen screen, XAppGroup group,
                       EmbeddedApplication parent)
     : base(dpy, screen, DrawableKind.Widget, null)
 {
     embedParent = parent;
     handle      = (XDrawable)group;
     dpy.handleMap[(XWindow)handle] = this;
 }
		// Constructor.
		public AppGroupWidget(Display dpy, Screen screen, XAppGroup group,
							  EmbeddedApplication parent)
				: base(dpy, screen, DrawableKind.Widget, null)
				{
					embedParent = parent;
					handle = (XDrawable)group;
					dpy.handleMap[(XWindow)handle] = this;
				}