* @param type
* @return EINA_TRUE on success, EINA_FALSE on failure
*/
-EAPI Eina_Bool ecore_cocoa_selection_clipboard_set(const void *data,
+EAPI Eina_Bool ecore_cocoa_clipboard_set(const void *data,
int size,
Ecore_Cocoa_Cnp_Type type);
* @c retrieved_types will contain ECORE_COCOA_CNP_TYPE_STRING and the data
* will be a C string (char*) that must be freed after use.
*/
-EAPI void *ecore_cocoa_selection_clipboard_get(int *size,
- Ecore_Cocoa_Cnp_Type type,
- Ecore_Cocoa_Cnp_Type *retrieved_types)
+EAPI void *ecore_cocoa_clipboard_get(int *size,
+ Ecore_Cocoa_Cnp_Type type,
+ Ecore_Cocoa_Cnp_Type *retrieved_types)
EINA_WARN_UNUSED_RESULT;
/**
* Deletes the contents of the Cocoa clipboard
*/
-EAPI void ecore_cocoa_selection_clipboard_clear(void);
+EAPI void ecore_cocoa_clipboard_clear(void);
/**
* Set the Cocoa cursor for a given Cocoa window
#import "ecore_cocoa_app.h"
EAPI Eina_Bool
-ecore_cocoa_selection_clipboard_set(const void *data,
- int size,
- Ecore_Cocoa_Cnp_Type type)
+ecore_cocoa_clipboard_set(const void *data,
+ int size,
+ Ecore_Cocoa_Cnp_Type type)
{
NSMutableArray *objects;
NSString *str = nil;
EAPI void *
-ecore_cocoa_selection_clipboard_get(int *size,
- Ecore_Cocoa_Cnp_Type type,
- Ecore_Cocoa_Cnp_Type *retrieved_types)
+ecore_cocoa_clipboard_get(int *size,
+ Ecore_Cocoa_Cnp_Type type,
+ Ecore_Cocoa_Cnp_Type *retrieved_types)
{
NSMutableArray *classes;
void *data;
}
EAPI void
-ecore_cocoa_selection_clipboard_clear(void)
+ecore_cocoa_clipboard_clear(void)
{
[[NSPasteboard generalPasteboard] clearContents];
}
/* Pass to cocoa clipboard */
type = _elm_sel_format_to_ecore_cocoa_cnp_type(sel->requestformat);
- pbdata = ecore_cocoa_selection_clipboard_get(&pbdata_len, type, &get_type);
+ pbdata = ecore_cocoa_clipboard_get(&pbdata_len, type, &get_type);
ddata.format = ELM_SEL_FORMAT_NONE;
if (get_type & ECORE_COCOA_CNP_TYPE_STRING)
sel->selbuf[buflen] = 0;
sel->buflen = buflen;
type = _elm_sel_format_to_ecore_cocoa_cnp_type(format);
- ecore_cocoa_selection_clipboard_set(selbuf, buflen, type);
+ ecore_cocoa_clipboard_set(selbuf, buflen, type);
}
return ok;
sel->loss_data = NULL;
ELM_SAFE_FREE(sel->selbuf, free);
sel->buflen = 0;
- ecore_cocoa_selection_clipboard_clear();
+ ecore_cocoa_clipboard_clear();
return EINA_TRUE;
}