Home | History | Annotate | Download | only in mac

Lines Matching full:buttoncell

333 static void setupButtonCell(NSButtonCell *&buttonCell, ControlPart part, ControlStates states, const IntRect& zoomedRect, float zoomFactor)
335 if (!buttonCell) {
336 buttonCell = [[NSButtonCell alloc] init];
337 [buttonCell setTitle:nil];
338 [buttonCell setButtonType:NSMomentaryPushInButton];
340 [buttonCell setKeyEquivalent:@"\r"];
347 [buttonCell setBezelStyle:NSRoundedDisclosureBezelStyle];
353 if ([buttonCell bezelStyle] != NSShadowlessSquareBezelStyle)
354 [buttonCell setBezelStyle:NSShadowlessSquareBezelStyle];
355 } else if ([buttonCell bezelStyle] != NSRoundedBezelStyle)
356 [buttonCell setBezelStyle:NSRoundedBezelStyle];
358 setControlSize(buttonCell, sizes, zoomedRect.size(), zoomFactor);
361 updateStates(buttonCell, states);
377 NSButtonCell *buttonCell = button(part, states, zoomedRect, zoomFactor);
380 NSControlSize controlSize = [buttonCell controlSize];
389 if ([buttonCell bezelStyle] == NSRoundedBezelStyle) {
413 [window setDefaultButtonCell:buttonCell];
414 wkAdvanceDefaultButtonPulseAnimation(buttonCell);
415 } else if ([previousDefaultButtonCell isEqual:buttonCell])
426 [buttonCell drawWithFrame:NSRect(inflatedRect) inView:view];
427 [buttonCell setControlView:nil];
432 if (![previousDefaultButtonCell isEqual:buttonCell])