This commit is contained in:
Nishi 2026-09-14 03:22:51 +09:00
commit bcf9f8a123
13 changed files with 225 additions and 4 deletions

View file

@ -4,7 +4,9 @@
#include <MwCXX/Widget/Box.h>
#include <MwCXX/Widget/Button.h>
#include <MwCXX/Widget/Calendar.h>
#include <MwCXX/Widget/Chart.h>
#include <MwCXX/Widget/CheckBox.h>
#include <MwCXX/Widget/Clock.h>
#include <MwCXX/Widget/Entry.h>
#include <MwCXX/Widget/Frame.h>
#include <MwCXX/Widget/Image.h>

View file

@ -0,0 +1,30 @@
#ifndef __MWCXX_WIDGET_CHART_H__
#define __MWCXX_WIDGET_CHART_H__
#include <MwCXX/MachDep.h>
#include <MwCXX/Widget/Base.h>
#include <Mw/Widget/Chart.h>
namespace MwCXX {
class Chart : public MwCXX::Base {
protected:
virtual void RegisterHandlers();
public:
Chart(MwWidget widget, MwCXX::Base* parent = NULL);
Chart(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
int GetType();
void SetType(int value);
int GetMinValue();
void SetMinValue(int value);
int GetMaxValue();
void SetMaxValue(int value);
int Set(int index, MwCXX::String text, double value, MwCXX::String color);
void Delete(int index);
};
}; // namespace MwCXX
#endif

View file

@ -0,0 +1,27 @@
#ifndef __MWCXX_WIDGET_CLOCK_H__
#define __MWCXX_WIDGET_CLOCK_H__
#include <MwCXX/MachDep.h>
#include <MwCXX/Widget/Base.h>
#include <Mw/Widget/Clock.h>
namespace MwCXX {
class Clock : public MwCXX::Base {
protected:
virtual void RegisterHandlers();
public:
Clock(MwWidget widget, MwCXX::Base* parent = NULL);
Clock(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
int GetHour();
void SetHour(int value);
int GetMinute();
void SetMinute(int value);
int GetSecond();
void SetSecond(int value);
};
}; // namespace MwCXX
#endif

View file

@ -24,7 +24,10 @@ namespace MwCXX {
void (*ComboBoxChangedHandler)(MwCXX::ComboBox* widget, int value);
void Add();
void Add(int index, MwCXX::String text);
MwCXX::String Get(int index, MwCXX::String text);
void Delete(int index);
void Reset();
};
}; // namespace MwCXX

View file

@ -19,6 +19,8 @@ namespace MwCXX {
void SetHasBorder(int value);
int GetInverted();
void SetInverted(int value);
MwLLPixmap GetIconPixmap();
void SetIconPixmap(MwLLPixmap value);
};
}; // namespace MwCXX

View file

@ -24,6 +24,7 @@ namespace MwCXX {
MwCXX::Base* Add(MwCXX::String name);
MwCXX::Base* GetFrame(MwCXX::String name);
void Focus(MwCXX::String name);
};
}; // namespace MwCXX