/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: edam
  • Date: 2012-03-03 10:06:31 UTC
  • Revision ID: edam@waxworlds.org-20120303100631-ae3idks1703vdm05
widenned clock hands, tweaked scales, got top & bottom text modes working

Show diffs side-by-side

added added

removed removed

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