162
162
downview.Draw (gr, area_width, area_height, rtl);
166
base.Draw (gr, area_width, area_height, rtl);
166
InitDraw (gr, area_width, area_height, rtl);
170
170
alpha -= (1 / (double) shading_time);
172
172
gr.Color = new Color (DefaultDrawingColor.R, DefaultDrawingColor.G, DefaultDrawingColor.B, alpha);
173
DrawObjectToMemorize (gr, area_width, area_height);
173
DrawObjectToMemorize (gr, area_width, area_height, rtl);
178
178
gr.Color = new Color (DefaultDrawingColor.R, DefaultDrawingColor.G, DefaultDrawingColor.B, alpha);
179
179
if (request_answer && DrawAnswer == false) {
180
DrawPossibleAnswers (gr, area_width, area_height);
180
DrawPossibleAnswers (gr, area_width, area_height, rtl);
182
DrawObjectToMemorize (gr, area_width, area_height);
182
DrawObjectToMemorize (gr, area_width, area_height, rtl);
189
189
gr.DrawBackground ();
190
190
gr.Color = new Cairo.Color (0, 0, 0);
191
191
gr.LineWidth = LineWidth;
192
DrawObjectToMemorize (gr, width, height);
195
public virtual void DrawPossibleAnswers (CairoContextEx gr, int area_width, int area_height) {}
197
public virtual void DrawObjectToMemorize (CairoContextEx gr, int area_width, int area_height)
192
DrawObjectToMemorize (gr, width, height, rtl);
195
public virtual void DrawPossibleAnswers (CairoContextEx gr, int area_width, int area_height, bool rtl)
197
foreach (Toolkit.Container container in Widgets)
198
container.Draw (gr, area_width, area_height, rtl);
201
public virtual void DrawObjectToMemorize (CairoContextEx gr, int area_width, int area_height, bool rtl)
199
203
double percentage;
201
if (draw_timer == false)
205
if (draw_timer == false || IsPreviewMode == true)
204
208
percentage = 100 - ((time_left * 100) / total_time);