mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 17:52:16 +00:00
Added some missing methods and some ivars.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8442 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6297f7eaa5
commit
40a70f854b
1 changed files with 61 additions and 6 deletions
|
@ -33,6 +33,7 @@
|
||||||
#include <AppKit/NSActionCell.h>
|
#include <AppKit/NSActionCell.h>
|
||||||
|
|
||||||
@class NSFont;
|
@class NSFont;
|
||||||
|
@class NSSound;
|
||||||
|
|
||||||
typedef enum _NSButtonType {
|
typedef enum _NSButtonType {
|
||||||
NSMomentaryPushButton,
|
NSMomentaryPushButton,
|
||||||
|
@ -45,20 +46,42 @@ typedef enum _NSButtonType {
|
||||||
NSMomentaryLight
|
NSMomentaryLight
|
||||||
} NSButtonType;
|
} NSButtonType;
|
||||||
|
|
||||||
@interface NSButtonCell : NSActionCell <NSCopying, NSCoding>
|
typedef enum _NSBezelStyle {
|
||||||
|
NSRoundedBezelStyle,
|
||||||
|
NSRegularSquareBezelStyle,
|
||||||
|
NSThickSquareBezelStyle,
|
||||||
|
NSThickerSquareBezelStyle
|
||||||
|
} NSBezelStyle;
|
||||||
|
|
||||||
|
typedef enum _NSGradientType {
|
||||||
|
NSGradientNone,
|
||||||
|
NSGradientConcanveWeak,
|
||||||
|
NSGradientConcaveStrong,
|
||||||
|
NSGradientConvexWeak,
|
||||||
|
NSGradientConvexStrong
|
||||||
|
} NSGradientType;
|
||||||
|
|
||||||
|
|
||||||
|
@interface NSButtonCell : NSActionCell
|
||||||
{
|
{
|
||||||
// Attributes
|
// Attributes
|
||||||
NSString *_altContents;
|
NSString *_altContents;
|
||||||
NSImage *_altImage;
|
NSImage *_altImage;
|
||||||
NSString* _keyEquivalent;
|
NSString *_keyEquivalent;
|
||||||
NSFont* _keyEquivalentFont;
|
NSFont *_keyEquivalentFont;
|
||||||
|
NSSound *_sound;
|
||||||
unsigned int _keyEquivalentModifierMask;
|
unsigned int _keyEquivalentModifierMask;
|
||||||
unsigned int _highlightsByMask;
|
unsigned int _highlightsByMask;
|
||||||
unsigned int _showAltStateMask;
|
unsigned int _showAltStateMask;
|
||||||
float _delayInterval;
|
float _delayInterval;
|
||||||
float _repeatInterval;
|
float _repeatInterval;
|
||||||
|
NSBezelStyle _bezel_style;
|
||||||
|
NSGradientType _gradient_type;
|
||||||
|
BOOL _shows_border_only_while_mouse_inside;
|
||||||
|
BOOL _mouse_inside;
|
||||||
// Think of the following as a BOOL ivar
|
// Think of the following as a BOOL ivar
|
||||||
#define _buttoncell_is_transparent _cell.subclass_bool_one
|
#define _buttoncell_is_transparent _cell.subclass_bool_one
|
||||||
|
#define _image_dims_when_disabled _cell.subclass_bool_two
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -69,6 +92,17 @@ typedef enum _NSButtonType {
|
||||||
- (void)setFont:(NSFont *)fontObject;
|
- (void)setFont:(NSFont *)fontObject;
|
||||||
- (void)setTitle:(NSString *)aString;
|
- (void)setTitle:(NSString *)aString;
|
||||||
- (NSString *)title;
|
- (NSString *)title;
|
||||||
|
#ifndef STRICT_OPENSTEP
|
||||||
|
- (NSAttributedString *)attributedAlternateTitle;
|
||||||
|
- (NSAttributedString *)attributedTitle;
|
||||||
|
- (void)setAttributedAlternateTitle:(NSAttributedString *)aString;
|
||||||
|
- (void)setAttributedTitle:(NSAttributedString *)aString;
|
||||||
|
- (void)setTitleWithMnemonic:(NSString *)aString;
|
||||||
|
- (NSString *)alternateMnemonic;
|
||||||
|
- (unsigned)alternateMnemonicLocation;
|
||||||
|
- (void)setAlternateMnemonicLocation:(unsigned)location;
|
||||||
|
- (void)setAlternateTitleWithMnemonic:(NSString *)aString;
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Setting the Images
|
// Setting the Images
|
||||||
|
@ -103,6 +137,16 @@ typedef enum _NSButtonType {
|
||||||
//
|
//
|
||||||
- (BOOL)isTransparent;
|
- (BOOL)isTransparent;
|
||||||
- (void)setTransparent:(BOOL)flag;
|
- (void)setTransparent:(BOOL)flag;
|
||||||
|
#ifndef STRICT_OPENSTEP
|
||||||
|
- (NSBezelStyle)bezelStyle;
|
||||||
|
- (void)setBezelStyle:(NSBezelStyle)bezelStyle;
|
||||||
|
- (BOOL)showsBorderOnlyWhileMouseInside;
|
||||||
|
- (void)setShowsBorderOnlyWhileMouseInside:(BOOL)show;
|
||||||
|
- (NSGradientType)gradientType;
|
||||||
|
- (void)setGradientType:(NSGradientType)gradientType;
|
||||||
|
- (BOOL)imageDimsWhenDisabled;
|
||||||
|
- (void)setImageDimsWhenDisabled:(BOOL)flag;
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Modifying Graphic Attributes
|
// Modifying Graphic Attributes
|
||||||
|
@ -114,10 +158,21 @@ typedef enum _NSButtonType {
|
||||||
- (int)showsStateBy;
|
- (int)showsStateBy;
|
||||||
|
|
||||||
//
|
//
|
||||||
// NSCoding protocol
|
// Sound
|
||||||
//
|
//
|
||||||
- (void)encodeWithCoder:aCoder;
|
#ifndef STRICT_OPENSTEP
|
||||||
- initWithCoder:aDecoder;
|
- (void)setSound:(NSSound *)aSound;
|
||||||
|
- (NSSound *)sound;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//
|
||||||
|
// Mouse
|
||||||
|
//
|
||||||
|
#ifndef STRICT_OPENSTEP
|
||||||
|
- (void)mouseEntered:(NSEvent *)event;
|
||||||
|
- (void)mouseExited:(NSEvent *)event;
|
||||||
|
- (void)performClick:(id)sender;
|
||||||
|
#endif
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue