(color)
| 61 | |
| 62 | |
| 63 | def _colorIsCGColorRef(color): |
| 64 | color = "(CGColorRef)(" + color + ")" |
| 65 | |
| 66 | result = fb.evaluateExpressionValue( |
| 67 | "(unsigned long)CFGetTypeID({color}) == (unsigned long)CGColorGetTypeID()".format( |
| 68 | color=color |
| 69 | ) |
| 70 | ) |
| 71 | |
| 72 | if result.GetError() is not None and str(result.GetError()) != "success": |
| 73 | print("got error: {}".format(result)) |
| 74 | return False |
| 75 | else: |
| 76 | isCFColor = result.GetValueAsUnsigned() != 0 |
| 77 | return isCFColor |
| 78 | |
| 79 | |
| 80 | def _showColor(color): |
no outgoing calls
no test coverage detected