/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/text_renderer.h

  • Committer: Tim Marston
  • Date: 2012-03-21 21:24:17 UTC
  • Revision ID: tim@ed.am-20120321212417-dnba5l1oheddeyxw
fixed time centring and display in settings mode

Show diffs side-by-side

added added

removed removed

44
44
         * Draw a column of pixels at pixel-offset x in the message.
45
45
         *
46
46
         * @param message the message
47
 
         * @param message_len the length of the message (to save it being calculated)
 
47
         * @param message_len the length of the message (to save it being
 
48
         *              calculated)
48
49
         * @param x the pixel column of the message to draw
49
50
         * @param y_flip true to draw up-side down
50
51
         * @param y_shift shift the drawing up/down
57
58
         */
58
59
        void reset_buffer();
59
60
 
 
61
 
 
62
        /**
 
63
         * Notify renderer that the output buffer will require rendering.
 
64
         */
 
65
        void buffer_in_use();
 
66
 
 
67
 
60
68
        /**
61
69
         * Output the output buffer (and reset the output buffer).
62
70
         */
63
71
        void output_buffer();
64
72
 
65
73
        /**
66
 
         * Set the font number to use
 
74
         * Get the font number in use.
67
75
         *
68
 
         * @param font_num font number
69
 
         */
70
 
        void select_font( int font_num );
 
76
         * @return font number
 
77
         */
 
78
        int get_font();
 
79
 
 
80
        /**
 
81
         * Switch to the next font.
 
82
         */
 
83
        void inc_font();
71
84
 
72
85
};
73
86