mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 07:50:53 +00:00
Added missing ivars and rearranged them all.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8266 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c2f8b2e407
commit
45d762b709
1 changed files with 18 additions and 9 deletions
|
@ -35,6 +35,7 @@
|
|||
#include <AppKit/NSText.h>
|
||||
|
||||
@class NSString;
|
||||
@class NSMutableDictionary;
|
||||
@class NSView;
|
||||
@class NSFont;
|
||||
@class NSText;
|
||||
|
@ -114,24 +115,28 @@ enum {
|
|||
// Attributes
|
||||
NSString *_contents;
|
||||
NSImage *_cell_image;
|
||||
NSFont *_cell_font;
|
||||
NSMutableDictionary *_typingAttributes;
|
||||
id _objectValue;
|
||||
struct GSCellFlagsType {
|
||||
// total 29 bits. 3 bits left.
|
||||
// total 26 bits. 6 bits left.
|
||||
unsigned is_highlighted:1;
|
||||
unsigned is_disabled:1;
|
||||
unsigned is_editable:1;
|
||||
unsigned is_rich_text: 1;
|
||||
unsigned imports_graphics: 1;
|
||||
unsigned shows_first_responder:1;
|
||||
unsigned refuses_first_responder:1;
|
||||
unsigned sends_action_on_end_editing:1;
|
||||
unsigned is_bordered:1;
|
||||
unsigned is_bezeled:1;
|
||||
unsigned is_scrollable:1;
|
||||
unsigned is_selectable:1;
|
||||
unsigned is_continuous:1;
|
||||
unsigned float_autorange:1;
|
||||
unsigned wraps:1;
|
||||
unsigned allows_mixed_state:1;
|
||||
unsigned has_valid_object_value:1;
|
||||
unsigned text_align:3; // 5 values
|
||||
unsigned type:2; // 3 values
|
||||
unsigned image_position:4; // 7 values
|
||||
unsigned type:4; // 8 values (see NSButtonCell)
|
||||
unsigned entry_type:4; // 8 values
|
||||
// 2 bits reserved for subclass use
|
||||
unsigned subclass_bool_one:1;
|
||||
|
@ -140,12 +145,14 @@ enum {
|
|||
but who knows in the future */
|
||||
int state; // 3 values but one negative
|
||||
} _cell;
|
||||
unsigned char _mnemonic_location;
|
||||
unsigned int _cell_float_left;
|
||||
unsigned int _cell_float_right;
|
||||
id _represented_object;
|
||||
unsigned int _mouse_down_flags;
|
||||
unsigned int _action_mask;
|
||||
NSFormatter *_formatter;
|
||||
id _objectValue;
|
||||
NSMenu *_menu;
|
||||
id _represented_object;
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -409,6 +416,8 @@ enum {
|
|||
//
|
||||
@interface NSCell (PrivateMethods)
|
||||
|
||||
- (NSColor*) textColor;
|
||||
- (NSSize) _sizeText: (NSString*) title;
|
||||
- (void) _drawText: (NSString*)aString inFrame: (NSRect)aRect;
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue