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

FX::FXCalendarView Class Reference

The Basic Calendar Widget. More...

#include <FXCalendarView.h>

Inheritance diagram for FX::FXCalendarView:

FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject

List of all members.

Public Member Functions

 FXCalendarView (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=CALENDAR_BROWSESELECT, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
virtual void create ()
virtual void detach ()
virtual FXbool canFocus () const
virtual void setFocus ()
virtual void killFocus ()
virtual void enable ()
virtual void disable ()
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
FXbool getDateAt (FXint x, FXint y, FXDate &date) const
void setCurrentDate (FXDate date, FXbool notify=false)
FXDate getCurrentDate () const
void setCurrentMonth (FXint month, FXbool notify=false)
FXint getCurrentMonth () const
void selectDate (FXDate date, FXbool notify=false)
void killSelection (FXbool notify=false)
FXbool getSelectedDate (FXDate &date) const
void setFirstDay (FXint d)
FXint getFirstDay () const
void setCalendarStyle (FXuint)
FXuint getCalendarStyle () 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 setFont (FXFont *fnt)
FXFontgetFont () const
virtual ~FXCalendarView ()


Detailed Description

The Basic Calendar Widget.

Renders the base calendar and keeps track of selection. Most usefull to widget developers. Use it if you need a calendar rendered in some component.

See also:


Constructor & Destructor Documentation

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

Construct a Calendar View.

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

Destructor.


Member Function Documentation

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

Create server-side resources.

Reimplemented from FX::FXWindow.

virtual void FX::FXCalendarView::detach (  )  [virtual]

Detach server-side resources.

Reimplemented from FX::FXWindow.

virtual FXbool FX::FXCalendarView::canFocus (  )  const [virtual]

Yes we can.

Reimplemented from FX::FXWindow.

virtual void FX::FXCalendarView::setFocus (  )  [virtual]

Set focus.

Reimplemented from FX::FXWindow.

virtual void FX::FXCalendarView::killFocus (  )  [virtual]

Kill focus.

Reimplemented from FX::FXWindow.

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

Enable the window.

Reimplemented from FX::FXWindow.

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

Disable the window.

Reimplemented from FX::FXWindow.

virtual FXint FX::FXCalendarView::getDefaultWidth (  )  [virtual]

Return the default width of this window.

Reimplemented from FX::FXWindow.

virtual FXint FX::FXCalendarView::getDefaultHeight (  )  [virtual]

Return the default height of this window.

Reimplemented from FX::FXWindow.

FXbool FX::FXCalendarView::getDateAt ( FXint  x,
FXint  y,
FXDate date 
) const

Get date at x,y if any.

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

Set date.

FXDate FX::FXCalendarView::getCurrentDate (  )  const [inline]

Get the current date.

void FX::FXCalendarView::setCurrentMonth ( FXint  month,
FXbool  notify = false 
)

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

FXint FX::FXCalendarView::getCurrentMonth (  )  const [inline]

Return the current month shown.

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

void FX::FXCalendarView::selectDate ( FXDate  date,
FXbool  notify = false 
)

Select Date.

void FX::FXCalendarView::killSelection ( FXbool  notify = false  ) 

Deselect Date.

FXbool FX::FXCalendarView::getSelectedDate ( FXDate date  )  const

Get the selected date, if any.

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

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

FXint FX::FXCalendarView::getFirstDay (  )  const [inline]

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

void FX::FXCalendarView::setCalendarStyle ( FXuint   ) 

Set the calendar style.

FXuint FX::FXCalendarView::getCalendarStyle (  )  const

Get the calendar style.

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

Set the display color of titles.

FXColor FX::FXCalendarView::getTitleColor (  )  const [inline]

Get the display color of titles.

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

Set the display background color of titles.

FXColor FX::FXCalendarView::getTitleBackColor (  )  const [inline]

Get the display background color of titles.

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

Set the display color of non-weekend days.

FXColor FX::FXCalendarView::getDayColor (  )  const [inline]

Get the display color of non-weekend days.

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

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

FXColor FX::FXCalendarView::getOtherDayColor (  )  const [inline]

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

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

Set the display color of today.

FXColor FX::FXCalendarView::getTodayColor (  )  const [inline]

Get the display color of today.

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

Set the display color of days in the weekend.

FXColor FX::FXCalendarView::getWeekendColor (  )  const [inline]

Get the display color of days in the weekend.

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

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

FXColor FX::FXCalendarView::getOtherWeekendColor (  )  const [inline]

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

void FX::FXCalendarView::setFont ( FXFont fnt  ) 

Set the text font.

FXFont* FX::FXCalendarView::getFont (  )  const [inline]

Get the text font.

Copyright © 1997-2009 Jeroen van der Zijp