-
// wslib 2006 // set all fonts of a SCWindow at once + SCWindow { setFont { |font| font = (font ? Font.default) ? Font( "Helvetica", 12); view.children.do({|view| if( view.respondsTo( \font_ ) ) { view.font_( font ) }; if( view.respondsTo( ...
-
... Wouter Snoei /// workaround for String_GetBounds failure /// draws Strings with Font( "Monaco", 9 ) // partially obsolete but still here to prevent code breaking + String { *widthM9 { |n = 1| ^(n * 6) } // width of n chars in Font( "Monaco" ...
-
... lign_(\center); this.createLabel("🌵", height: 65, width: 256) .align_(\center) .font_(Font("Lucida Grande", 60)); this.createLabel("----------------", height: 10, width: 256).align_(\center); this.createLabel("", height: 10, width: 256).ali ...
-
... bstractLabel : SCViewHolder { *new { arg layout,string,width,height,minWidth=15,font; string = string.asString; if(font.isNil,{ font = GUI.font.new(*GUI.skin.fontSpecs) }); ^super.new.init(layout, Rect(0,0, width ?? {(string.bounds(font).wi ...
-
... ctLabel : SCViewHolder { *new { arg layout, string, width, height, minWidth=15, font; string = string.asString; if(font.isNil, { font = GUI.font.new(*GUI.skin.fontSpecs) }); ^super.new.init(layout, Rect(0, 0, width ?? {(string.bounds(font). ...
-
OSCIISlider { var slider, valueText, nameText, spec, lastval, font; *new { arg w, bounds, name, min=0.0, max=1.0, start=0.0, step=0.0, warp=\lin; ^super.new.initOSCIISlider(w, bounds, name, min, max, start, step, warp); } initOSCIISlider { ...
-
... Map !== barMap ) { barMap = newBarMap; this.rebuild; }; } makeViews { var ctrl, font; var bounds = Point( 122 + (viewHeight * 2), (viewHeight + 4) * (barMap.events.size + 3) ); skin = RoundView.skin; font = RoundView.skin.tryPerform( \at, \ ...
-
... Map !== barMap ) { barMap = newBarMap; this.rebuild; }; } makeViews { var ctrl, font; var bounds = Point( 122 + (viewHeight * 2), (viewHeight + 4) * (barMap.events.size + 3) ); skin = RoundView.skin; font = RoundView.skin.tryPerform( \at, \ ...
-
... playingProxies]) .action_({ arg view; selectMethod = view.items[view.value] }) .font_(font); Button(arZone, Rect(10, 10, 50, skin.headHeight)) .states_( [["reduce", skin.fontColor, skin.offColor]] ) .action_({ object !? { object.reduce } }) ...
-
... playingProxies]) .action_({ arg view; selectMethod = view.items[view.value] }) .font_(font); Button(arZone, Rect(10, 10, 50, skin.headHeight)) .states_( [["reduce", skin.fontcolor, skin.offColor]] ) .action_({ object !? { object.reduce } }) ...