Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/ceguilua/ceguilua-0.5.0/package/elements/ListHeader.pkg @ 2974

Last change on this file since 2974 was 2710, checked in by rgrieder, 16 years ago

Merged buildsystem3 containing buildsystem2 containing Adi's buildsystem branch back to the trunk.
Please update the media directory if you were not using buildsystem3 before.

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1/***********************************************************************
2        ListHeader
3***********************************************************************/
4class ListHeader : public Window
5{
6        unsigned int getColumnCount() const;
7
8        ListHeaderSegment& getSegmentFromColumn(unsigned int column) const;
9        ListHeaderSegment& getSegmentFromID(unsigned int id) const;
10        ListHeaderSegment& getSortSegment() const;
11
12        unsigned int getColumnFromSegment(const ListHeaderSegment& segment) const;
13        unsigned int getColumnFromID(unsigned int id) const;
14        unsigned int getSortColumn() const;
15        unsigned int getColumnWithText(string text) const;
16
17        float getPixelOffsetToSegment(const ListHeaderSegment& segment) const;
18        float getPixelOffsetToColumn(unsigned int column) const;
19        float getTotalSegmentsPixelExtent() const;
20        UDim  getColumnWidth(unsigned int column) const;
21
22        ListHeaderSegment::SortDirection getSortDirection() const;
23
24        bool isSortingEnabled() const;
25        bool isColumnSizingEnabled() const;
26        bool isColumnDraggingEnabled() const;
27
28        float getSegmentOffset() const;
29
30
31        void setSortingEnabled(bool setting);
32        void setSortDirection(ListHeaderSegment::SortDirection direction);
33        void setSortSegment(const ListHeaderSegment& segment);
34        void setSortColumn(unsigned int column);
35        void setSortColumnFromID(unsigned int id);
36
37        void setColumnSizingEnabled(bool setting);
38        void setColumnDraggingEnabled(bool setting);
39        void addColumn(string text, unsigned int id, const UDim& width);
40
41        void insertColumn(string text, unsigned int id, const UDim& width, unsigned int position);
42        void insertColumn(string text, unsigned int id, const UDim& width, const ListHeaderSegment& position);
43        void removeColumn(unsigned int column);
44        void removeSegment(const ListHeaderSegment& segment);
45
46        void moveColumn(unsigned int column, unsigned int position);
47        void moveColumn(unsigned int column, const ListHeaderSegment& position);
48
49        void moveSegment(const ListHeaderSegment& segment, unsigned int position);
50        void moveSegment(const ListHeaderSegment& segment, const ListHeaderSegment& position);
51
52        void setSegmentOffset(float offset);
53
54        void setColumnWidth(unsigned int column, const UDim& width);
55};
Note: See TracBrowser for help on using the repository browser.