ClanLib
2.3.7
|
List view component. More...
#include <listview.h>
Public Member Functions | |
Construction | |
CL_ListView (CL_GUIComponent *parent) | |
Constructs a ListView. More... | |
virtual | ~CL_ListView () |
Operations | |
CL_ListViewItem | create_item () |
Create item. More... | |
void | set_scroll_position (int pos) |
Set listview scrollbar position. More... | |
void | on_process_message (CL_GUIMessage &msg) |
On process message. More... | |
void | set_select_whole_row (bool value) |
When true, the whole row is drawn selected, as opposed to only the first column. More... | |
void | set_multi_select (bool value) |
When true, multiple items can be selected. More... | |
void | set_display_mode (CL_ListViewDisplayMode mode) |
Set display mode. More... | |
void | show_detail_icon (bool enable=true) |
Set if icons are shown in the detail display mode. More... | |
void | show_detail_opener (bool enable=true) |
Set if node opener is shown in the detail display mode. More... | |
void | clear () |
Remove all items. More... | |
void | clear_selection () |
Unselect all selected items. More... | |
void | set_selected (CL_ListViewItem &item, bool selected=true) |
Set selected. More... | |
CL_ListViewItem | find (const CL_StringRef &col_id, const CL_StringRef &str, bool recursive=true) |
Returns a CL_ListViewItem with the string 'str' in the column 'col_id' or a NULL item if none found. More... | |
CL_ListViewItem | find (int id, bool recursive=true) |
Returns the first CL_ListViewItem with the specified ID, or a NULL item if none found. More... | |
CL_ListViewItem | find (CL_SharedPtr< CL_ListViewItemUserData > userdata, bool recursive=true) |
Returns a CL_ListViewItem with the userdata 'ptr', or a NULL item if none found. More... | |
Events | |
CL_Callback_v1 < CL_ListViewSelection > & | func_selection_changed () |
Selected items are returned as children of the returned item. More... | |
CL_Callback_v1< const CL_ListViewItem & > & | func_item_doubleclick () |
Invoked on double clicking a listview item. More... | |
CL_Callback_2< bool, CL_ListViewItem, CL_String & > & | func_item_edited () |
Invoked when enter is pressed in the ListViews built-in LineEdit control. The caller may change the passed string. Returning false from the callback cancels the edit. More... | |
CL_Callback_v1< CL_InputEvent > & | func_key_pressed () |
CL_Callback_v1< CL_InputEvent > & | func_key_released () |
CL_Callback_v1< CL_Point > & | func_mouse_right_up () |
Callback called when the right mouse button is released (a click). Use this callback for listview context menus. Click position sent as parameter. More... | |
Events | |
CL_Callback_v2 < CL_GraphicContext &, const CL_Rect & > & | func_render () |
void func_render(CL_GraphicContext &gc, const CL_Rect &clip_rect) More... | |
CL_Callback_v1< CL_GUIMessage & > & | func_process_message () |
void func_process_message(const CL_GUIMessage &message) More... | |
CL_Callback_0< bool > & | func_close () |
bool func_close() More... | |
CL_Callback_0< bool > & | func_activated () |
bool func_activated() More... | |
CL_Callback_0< bool > & | func_deactivated () |
bool func_deactivated() More... | |
CL_Callback_0< bool > & | func_focus_lost () |
bool func_focus_lost() More... | |
CL_Callback_0< bool > & | func_focus_gained () |
bool func_focus_gained() More... | |
CL_Callback_0< bool > & | func_pointer_enter () |
bool func_pointer_enter() More... | |
CL_Callback_0< bool > & | func_pointer_exit () |
bool func_pointer_exit() More... | |
CL_Callback_v1< CL_GUIMessage & > & | func_filter_message () |
Lets a component filter the messages intended for another component. Consumed messages will not reach the original target component. More... | |
CL_Callback_1< bool, const CL_InputEvent & > & | func_input () |
bool func_input(const CL_InputEvent &input_event) More... | |
CL_Callback_1< bool, const CL_InputEvent & > & | func_input_pressed () |
bool func_input_pressed(const CL_InputEvent &input_event) More... | |
CL_Callback_1< bool, const CL_InputEvent & > & | func_input_released () |
bool func_input_released(const CL_InputEvent &input_event) More... | |
CL_Callback_1< bool, const CL_InputEvent & > & | func_input_doubleclick () |
bool func_input_doubleclick(const CL_InputEvent &input_event) More... | |
CL_Callback_1< bool, const CL_InputEvent & > & | func_input_pointer_moved () |
bool func_input_pointer_moved(const CL_InputEvent &input_event) More... | |
CL_Callback_v1< bool > & | func_visibility_change () |
bool func_visibility_change() More... | |
CL_Callback_v0 & | func_style_changed () |
void func_style_changed() More... | |
CL_Callback_v0 & | func_enablemode_changed () |
void func_enablemode_changed() More... | |
CL_Callback_v0 & | func_resized () |
Callback invoked when the component is resized, i.e. when set_geometry is called. More... | |
CL_Callback_v1< CL_Rect & > & | func_constrain_resize () |
void func_constrain_resize(CL_Rect &geometry) More... | |
virtual CL_Callback_2 < CL_GUIComponent *, CL_GUIComponent *, CL_String > & | func_create_custom_component () |
Callback invoked when loading a custom component from XML. More... | |
Operations | |
void | render (CL_GraphicContext &gc, const CL_Rect &clip_rect, bool include_children=true) |
Renders the component and its children. More... | |
void | paint () |
Paints the component. More... | |
void | paint (const CL_Rect &clip_rect) |
Paint. More... | |
int | exec () |
Run component in modal mode. More... | |
void | exit_with_code (int exit_code) |
Break message pump. More... | |
void | set_geometry (CL_Rect geometry) |
Set component position and size. More... | |
void | set_window_geometry (CL_Rect geometry) |
Set component window position and size. More... | |
void | set_type_name (const CL_StringRef &name) |
Sets the component type name. (csstype.cssclass::cssid) More... | |
void | set_class_name (const CL_StringRef &name) |
Sets the component class name. (csstype.cssclass::cssid) More... | |
void | set_id_name (const CL_StringRef &name) |
Sets the component ID name. (csstype.cssclass::cssid) More... | |
void | set_enabled (bool enable=true) |
Sets the component as enabled or disabled. More... | |
void | set_clip_children (bool clip=true, const CL_Rect &clip_rect=CL_Rect(0, 0, 0, 0)) |
Sets the components children to be clipped to the parent component when drawn. More... | |
void | set_visible (bool visible=true, bool activate_root_win=true) |
Sets the component as visible or hidden. More... | |
void | set_focus (bool enable=true) |
Set this component focus. More... | |
void | capture_mouse (bool capture) |
Make all mouse messages be redirected to this component. More... | |
void | capture_proximity (bool capture) |
Make tablet proximity messages be redirected to this component. More... | |
void | set_focus_policy (FocusPolicy policy) |
Sets the focus policy of the component. More... | |
void | set_double_click_enabled (bool enable) |
Modifies whether this component will generate double click messages or not. More... | |
void | set_component_group_name (const CL_StringRef &str) |
Set group name. More... | |
void | set_selected_in_component_group (bool selected) |
Set to true if this component is the selected item in a group of components where FocusPolicy is focus_group. More... | |
void | create_components (const CL_DomDocument &gui_xml) |
Create child components from a GUI definition file. More... | |
void | create_components (const CL_StringRef &fullname) |
Create components. More... | |
void | create_components (CL_IODevice &file) |
Create components. More... | |
void | create_components (const CL_StringRef &filename, const CL_VirtualDirectory &dir) |
Create components. More... | |
void | request_repaint () |
void | request_repaint (CL_Rect rect) |
Request repaint. More... | |
void | set_cliprect (CL_GraphicContext &gc, const CL_Rect &rect) |
Set a clipping rectangle. More... | |
void | reset_cliprect (CL_GraphicContext &gc) |
Reset the clipping rectangle. More... | |
void | push_cliprect (CL_GraphicContext &gc, const CL_Rect &rect) |
Push a clipping rectangle. More... | |
void | pop_cliprect (CL_GraphicContext &gc) |
Pop a clipping rectangle. More... | |
void | delete_child_components () |
Deletes all child components. More... | |
void | set_parent_component (CL_GUIComponent *new_parent) |
Makes this component a child of the given component, removing it from the previous parent. More... | |
void | set_layout (CL_GUILayout &layout) |
Set a layout on the component. More... | |
void | set_cursor (const CL_Cursor &cursor) |
Sets the current cursor icon. More... | |
void | set_cursor (enum CL_StandardCursor type) |
Set cursor. More... | |
void | focus_next () |
Set focus to the next component in tab order. More... | |
void | focus_previous () |
Set focus to the previous component in tab order. More... | |
void | set_default (bool value) |
When set to true, this component will receive unhandled enter/return keypress messages. More... | |
void | set_cancel (bool value) |
When set to true, this component will receive unhandled escape keypress messages. More... | |
void | set_blocks_default_action (bool block) |
Set to true if this component, when focused, blocks the default action of the parent dialog. More... | |
void | set_constant_repaint (bool enable) |
Enabled whether the GUI will constantly repaint this component when there are no other messages to process. More... | |
void | load_css_layout (const CL_String &xml_filename, const CL_String &css_filename) |
Loads a layout from file. More... | |
Attributes | |
int | get_scroll_position () |
Get current listview scrollbar position. More... | |
int | get_scroll_max_position () |
Get maximal listview scrollbar position. More... | |
CL_ListViewHeader * | get_header () const |
Get Header. More... | |
CL_ListViewItem | get_document_item () const |
Get Document item. More... | |
bool | get_select_whole_row () const |
Get Select whole row. More... | |
CL_ListViewIconList | get_icon_list () const |
Get Icon list. More... | |
CL_ListViewSelection | get_selected_items () const |
Returns a container class holding the selected items in a linked list structure. More... | |
CL_ListViewItem | get_selected_item () |
Returns the currently selected item in single selection mode. More... | |
CL_Size | get_preferred_size () const |
Returns the preferred size of the component, as defined in its CSS file. More... | |
CL_ListViewDisplayMode | get_display_mode () const |
Get Display mode. More... | |
static CL_ListView * | get_named_item (CL_GUIComponent *reference_component, const CL_StringRef &id) |
Find the child CL_ListView with the specified component ID name. More... | |
Implementation | |
class | CL_ListViewRenderer |
Attributes | |
CL_Rect | get_geometry () const |
Returns the position and size of the drawable area of the component. More... | |
int | get_width () const |
Returns the width of the drawable area of the component. More... | |
int | get_height () const |
Returns the height of the drawable area of the component. More... | |
CL_Size | get_size () const |
Returns the size of the drawable area of the component. More... | |
CL_Rect | get_window_geometry () const |
Returns the position and size of the component window (window frame, borders etc). More... | |
CL_StringRef | get_type_name () const |
Returns the component type name. More... | |
CL_StringRef | get_class_name () const |
Returns the component class name. More... | |
CL_StringRef | get_id_name () const |
Returns the component ID name. More... | |
CL_StringRef | get_element_name () const |
Returns the CSS element name for the component. More... | |
bool | has_focus () const |
Returns true if the component has the focus. More... | |
bool | get_allow_resize () const |
Returns true if the components size can be changed. More... | |
bool | get_clip_children () const |
Returns true if the components children are clipped to the parent component when drawn. More... | |
FocusPolicy | get_focus_policy () const |
Returns the focus policy of the component. More... | |
CL_StringRef | get_component_group_name () const |
Returns the name of the component group, or an empty string if no group name has been set. More... | |
bool | is_selected_in_group () const |
Returns true if the component is the selected item in a group of components where FocusPolicy is focus_group. More... | |
bool | get_blocks_default_action () const |
Returns true if this component, when focused, blocks the default action of its parent dialog. More... | |
CL_ResourceManager | get_resources () const |
Returns the resource manager for the GUI resources. More... | |
CL_GUIManager | get_gui_manager () const |
Returns the GUI manager owning this component. More... | |
CL_GUITheme | get_theme () const |
Returns the theme used by this component. More... | |
const CL_GUIComponent * | get_parent_component () const |
Returns the parent component. More... | |
CL_GUIComponent * | get_parent_component () |
Get Parent component. More... | |
const CL_GUIComponent * | get_owner_component () const |
Return the component owning this component. More... | |
CL_GUIComponent * | get_owner_component () |
Get Owner component. More... | |
std::vector< CL_GUIComponent * > | get_child_components () const |
Returns a list of the child components. More... | |
const CL_GUIComponent * | get_first_child () const |
Returns the first child component. More... | |
CL_GUIComponent * | get_first_child () |
Get First child. More... | |
const CL_GUIComponent * | get_last_child () const |
Returns the last child component. More... | |
CL_GUIComponent * | get_last_child () |
Get Last child. More... | |
CL_GUIComponent * | get_next_component_in_tree () |
Returns the next component in the component tree, or 'this', if none found. More... | |
CL_GUIComponent * | get_previous_component_in_tree () |
Returns the previous component in the component tree, or 'this', if none found. More... | |
std::vector< CL_GUIComponent * > | get_child_component_group (const CL_String &group_name) const |
Returns a list of child components belonging to the specified group. More... | |
CL_GUIComponent * | get_group_selected_component () |
Returns the selected item in a component group of which this component is a member. More... | |
CL_GUIComponent * | get_named_item (const CL_StringRef &id) |
Find child component with the specified component ID name. More... | |
bool | has_child_components () const |
Returns true if the component has any child components. More... | |
const CL_GUIComponent * | get_previous_sibling () const |
Returns the previous sibling component. More... | |
CL_GUIComponent * | get_previous_sibling () |
Get Previous sibling. More... | |
const CL_GUIComponent * | get_next_sibling () const |
Returns the next sibling component. More... | |
CL_GUIComponent * | get_next_sibling () |
Get Next sibling. More... | |
bool | is_descendant_of (CL_GUIComponent *component) |
Checks if this component is a descendant of target component. More... | |
bool | is_ancestor_of (CL_GUIComponent *component) |
Checks if this component is the ancestor of target component. More... | |
const CL_GUIComponent * | get_top_level_component () const |
Returns the top level component this CL_GUIComponent is a child of. More... | |
CL_GUIComponent * | get_top_level_component () |
Get Top level component. More... | |
CL_GraphicContext & | get_gc () |
Return the graphic context for the component. More... | |
CL_InputContext & | get_ic () |
Return the input context for the component. More... | |
bool | is_enabled () const |
Return true if the component, and all its parents are enabled. More... | |
bool | is_visible () const |
Return true if the component, and all its parents are visible. More... | |
bool | is_active () const |
Returns true if the component is active. More... | |
CL_GUIComponent * | get_component_at (const CL_Point &point) |
Return the component under 'point', in local viewport coordinates. More... | |
int | get_preferred_width () const |
Returns the preferred width of a render box. More... | |
int | get_preferred_height () const |
Returns the preferred height of a render box. More... | |
CL_Point | window_to_component_coords (const CL_Point &window_point) const |
Convert the top-level window client coordinates to component coordinates. More... | |
CL_Rect | window_to_component_coords (const CL_Rect &window_rect) const |
Convert the top-level window client coordinates to component coordinates. More... | |
CL_Point | component_to_window_coords (const CL_Point &component_point) const |
Convert the component coordinates to top-level window client coordinates. More... | |
CL_Rect | component_to_window_coords (const CL_Rect &component_rect) const |
Convert the component coordinates to top-level window client coordinates. More... | |
CL_Point | screen_to_component_coords (const CL_Point &screen_point) const |
Convert the screen coordinates to component coordinates. More... | |
CL_Point | component_to_screen_coords (const CL_Point &component_point) const |
Convert the component coordinates to screen coordinates. More... | |
CL_GUILayout | get_layout () const |
Returns the layout manager set for this component. Check CL_GUILayout.is_null() if none set. More... | |
CL_DisplayWindow | get_display_window () const |
Returns the display window in which this component is hosted. More... | |
bool | is_default () |
Returns true if this component will receive unhandled enter/return keypress messages. More... | |
bool | is_cancel () |
Returns true if this component will receive unhandled escape keypress messages. More... | |
bool | is_double_click_enabled () const |
Returns true if this component will generate double click messages. More... | |
bool | get_constant_repaint () const |
Enabled whether the GUI will constantly repaint this component when there are no other messages to process. More... | |
CL_CSSLayout | get_css_layout () |
Gets the css layout. More... | |
CL_CSSLayoutElement | get_css_element () |
Gets the css element for this component. More... | |
enum | FocusPolicy { focus_refuse, focus_local, focus_group, focus_parent } |
Focus policies. More... | |
List view component.
|
inherited |
CL_ListView::CL_ListView | ( | CL_GUIComponent * | parent) |
Constructs a ListView.
parent | = GUIComponent |
|
virtual |
|
inherited |
Make all mouse messages be redirected to this component.
|
inherited |
Make tablet proximity messages be redirected to this component.
void CL_ListView::clear | ( | ) |
Remove all items.
void CL_ListView::clear_selection | ( | ) |
Unselect all selected items.
|
inherited |
Convert the component coordinates to screen coordinates.
|
inherited |
Convert the component coordinates to top-level window client coordinates.
|
inherited |
Convert the component coordinates to top-level window client coordinates.
|
inherited |
Create child components from a GUI definition file.
|
inherited |
Create components.
fullname | = String Ref |
|
inherited |
Create components.
file | = IODevice |
|
inherited |
Create components.
filename | = String Ref |
dir | = Virtual Directory |
CL_ListViewItem CL_ListView::create_item | ( | ) |
Create item.
|
inherited |
Deletes all child components.
|
inherited |
Run component in modal mode.
|
inherited |
Break message pump.
This function causes CL_GUIComponent::exec or CL_GUIManager::exec to exit with the given exit code.
CL_ListViewItem CL_ListView::find | ( | const CL_StringRef & | col_id, |
const CL_StringRef & | str, | ||
bool | recursive = true |
||
) |
Returns a CL_ListViewItem with the string 'str' in the column 'col_id' or a NULL item if none found.
CL_ListViewItem CL_ListView::find | ( | int | id, |
bool | recursive = true |
||
) |
Returns the first CL_ListViewItem with the specified ID, or a NULL item if none found.
CL_ListViewItem CL_ListView::find | ( | CL_SharedPtr< CL_ListViewItemUserData > | userdata, |
bool | recursive = true |
||
) |
Returns a CL_ListViewItem with the userdata 'ptr', or a NULL item if none found.
|
inherited |
Set focus to the next component in tab order.
|
inherited |
Set focus to the previous component in tab order.
|
inherited |
bool func_activated()
|
inherited |
bool func_close()
|
inherited |
void func_constrain_resize(CL_Rect &geometry)
|
virtualinherited |
Callback invoked when loading a custom component from XML.
The type of the component to create is passed as a parameter to the function. The callback function should create the desired component and return it, or return 0, if no component is created. Example definition: CL_GUIComponent *Foo::on_create_custom_component(CL_GUIComponent *parent, CL_String type);
|
inherited |
bool func_deactivated()
|
inherited |
|
inherited |
Lets a component filter the messages intended for another component. Consumed messages will not reach the original target component.
|
inherited |
bool func_focus_gained()
|
inherited |
bool func_focus_lost()
|
inherited |
bool func_input(const CL_InputEvent &input_event)
|
inherited |
bool func_input_doubleclick(const CL_InputEvent &input_event)
|
inherited |
bool func_input_pointer_moved(const CL_InputEvent &input_event)
|
inherited |
bool func_input_pressed(const CL_InputEvent &input_event)
|
inherited |
bool func_input_released(const CL_InputEvent &input_event)
CL_Callback_v1<const CL_ListViewItem &>& CL_ListView::func_item_doubleclick | ( | ) |
Invoked on double clicking a listview item.
CL_Callback_2<bool, CL_ListViewItem, CL_String &>& CL_ListView::func_item_edited | ( | ) |
Invoked when enter is pressed in the ListViews built-in LineEdit control. The caller may change the passed string. Returning false from the callback cancels the edit.
CL_Callback_v1<CL_InputEvent>& CL_ListView::func_key_pressed | ( | ) |
CL_Callback_v1<CL_InputEvent>& CL_ListView::func_key_released | ( | ) |
CL_Callback_v1<CL_Point>& CL_ListView::func_mouse_right_up | ( | ) |
Callback called when the right mouse button is released (a click). Use this callback for listview context menus. Click position sent as parameter.
|
inherited |
bool func_pointer_enter()
|
inherited |
bool func_pointer_exit()
|
inherited |
void func_process_message(const CL_GUIMessage &message)
|
inherited |
void func_render(CL_GraphicContext &gc, const CL_Rect &clip_rect)
|
inherited |
Callback invoked when the component is resized, i.e. when set_geometry is called.
CL_Callback_v1<CL_ListViewSelection>& CL_ListView::func_selection_changed | ( | ) |
Selected items are returned as children of the returned item.
|
inherited |
void func_style_changed()
|
inherited |
|
inherited |
Returns true if the components size can be changed.
|
inherited |
Returns true if this component, when focused, blocks the default action of its parent dialog.
|
inherited |
Returns a list of child components belonging to the specified group.
|
inherited |
Returns a list of the child components.
|
inherited |
Returns the component class name.
|
inherited |
Returns true if the components children are clipped to the parent component when drawn.
|
inherited |
Return the component under 'point', in local viewport coordinates.
|
inherited |
Returns the name of the component group, or an empty string if no group name has been set.
|
inherited |
Enabled whether the GUI will constantly repaint this component when there are no other messages to process.
|
inherited |
Gets the css element for this component.
|
inherited |
Gets the css layout.
CL_ListViewDisplayMode CL_ListView::get_display_mode | ( | ) | const |
Get Display mode.
|
inherited |
Returns the display window in which this component is hosted.
CL_ListViewItem CL_ListView::get_document_item | ( | ) | const |
Get Document item.
|
inherited |
Returns the CSS element name for the component.
|
inherited |
Returns the first child component.
|
inherited |
Get First child.
|
inherited |
Returns the focus policy of the component.
|
inherited |
Return the graphic context for the component.
|
inherited |
Returns the position and size of the drawable area of the component.
|
inherited |
Returns the selected item in a component group of which this component is a member.
|
inherited |
Returns the GUI manager owning this component.
CL_ListViewHeader* CL_ListView::get_header | ( | ) | const |
Get Header.
|
inherited |
Returns the height of the drawable area of the component.
|
inherited |
Return the input context for the component.
CL_ListViewIconList CL_ListView::get_icon_list | ( | ) | const |
Get Icon list.
|
inherited |
Returns the component ID name.
|
inherited |
Returns the last child component.
|
inherited |
Get Last child.
|
inherited |
Returns the layout manager set for this component. Check CL_GUILayout.is_null() if none set.
|
static |
Find the child CL_ListView with the specified component ID name.
If it was not found, an exception is thrown.
|
inherited |
Find child component with the specified component ID name.
|
inherited |
Returns the next component in the component tree, or 'this', if none found.
|
inherited |
Returns the next sibling component.
|
inherited |
Get Next sibling.
|
inherited |
Return the component owning this component.
Only top-level components has an owner.
|
inherited |
Get Owner component.
|
inherited |
Returns the parent component.
Only child components has a parent.
|
inherited |
Get Parent component.
|
inherited |
Returns the preferred height of a render box.
|
virtual |
Returns the preferred size of the component, as defined in its CSS file.
Reimplemented from CL_GUIComponent.
|
inherited |
Returns the preferred width of a render box.
|
inherited |
Returns the previous component in the component tree, or 'this', if none found.
|
inherited |
Returns the previous sibling component.
|
inherited |
Get Previous sibling.
|
inherited |
Returns the resource manager for the GUI resources.
int CL_ListView::get_scroll_max_position | ( | ) |
Get maximal listview scrollbar position.
int CL_ListView::get_scroll_position | ( | ) |
Get current listview scrollbar position.
bool CL_ListView::get_select_whole_row | ( | ) | const |
Get Select whole row.
CL_ListViewItem CL_ListView::get_selected_item | ( | ) |
Returns the currently selected item in single selection mode.
If multiple items are selected, the item selected first (chronological order) is returned. If no element is selected, an empty CL_ListViewItem is returned.
CL_ListViewSelection CL_ListView::get_selected_items | ( | ) | const |
Returns a container class holding the selected items in a linked list structure.
|
inherited |
Returns the size of the drawable area of the component.
|
inherited |
Returns the theme used by this component.
|
inherited |
Returns the top level component this CL_GUIComponent is a child of.
|
inherited |
Get Top level component.
|
inherited |
Returns the component type name.
|
inherited |
Returns the width of the drawable area of the component.
|
inherited |
Returns the position and size of the component window (window frame, borders etc).
|
inherited |
Returns true if the component has any child components.
|
inherited |
Returns true if the component has the focus.
|
inherited |
Returns true if the component is active.
|
inherited |
Checks if this component is the ancestor of target component.
|
inherited |
Returns true if this component will receive unhandled escape keypress messages.
|
inherited |
Returns true if this component will receive unhandled enter/return keypress messages.
|
inherited |
Checks if this component is a descendant of target component.
|
inherited |
Returns true if this component will generate double click messages.
|
inherited |
Return true if the component, and all its parents are enabled.
|
inherited |
Returns true if the component is the selected item in a group of components where FocusPolicy is focus_group.
|
inherited |
Return true if the component, and all its parents are visible.
|
inherited |
Loads a layout from file.
void CL_ListView::on_process_message | ( | CL_GUIMessage & | msg) |
On process message.
msg | = GUIMessage |
|
inherited |
Paints the component.
This function renders all components affecting the component or area specified and makes the changes visible.
|
inherited |
Paint.
clip_rect | = Rect |
|
inherited |
Pop a clipping rectangle.
|
inherited |
Push a clipping rectangle.
|
inherited |
Renders the component and its children.
|
inherited |
|
inherited |
Request repaint.
rect | = Rect |
|
inherited |
Reset the clipping rectangle.
|
inherited |
Convert the screen coordinates to component coordinates.
|
inherited |
Set to true if this component, when focused, blocks the default action of the parent dialog.
|
inherited |
When set to true, this component will receive unhandled escape keypress messages.
If multiple components are set as 'cancel' handlers, the first child with the property will receive the keypress message.
|
inherited |
Sets the component class name. (csstype.cssclass::cssid)
|
inherited |
Sets the components children to be clipped to the parent component when drawn.
|
inherited |
Set a clipping rectangle.
|
inherited |
Set group name.
str | = String Ref |
|
inherited |
Enabled whether the GUI will constantly repaint this component when there are no other messages to process.
|
inherited |
Sets the current cursor icon.
|
inherited |
Set cursor.
type | = CL_StandardCursor |
|
inherited |
When set to true, this component will receive unhandled enter/return keypress messages.
If multiple components are set as 'default' handlers, the first child with the property will receive the keypress message.
void CL_ListView::set_display_mode | ( | CL_ListViewDisplayMode | mode) |
Set display mode.
mode | = List View Display Mode |
|
inherited |
Modifies whether this component will generate double click messages or not.
|
inherited |
Sets the component as enabled or disabled.
|
inherited |
Set this component focus.
enable | = true = To set the focus. false = Loose the focus (if in focus) |
|
inherited |
Sets the focus policy of the component.
|
inherited |
Set component position and size.
|
inherited |
Sets the component ID name. (csstype.cssclass::cssid)
|
inherited |
Set a layout on the component.
void CL_ListView::set_multi_select | ( | bool | value) |
When true, multiple items can be selected.
|
inherited |
Makes this component a child of the given component, removing it from the previous parent.
void CL_ListView::set_scroll_position | ( | int | pos) |
Set listview scrollbar position.
pos | = int |
void CL_ListView::set_select_whole_row | ( | bool | value) |
When true, the whole row is drawn selected, as opposed to only the first column.
void CL_ListView::set_selected | ( | CL_ListViewItem & | item, |
bool | selected = true |
||
) |
Set selected.
item | = List View Item |
selected | = bool |
|
inherited |
Set to true if this component is the selected item in a group of components where FocusPolicy is focus_group.
|
inherited |
Sets the component type name. (csstype.cssclass::cssid)
|
inherited |
Sets the component as visible or hidden.
visible | = Visible state |
activate_root_win | = In case the component is a root window, this parameter controls whether the window is activated. |
|
inherited |
Set component window position and size.
void CL_ListView::show_detail_icon | ( | bool | enable = true ) |
Set if icons are shown in the detail display mode.
void CL_ListView::show_detail_opener | ( | bool | enable = true ) |
Set if node opener is shown in the detail display mode.
|
inherited |
Convert the top-level window client coordinates to component coordinates.
Convert the top-level window client coordinates to component coordinates.
|
friend |