add clock widget (closes #35)
This commit is contained in:
parent
8fb77771bb
commit
c6aaf54656
15 changed files with 210 additions and 16 deletions
|
|
@ -13,6 +13,13 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Get a color difference for shadow
|
||||
* @param handle Widget
|
||||
* @return Color difference
|
||||
*/
|
||||
MWDECL int MWAPI MwGetColorDifference(MwWidget handle);
|
||||
|
||||
/*!
|
||||
* @brief Parses a color text
|
||||
* @param handle Widget
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265
|
||||
#define M_PI 3.14159265359
|
||||
#endif
|
||||
|
||||
/* Windows */
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
#include <Mw/Widget/Button.h>
|
||||
#include <Mw/Widget/Calendar.h>
|
||||
#include <Mw/Widget/CheckBox.h>
|
||||
#include <Mw/Widget/Clock.h>
|
||||
#include <Mw/Widget/ComboBox.h>
|
||||
#include <Mw/Widget/Entry.h>
|
||||
#include <Mw/Widget/Frame.h>
|
||||
|
|
|
|||
|
|
@ -54,6 +54,9 @@
|
|||
#define MwNrowSpan "IrowSpan"
|
||||
#define MwNdisabled "Idisabled"
|
||||
#define MwNacceptsDnD "IacceptsDnD"
|
||||
#define MwNhour "Ihour"
|
||||
#define MwNminute "Iminute"
|
||||
#define MwNsecond "Isecond"
|
||||
|
||||
#define MwNtitle "Stitle"
|
||||
#define MwNtext "Stext"
|
||||
|
|
|
|||
24
include/Mw/Widget/Clock.h
Normal file
24
include/Mw/Widget/Clock.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/*!
|
||||
* @file Mw/Widget/Clock.h
|
||||
* @brief Clock widget
|
||||
*/
|
||||
#ifndef __MW_WIDGET_CLOCK_H__
|
||||
#define __MW_WIDGET_CLOCK_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Clock widget class
|
||||
*/
|
||||
MWDECL MwClass MwClockClass;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue