Graph Maker
WMG_Events Class Reference

Defines click and hover events for graphs that inherit WMG_Graph_Manager. More...

Inheritance diagram for WMG_Events:
WMG_GUI_Functions WMG_Text_Functions WMG_Graph_Manager WMG_Axis_Graph WMG_Bezier_Band_Graph WMG_Grid WMG_Hierarchical_Tree WMG_Pie_Graph WMG_Random_Graph WMG_Ring_Graph WMG_Radar_Graph

Public Member Functions

delegate void WMG_Click_H (WMG_Series aSeries, WMG_Node aNode, PointerEventData pointerEventData)
 
void addNodeClickEvent (GameObject go)
 
delegate void WMG_Link_Click_H (WMG_Series aSeries, WMG_Link aLink, PointerEventData pointerEventData)
 
void addLinkClickEvent (GameObject go)
 
delegate void WMG_Click_Leg_H (WMG_Series aSeries, WMG_Node aNode, PointerEventData pointerEventData)
 
void addNodeClickEvent_Leg (GameObject go)
 
delegate void WMG_Link_Click_Leg_H (WMG_Series aSeries, WMG_Link aLink, PointerEventData pointerEventData)
 
void addLinkClickEvent_Leg (GameObject go)
 
delegate void WMG_Pie_Slice_Click_H (WMG_Pie_Graph pieGraph, WMG_Pie_Graph_Slice aSlice, PointerEventData pointerEventData)
 
void addPieSliceClickEvent (GameObject go)
 
delegate void WMG_Pie_Legend_Entry_Click_H (WMG_Pie_Graph pieGraph, WMG_Legend_Entry legendEntry, PointerEventData pointerEventData)
 
void addPieLegendEntryClickEvent (GameObject go)
 
delegate void WMG_Ring_Click_H (WMG_Ring ring, PointerEventData pointerEventData)
 
void addRingClickEvent (GameObject go)
 
delegate void WMG_MouseEnter_H (WMG_Series aSeries, WMG_Node aNode, bool state)
 
void addNodeMouseEnterEvent (GameObject go)
 
delegate void WMG_Link_MouseEnter_H (WMG_Series aSeries, WMG_Link aLink, bool state)
 
void addLinkMouseEnterEvent (GameObject go)
 
delegate void WMG_MouseEnter_Leg_H (WMG_Series aSeries, WMG_Node aNode, bool state)
 
void addNodeMouseEnterEvent_Leg (GameObject go)
 
delegate void WMG_Link_MouseEnter_Leg_H (WMG_Series aSeries, WMG_Link aLink, bool state)
 
void addLinkMouseEnterEvent_Leg (GameObject go)
 
delegate void WMG_Pie_Slice_MouseEnter_H (WMG_Pie_Graph pieGraph, WMG_Pie_Graph_Slice aSlice, bool state)
 
void addPieSliceMouseEnterEvent (GameObject go)
 
delegate void WMG_Ring_MouseEnter_H (WMG_Ring ring, bool state)
 
void addRingMouseEnterEvent (GameObject go)
 
void addNodeMouseLeaveEvent (GameObject go)
 
void addLinkMouseLeaveEvent (GameObject go)
 
void addNodeMouseLeaveEvent_Leg (GameObject go)
 
void addLinkMouseLeaveEvent_Leg (GameObject go)
 
- Public Member Functions inherited from WMG_GUI_Functions
void SetActive (GameObject obj, bool state)
 
bool activeInHierarchy (GameObject obj)
 
void SetActiveAnchoredSprite (GameObject obj, bool state)
 
void SetActiveImage (GameObject obj, bool state)
 
Texture2D getTexture (GameObject obj)
 
void setTexture (GameObject obj, Sprite sprite)
 
void changeSpriteFill (GameObject obj, float fill)
 
void changeRadialSpriteRotation (GameObject obj, Vector3 newRot)
 
