mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 11:00:59 +00:00
Tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3648 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
951c165938
commit
8dbd41a7ea
3 changed files with 311 additions and 117 deletions
307
Tools/Functions.m
Normal file
307
Tools/Functions.m
Normal file
|
@ -0,0 +1,307 @@
|
||||||
|
|
||||||
|
/*
|
||||||
|
Functins.m
|
||||||
|
|
||||||
|
Copyright (C) 1998 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
Date: November 1998
|
||||||
|
|
||||||
|
This file is part of the GNUstep GUI Library.
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; see the file COPYING.LIB.
|
||||||
|
If not, write to the Free Software Foundation,
|
||||||
|
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <Foundation/NSObject.h>
|
||||||
|
#include <Foundation/NSGeometry.h>
|
||||||
|
#include <AppKit/NSGraphics.h>
|
||||||
|
#include <AppKit/NSCStringText.h>
|
||||||
|
#include <AppKit/NSEvent.h>
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Dummy definitions provided here to avoid errors when not linking with
|
||||||
|
* a back end.
|
||||||
|
*/
|
||||||
|
|
||||||
|
BOOL initialize_gnustep_backend(void)
|
||||||
|
{
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
void NSHighlightRect(NSRect aRect)
|
||||||
|
{}
|
||||||
|
void NSRectFill(NSRect aRect)
|
||||||
|
{}
|
||||||
|
void NSFrameRect(NSRect aRect)
|
||||||
|
{}
|
||||||
|
void NSEraseRect(NSRect aRect)
|
||||||
|
{}
|
||||||
|
void NSDrawButton(NSRect aRect, NSRect clipRect)
|
||||||
|
{}
|
||||||
|
void NSDrawGrayBezel(NSRect aRect, NSRect clipRect)
|
||||||
|
{}
|
||||||
|
void NSDrawGroove(NSRect aRect, NSRect clipRect)
|
||||||
|
{}
|
||||||
|
void PSlineto(float x, float y)
|
||||||
|
{}
|
||||||
|
void PSmoveto(float x, float y)
|
||||||
|
{}
|
||||||
|
void PSrlineto(float x, float y)
|
||||||
|
{}
|
||||||
|
void PSsetgray(float num)
|
||||||
|
{}
|
||||||
|
void PSstroke(void)
|
||||||
|
{}
|
||||||
|
void PSsetlinewidth(float width)
|
||||||
|
{}
|
||||||
|
void PSgrestore(void)
|
||||||
|
{}
|
||||||
|
void PSgsave(void)
|
||||||
|
{}
|
||||||
|
|
||||||
|
void GSfill() {}
|
||||||
|
void GSsetgray() {}
|
||||||
|
void GSnewpath() {}
|
||||||
|
void GSgrestore() {}
|
||||||
|
void GSrectfill() {}
|
||||||
|
void GSsetlinewidth() {}
|
||||||
|
void GSclosepath() {}
|
||||||
|
void GSshow() {}
|
||||||
|
void GStranslate() {}
|
||||||
|
void GSmoveto() {}
|
||||||
|
void GSgsave() {}
|
||||||
|
void GSlineto() {}
|
||||||
|
void GSstroke() {}
|
||||||
|
void GSrlineto() {}
|
||||||
|
void GSrectclip() {}
|
||||||
|
|
||||||
|
|
||||||
|
@interface GMModel : NSObject
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation GMModel
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface GMUnarchiver : NSObject
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation GMUnarchiver
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface NSWindowView : NSObject
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation NSWindowView
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface GPSDrawContext : NSObject
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation GPSDrawContext
|
||||||
|
@end
|
||||||
|
|
||||||
|
|
||||||
|
void NSDrawWhiteBezel(NSRect aRect, NSRect clipRect)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void NSDrawBezel(NSRect aRect, NSRect clipRect)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NSRect NSDrawTiledRects(NSRect boundsRect, NSRect clipRect,
|
||||||
|
const NSRectEdge *sides, const float *grays, int count)
|
||||||
|
{
|
||||||
|
return NSZeroRect;
|
||||||
|
}
|
||||||
|
|
||||||
|
const NSWindowDepth *NSAvailableWindowDepths(void)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
NSWindowDepth NSBestDepth(NSString *colorSpace,
|
||||||
|
int bitsPerSample, int bitsPerPixel,
|
||||||
|
BOOL planar, BOOL *exactMatch)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int NSBitsPerPixelFromDepth(NSWindowDepth depth)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int NSBitsPerSampleFromDepth(NSWindowDepth depth)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
NSString *NSColorSpaceFromDepth(NSWindowDepth depth)
|
||||||
|
{
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
|
||||||
|
int NSNumberOfColorComponents(NSString *colorSpaceName)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
BOOL NSPlanarFromDepth(NSWindowDepth depth)
|
||||||
|
{
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
|
NSColor *NSReadPixel(NSPoint location)
|
||||||
|
{
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned short NSEditorFilter(unsigned short theChar,
|
||||||
|
int flags, NSStringEncoding theEncoding)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned short NSFieldFilter(unsigned short theChar,
|
||||||
|
int flags, NSStringEncoding theEncoding)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int NSDrawALine(id self, NSLayInfo *layInfo)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int NSScanALine(id self, NSLayInfo *layInfo)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void NSTextFontInfo(id fid,
|
||||||
|
float *ascender, float *descender,
|
||||||
|
float *lineHeight)
|
||||||
|
{}
|
||||||
|
|
||||||
|
NSData * NSDataWithWordTable(const unsigned char *smartLeft,
|
||||||
|
const unsigned char *smartRight,
|
||||||
|
const unsigned char *charClasses,
|
||||||
|
const NSFSM *wrapBreaks,
|
||||||
|
int wrapBreaksCount,
|
||||||
|
const NSFSM *clickBreaks,
|
||||||
|
int clickBreaksCount,
|
||||||
|
BOOL charWrap)
|
||||||
|
{
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
|
|
||||||
|
void NSReadWordTable(NSZone *zone,
|
||||||
|
NSData *data,
|
||||||
|
unsigned char **smartLeft,
|
||||||
|
unsigned char **smartRight,
|
||||||
|
unsigned char **charClasses,
|
||||||
|
NSFSM **wrapBreaks,
|
||||||
|
int *wrapBreaksCount,
|
||||||
|
NSFSM **clickBreaks,
|
||||||
|
int *clickBreaksCount,
|
||||||
|
BOOL *charWrap)
|
||||||
|
{}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Array Allocation Functions for Use by the NSText Class
|
||||||
|
//
|
||||||
|
NSTextChunk *NSChunkCopy(NSTextChunk *pc, NSTextChunk *dpc)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
NSTextChunk *NSChunkGrow(NSTextChunk *pc, int newUsed)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
NSTextChunk *NSChunkMalloc(int growBy, int initUsed)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
NSTextChunk *NSChunkRealloc(NSTextChunk *pc)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
NSTextChunk *NSChunkZoneCopy(NSTextChunk *pc,
|
||||||
|
NSTextChunk *dpc,
|
||||||
|
NSZone *zone)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
NSTextChunk *NSChunkZoneGrow(NSTextChunk *pc, int newUsed, NSZone *zone)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
NSTextChunk *NSChunkZoneMalloc(int growBy, int initUsed, NSZone *zone)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
NSTextChunk *NSChunkZoneRealloc(NSTextChunk *pc, NSZone *zone)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
void NSCopyBitmapFromGState(int srcGstate, NSRect srcRect, NSRect destRect)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void NSCopyBits(int srcGstate, NSRect srcRect, NSPoint destPoint)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void NSDrawBitmap(NSRect rect,
|
||||||
|
int pixelsWide,
|
||||||
|
int pixelsHigh,
|
||||||
|
int bitsPerSample,
|
||||||
|
int samplesPerPixel,
|
||||||
|
int bitsPerPixel,
|
||||||
|
int bytesPerRow,
|
||||||
|
BOOL isPlanar,
|
||||||
|
BOOL hasAlpha,
|
||||||
|
NSString *colorSpaceName,
|
||||||
|
const unsigned char *const data[5])
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void NSBeep(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Draw a Distinctive Outline around Linked Data
|
||||||
|
//
|
||||||
|
void NSFrameLinkRect(NSRect aRect, BOOL isDestination)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
float NSLinkFrameThickness(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
|
@ -37,11 +37,11 @@ TOOL_NAME = gpbs make_services set_show_service
|
||||||
#SERVICE_NAME = example
|
#SERVICE_NAME = example
|
||||||
|
|
||||||
# The source files to be compiled
|
# The source files to be compiled
|
||||||
gpbs_OBJC_FILES = gpbs.m dummy.m
|
gpbs_OBJC_FILES = gpbs.m Functions.m
|
||||||
make_services_OBJC_FILES = make_services.m dummy.m
|
make_services_OBJC_FILES = make_services.m Functions.m
|
||||||
set_show_service_OBJC_FILES = set_show_service.m dummy.m
|
set_show_service_OBJC_FILES = set_show_service.m Functions.m
|
||||||
|
|
||||||
example_OBJC_FILES = example.m dummy.m
|
example_OBJC_FILES = example.m Functions.m
|
||||||
|
|
||||||
-include GNUmakefile.preamble
|
-include GNUmakefile.preamble
|
||||||
|
|
||||||
|
|
113
Tools/dummy.m
113
Tools/dummy.m
|
@ -1,113 +0,0 @@
|
||||||
|
|
||||||
/*
|
|
||||||
dummy.m
|
|
||||||
|
|
||||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
|
||||||
Date: November 1998
|
|
||||||
|
|
||||||
This file is part of the GNUstep GUI Library.
|
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU Library General Public
|
|
||||||
License as published by the Free Software Foundation; either
|
|
||||||
version 2 of the License, or (at your option) any later version.
|
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
Library General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
|
||||||
License along with this library; see the file COPYING.LIB.
|
|
||||||
If not, write to the Free Software Foundation,
|
|
||||||
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <Foundation/NSObject.h>
|
|
||||||
#include <Foundation/NSGeometry.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Dummy definitions provided here to avoid errors when not linking with
|
|
||||||
* a back end.
|
|
||||||
*/
|
|
||||||
|
|
||||||
BOOL initialize_gnustep_backend(void)
|
|
||||||
{
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
void NSHighlightRect(NSRect aRect)
|
|
||||||
{}
|
|
||||||
void NSRectFill(NSRect aRect)
|
|
||||||
{}
|
|
||||||
void NSBeep(void)
|
|
||||||
{}
|
|
||||||
void NSFrameRect(NSRect aRect)
|
|
||||||
{}
|
|
||||||
void NSEraseRect(NSRect aRect)
|
|
||||||
{}
|
|
||||||
void NSDrawButton(NSRect aRect, NSRect clipRect)
|
|
||||||
{}
|
|
||||||
void NSDrawGrayBezel(NSRect aRect, NSRect clipRect)
|
|
||||||
{}
|
|
||||||
void NSDrawGroove(NSRect aRect, NSRect clipRect)
|
|
||||||
{}
|
|
||||||
void PSlineto(float x, float y)
|
|
||||||
{}
|
|
||||||
void PSmoveto(float x, float y)
|
|
||||||
{}
|
|
||||||
void PSrlineto(float x, float y)
|
|
||||||
{}
|
|
||||||
void PSsetgray(float num)
|
|
||||||
{}
|
|
||||||
void PSstroke(void)
|
|
||||||
{}
|
|
||||||
void PSsetlinewidth(float width)
|
|
||||||
{}
|
|
||||||
void PSgrestore(void)
|
|
||||||
{}
|
|
||||||
void PSgsave(void)
|
|
||||||
{}
|
|
||||||
|
|
||||||
void GSfill() {}
|
|
||||||
void GSsetgray() {}
|
|
||||||
void GSnewpath() {}
|
|
||||||
void GSgrestore() {}
|
|
||||||
void GSrectfill() {}
|
|
||||||
void GSsetlinewidth() {}
|
|
||||||
void GSclosepath() {}
|
|
||||||
void GSshow() {}
|
|
||||||
void GStranslate() {}
|
|
||||||
void GSmoveto() {}
|
|
||||||
void GSgsave() {}
|
|
||||||
void GSlineto() {}
|
|
||||||
void GSstroke() {}
|
|
||||||
void GSrlineto() {}
|
|
||||||
void GSrectclip() {}
|
|
||||||
|
|
||||||
|
|
||||||
@interface GMModel : NSObject
|
|
||||||
@end
|
|
||||||
|
|
||||||
@implementation GMModel
|
|
||||||
@end
|
|
||||||
|
|
||||||
@interface GMUnarchiver : NSObject
|
|
||||||
@end
|
|
||||||
|
|
||||||
@implementation GMUnarchiver
|
|
||||||
@end
|
|
||||||
|
|
||||||
@interface NSWindowView : NSObject
|
|
||||||
@end
|
|
||||||
|
|
||||||
@implementation NSWindowView
|
|
||||||
@end
|
|
||||||
|
|
||||||
@interface GPSDrawContext : NSObject
|
|
||||||
@end
|
|
||||||
|
|
||||||
@implementation GPSDrawContext
|
|
||||||
@end
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue