mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 02:00:48 +00:00
2005-01-18 14:09 Alexander Malmberg <alexander@malmberg.org>
* Source/Functions.m (NSDottedFrameRect, NSFrameRectWithWidth): Draw the frame inside the given rectangle. (NSDrawTiledRects): Remove documentation. * Headers/AppKit/NSGraphics.h (NSDottedFrameRect, NSFrameRect) (NSFrameRectWithWidth, NSDrawTiledRects): Add new documentation. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20574 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8a515dba0c
commit
0a62f93891
3 changed files with 37 additions and 23 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
NSGraphics.h
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996, 2005 Free Software Foundation, Inc.
|
||||
|
||||
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
Date: February 1997
|
||||
|
@ -117,8 +117,12 @@ APPKIT_EXPORT void NSRectFillList(const NSRect *rects, int count);
|
|||
APPKIT_EXPORT void NSRectFillListWithGrays(const NSRect *rects,
|
||||
const float *grays,int count);
|
||||
|
||||
APPKIT_EXPORT NSRect NSDrawTiledRects(NSRect aRect,const NSRect clipRect,
|
||||
const NSRectEdge * sides,
|
||||
/** Draws a set of edges of aRect. The sides array should contain
|
||||
count edges, and grays the corresponding color. Edges are drawn
|
||||
in the order given in the array, and subsequent edges are drawn
|
||||
inside previous edges (thus, they will never overlap). */
|
||||
APPKIT_EXPORT NSRect NSDrawTiledRects(NSRect aRect, const NSRect clipRect,
|
||||
const NSRectEdge *sides,
|
||||
const float *grays, int count);
|
||||
|
||||
APPKIT_EXPORT void NSDrawButton(const NSRect aRect, const NSRect clipRect);
|
||||
|
@ -134,7 +138,19 @@ NSDrawBezel(const NSRect aRect, const NSRect clipRect)
|
|||
NSDrawGrayBezel(aRect, clipRect);
|
||||
}
|
||||
|
||||
|
||||
/** Draws a rectangle along the inside of aRect. The rectangle will be
|
||||
black, dotted (using 1 point dashes), and will have a line width
|
||||
of 1 point. */
|
||||
APPKIT_EXPORT void NSDottedFrameRect(NSRect aRect);
|
||||
/** <p>Draws a rectangle using the current color along the inside of aRect.
|
||||
NSFrameRectWithWidth uses the frameWidth as the line width, while
|
||||
NSFrameRect always uses 1 point wide lines. The functions do not
|
||||
change the line width of the current graphics context.
|
||||
</p><p>
|
||||
'Inside' here means that no part of the stroked rectangle will extend
|
||||
outside the given rectangle.
|
||||
</p> */
|
||||
APPKIT_EXPORT void NSFrameRect(const NSRect aRect);
|
||||
APPKIT_EXPORT void NSFrameRectWithWidth(const NSRect aRect, float frameWidth);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue