Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BSP_DISCO_F469NI mbed
Widgets/Textbox.h
- Committer:
- Faberge
- Date:
- 2017-10-11
- Revision:
- 0:e06404fdff2f
- Child:
- 1:a6d179a9ffbb
File content as of revision 0:e06404fdff2f:
/*
* Textbox.h
*
* Copyright 2017 Faberge@TsarTeam
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef TEXTBOX_H
#define TEXTBOX_H
#include "Widget.h"
class Textbox : public Widget
{
public:
static const uint16_t DIMX = 0;
static const uint16_t DIMY = 0;
Textbox(uint16_t x, uint16_t y, color_t clr, char *s = "", mode_t m = LEFT_MODE) :
Widget(x, y, DIMX, DIMY, clr), str(s), mode(m) {draw(backColor);}
virtual void draw(color_t clr);
virtual uint16_t update() {return 0;};
private:
char * str;
mode_t mode;
};
#endif