project_files/HedgewarsMobile/Classes/ExtraCategories.h
changeset 6300 db8fd3ff693c
parent 6209 074ab6ebcb3e
child 6615 65602f1ef0f8
equal deleted inserted replaced
6299:fa5bc796261d 6300:db8fd3ff693c
       
     1 /*
       
     2  * Hedgewars-iOS, a Hedgewars port for iOS devices
       
     3  * Copyright (c) 2009-2010 Vittorio Giovara <vittorio.giovara@gmail.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; version 2 of the License
       
     8  *
       
     9  * This program is distributed in the hope that it will be useful,
       
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    12  * GNU General Public License for more details.
       
    13  *
       
    14  * You should have received a copy of the GNU General Public License
       
    15  * along with this program; if not, write to the Free Software
       
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
       
    17  *
       
    18  * File created on 25/10/2011.
       
    19  */
       
    20 
       
    21 
       
    22 #import <Foundation/Foundation.h>
       
    23 
       
    24 
       
    25 @interface UIScreen (safe)
       
    26 
       
    27 -(CGFloat) safeScale;
       
    28 
       
    29 @end
       
    30 
       
    31 
       
    32 @interface UITableView (backgroundColor)
       
    33 
       
    34 -(void) setBackgroundColorForAnyTable:(UIColor *)color;
       
    35 
       
    36 @end
       
    37 
       
    38 
       
    39 @interface UIColor (HWColors)
       
    40 
       
    41 +(UIColor *)darkYellowColor;
       
    42 +(UIColor *)lightYellowColor;
       
    43 +(UIColor *)darkBlueColor;
       
    44 +(UIColor *)darkBlueColorTransparent;
       
    45 +(UIColor *)blackColorTransparent;
       
    46 
       
    47 @end
       
    48 
       
    49 
       
    50 @interface UILabel (quickStyle)
       
    51 
       
    52 -(UILabel *)initWithFrame:(CGRect)frame andTitle:(NSString *)title;
       
    53 -(UILabel *)initWithFrame:(CGRect)frame andTitle:(NSString *)title  withBorderWidth:(CGFloat) borderWidth;
       
    54 -(UILabel *)initWithFrame:(CGRect)frame andTitle:(NSString *)title  withBorderWidth:(CGFloat) borderWidth
       
    55           withBorderColor:(UIColor *)borderColor withBackgroundColor:(UIColor *)backColor;
       
    56 
       
    57 @end
       
    58 
       
    59 
       
    60 @interface NSString (MD5)
       
    61 
       
    62 -(NSString *)MD5hash;
       
    63 
       
    64 @end
       
    65