X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/6fa0bb60da6b661c2aafc03f11b842ee7136a9bb..018ea8acbdde7f5ee5d68c7431f9f514dcb27714:/CyteKit/TableViewCell.mm diff --git a/CyteKit/TableViewCell.mm b/CyteKit/TableViewCell.mm index 5f69f7fe..827440bf 100644 --- a/CyteKit/TableViewCell.mm +++ b/CyteKit/TableViewCell.mm @@ -1,5 +1,5 @@ /* Cydia - iPhone UIKit Front-End for Debian APT - * Copyright (C) 2008-2014 Jay Freeman (saurik) + * Copyright (C) 2008-2015 Jay Freeman (saurik) */ /* GNU General Public License, Version 3 {{{ */ @@ -19,11 +19,16 @@ **/ /* }}} */ +#include "CyteKit/UCPlatform.h" + #include "CyteKit/TableViewCell.h" #include "iPhonePrivate.h" +#include -@implementation CyteTableViewCellContentView +@implementation CyteTableViewCellContentView { + _transient id delegate_; +} - (id) initWithFrame:(CGRect)frame { if ((self = [super initWithFrame:frame]) != nil) { @@ -46,7 +51,10 @@ @end -@implementation CyteTableViewCell +@implementation CyteTableViewCell { + _H content_; + bool highlighted_; +} - (void) _updateHighlightColorsForView:(UIView *)view highlighted:(BOOL)highlighted { if (view == (UIView *) content_) @@ -62,4 +70,16 @@ [content_ setNeedsDisplay]; } +- (void) setContent:(CyteTableViewCellContentView *)content { + content_ = content; +} + +- (CyteTableViewCellContentView *) content { + return content_; +} + +- (bool) highlighted { + return highlighted_; +} + @end