Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
SoftMasking.Samples.RectManipulator Class Reference
Inheritance diagram for SoftMasking.Samples.RectManipulator:

Public Types

enum  ManipulationType {
  ManipulationType.None = 0, ManipulationType.Move = 1 << 0, ManipulationType.ResizeLeft = 1 << 1, ManipulationType.ResizeUp = 1 << 2,
  ManipulationType.ResizeRight = 1 << 3, ManipulationType.ResizeDown = 1 << 4, ManipulationType.ResizeUpLeft = ResizeUp | ResizeLeft, ManipulationType.ResizeUpRight = ResizeUp | ResizeRight,
  ManipulationType.ResizeDownLeft = ResizeDown | ResizeLeft, ManipulationType.ResizeDownRight = ResizeDown | ResizeRight, ManipulationType.Rotate = 1 << 5
}
 

Public Member Functions

void OnBeginDrag (PointerEventData eventData)
 
void OnDrag (PointerEventData eventData)
 
void OnEndDrag (PointerEventData eventData)
 
void OnPointerEnter (PointerEventData eventData)
 
void OnPointerExit (PointerEventData eventData)
 

Public Attributes

Graphic icon
 
ManipulationType manipulation
 
Vector2 minSize
 
float normalAlpha = 0.2f
 
float selectedAlpha = 1f
 
ShowOnHover showOnHover
 
RectTransform targetTransform
 
float transitionDuration = 0.2f
 

Protected Member Functions

override void Start ()
 

Member Enumeration Documentation

Enumerator
None 
Move 
ResizeLeft 
ResizeUp 
ResizeRight 
ResizeDown 
ResizeUpLeft 
ResizeUpRight 
ResizeDownLeft 
ResizeDownRight 
Rotate 

Member Function Documentation

void SoftMasking.Samples.RectManipulator.OnBeginDrag ( PointerEventData  eventData)
inline
void SoftMasking.Samples.RectManipulator.OnDrag ( PointerEventData  eventData)
inline
void SoftMasking.Samples.RectManipulator.OnEndDrag ( PointerEventData  eventData)
inline
void SoftMasking.Samples.RectManipulator.OnPointerEnter ( PointerEventData  eventData)
inline
void SoftMasking.Samples.RectManipulator.OnPointerExit ( PointerEventData  eventData)
inline
override void SoftMasking.Samples.RectManipulator.Start ( )
inlineprotected

Member Data Documentation

Graphic SoftMasking.Samples.RectManipulator.icon
ManipulationType SoftMasking.Samples.RectManipulator.manipulation
Vector2 SoftMasking.Samples.RectManipulator.minSize
float SoftMasking.Samples.RectManipulator.normalAlpha = 0.2f
float SoftMasking.Samples.RectManipulator.selectedAlpha = 1f
ShowOnHover SoftMasking.Samples.RectManipulator.showOnHover
RectTransform SoftMasking.Samples.RectManipulator.targetTransform
float SoftMasking.Samples.RectManipulator.transitionDuration = 0.2f

The documentation for this class was generated from the following file: