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);
818 if (class_name==
"ListHeader")
return true;
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_
Base class used as the argument to all subscribers Event object.
Definition: CEGUIEventArgs.h:52
virtual bool testClassName_impl(const String &class_name) const
Return whether this window was inherited from the given class name at some point in the inheritance h...
Definition: CEGUIWindow.h:3928
Base-class for the assignable WindowRenderer object.
Definition: CEGUIWindowRenderer.h:51
Property to access the current sort column (via ID code).
Definition: CEGUIListHeaderProperties.h:163
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: CEGUIWindow.h:138
Property to access the setting for user moving of the column headers.
Definition: CEGUIListHeaderProperties.h:85
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: CEGUIInputEvent.h:245
Class representing a unified dimension; that is a dimension that has both a relative 'scale' portion ...
Definition: CEGUIUDim.h:47
Property to access the setting for user sizing of the column headers.
Definition: CEGUIListHeaderProperties.h:59
String class used within the GUI system.
Definition: CEGUIString.h:57