DrawClock() public method

public DrawClock ( double x, double y, double size, int hand_short, int hand_large ) : void
x double
y double
size double
hand_short int
hand_large int
return void
Example #1
0
        public override void Draw(CairoContextEx gr, int area_width, int area_height, bool rtl)
        {
            base.Draw (gr, area_width, area_height, rtl);
            gr.DrawClock (DrawAreaX + 0.4, DrawAreaY + 0.4, figure_size,
                0, 0 /* No hands */);

            gr.DrawTextCentered (0.5, DrawAreaY + 0.3 + figure_size, Translations.GetString ("Sample clock"));
        }