ClanLib
2.3.7
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
Sources
API
GUI
Components
listview_column_header.h
Go to the documentation of this file.
1
/*
2
** ClanLib SDK
3
** Copyright (c) 1997-2011 The ClanLib Team
4
**
5
** This software is provided 'as-is', without any express or implied
6
** warranty. In no event will the authors be held liable for any damages
7
** arising from the use of this software.
8
**
9
** Permission is granted to anyone to use this software for any purpose,
10
** including commercial applications, and to alter it and redistribute it
11
** freely, subject to the following restrictions:
12
**
13
** 1. The origin of this software must not be misrepresented; you must not
14
** claim that you wrote the original software. If you use this software
15
** in a product, an acknowledgment in the product documentation would be
16
** appreciated but is not required.
17
** 2. Altered source versions must be plainly marked as such, and must not be
18
** misrepresented as being the original software.
19
** 3. This notice may not be removed or altered from any source distribution.
20
**
21
** Note: Some of the libraries ClanLib may link to may have additional
22
** requirements or restrictions.
23
**
24
** File Author(s):
25
**
26
** Magnus Norddahl
27
** Harry Storbacka
28
*/
29
32
33
#pragma once
34
35
#include "../api_gui.h"
36
37
class
CL_ListViewColumnHeader_Impl;
38
class
CL_GUIThemePart
;
39
43
class
CL_API_GUI
CL_ListViewColumnHeader
44
{
47
48
public
:
49
// Construct a null instance
50
CL_ListViewColumnHeader
();
51
52
~
CL_ListViewColumnHeader
();
53
57
58
public
:
59
enum
TextAlignment
60
{
61
align_left
,
62
align_right
,
63
align_center
64
};
65
67
bool
is_null
()
const
{
return
!impl; }
68
70
void
throw_if_null()
const
;
71
75
CL_StringRef
get_column_id()
const
;
76
80
CL_StringRef
get_caption()
const
;
81
85
int
get_width();
86
90
int
get_used_width();
91
92
CL_ListViewColumnHeader::TextAlignment
get_alignment();
93
97
CL_ListViewColumnHeader
get_next_sibling();
98
102
CL_ListViewColumnHeader
get_prev_sibling();
103
107
108
public
:
109
113
void
set_alignment(
CL_ListViewColumnHeader::TextAlignment
align);
114
118
void
set_width(
int
width);
119
123
void
set_caption(
const
CL_StringRef
&str);
124
128
void
set_column_id(
const
CL_StringRef
&str);
129
133
134
public
:
135
CL_Callback_v1<CL_ListViewColumnHeader>
&func_size_changed();
136
140
141
private
:
142
146
CL_ListViewColumnHeader
(
const
CL_SharedPtr<CL_ListViewColumnHeader_Impl> &impl);
147
151
void
set_rect(
const
CL_Rect
&rect);
152
156
void
set_gui_theme_part(
const
CL_GUIThemePart
&part);
157
158
CL_SharedPtr<CL_ListViewColumnHeader_Impl> impl;
159
160
friend
class
CL_ListView_Impl;
161
friend
class
CL_ListViewHeader
;
162
friend
class
CL_ListViewHeader_Impl;
164
};
165
Generated on Fri Jun 14 2013 13:05:45 for ClanLib by
1.8.4