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)
137 static const char SegmentNameSuffix[];
150 uint getColumnCount(
void)
const;
224 uint getColumnFromID(uint
id)
const;
237 uint getSortColumn(
void)
const;
252 uint getColumnWithText(
const String& text)
const;
283 float getPixelOffsetToColumn(uint column)
const;
293 float getTotalSegmentsPixelExtent(
void)
const;
309 UDim getColumnWidth(uint column)
const;
330 bool isSortingEnabled(
void)
const;
340 bool isColumnSizingEnabled(
void)
const;
350 bool isColumnDraggingEnabled(
void)
const;
378 void setSortingEnabled(
bool setting);
421 void setSortColumn(uint column);
436 void setSortColumnFromID(uint
id);
450 void setColumnSizingEnabled(
bool setting);
464 void setColumnDraggingEnabled(
bool setting);
483 void addColumn(
const String& text, uint
id,
const UDim& width);
506 void insertColumn(
const String& text, uint
id,
const UDim& width, uint position);
546 void removeColumn(uint column);
580 void moveColumn(uint column, uint position);
655 void setSegmentOffset(
float offset);
674 void setColumnWidth(uint column,
const UDim& width);
740 void layoutSegments(
void);
753 virtual bool testClassName_impl(
const String& class_name)
const
755 if (class_name==
"ListHeader")
return true;
788 virtual bool validateWindowRenderer(
const String& name)
const
790 return (name ==
"ListHeader");
882 bool segmentSizedHandler(
const EventArgs& e);
883 bool segmentMovedHandler(
const EventArgs& e);
884 bool segmentClickedHandler(
const EventArgs& e);
885 bool segmentDoubleClickHandler(
const EventArgs& e);
886 bool segmentDragHandler(
const EventArgs& e);
892 typedef std::vector<ListHeaderSegment*> SegmentList;
917 void addHeaderProperties(
void);
924 #if defined(_MSC_VER)
925 # pragma warning(pop)
928 #endif // end of guard _CEGUIListHeader_h_