mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 21:00:47 +00:00
Document some typedefs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24351 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bf0b1921cf
commit
6f754401c4
6 changed files with 93 additions and 18 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2007-01-14 Stefan Bidigaray
|
||||||
|
|
||||||
|
* Source/NSWindow.m:
|
||||||
|
* Source/NSBitmapImageRep.m:
|
||||||
|
* Headers/AppKit/NSBitmapImageRep.h:
|
||||||
|
* Headers/AppKit/NSApplication.h:
|
||||||
|
* Headers/AppKit/NSView.h:
|
||||||
|
Document various bits and pieces, mostly typedefs.
|
||||||
|
|
||||||
2007-01-13 Matt Rice <ratmice@gmail.com>
|
2007-01-13 Matt Rice <ratmice@gmail.com>
|
||||||
|
|
||||||
* Source/NSMatrix.m (_selectCell:atRow:column:): Call setNextState
|
* Source/NSMatrix.m (_selectCell:atRow:column:): Call setNextState
|
||||||
|
|
|
@ -72,12 +72,28 @@ enum {
|
||||||
#if OS_API_VERSION(GS_API_MACOSX, GS_API_LATEST)
|
#if OS_API_VERSION(GS_API_MACOSX, GS_API_LATEST)
|
||||||
#define NSUpdateWindowsRunLoopOrdering 600000
|
#define NSUpdateWindowsRunLoopOrdering 600000
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returned by -applicationShouldTerminate: when -terminate: is called.
|
||||||
|
* Possible types include:
|
||||||
|
* <example>
|
||||||
|
* NSTerminateCancel;
|
||||||
|
* NSTerminateNow;
|
||||||
|
* NSTerminateLater.
|
||||||
|
* </example>
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
NSTerminateCancel = NO,
|
NSTerminateCancel = NO,
|
||||||
NSTerminateNow = YES,
|
NSTerminateNow = YES,
|
||||||
NSTerminateLater
|
NSTerminateLater
|
||||||
} NSApplicationTerminateReply;
|
} NSApplicationTerminateReply;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Type used by -requestUserAttention: when an applications opened. Possible values are:
|
||||||
|
* <example>
|
||||||
|
* NSCriticalRequest;
|
||||||
|
* NSInformationalRequest;
|
||||||
|
* </example>
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
NSCriticalRequest,
|
NSCriticalRequest,
|
||||||
NSInformationalRequest
|
NSInformationalRequest
|
||||||
|
|
|
@ -40,6 +40,18 @@
|
||||||
@class NSMutableData;
|
@class NSMutableData;
|
||||||
@class NSColor;
|
@class NSColor;
|
||||||
|
|
||||||
|
/** Describes the type of compression used on an image. Possible compressions:
|
||||||
|
<list>
|
||||||
|
<item> NSTIFFCompressionNone; </item>
|
||||||
|
<item> NSTIFFCompressionCCITTFAX3; </item>
|
||||||
|
<item> NSTIFFCompressionCCITFAX4; </item>
|
||||||
|
<item> NSTIFFCompressionLZW; </item>
|
||||||
|
<item> NSTIFFCompressionOldJPEG; </item>
|
||||||
|
<item> NSTIFFCompressionJPEG; </item>
|
||||||
|
<item> NSTIFFCompressionNEXT; </item>
|
||||||
|
<item> NSTIFFCompressionPackBits. </item>
|
||||||
|
</list>
|
||||||
|
*/
|
||||||
typedef enum _NSTIFFCompression {
|
typedef enum _NSTIFFCompression {
|
||||||
NSTIFFCompressionNone = 1,
|
NSTIFFCompressionNone = 1,
|
||||||
NSTIFFCompressionCCITTFAX3,
|
NSTIFFCompressionCCITTFAX3,
|
||||||
|
@ -52,6 +64,16 @@ typedef enum _NSTIFFCompression {
|
||||||
} NSTIFFCompression;
|
} NSTIFFCompression;
|
||||||
|
|
||||||
#if OS_API_VERSION(GS_API_MACOSX, GS_API_LATEST)
|
#if OS_API_VERSION(GS_API_MACOSX, GS_API_LATEST)
|
||||||
|
/** Type of image
|
||||||
|
<list>
|
||||||
|
<item> NSTIFFFileType; </item>
|
||||||
|
<item> NSBMPFileType; Not implemented </item>
|
||||||
|
<item> NSGIFFileType; </item>
|
||||||
|
<item> NSJPEGFileType; </item>
|
||||||
|
<item> NSPNGFileType; </item>
|
||||||
|
<item> NSJPEG2000FileType. Not implemented </item>
|
||||||
|
</list>
|
||||||
|
*/
|
||||||
typedef enum _NSBitmapImageFileType {
|
typedef enum _NSBitmapImageFileType {
|
||||||
NSTIFFFileType = 0,
|
NSTIFFFileType = 0,
|
||||||
NSBMPFileType = 1,
|
NSBMPFileType = 1,
|
||||||
|
|
|
@ -53,10 +53,14 @@
|
||||||
typedef int NSTrackingRectTag;
|
typedef int NSTrackingRectTag;
|
||||||
typedef int NSToolTipTag;
|
typedef int NSToolTipTag;
|
||||||
|
|
||||||
/*
|
/** Describes the type of border used by an NSView.
|
||||||
* constants representing the four types of borders that
|
<list>
|
||||||
* can appear around an NSView
|
<item>NSNoBorder</item>
|
||||||
*/
|
<item>NSLineBorder</item>
|
||||||
|
<item>NSBezelBorder</item>
|
||||||
|
<item>NSGrooveBorder</item>
|
||||||
|
</list>
|
||||||
|
*/
|
||||||
typedef enum _NSBorderType {
|
typedef enum _NSBorderType {
|
||||||
NSNoBorder,
|
NSNoBorder,
|
||||||
NSLineBorder,
|
NSLineBorder,
|
||||||
|
|
|
@ -784,9 +784,8 @@
|
||||||
return [NSData dataWithBytesNoCopy: bytes length: length];
|
return [NSData dataWithBytesNoCopy: bytes length: length];
|
||||||
}
|
}
|
||||||
|
|
||||||
/** <p> Returns a data object in the selected format with multiple images. See Also:
|
/** <p> Returns a data object in the selected format with multiple images.</p>
|
||||||
-representationUsingType:properties: for a list of supported file types. See Also:
|
<p> See Also: -setProperty:withValue: for the options supported in the properties.</p>
|
||||||
-setProperty:withValue: for the options supported in the properties.</p>
|
|
||||||
<p> FIXME: returns only the first image in the array, and only works for
|
<p> FIXME: returns only the first image in the array, and only works for
|
||||||
NSBitmapImageRep or subclasses thereof. </p>
|
NSBitmapImageRep or subclasses thereof. </p>
|
||||||
*/
|
*/
|
||||||
|
@ -814,17 +813,8 @@
|
||||||
|
|
||||||
/** <p> Returns a data object in one of the supported bitmap graphics file types.
|
/** <p> Returns a data object in one of the supported bitmap graphics file types.
|
||||||
A limited set of options may be passed via the properties. If the passed in properties is nil,
|
A limited set of options may be passed via the properties. If the passed in properties is nil,
|
||||||
it falls back to the options set with -setProperty:withValue:. Some file types are not
|
it falls back to the options set with -setProperty:withValue:. File types not yet
|
||||||
implemented yet; they return nil and log an error message.</p>
|
implemented return nil and log an error message.</p>
|
||||||
<p> NSBitmapImageFileType </p>
|
|
||||||
<list>
|
|
||||||
<item> NSTIFFFileType = 0; TIFF is supported </item>
|
|
||||||
<item> NSBMPFileType = 1; BMP is not implemented </item>
|
|
||||||
<item> NSGIFFileType = 2; GIF is supported </item>
|
|
||||||
<item> NSJPEGFileType = 3; JPEG is supported </item>
|
|
||||||
<item> NSPNGFileType = 4; PNG is supported </item>
|
|
||||||
<item> NSJPEG2000FileType = 5; JPEG-2000 is not implemented </item>
|
|
||||||
</list>
|
|
||||||
<p> See Also: -setProperty:withValue: for supported options in the properties. </p>
|
<p> See Also: -setProperty:withValue: for supported options in the properties. </p>
|
||||||
*/
|
*/
|
||||||
- (NSData *)representationUsingType:(NSBitmapImageFileType)storageType
|
- (NSData *)representationUsingType:(NSBitmapImageFileType)storageType
|
||||||
|
|
|
@ -3799,6 +3799,9 @@ resetCursorRectsForView(NSView *theView)
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** If aView responds to -nextValidKeyView with a new NSView, call
|
||||||
|
-makeFirstResponder: for the returned view.
|
||||||
|
*/
|
||||||
- (void) selectKeyViewFollowingView: (NSView*)aView
|
- (void) selectKeyViewFollowingView: (NSView*)aView
|
||||||
{
|
{
|
||||||
NSView *theView = nil;
|
NSView *theView = nil;
|
||||||
|
@ -3817,6 +3820,9 @@ resetCursorRectsForView(NSView *theView)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** If aView responds to -previousValidKeyView with a new NSView, call
|
||||||
|
-makeFirstResponder: for this view.
|
||||||
|
*/
|
||||||
- (void) selectKeyViewPrecedingView: (NSView*)aView
|
- (void) selectKeyViewPrecedingView: (NSView*)aView
|
||||||
{
|
{
|
||||||
NSView *theView = nil;
|
NSView *theView = nil;
|
||||||
|
@ -3835,6 +3841,15 @@ resetCursorRectsForView(NSView *theView)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** This method checks if:
|
||||||
|
<list>
|
||||||
|
<item>_firstResponder answers to -nextValidKeyView</item>
|
||||||
|
<item>_initialFirstResponder answers to -acceptsFirstResponder</item>
|
||||||
|
<item>_initialFirstResponder answers to -previousValidKeyView</item>
|
||||||
|
</list>
|
||||||
|
If any of these checks return a NSView, call -makeFirstResponder: on
|
||||||
|
this NSView.
|
||||||
|
*/
|
||||||
- (void) selectNextKeyView: (id)sender
|
- (void) selectNextKeyView: (id)sender
|
||||||
{
|
{
|
||||||
NSView *theView = nil;
|
NSView *theView = nil;
|
||||||
|
@ -3862,6 +3877,15 @@ resetCursorRectsForView(NSView *theView)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** This method checks if:
|
||||||
|
<list>
|
||||||
|
<item>_firstResponder answers to -previousValidKeyView</item>
|
||||||
|
<item>_initialFirstResponder answers to -acceptsFirstResponder</item>
|
||||||
|
<item>_initialFirstResponder answers to -previousValidKeyView</item>
|
||||||
|
</list>
|
||||||
|
If any of these checks return a NSView, call -makeFirstResponder: on
|
||||||
|
this NSView.
|
||||||
|
*/
|
||||||
- (void) selectPreviousKeyView: (id)sender
|
- (void) selectPreviousKeyView: (id)sender
|
||||||
{
|
{
|
||||||
NSView *theView = nil;
|
NSView *theView = nil;
|
||||||
|
@ -3893,6 +3917,16 @@ resetCursorRectsForView(NSView *theView)
|
||||||
// to know whether they have received it from the window, and
|
// to know whether they have received it from the window, and
|
||||||
// if so, in which direction is the selection moving (so that they know
|
// if so, in which direction is the selection moving (so that they know
|
||||||
// if they should select the last or the first editable cell).
|
// if they should select the last or the first editable cell).
|
||||||
|
/** Returns the value of _selectionDirection, the direction of the
|
||||||
|
current key view.<br />
|
||||||
|
See Also:
|
||||||
|
<list>
|
||||||
|
<item>-selectKeyViewFollowingView:</item>
|
||||||
|
<item>-selectKeyViewPrecedingView:</item>
|
||||||
|
<item>-selectNextKeyView:</item>
|
||||||
|
<item>-selectPreviousKeyView:</item>
|
||||||
|
</list>
|
||||||
|
*/
|
||||||
- (NSSelectionDirection) keyViewSelectionDirection
|
- (NSSelectionDirection) keyViewSelectionDirection
|
||||||
{
|
{
|
||||||
return _selectionDirection;
|
return _selectionDirection;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue