/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: Tim Marston
  • Date: 2012-05-17 22:49:11 UTC
  • Revision ID: tim@ed.am-20120517224911-dbd9dtcpl14xlhi0
rewrote/fixed button event triggering code

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.
74
66
         * @param mode the new mode for this message
75
67
         * @param scale text
76
68
         */
77
 
        void reset_message( int message_num, char mode, int scale = SCALE_NORMAL );
 
69
        void reset_message( int message_num, char mode, int scale = 3 );
78
70
 
79
71
        /**
80
72
         * Reset internal state, for a new text display.
87
79
        void draw_reset();
88
80
 
89
81
        /**
90
 
         * Call after drawing each frame
91
 
         */
92
 
        void post_draw();
93
 
 
94
 
        /**
95
82
         * Draw segment for the specified message number using whatever mode that
96
83
         * message is set to.
97
84
         *