Home | History | Annotate | Download | only in mac

Lines Matching refs:states

155 static void updateStates(NSCell* cell, ControlStates states)
161 bool pressed = states & PressedState;
167 bool enabled = states & EnabledState;
174 bool focused = states & FocusState;
181 bool indeterminate = (states & IndeterminateState);
182 bool checked = states & CheckedState;
191 static ThemeDrawState convertControlStatesToThemeDrawState(ThemeButtonKind kind, ControlStates states)
193 if (states & ReadOnlyState)
195 if (!(states & EnabledState))
199 if (states & PressedState) {
201 return states & SpinUpState ? kThemeStatePressedUp : kThemeStatePressedDown;
254 static NSButtonCell *checkbox(ControlStates states, const IntRect& zoomedRect, float zoomFactor)
268 // Update the various states we respond to.
269 updateStates(checkboxCell, states);
275 static void paintCheckbox(ControlStates states, GraphicsContext* context, const IntRect& zoomedRect, float zoomFactor, ScrollView* scrollView)
280 NSButtonCell *checkboxCell = checkbox(states, zoomedRect, zoomFactor);
301 if (states & FocusState)
338 static NSButtonCell *radio(ControlStates states, const IntRect& zoomedRect, float zoomFactor)
351 // Update the various states we respond to.
352 updateStates(radioCell, states);
357 static void paintRadio(ControlStates states, GraphicsContext* context, const IntRect& zoomedRect, float zoomFactor, ScrollView* scrollView)
360 NSButtonCell *radioCell = radio(states, zoomedRect, zoomFactor);
382 if (states & FocusState)
409 static void setUpButtonCell(NSButtonCell *cell, ControlPart part, ControlStates states, const IntRect& zoomedRect, float zoomFactor)
422 // Update the various states we respond to.
423 updateStates(cell, states);
426 static NSButtonCell *button(ControlPart part, ControlStates states, const IntRect& zoomedRect, float zoomFactor)
434 setUpButtonCell(cell, part, states, zoomedRect, zoomFactor);
438 static void paintButton(ControlPart part, ControlStates states, GraphicsContext* context, const IntRect& zoomedRect, float zoomFactor, ScrollView* scrollView)
443 NSButtonCell *buttonCell = button(part, states, zoomedRect, zoomFactor);
476 if (states & FocusState)
504 static void paintStepper(ControlStates states, GraphicsContext* context, const IntRect& zoomedRect, float zoomFactor, ScrollView*)
511 drawInfo.state = convertControlStatesToThemeDrawState(kThemeIncDecButton, states);
652 void ThemeMac::inflateControlPaintRect(ControlPart part, ControlStates states, IntRect& zoomedRect, float zoomFactor) const
659 NSCell *cell = checkbox(states, zoomedRect, zoomFactor);
670 NSCell *cell = radio(states, zoomedRect, zoomFactor);
680 NSButtonCell *cell = button(part, states, zoomedRect, zoomFactor);
707 void ThemeMac::paint(ControlPart part, ControlStates states, GraphicsContext* context, const IntRect& zoomedRect, float zoomFactor, ScrollView* scrollView) const
711 paintCheckbox(states, context, zoomedRect, zoomFactor, scrollView);
714 paintRadio(states, context, zoomedRect, zoomFactor, scrollView);
719 paintButton(part, states, context, zoomedRect, zoomFactor, scrollView);
722 paintStepper(states, context, zoomedRect, zoomFactor, scrollView);