#include <mi32/xdefns.h>#include <mi32/mcb.h>
Go to the source code of this file.
| #define MxGraphList_ButtonPressReason 0x0002 |
| #define MxGraphList_ButtonReason 0x0006 |
| #define MxGraphList_ButtonReleaseReason 0x0004 |
| #define MxGraphList_HeaderDrawReason 0x0040 |
| #define MxGraphList_KeyPressReason 0x0010 |
| #define MxGraphList_KeyReason 0x0030 |
| #define MxGraphList_KeyReleaseReason 0x0020 |
| #define MxGraphList_MotionNotifyReason 0x0008 |
| #define MxGraphList_MultipleSelection 1 |
| #define MxGraphList_OwnDrawReason 0x0001 |
| #define MxGraphList_SingleSelection 0 |
| int MxGraphListAddCallback | ( | Widget | w, | |
| void(*)(McbAnyCallbackStruct *, void *) | func, | |||
| void * | data, | |||
| UINT32 | reason | |||
| ) |
Add callback to the GraphList widget.
Reasons: MxGraphList_OwnDrawReason MxGraphList_ButtonPressReason MxGraphList_ButtonReleaseReason MxGraphList_ButtonReason MxGraphList_MotionNotifyReason MxGraphList_KeyPressReason MxGraphList_KeyReleaseReason MxGraphList_KeyReason MxGraphList_HeaderDrawReason
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| data | Callback function Data passed to the callback function | |
| reason | Callback reason |
| void MxGraphListAddItem | ( | Widget | w, | |
| int | item, | |||
| int | position | |||
| ) |
Add an item to the GraphList.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| item | Item to be added to list | |
| position | Position of the new item in the list (started from 1, 0 means to end) |
| void MxGraphListAddItems | ( | Widget | w, | |
| int * | items, | |||
| int | item_count, | |||
| int | position | |||
| ) |
Add items to the GraphList.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| items | Pointer to the items to be added to the list | |
| item_count | Number of items in items | |
| position | Position of the first new item in the list (started from 1, 0 means to end) |
| Widget MxGraphListCreate | ( | Widget | parent, | |
| int | Width, | |||
| int | Height, | |||
| void * | userdata, | |||
| UINT32 | flags, | |||
| Arg * | arg, | |||
| int | n | |||
| ) |
Create the GraphList widget.
| parent | Parent widget | |
| Width | Initial width of the drawing area | |
| Height | Initial height of the drawing area | |
| userdata | Userdata (not used) | |
| flags | Flags | |
| arg | Attachments for the "MxGraphList" widget | |
| n | Number of elements in arg array |
| void MxGraphListDeleteAllItems | ( | Widget | w | ) |
Delete all items from GraphList.
| w | "MxGraphList" widget returned by MxGraphListCreate function |
| void MxGraphListDeleteItem | ( | Widget | w, | |
| int | item | |||
| ) |
Delete an item from the GraphList.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| item | Item to be deleted from list (all items match specified item) |
| void MxGraphListDeleteItems | ( | Widget | w, | |
| int * | items, | |||
| int | item_count | |||
| ) |
Delete items from the GraphList.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| items | Pointer to the items to be deleted from list (all items match specified items) | |
| item_count | Number of elements in items |
| void MxGraphListDeleteItemsPos | ( | Widget | w, | |
| int | item_count, | |||
| int | position | |||
| ) |
Delete items from the GraphList starting at the given position.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| item_count | Number of items to be deleted | |
| position | Position in the list of the first item to be deleted |
| void MxGraphListDeletePos | ( | Widget | w, | |
| int | position | |||
| ) |
Delete item from the GraphList at a specified position.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| position | Position of the item to be deleted |
| void MxGraphListDeselectAllItems | ( | Widget | w | ) |
Deselect all items.
| w | "MxGraphList" widget returned by MxGraphListCreate function |
| void MxGraphListDeselectItem | ( | Widget | w, | |
| int | item | |||
| ) |
Deselect the specified item.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| item | Item to be deselected from list (all items match specified item) |
| void MxGraphListDeselectPos | ( | Widget | w, | |
| int | position | |||
| ) |
Deselect an item at a specified position.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| position | Position of the item to be deselected |
| void MxGraphListDrawPos | ( | Widget | w, | |
| int | position | |||
| ) |
Draw specified item.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| position | Position in list |
| void MxGraphListEnableRedraw | ( | Widget | w, | |
| int | EnableRedraw | |||
| ) |
Enable/disable the GraphList redrawing.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| EnableRedraw | Enable redraw if not 0, disable redraw if 0 |
Get drawing area widget.
| w | "MxGraphList" widget returned by MxGraphListCreate function |
| void MxGraphListGetHeaderHeight | ( | Widget | w, | |
| int * | height | |||
| ) |
Get header's height.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| height | Header's height in pixels returned |
| int MxGraphListGetItem | ( | Widget | w, | |
| int | item | |||
| ) |
Get an item at a specified position.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| item | Position in the list |
| int MxGraphListGetItemCount | ( | Widget | w | ) |
Get items count.
| w | "MxGraphList" widget returned by MxGraphListCreate function |
| void MxGraphListGetItemGeometry | ( | Widget | w, | |
| int * | Width, | |||
| int * | Height | |||
| ) |
Get an item geometrical size.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| Width | Item's width in pixels returned | |
| Height | Item's height in pixels returned |
| int MxGraphListGetKbdItemPos | ( | Widget | w | ) |
Get the position of the item at the location cursor.
| w | "MxGraphList" widget returned by MxGraphListCreate function |
| void MxGraphListGetMatchPos | ( | Widget | w, | |
| int | item, | |||
| int ** | position_list, | |||
| int * | position_count | |||
| ) |
Get an array of positions where a specified item is found.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| item | Item to be matched | |
| position_list | Array of positions (allocated and returned) | |
| position_count | Number of elements in the position_list |
| int MxGraphListGetSelectedItemCount | ( | Widget | w | ) |
Get selected items count.
| w | "MxGraphList" widget returned by MxGraphListCreate function |
| int MxGraphListGetSelectedPos | ( | Widget | w, | |
| int ** | position_list, | |||
| int * | postion_count | |||
| ) |
Get an array of the positions of the selected items.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| position_list | Array of positions of the selected items (allocated and returned) | |
| postion_count | Number of elements in the position_list |
| void MxGraphListGetVisibleItemsCount | ( | Widget | w, | |
| int * | count | |||
| ) |
Get visible items count.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| count | Visible items count returned |
| int MxGraphListGrabPointer | ( | Widget | w | ) |
Grab control of the pointer.
| w | "MxGraphList" widget returned by MxGraphListCreate function |
| void MxGraphListInvertSelect | ( | Widget | w | ) |
Invert selection status for every item.
| w | "MxGraphList" widget returned by MxGraphListCreate function |
| int MxGraphListItemExists | ( | Widget | w, | |
| int | item | |||
| ) |
Check if a specified item is in the GraphList.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| item | Item whose presence is checked |
| int MxGraphListItemPos | ( | Widget | w, | |
| int | item | |||
| ) |
Get the position of an item in the GraphList.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| item | Item whose position is returned |
| int MxGraphListPosSelected | ( | Widget | w, | |
| int | position | |||
| ) |
Check if the item at a specified position is selected.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| position | Position in the list |
| void MxGraphListRedraw | ( | Widget | w | ) |
Redraw the GraphList widget.
| w | "MxGraphList" widget returned by MxGraphListCreate function |
| void MxGraphListSelectAllItems | ( | Widget | w | ) |
Select all items.
| w | "MxGraphList" widget returned by MxGraphListCreate function |
| void MxGraphListSelectItem | ( | Widget | w, | |
| int | item | |||
| ) |
Select an item.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| item | Item to be selected in list (all items match specified item) |
| void MxGraphListSelectPos | ( | Widget | w, | |
| int | position | |||
| ) |
Select an item at a specified position.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| position | Position of the item to be selected |
| void MxGraphListSetBottomItem | ( | Widget | w, | |
| int | item | |||
| ) |
Make an item the last visible item.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| item | Item to be last visible in list (first item matches specified item) |
| void MxGraphListSetBottomPos | ( | Widget | w, | |
| int | position | |||
| ) |
Make an item at the specified position the last visible item.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| position | Position of the item to be selected |
| void MxGraphListSetHeaderHeight | ( | Widget | w, | |
| int | height | |||
| ) |
Set header's height.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| height | Header's height in pixels |
| void MxGraphListSetItem | ( | Widget | w, | |
| int | item | |||
| ) |
Make an item the first visible item.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| item | Item to be first visible in list (first item matches specified item) |
| void MxGraphListSetItemGeometry | ( | Widget | w, | |
| int | Width, | |||
| int | Height | |||
| ) |
Set list an item geometrical size.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| Width | Item's width in pixels | |
| Height | Item's height in pixels |
| int MxGraphListSetKbdItemPos | ( | Widget | w, | |
| int | position | |||
| ) |
Set the location cursor at a specified position.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| position | Position in the list |
| void MxGraphListSetPos | ( | Widget | w, | |
| int | position | |||
| ) |
Make an item at the specified position the first visible item.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| position | Position of the item to be selected |
| int MxGraphListSetSelectionMode | ( | Widget | w, | |
| int | mode | |||
| ) |
Set selection mode.
Selection modes: MxGraphList_SingleSelection MxGraphList_MultipleSelection
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| mode | Selection mode |
| void MxGraphListSetVisibleItemsCount | ( | Widget | w, | |
| int | count | |||
| ) |
Set visible items count.
| w | "MxGraphList" widget returned by MxGraphListCreate function | |
| count | Visible items count |
| int MxGraphListUngrabPointer | ( | Widget | w | ) |
Release the pointer.
| w | "MxGraphList" widget returned by MxGraphListCreate function |
1.6.1