Example #1
0
 public void AddClippable(IClippable clippable)
 {
     if (clippable != null)
     {
         if (!m_ClipTargets.Contains(clippable))
         {
             m_ClipTargets.Add(clippable);
         }
         clippable.SetClipRect(m_LastClipRectCanvasSpace, m_LastClipRectValid);
         clippable.Cull(m_LastClipRectCanvasSpace, m_LastClipRectValid);
     }
 }
Example #2
0
 public void AddClippable(IClippable clippable)
 {
     if (clippable != null)
     {
         if (!this.m_ClipTargets.Contains(clippable))
         {
             this.m_ClipTargets.Add(clippable);
         }
         clippable.SetClipRect(this.m_LastClipRectCanvasSpace, this.m_LastClipRectValid);
         clippable.Cull(this.m_LastClipRectCanvasSpace, this.m_LastClipRectValid);
     }
 }
Example #3
0
 /// <summary>
 ///
 /// <para>
 /// Add a [IClippable]] to be tracked by the mask.
 /// </para>
 ///
 /// </summary>
 /// <param name="clippable"/>
 public void AddClippable(IClippable clippable)
 {
     if (clippable == null)
     {
         return;
     }
     if (!this.m_ClipTargets.Contains(clippable))
     {
         this.m_ClipTargets.Add(clippable);
     }
     clippable.SetClipRect(this.m_LastClipRectCanvasSpace, this.m_LastClipRectValid);
     clippable.Cull(this.m_LastClipRectCanvasSpace, this.m_LastClipRectValid);
 }
Example #4
0
    public static int Cull(IntPtr l)
    {
        int result;

        try
        {
            IClippable clippable = (IClippable)LuaObject.checkSelf(l);
            Rect       clipRect;
            LuaObject.checkValueType <Rect>(l, 2, out clipRect);
            bool validRect;
            LuaObject.checkType(l, 3, out validRect);
            clippable.Cull(clipRect, validRect);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #5
0
        public void AddClippable(IClippable clippable)
        {
            if (clippable == null)
                return;

            if (!m_ClipTargets.Contains(clippable))
                m_ClipTargets.Add(clippable);

            clippable.SetClipRect(m_LastClipRectCanvasSpace, m_LastClipRectValid);
            clippable.Cull(m_LastClipRectCanvasSpace, m_LastClipRectValid);
        }