void changeSpriteColor (GameObject obj, Color aColor)
 
void changeSpriteAlpha (GameObject obj, float alpha)
 
float getSpriteAlpha (GameObject obj)
 
void changeSpriteWidth (GameObject obj, int aWidth)
 
void changeSpriteHeight (GameObject obj, int aHeight)
 
void setTextureMaterial (GameObject obj, Material aMat)
 
Material getTextureMaterial (GameObject obj)
 
void changeSpriteSize (GameObject obj, int aWidth, int aHeight)
 
void changeSpriteSizeFloat (GameObject obj, float aWidth, float aHeight)
 
Vector2 getSpriteSize (GameObject obj)
 
void changeBarWidthHeight (GameObject obj, int aWidth, int aHeight)
 
float getSpriteWidth (GameObject obj)
 
float getSpriteHeight (GameObject obj)
 
float getTextWidth (GameObject obj)
 
float getTextHeight (GameObject obj)
 
void forceUpdateText (GameObject obj)
 
void setAnchor (GameObject go, Vector2 anchor, Vector2 pivot, Vector2 anchoredPosition)
 
void setAnchoredPosition (GameObject go, Vector2 anchoredPosition)
 
void stretchToParent (GameObject go)
 
bool rectIntersectRect (GameObject r1, GameObject r2)
 
void getRectDiffs (GameObject child, GameObject container, ref Vector2 xDif, ref Vector2 yDif)
 
float getSpritePositionX (GameObject obj)
 
float getSpritePositionY (GameObject obj)
 
Vector2 getSpritePositionXY (GameObject obj)
 
float getSpritePivotTopToBot (GameObject obj)
 
Vector3 getPositionRelativeTransform (GameObject obj, GameObject relative)
 
void changePositionByRelativeTransform (GameObject obj, GameObject relative, Vector2 delta)
 
void changeSpritePositionTo (GameObject obj, Vector3 newPos)
 
void changeSpritePositionToX (GameObject obj, float newPos)
 
void changeSpritePositionToY (GameObject obj, float newPos)
 
Vector2 getChangeSpritePositionTo (GameObject obj, Vector2 newPos)
 
void changeSpritePositionRelativeToObjBy (GameObject obj, GameObject relObj, Vector3 changeAmt)
 
void changeSpritePositionRelativeToObjByX (GameObject obj, GameObject relObj, float changeAmt)
 
void changeSpritePositionRelativeToObjByY (GameObject obj, GameObject relObj, float changeAmt)
 
Vector2 getSpritePivot (GameObject obj)
 
void changeSpriteParent (GameObject child, GameObject parent)
 
void getFirstCanvasOnSelfOrParent (Transform trans, ref Canvas canv)
 
void addRaycaster (GameObject obj)
 
void setAsNotInteractible (GameObject obj)
 
void bringSpriteToFront (GameObject obj)
 
void sendSpriteToBack (GameObject obj)
 
- Public Member Functions inherited from WMG_Text_Functions
void changeLabelText (GameObject obj, string aText)
 
void changeLabelFontSize (GameObject obj, int newFontSize)
 
Vector2 getTextSize (GameObject obj)
 
void changeSpritePivot (GameObject obj, WMGpivotTypes theType)
 
void changeLabelColor (GameObject obj, Color newColor)
 
void changeLabelFontStyle (GameObject obj, FontStyle newFontStyle)
 
void changeLabelFont (GameObject obj, Font newFont)
 

Events

WMG_Click_H WMG_Click
 Occurs when a series point is clicked. More...
 
WMG_Link_Click_H WMG_Link_Click
 Occurs when a series link / line is clicked. More...
 
WMG_Click_Leg_H WMG_Click_Leg
 Occurs when a series legend node / swatch is clicked. More...
 
WMG_Link_Click_Leg_H WMG_Link_Click_Leg
 Occurs when a series legend link / line is clicked. More...
 
WMG_Pie_Slice_Click_H WMG_Pie_Slice_Click
 Occurs when a pie graph slice is clicked. More...
 
WMG_Pie_Legend_Entry_Click_H WMG_Pie_Legend_Entry_Click
 Occurs when a pie graph legend swatch is clicked. More...
 
WMG_Ring_Click_H WMG_Ring_Click
 Occurs when a ring graph ring / band is clicked. More...
 
WMG_MouseEnter_H WMG_MouseEnter
 Occurs when a series point is hovered. More...
 
WMG_Link_MouseEnter_H WMG_Link_MouseEnter
 Occurs when a series link / line is hovered. More...
 
WMG_MouseEnter_Leg_H WMG_MouseEnter_Leg
 Occurs when a series legend node / swatch is hovered. More...
 
WMG_Link_MouseEnter_Leg_H WMG_Link_MouseEnter_Leg
 Occurs when a series legend link / line is hovered. More...
 
WMG_Pie_Slice_MouseEnter_H WMG_Pie_Slice_MouseEnter
 Occurs when a pie graph slice is hovered. More...
 
WMG_Ring_MouseEnter_H WMG_Ring_MouseEnter
 Occurs when a ring graph ring / band is hovered. More...
 

Additional Inherited Members

- Public Types inherited from WMG_Text_Functions
enum  WMGpivotTypes {
  WMGpivotTypes.Bottom, WMGpivotTypes.BottomLeft, WMGpivotTypes.BottomRight, WMGpivotTypes.Center,
  WMGpivotTypes.Left, WMGpivotTypes.Right, WMGpivotTypes.Top, WMGpivotTypes.TopLeft,
  WMGpivotTypes.TopRight
}
 

Detailed Description

Defines click and hover events for graphs that inherit WMG_Graph_Manager.

Member Function Documentation

◆ addLinkClickEvent()

void WMG_Events.addLinkClickEvent ( GameObject  go)

◆ addLinkClickEvent_Leg()

void WMG_Events.addLinkClickEvent_Leg ( GameObject  go)

◆ addLinkMouseEnterEvent()

void WMG_Events.addLinkMouseEnterEvent ( GameObject  go)

◆ addLinkMouseEnterEvent_Leg()

void WMG_Events.addLinkMouseEnterEvent_Leg ( GameObject  go)

◆ addLinkMouseLeaveEvent()

void WMG_Events.addLinkMouseLeaveEvent ( GameObject  go)

◆ addLinkMouseLeaveEvent_Leg()

void WMG_Events.addLinkMouseLeaveEvent_Leg ( GameObject  go)

◆ addNodeClickEvent()

void WMG_Events.addNodeClickEvent ( GameObject  go)

◆ addNodeClickEvent_Leg()

void WMG_Events.addNodeClickEvent_Leg ( GameObject  go)

◆ addNodeMouseEnterEvent()

void WMG_Events.addNodeMouseEnterEvent ( GameObject  go)

◆ addNodeMouseEnterEvent_Leg()

void WMG_Events.addNodeMouseEnterEvent_Leg ( GameObject  go)

◆ addNodeMouseLeaveEvent()

void WMG_Events.addNodeMouseLeaveEvent ( GameObject  go)

◆ addNodeMouseLeaveEvent_Leg()

void WMG_Events.addNodeMouseLeaveEvent_Leg ( GameObject  go)

◆ addPieLegendEntryClickEvent()

void WMG_Events.addPieLegendEntryClickEvent ( GameObject  go)

◆ addPieSliceClickEvent()

void WMG_Events.addPieSliceClickEvent ( GameObject  go)

◆ addPieSliceMouseEnterEvent()

void WMG_Events.addPieSliceMouseEnterEvent ( GameObject  go)

◆ addRingClickEvent()

void WMG_Events.addRingClickEvent ( GameObject  go)

◆ addRingMouseEnterEvent()

void WMG_Events.addRingMouseEnterEvent ( GameObject  go)

◆ WMG_Click_H()

delegate void WMG_Events.WMG_Click_H ( WMG_Series  aSeries,
WMG_Node  aNode,
PointerEventData  pointerEventData 
)

◆ WMG_Click_Leg_H()

delegate void WMG_Events.WMG_Click_Leg_H ( WMG_Series  aSeries,
WMG_Node  aNode,
PointerEventData  pointerEventData 
)

◆ WMG_Link_Click_H()

delegate void WMG_Events.WMG_Link_Click_H ( WMG_Series  aSeries,
WMG_Link  aLink,
PointerEventData  pointerEventData 
)

◆ WMG_Link_Click_Leg_H()

delegate void WMG_Events.WMG_Link_Click_Leg_H ( WMG_Series  aSeries,
WMG_Link  aLink,
PointerEventData  pointerEventData 
)

◆ WMG_Link_MouseEnter_H()

delegate void WMG_Events.WMG_Link_MouseEnter_H ( WMG_Series  aSeries,
WMG_Link  aLink,
bool  state 
)

◆ WMG_Link_MouseEnter_Leg_H()

delegate void WMG_Events.WMG_Link_MouseEnter_Leg_H ( WMG_Series  aSeries,
WMG_Link  aLink,
bool  state 
)

◆ WMG_MouseEnter_H()

delegate void WMG_Events.WMG_MouseEnter_H ( WMG_Series  aSeries,
WMG_Node  aNode,
bool  state 
)

◆ WMG_MouseEnter_Leg_H()

delegate void WMG_Events.WMG_MouseEnter_Leg_H ( WMG_Series  aSeries,
WMG_Node  aNode,
bool  state 
)

◆ WMG_Pie_Legend_Entry_Click_H()

delegate void WMG_Events.WMG_Pie_Legend_Entry_Click_H ( WMG_Pie_Graph  pieGraph,
WMG_Legend_Entry  legendEntry,
PointerEventData  pointerEventData 
)

◆ WMG_Pie_Slice_Click_H()

delegate void WMG_Events.WMG_Pie_Slice_Click_H ( WMG_Pie_Graph  pieGraph,
WMG_Pie_Graph_Slice  aSlice,
PointerEventData  pointerEventData 
)

◆ WMG_Pie_Slice_MouseEnter_H()

delegate void WMG_Events.WMG_Pie_Slice_MouseEnter_H ( WMG_Pie_Graph  pieGraph,
WMG_Pie_Graph_Slice  aSlice,
bool  state 
)

◆ WMG_Ring_Click_H()

delegate void WMG_Events.WMG_Ring_Click_H ( WMG_Ring  ring,
PointerEventData  pointerEventData 
)

◆ WMG_Ring_MouseEnter_H()

delegate void WMG_Events.WMG_Ring_MouseEnter_H ( WMG_Ring  ring,
bool  state 
)

Event Documentation

◆ WMG_Click

WMG_Click_H WMG_Events.WMG_Click

Occurs when a series point is clicked.

graph.WMG_Click += MyClick;
void MyClick(WMG_Series aSeries, WMG_Node aNode, UnityEngine.EventSystems.PointerEventData pointerEventData) {}

◆ WMG_Click_Leg

WMG_Click_Leg_H WMG_Events.WMG_Click_Leg

Occurs when a series legend node / swatch is clicked.

graph.WMG_Click_Leg += MyClickLeg;
void MyClickLeg(WMG_Series aSeries, WMG_Node aNode, UnityEngine.EventSystems.PointerEventData pointerEventData) {}

◆ WMG_Link_Click

WMG_Link_Click_H WMG_Events.WMG_Link_Click

Occurs when a series link / line is clicked.

graph.WMG_Link_Click += MyLinkClick;
void MyLinkClick(WMG_Series aSeries, WMG_Link aLink, UnityEngine.EventSystems.PointerEventData pointerEventData) {}

