Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXCalendar Class Reference

The Calendar Widget. More...

#include <FXCalendar.h>

Inheritance diagram for FX::FXCalendar:

FX::FXPacker FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject

List of all members.

Public Types

enum  {
  ID_CALENDAR = FXPacker::ID_LAST,
  ID_NEXTYEAR,
  ID_PREVYEAR,
  ID_NEXTMONTH,
  ID_PREVMONTH,
  ID_MONTH_START,
  ID_MONTH_END = ID_MONTH_START+12,
  ID_MONTH
}

Public Member Functions

 FXCalendar (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
void create ()
virtual void enable ()
virtual void disable ()
void setCurrentDate (FXDate date, FXbool notify=false)
FXDate getCurrentDate () const
void setCurrentMonth (FXint mo, FXbool notify=false)
FXint getCurrentMonth () const
FXCalendarViewcalendarView () const
void setFirstDay (FXint d)
FXint getFirstDay () const
void setFrameStyle (FXuint)
void setCalendarStyle (FXuint)
FXuint getCalendarStyle () const
void setBackColor (FXColor c)
FXColor getBackColor () const
void setTitleColor (FXColor c)
FXColor getTitleColor () const
void setTitleBackColor (FXColor c)
FXColor getTitleBackColor () const
void setDayColor (FXColor c)
FXColor getDayColor () const
void setOtherDayColor (FXColor c)
FXColor getOtherDayColor () const
void setTodayColor (FXColor c)
FXColor getTodayColor () const
void setWeekendColor (FXColor c)
FXColor getWeekendColor () const
void setOtherWeekendColor (FXColor c)
FXColor getOtherWeekendColor () const
void setHeaderFont (FXFont *fnt)
FXFontgetHeaderFont () const
void setCalendarFont (FXFont *fnt)
FXFontgetCalendarFont () const
virtual ~FXCalendar ()


Detailed Description

The Calendar Widget.

In addition of displaying the calendar, also provides month and year controls and optional frame.


Member Enumeration Documentation

anonymous enum

Enumerator:
ID_CALENDAR 
ID_NEXTYEAR 
ID_PREVYEAR 
ID_NEXTMONTH 
ID_PREVMONTH 
ID_MONTH_START 
ID_MONTH_END 
ID_MONTH 


Constructor & Destructor Documentation

FX::FXCalendar::FXCalendar ( FXComposite p,
FXObject tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = 0,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0 
)

Constructor.

virtual FX::FXCalendar::~FXCalendar (  )  [virtual]

Destructor.


Member Function Documentation

void FX::FXCalendar::create (  )  [virtual]

Create.

Reimplemented from FX::FXComposite.

virtual void FX::FXCalendar::enable (  )  [virtual]

Enable the window to receive mouse and keyboard events.

Reimplemented from FX::FXWindow.

virtual void FX::FXCalendar::disable (  )  [virtual]

Disable the window from receiving mouse and keyboard events.

Reimplemented from FX::FXWindow.

void FX::FXCalendar::setCurrentDate ( FXDate  date,
FXbool  notify = false 
)

Set date.

FXDate FX::FXCalendar::getCurrentDate (  )  const

Get the current date.

void FX::FXCalendar::setCurrentMonth ( FXint  mo,
FXbool  notify = false 
)

Set the current month; current day will be properly updated for the choosen month.

FXint FX::FXCalendar::getCurrentMonth (  )  const

Return the current month shown.

The month may be different than the current date if a day in a sibling month is current.

FXCalendarView* FX::FXCalendar::calendarView (  )  const [inline]

Return calendar view control.

void FX::FXCalendar::setFirstDay ( FXint  d  ) 

Set the first day of the week [0 -> 6].

FXint FX::FXCalendar::getFirstDay (  )  const

Get the first day of the week [0 -> 6].

void FX::FXCalendar::setFrameStyle ( FXuint   ) 

Change the Frame Style.

Reimplemented from FX::FXPacker.

void FX::FXCalendar::setCalendarStyle ( FXuint   ) 

Set the Calendar Style.

FXuint FX::FXCalendar::getCalendarStyle (  )  const

Get the Calendar Style.

void FX::FXCalendar::setBackColor ( FXColor  c  )  [virtual]

Set the back color.

Reimplemented from FX::FXWindow.

FXColor FX::FXCalendar::getBackColor (  )  const

Get the back color.

Reimplemented from FX::FXWindow.

void FX::FXCalendar::setTitleColor ( FXColor  c  ) 

Set the display color of titles.

FXColor FX::FXCalendar::getTitleColor (  )  const

Get the display color of titles.

void FX::FXCalendar::setTitleBackColor ( FXColor  c  ) 

Set the display color of titles.

FXColor FX::FXCalendar::getTitleBackColor (  )  const

Get the display color of titles.

void FX::FXCalendar::setDayColor ( FXColor  c  ) 

Set the display color of non-weekend days.

FXColor FX::FXCalendar::getDayColor (  )  const

Get the display color of non-weekend days.

void FX::FXCalendar::setOtherDayColor ( FXColor  c  ) 

Set the display color of non-weekend days not in the current month.

FXColor FX::FXCalendar::getOtherDayColor (  )  const

Get the display color of non-weekend days not in the current month.

void FX::FXCalendar::setTodayColor ( FXColor  c  ) 

Set the display color of today.

FXColor FX::FXCalendar::getTodayColor (  )  const

Get the display color of today.

void FX::FXCalendar::setWeekendColor ( FXColor  c  ) 

Set the display color of days in the weekend.

FXColor FX::FXCalendar::getWeekendColor (  )  const

Get the display color of days in the weekend.

void FX::FXCalendar::setOtherWeekendColor ( FXColor  c  ) 

Set the display color of days in the weekend not in the current month.

FXColor FX::FXCalendar::getOtherWeekendColor (  )  const

Get the display color of days in the weekend not in the current month.

void FX::FXCalendar::setHeaderFont ( FXFont fnt  ) 

Set font used by the header.

FXFont* FX::FXCalendar::getHeaderFont (  )  const

Get font used by the header.

void FX::FXCalendar::setCalendarFont ( FXFont fnt  ) 

Set font used by the calendar.

FXFont* FX::FXCalendar::getCalendarFont (  )  const

Get font used by the calendar.

Copyright © 1997-2009 Jeroen van der Zijp