mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 18:01:56 +00:00
Prefixed all ivars with underscores, removed unneded ivars and
added some missing methods and types. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8455 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
072eb56c2a
commit
7e71992b46
1 changed files with 26 additions and 34 deletions
|
@ -33,15 +33,8 @@
|
||||||
|
|
||||||
@class NSString;
|
@class NSString;
|
||||||
@class NSDictionary;
|
@class NSDictionary;
|
||||||
|
|
||||||
@class NSPasteboard;
|
@class NSPasteboard;
|
||||||
|
@class NSImage;
|
||||||
// What component should we take values from
|
|
||||||
// Bitmask - more than one component set may be valid.
|
|
||||||
#define GNUSTEP_GUI_RGB_ACTIVE 1
|
|
||||||
#define GNUSTEP_GUI_CMYK_ACTIVE 2
|
|
||||||
#define GNUSTEP_GUI_HSB_ACTIVE 4
|
|
||||||
#define GNUSTEP_GUI_WHITE_ACTIVE 8
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
NSGrayModeColorPanel,
|
NSGrayModeColorPanel,
|
||||||
|
@ -64,19 +57,24 @@ enum {
|
||||||
NSColorPanelAllModesMask
|
NSColorPanelAllModesMask
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef enum _NSControlTint {
|
||||||
|
NSDefaultControlTint,
|
||||||
|
NSClearControlTint
|
||||||
|
} NSControlTint;
|
||||||
|
|
||||||
@interface NSColor : NSObject <NSCoding, NSCopying>
|
@interface NSColor : NSObject <NSCoding, NSCopying>
|
||||||
{
|
{
|
||||||
// Attributes
|
// Attributes
|
||||||
NSString *colorspace_name;
|
NSString *_colorspace_name;
|
||||||
NSString *catalog_name;
|
NSString *_catalog_name;
|
||||||
NSString *color_name;
|
NSString *_color_name;
|
||||||
|
|
||||||
struct _GNU_RGB_component
|
struct _GNU_RGB_component
|
||||||
{
|
{
|
||||||
float red;
|
float red;
|
||||||
float green;
|
float green;
|
||||||
float blue;
|
float blue;
|
||||||
} RGB_component;
|
} _RGB_component;
|
||||||
|
|
||||||
struct _GNU_CMYK_component
|
struct _GNU_CMYK_component
|
||||||
{
|
{
|
||||||
|
@ -84,26 +82,21 @@ enum {
|
||||||
float magenta;
|
float magenta;
|
||||||
float yellow;
|
float yellow;
|
||||||
float black;
|
float black;
|
||||||
} CMYK_component;
|
} _CMYK_component;
|
||||||
|
|
||||||
struct _GNU_HSB_component
|
struct _GNU_HSB_component
|
||||||
{
|
{
|
||||||
float hue;
|
float hue;
|
||||||
float saturation;
|
float saturation;
|
||||||
float brightness;
|
float brightness;
|
||||||
} HSB_component;
|
} _HSB_component;
|
||||||
|
|
||||||
float white_component;
|
float _white_component;
|
||||||
|
|
||||||
int active_component;
|
float _alpha_component;
|
||||||
float alpha_component;
|
|
||||||
|
|
||||||
BOOL is_clear;
|
int _active_component;
|
||||||
|
int _valid_components;
|
||||||
// Reserved for back-end use
|
|
||||||
void *be_color_reserved;
|
|
||||||
|
|
||||||
int valid_components;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -228,22 +221,16 @@ enum {
|
||||||
- (void)drawSwatchInRect:(NSRect)rect;
|
- (void)drawSwatchInRect:(NSRect)rect;
|
||||||
- (void)set;
|
- (void)set;
|
||||||
|
|
||||||
//
|
|
||||||
// NSCoding protocol
|
|
||||||
//
|
|
||||||
- (void)encodeWithCoder:aCoder;
|
|
||||||
- initWithCoder:aDecoder;
|
|
||||||
|
|
||||||
#ifndef STRICT_OPENSTEP
|
#ifndef STRICT_OPENSTEP
|
||||||
//
|
//
|
||||||
// Changing the color
|
// Changing the color
|
||||||
//
|
//
|
||||||
- (NSColor*) blendedColorWithFraction: (float)fraction
|
|
||||||
ofColor: (NSColor*)aColor;
|
|
||||||
- (NSColor*) colorWithAlphaComponent: (float)alpha;
|
|
||||||
- (NSColor*) highlightWithLevel: (float)level;
|
- (NSColor*) highlightWithLevel: (float)level;
|
||||||
- (NSColor*) shadowWithLevel: (float)level;
|
- (NSColor*) shadowWithLevel: (float)level;
|
||||||
|
|
||||||
|
+ (NSColor*) colorWithPatternImage:(NSImage*)image;
|
||||||
|
+ (NSColor*) colorForControlTint:(NSControlTint)controlTint;
|
||||||
|
|
||||||
//
|
//
|
||||||
// System colors stuff.
|
// System colors stuff.
|
||||||
//
|
//
|
||||||
|
@ -256,27 +243,32 @@ enum {
|
||||||
+ (NSColor*) controlTextColor;
|
+ (NSColor*) controlTextColor;
|
||||||
+ (NSColor*) disabledControlTextColor;
|
+ (NSColor*) disabledControlTextColor;
|
||||||
+ (NSColor*) gridColor;
|
+ (NSColor*) gridColor;
|
||||||
|
+ (NSColor*) headerColor;
|
||||||
|
+ (NSColor*) headerTextColor;
|
||||||
+ (NSColor*) highlightColor;
|
+ (NSColor*) highlightColor;
|
||||||
|
+ (NSColor*) keyboardFocusIndicatorColor;
|
||||||
+ (NSColor*) knobColor;
|
+ (NSColor*) knobColor;
|
||||||
+ (NSColor*) scrollBarColor;
|
+ (NSColor*) scrollBarColor;
|
||||||
+ (NSColor*) selectedControlColor;
|
+ (NSColor*) selectedControlColor;
|
||||||
+ (NSColor*) selectedControlTextColor;
|
+ (NSColor*) selectedControlTextColor;
|
||||||
|
+ (NSColor*) selectedKnobColor;
|
||||||
+ (NSColor*) selectedMenuItemColor;
|
+ (NSColor*) selectedMenuItemColor;
|
||||||
+ (NSColor*) selectedMenuItemTextColor;
|
+ (NSColor*) selectedMenuItemTextColor;
|
||||||
+ (NSColor*) selectedTextBackgroundColor;
|
+ (NSColor*) selectedTextBackgroundColor;
|
||||||
+ (NSColor*) selectedTextColor;
|
+ (NSColor*) selectedTextColor;
|
||||||
+ (NSColor*) selectedKnobColor;
|
|
||||||
+ (NSColor*) shadowColor;
|
+ (NSColor*) shadowColor;
|
||||||
+ (NSColor*) textBackgroundColor;
|
+ (NSColor*) textBackgroundColor;
|
||||||
+ (NSColor*) textColor;
|
+ (NSColor*) textColor;
|
||||||
|
+ (NSColor*) windowBackgroundColor;
|
||||||
+ (NSColor*) windowFrameColor;
|
+ (NSColor*) windowFrameColor;
|
||||||
+ (NSColor*) windowFrameTextColor;
|
+ (NSColor*) windowFrameTextColor;
|
||||||
|
|
||||||
extern NSString *NSSystemColorsDidChangeNotification;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
extern NSString *NSSystemColorsDidChangeNotification;
|
||||||
|
|
||||||
#ifndef STRICT_MACOS_X
|
#ifndef STRICT_MACOS_X
|
||||||
@interface NSCoder (NSCoderAdditions)
|
@interface NSCoder (NSCoderAdditions)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue