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

long onPaint (FXObject *, FXSelector, void *)
long onLeftBtnPress (FXObject *, FXSelector, void *)
long onLeftBtnRelease (FXObject *, FXSelector, void *)
long onKeyPress (FXObject *, FXSelector, void *)
long onKeyRelease (FXObject *, FXSelector, void *)
long onFocusIn (FXObject *, FXSelector, void *)
long onFocusOut (FXObject *, FXSelector, void *)
long onClicked (FXObject *, FXSelector, void *)
long onDoubleClicked (FXObject *, FXSelector, void *)
long onTripleClicked (FXObject *, FXSelector, void *)
long onCommand (FXObject *, FXSelector, void *)
long onCmdSetValue (FXObject *, FXSelector, void *)
long onCmdSetIntValue (FXObject *, FXSelector, void *)
long onCmdGetIntValue (FXObject *, FXSelector, void *)
 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 void create ()
 Create server-side resources.
virtual void detach ()
 Detach server-side resources.
virtual FXbool canFocus () const
 Yes we can.
virtual void setFocus ()
 Set focus.
virtual void killFocus ()
 Kill focus.
virtual void enable ()
 Enable the window.
virtual void disable ()
 Disable the window.
virtual FXint getDefaultWidth ()
 Return the default width of this window.
virtual FXint getDefaultHeight ()
 Return the default height of this window.
FXbool getDateAt (FXint x, FXint y, FXDate &date) const
 Get date at x,y if any.
void setCurrentDate (FXDate date, FXbool notify=false)
 Set date.
FXDate getCurrentDate () const
 Get the current date.
void setCurrentMonth (FXint month, FXbool notify=false)
 Set the current month; current day will be properly updated for the choosen month.
FXint getCurrentMonth () const
 Return the current month shown.
void selectDate (FXDate date, FXbool notify=false)
 Select Date.
void killSelection (FXbool notify=false)
 Deselect Date.
FXbool getSelectedDate (FXDate &date) const
 Get the selected date, if any.
void setFirstDay (FXint d)
 Set the first day of the week [0...6].
FXint getFirstDay () const
 Get the first day of the week [0...6].
void setCalendarStyle (FXuint)
 Set the calendar style.
FXuint getCalendarStyle () const
 Get the calendar style.
void setTitleColor (FXColor c)
 Set the display color of titles.
FXColor getTitleColor () const
 Get the display color of titles.
void setTitleBackColor (FXColor c)
 Set the display background color of titles.
FXColor getTitleBackColor () const
 Get the display background color of titles.
void setDayColor (FXColor c)
 Set the display color of non-weekend days.
FXColor getDayColor () const
 Get the display color of non-weekend days.
void setOtherDayColor (FXColor c)
 Set the display color of non-weekend days not in the current month.
FXColor getOtherDayColor () const
 Get the display color of non-weekend days not in the current month.
void setTodayColor (FXColor c)
 Set the display color of today.
FXColor getTodayColor () const
 Get the display color of today.
void setWeekendColor (FXColor c)
 Set the display color of days in the weekend.
FXColor getWeekendColor () const
 Get the display color of days in the weekend.
void setOtherWeekendColor (FXColor c)
 Set the display color of days in the weekend not in the current month.
FXColor getOtherWeekendColor () const
 Get the display color of days in the weekend not in the current month.
void setFont (FXFont *fnt)
 Set the text font.
FXFontgetFont () const
 Get the text font.
virtual ~FXCalendarView ()
 Destructor.

Protected Member Functions

void moveFocus (FXDate)
void markdirty (FXDate)
void updateview (FXbool notify=true)

Protected Attributes

FXFontfont
FXDate current
FXDate selected
FXDate ds
FXint month
FXint firstday
FXint ws
FXColor todayColor
FXColor titleColor
FXColor titleBackColor
FXColor dayColor
FXColor otherDayColor
FXColor weekendColor
FXColor otherWeekendColor
FXbool has_selection
FXbool state

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Copyright © 1997-2011 Jeroen van der Zijp