blob: ae22b35f985489e2be96d023836469dd0249b4dc [file] [log] [blame]
Alexandre Lision6da08a82015-09-24 17:09:24 -04001/*
2 * Copyright (C) 2015 Savoir-faire Linux Inc.
3 * Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
Alexandre Lision6da08a82015-09-24 17:09:24 -040019#import <Cocoa/Cocoa.h>
20
Alexandre Lision6da08a82015-09-24 17:09:24 -040021@interface IconButton : NSButton
22
23@property (nonatomic) BOOL mouseDown;
24
25/*
26 * This properties can be overriden in IB in User Defined Runtime Attributes
Alexandre Lision266fca02015-09-28 14:47:05 -040027 * By default this values will be initialized in awakeFromNib
28 */
29
30/*
31 * Background color of the button
32 * default value : [NSColor ringBlue]
Alexandre Lision6da08a82015-09-24 17:09:24 -040033 */
34@property (nonatomic, strong) NSColor* bgColor;
Alexandre Lision266fca02015-09-28 14:47:05 -040035
36/*
37 * Background color of the button when highlighted
38 * default value : view frame width / 2 (circle)
39 */
40@property (nonatomic, strong) NSColor* highlightColor;
41
42/*
43 * Background color of the button when highlighted
44 * default value : view frame width / 2 (circle)
45 */
Alexandre Lision6da08a82015-09-24 17:09:24 -040046@property (nonatomic, strong) NSNumber* cornerRadius;
47
Alexandre Lision266fca02015-09-28 14:47:05 -040048/*
49 * Padding
50 * default value : 5.0
51 */
52@property CGFloat imageInsets;
53
54
Alexandre Lision6da08a82015-09-24 17:09:24 -040055@end