Add setters to BDate and BCalendarView
* BDate setters don't perform any validation, use with caution. * BCalendarView setters do perform validation checks, and will adjust the day so it fits the requested month or year. * Add tests for the BCalendarView setters.
This commit is contained in:
@@ -79,8 +79,12 @@ public:
|
||||
virtual BSize PreferredSize();
|
||||
|
||||
int32 Day() const;
|
||||
int32 Year() const;
|
||||
int32 Month() const;
|
||||
int32 Year() const;
|
||||
|
||||
bool SetDay(int32 day);
|
||||
bool SetMonth(int32 month);
|
||||
bool SetYear(int32 year);
|
||||
|
||||
BDate Date() const;
|
||||
bool SetDate(const BDate& date);
|
||||
|
||||
Reference in New Issue
Block a user