| libical-glib Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#define I_CAL_ARRAY_TYPE ICalArray; struct ICalArrayClass; ICalArray * i_cal_array_new_full (icalarray *native,GObject *owner); gint i_cal_array_size (ICalArray *array); ICalArray * i_cal_array_new (gint element_size,gint increment_size); ICalArray * i_cal_array_copy (ICalArray *array); void i_cal_array_free (ICalArray *array); void i_cal_array_append (ICalArray *array,gconstpointer element); void i_cal_array_remove_element_at (ICalArray *array,gint position); const void * i_cal_array_element_at (ICalArray *array,gint position); void i_cal_array_sort (ICalArray *array,gint (*compare) (const void *, const void *));
ICalArray * i_cal_array_new_full (icalarray *native,GObject *owner);
Create a new libical-glib object from the native libical object and the owner.
|
The native libical object. |
|
The parent. |
Returns : |
The newly create libical-glib object. [transfer full] |
Since 1.0
gint i_cal_array_size (ICalArray *array);
Get the size of the array.
|
The ICalArray |
Returns : |
The size of current array. |
Since 1.0
ICalArray * i_cal_array_new (gint element_size,gint increment_size);
Create a ICalArray with the element size to be element_size and increment size to be increment_size
|
The size of the element of the array |
|
The incremental size when the array is full |
Returns : |
The newly create ICalArray with the properties set by element_size and increment_size. [transfer full]
|
Since 1.0
ICalArray * i_cal_array_copy (ICalArray *array);
Create a deep copy of ICalArray with the same properties as the array
|
The ICalArray to be cloned. [in] |
Returns : |
The newly cloned ICalArray with the same value as the array. [transfer full]
|
Since 1.0
void i_cal_array_free (ICalArray *array);
Free the ICalArray
|
The ICalArray to be freed. |
Since 1.0
void i_cal_array_append (ICalArray *array,gconstpointer element);
Append element to the end of the array
Since 1.0
void i_cal_array_remove_element_at (ICalArray *array,gint position);
Remove the element at the position from the array
|
The ICalArray to be modified. |
|
The position in which the element will be removed from the array |
Since 1.0
const void * i_cal_array_element_at (ICalArray *array,gint position);
Get the element located in the position in the array. NULL if position if out of bound
|
The ICalArray to be queried. |
|
The position the target element is located |
Returns : |
The element located at the position in the array. [transfer none][allow-none]
|
Since 1.0