public Window(string title, WindowStyle style) { Insist.isNotNull(title, "title cannot be null"); touchable = Touchable.Enabled; clip = true; titleLabel = new Label(title, new LabelStyle(style.titleFont, style.titleFontColor)); titleLabel.setEllipsis(true); titleTable = new Table(); titleTable.add(titleLabel).setExpandX().setFillX().setMinWidth(0); addElement(titleTable); setStyle(style); width = 150; height = 150; }
public Window( string title, WindowStyle style ) { Assert.isNotNull( title, "title cannot be null" ); touchable = Touchable.Enabled; clip = true; titleLabel = new Label( title, new LabelStyle( style.titleFont, style.titleFontColor ) ); titleLabel.setEllipsis( true ); titleTable = new Table(); titleTable.add( titleLabel ).setExpandX().setFillX().setMinWidth( 0 ); addElement( titleTable ); setStyle( style ); width = 150; height = 150; }