Esempio n. 1
0
 public ProgressBar(Renderer2D r2d)
     : base(r2d)
 {
     orientation   = BarOrientation.HORIZONTAL;
     fillTexSource = Rectangle.Empty;
     filePath      = "";
 }
Esempio n. 2
0
        public GraduationBar()
        {
            this.marge = 0;
            this.scale = 1;

            InitializeComponent();

            if (this.Size.Width > this.Size.Height)
                this.Orientation = BarOrientation.horizontal;
            else
                Orientation = BarOrientation.vertical;
        }
Esempio n. 3
0
        private void GraduationBar_SizeChanged(object sender, EventArgs e)
        {
            if (this.Size.Width > this.Size.Height)
            {
                this.Orientation = BarOrientation.horizontal;
            }
            else
            {
                Orientation = BarOrientation.vertical;
            }

            this.Refresh();
        }
Esempio n. 4
0
 /// <summary>
 /// コンストラクター
 /// </summary>
 /// <param name="width"></param>
 /// <param name="length"></param>
 /// <param name="ori"></param>
 /// <param name="maxValue"></param>
 public Bar(int width, int length, BarOrientation ori, float maxValue)
 {
     if (width < 0 || length < 0) {
         throw new ArgumentException ("Bar size is invalie");
     }
     this.width = width;
     this.length = length;
     this.orientation = ori;
     this.bgColor = Color.Black;
     this.fgColor = Color.Green;
     this.backgroundTexture = null;
     this.foregroundTexture = null;
     this.maxValue = maxValue;
     this.currentValue = maxValue;
     this.offset = new Vector2 (0, 0);
 }
Esempio n. 5
0
        public GraduationBar()
        {
            this.marge = 0;
            this.scale = 1;

            InitializeComponent();

            if (this.Size.Width > this.Size.Height)
            {
                this.Orientation = BarOrientation.horizontal;
            }
            else
            {
                Orientation = BarOrientation.vertical;
            }
        }
Esempio n. 6
0
        private void GraduationBar_SizeChanged(object sender, EventArgs e)
        {
            if (this.Size.Width > this.Size.Height)
                this.Orientation = BarOrientation.horizontal;
            else
                Orientation = BarOrientation.vertical;

            this.Refresh();
        }