Instance Method
hasAttribute(_:inPalette:) hasAttribute:inPalette: hasAttribute_inPalette_
Checks if the specified palette index has the given attribute.
Declaration
func hasAttribute(
_ attribute: GSPalettes.Attribute,
inPalette paletteIdx: UInt
) -> BoolDeclaration
- (BOOL) hasAttribute:(GSPalettesAttribute) attribute
inPalette:(NSUInteger) paletteIdx;Declaration
hasAttribute_inPalette_(
attribute: GSPalettesAttribute,
paletteIdx: int
) -> boolParameters
attributeThe attribute to check.
paletteIdxThe index of the palette.
Return Value
YES if the palette has the attribute, NO otherwise.