mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 20:57:38 +00:00
* Headers/Additions/GNUstepGUI/GSTheme.h:
* Source/GSTheme.m: * Source/GSThemeDrawing.m: * Source/NSBox.m: Factor out -[NSBox drawRect:] to GSTheme method -drawBoxInClipRect:boxType:borderType:inView:. Add a tiles name GSBoxBorder for themeing the box border. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37188 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5cd9dd8b7e
commit
c63df23ba8
5 changed files with 106 additions and 57 deletions
|
@ -217,6 +217,7 @@
|
|||
|
||||
#import <Foundation/NSObject.h>
|
||||
#import <Foundation/NSGeometry.h>
|
||||
#import <AppKit/NSBox.h>
|
||||
#import <AppKit/NSCell.h>
|
||||
// For gradient types
|
||||
#import <AppKit/NSButtonCell.h>
|
||||
|
@ -305,6 +306,9 @@ APPKIT_EXPORT NSString *GSColorWell;
|
|||
APPKIT_EXPORT NSString *GSSliderHorizontalTrack;
|
||||
APPKIT_EXPORT NSString *GSSliderVerticalTrack;
|
||||
|
||||
/* NSBox parts */
|
||||
APPKIT_EXPORT NSString *GSBoxBorder;
|
||||
|
||||
/**
|
||||
* Structure to describe the size of top/bottom/left/right margins inside
|
||||
* a button
|
||||
|
@ -1173,6 +1177,11 @@ APPKIT_EXPORT NSString *GSThemeWillDeactivateNotification;
|
|||
- (void) drawTableViewRow: (int)rowIndex
|
||||
clipRect: (NSRect)clipRect
|
||||
inView: (NSView *)view;
|
||||
|
||||
- (void) drawBoxInClipRect: (NSRect)clipRect
|
||||
boxType: (NSBoxType)boxType
|
||||
borderType: (NSBorderType)borderType
|
||||
inView: (NSBox *)box;
|
||||
@end
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue