mirror of
https://github.com/faroukbmiled/RyukGram.git
synced 2026-04-22 12:16:15 +02:00
79 lines
2.3 KiB
Objective-C
79 lines
2.3 KiB
Objective-C
//
|
|
// JGProgressHUD-Defines.h
|
|
// JGProgressHUD
|
|
//
|
|
// Created by Jonas Gessner on 28.04.15.
|
|
// Copyright (c) 2015 Jonas Gessner. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
/**
|
|
Positions of the HUD.
|
|
*/
|
|
typedef NS_ENUM(NSUInteger, JGProgressHUDPosition) {
|
|
/** Center position. */
|
|
JGProgressHUDPositionCenter = 0,
|
|
/** Top left position. */
|
|
JGProgressHUDPositionTopLeft,
|
|
/** Top center position. */
|
|
JGProgressHUDPositionTopCenter,
|
|
/** Top right position. */
|
|
JGProgressHUDPositionTopRight,
|
|
/** Center left position. */
|
|
JGProgressHUDPositionCenterLeft,
|
|
/** Center right position. */
|
|
JGProgressHUDPositionCenterRight,
|
|
/** Bottom left position. */
|
|
JGProgressHUDPositionBottomLeft,
|
|
/** Bottom center position. */
|
|
JGProgressHUDPositionBottomCenter,
|
|
/** Bottom right position. */
|
|
JGProgressHUDPositionBottomRight
|
|
};
|
|
|
|
/**
|
|
Appearance styles of the HUD.
|
|
*/
|
|
typedef NS_ENUM(NSUInteger, JGProgressHUDStyle) {
|
|
/** Extra light HUD with dark elements. */
|
|
JGProgressHUDStyleExtraLight = 0,
|
|
/** Light HUD with dark elemets. */
|
|
JGProgressHUDStyleLight,
|
|
/** Dark HUD with light elements. */
|
|
JGProgressHUDStyleDark,
|
|
};
|
|
|
|
#if TARGET_OS_IOS
|
|
/**
|
|
Interaction types.
|
|
*/
|
|
typedef NS_ENUM(NSUInteger, JGProgressHUDInteractionType) {
|
|
/** Block all touches. No interaction behin the HUD is possible. */
|
|
JGProgressHUDInteractionTypeBlockAllTouches = 0,
|
|
/** Block touches on the HUD view. */
|
|
JGProgressHUDInteractionTypeBlockTouchesOnHUDView,
|
|
/** Block no touches. */
|
|
JGProgressHUDInteractionTypeBlockNoTouches
|
|
};
|
|
#endif
|
|
|
|
/**
|
|
Parallax Modes.
|
|
*/
|
|
typedef NS_ENUM(NSUInteger, JGProgressHUDParallaxMode) {
|
|
/** Follows the device setting for parallax. If "Reduce Motion" is enabled, no parallax effect is added to the HUD, if "Reduce Motion" is disabled the HUD will have a parallax effect. This behaviour is only supported on iOS 8 and higher. */
|
|
JGProgressHUDParallaxModeDevice = 0,
|
|
/** Always adds a parallax effect to the HUD. Parallax is only supported on iOS 7 and higher. */
|
|
JGProgressHUDParallaxModeAlwaysOn,
|
|
/** Never adds a parallax effect to the HUD. */
|
|
JGProgressHUDParallaxModeAlwaysOff
|
|
};
|
|
|
|
#ifndef fequal
|
|
/**
|
|
Macro for safe floating point comparison (for internal use in JGProgressHUD).
|
|
*/
|
|
#define fequal(a,b) (fabs((a) - (b)) < FLT_EPSILON)
|
|
#endif
|