/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.h

  • Committer: edam
  • Date: 2012-03-12 15:22:57 UTC
  • Revision ID: tim@ed.am-20120312152257-gb30ihjxq8jb0lss
added newline

Show diffs side-by-side

added added

removed removed

50
50
                MODE_HSCROLL = 32,
51
51
        };
52
52
 
53
 
        enum {
54
 
                SCALE_VSMALL = 1,
55
 
                SCALE_SMALL = 2,
56
 
                SCALE_NORMAL = 3,
57
 
                SCALE_FAT = 4,
58
 
                SCALE_VFAT = 5,
59
 
        };
60
 
 
61
53
        /**
62
54
         * After modifying a message buffer, call this to reset the internal state
63
55
         * of the text renderer with regard to this message.
72
64
         *
73
65
         * @param message_num the message to reset
74
66
         * @param mode the new mode for this message
75
 
         * @param scale text
76
67
         */
77
 
        void reset_message( int message_num, char mode, int scale = SCALE_NORMAL );
 
68
        void reset_message( int message_num, char mode );
78
69
 
79
70
        /**
80
71
         * Reset internal state, for a new text display.
87
78
        void draw_reset();
88
79
 
89
80
        /**
90
 
         * Call after drawing each frame
91
 
         */
92
 
        void post_draw();
93
 
 
94
 
        /**
95
81
         * Draw segment for the specified message number using whatever mode that
96
82
         * message is set to.
97
83
         *