◆ WMG_Link_Click_Leg

WMG_Link_Click_Leg_H WMG_Events.WMG_Link_Click_Leg

Occurs when a series legend link / line is clicked.

graph.WMG_Link_Click_Leg += MyLinkClickLeg;
void MyLinkClickLeg(WMG_Series aSeries, WMG_Link aLink, UnityEngine.EventSystems.PointerEventData pointerEventData) {}

◆ WMG_Link_MouseEnter

WMG_Link_MouseEnter_H WMG_Events.WMG_Link_MouseEnter

Occurs when a series link / line is hovered.

graph.WMG_Link_MouseEnter += MyLinkHover;
void MyLinkHover(WMG_Series aSeries, WMG_Link aLink, bool state) {}

◆ WMG_Link_MouseEnter_Leg

WMG_Link_MouseEnter_Leg_H WMG_Events.WMG_Link_MouseEnter_Leg

Occurs when a series legend link / line is hovered.

graph.WMG_Link_MouseEnter_Leg += MyLinkHoverLeg;
void MyLinkHoverLeg(WMG_Series aSeries, WMG_Link aLink, bool state) {}

◆ WMG_MouseEnter

WMG_MouseEnter_H WMG_Events.WMG_MouseEnter

Occurs when a series point is hovered.

graph.WMG_MouseEnter += MyHover;
void MyHover(WMG_Series aSeries, WMG_Node aNode, bool state) {}

◆ WMG_MouseEnter_Leg

WMG_MouseEnter_Leg_H WMG_Events.WMG_MouseEnter_Leg

Occurs when a series legend node / swatch is hovered.

graph.WMG_MouseEnter_Leg += MyHoverLeg;
void MyHoverLeg(WMG_Series aSeries, WMG_Node aNode, bool state) {}

◆ WMG_Pie_Legend_Entry_Click

WMG_Pie_Legend_Entry_Click_H WMG_Events.WMG_Pie_Legend_Entry_Click

Occurs when a pie graph legend swatch is clicked.

graph.WMG_Pie_Legend_Entry_Click += MyPieLegendClick;
void MyPieLegendClick(WMG_Pie_Graph pieGraph, WMG_Legend_Entry legendEntry, UnityEngine.EventSystems.PointerEventData pointerEventData) {}

◆ WMG_Pie_Slice_Click

WMG_Pie_Slice_Click_H WMG_Events.WMG_Pie_Slice_Click

Occurs when a pie graph slice is clicked.

graph.WMG_Pie_Slice_Click += MyPieClick;
void MyPieClick(WMG_Pie_Graph pieGraph, WMG_Pie_Graph_Slice aSlice, UnityEngine.EventSystems.PointerEventData pointerEventData) {}

◆ WMG_Pie_Slice_MouseEnter

WMG_Pie_Slice_MouseEnter_H WMG_Events.WMG_Pie_Slice_MouseEnter

Occurs when a pie graph slice is hovered.

graph.WMG_Pie_Slice_MouseEnter += MyPieHover;
void MyPieHover(WMG_Pie_Graph pieGraph, WMG_Pie_Graph_Slice aSlice, bool state) {}

◆ WMG_Ring_Click

WMG_Ring_Click_H WMG_Events.WMG_Ring_Click

Occurs when a ring graph ring / band is clicked.

graph.WMG_Ring_Click += MyRingClick;
void MyRingClick(WMG_Ring ring, UnityEngine.EventSystems.PointerEventData pointerEventData) {}

◆ WMG_Ring_MouseEnter

WMG_Ring_MouseEnter_H WMG_Events.WMG_Ring_MouseEnter

Occurs when a ring graph ring / band is hovered.

graph.WMG_Ring_MouseEnter += MyRingHover;
void MyRingHover(WMG_Ring ring, bool state) {}

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