30 #ifndef _CEGUIListHeader_h_
31 #define _CEGUIListHeader_h_
33 #include "../CEGUIBase.h"
34 #include "../CEGUIWindow.h"
35 #include "CEGUIListHeaderSegment.h"
36 #include "CEGUIListHeaderProperties.h"
40 # pragma warning(push)
41 # pragma warning(disable : 4251)
200 static const char SegmentNameSuffix[];
213 uint getColumnCount(
void)
const;
287 uint getColumnFromID(uint
id)
const;
300 uint getSortColumn(
void)
const;
315 uint getColumnWithText(
const String& text)
const;
346 float getPixelOffsetToColumn(uint column)
const;
356 float getTotalSegmentsPixelExtent(
void)
const;
372 UDim getColumnWidth(uint column)
const;
393 bool isSortingEnabled(
void)
const;
403 bool isColumnSizingEnabled(
void)
const;
413 bool isColumnDraggingEnabled(
void)
const;
441 void setSortingEnabled(
bool setting);
484 void setSortColumn(uint column);
499 void setSortColumnFromID(uint
id);
513 void setColumnSizingEnabled(
bool setting);
527 void setColumnDraggingEnabled(
bool setting);
546 void addColumn(
const String& text, uint
id,
const UDim& width);
569 void insertColumn(
const String& text, uint
id,
const UDim& width, uint position);
609 void removeColumn(uint column);
643 void moveColumn(uint column, uint position);
718 void setSegmentOffset(
float offset);
737 void setColumnWidth(uint column,
const UDim& width);
803 void layoutSegments(
void);
816 virtual bool testClassName_impl(
const String& class_name)
const
818 if (class_name==
"ListHeader")
return true;
851 virtual bool validateWindowRenderer(
const String& name)
const
853 return (name ==
"ListHeader");
945 bool segmentSizedHandler(
const EventArgs& e);
946 bool segmentMovedHandler(
const EventArgs& e);
947 bool segmentClickedHandler(
const EventArgs& e);
948 bool segmentDoubleClickHandler(
const EventArgs& e);
949 bool segmentDragHandler(
const EventArgs& e);
955 typedef std::vector<ListHeaderSegment*> SegmentList;
980 void addHeaderProperties(
void);
987 #if defined(_MSC_VER)
988 # pragma warning(pop)
991 #endif // end of guard _CEGUIListHeader_h_