示例#1
0
    public Rect JobRect(TodoItem item, float y)
    {
        Rect rect = new Rect();

        rect.x      = (float)TimeStamp.DurationInMillis(item.startTime, startTime) * zoomFactor + xOffset;
        rect.width  = (float)item.Duration() * zoomFactor;
        rect.height = 3 * height + 2 * separator + 2 * padding;
        rect.y      = y;

        return(rect);
    }