7 public abstract class PanelDisplayBase
: DisplayBase
{
8 public PanelDisplayBase () {
23 private string _time_alt
;
24 public string time_alt
{
25 get { return _time_alt
; }
27 if (_time_alt
!= value
) {
34 protected double xruns_x
;
35 protected double xruns_y
;
36 protected double xruns_w
;
37 protected double xruns_h
;
38 protected uint32 _xruns
;
40 public signal void reset_xruns_requested ();
46 if (_xruns
!= value
) {
53 protected abstract void redraw_time ();
54 protected abstract void redraw_time_alt ();
56 protected static void debug_rect (Cairo
.Context cr
, double x
, double y
, double w
, double h
) {
58 set_source_from_color_string (cr
, "#ff0000");
59 cr
.rectangle (x
, y
, w
, h
);
64 protected bool is_in_rect (double x
, double y
, double r_x
, double r_y
, double r_w
, double r_h
) {
67 return (r_x
<= x
) && (x
<= r_x
+ r_w
)
68 && (r_y
<= y
) && (y
<= r_y
+ r_h
);
72 } //namespace Jackpanel