Ewl_Cursor: Container to create custom mouse cursors
Detailed Description
Defines the Ewl_Cursor class used for generating ARGB cursor data.
- Remarks:
- Inherits from Ewl_Window.
Data Structures | |
| struct | Ewl_Cursor |
| Inherits from Ewl_Window to allow packing widgets as cursor objects. More... | |
Defines | |
| #define | EWL_CURSOR(cursor) ((Ewl_Cursor *) cursor) |
| #define | EWL_CURSOR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_CURSOR_TYPE)) |
| #define | EWL_CURSOR_TYPE "cursor" |
Typedefs | |
| typedef struct Ewl_Cursor | Ewl_Cursor |
Functions | |
| int | ewl_cursor_init (Ewl_Cursor *c) |
| Initializes an Ewl_Cursor widget. | |
| Ewl_Widget * | ewl_cursor_new (void) |
| Creates and initializes a new Ewl_Cursor widget. | |
Define Documentation
| #define EWL_CURSOR | ( | cursor | ) | ((Ewl_Cursor *) cursor) |
Typecast a pointer to an Ewl_Separator pointer.
Referenced by ewl_cursor_new().
| #define EWL_CURSOR_IS | ( | w | ) | (ewl_widget_type_is(EWL_WIDGET(w), EWL_CURSOR_TYPE)) |
Returns TRUE if the widget is an Ewl_Cursor, FALSE otherwise
| #define EWL_CURSOR_TYPE "cursor" |
- Widget Theme Keys:
- /cursor/file
- Widget Theme Keys:
- /cursor/group
Referenced by ewl_cursor_init().
Typedef Documentation
| typedef struct Ewl_Cursor Ewl_Cursor |
Ewl_Cursor provides a container that has a labeled cursor.
Function Documentation
| int ewl_cursor_init | ( | Ewl_Cursor * | cursor | ) |
Initializes an Ewl_Cursor widget.
- Parameters:
-
cursor,: The Ewl_Cursor to initialize
- Returns:
- Returns TRUE on success, FALSE on failure
References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_UNSTABLE, DRETURN_INT, ewl_callback_append(), EWL_CALLBACK_DESTROY, EWL_CALLBACK_VALUE_CHANGED, EWL_CURSOR_TYPE, EWL_EMBED, ewl_embed_engine_name_set(), EWL_FLAG_FILL_ALL, EWL_OBJECT, ewl_object_fill_policy_set(), ewl_object_size_request(), EWL_WIDGET, ewl_widget_appearance_set(), ewl_widget_inherit(), EWL_WINDOW, and ewl_window_init().
Referenced by ewl_cursor_new().
| Ewl_Widget* ewl_cursor_new | ( | void | ) |
Creates and initializes a new Ewl_Cursor widget.
- Returns:
- Returns a new Ewl_Cursor on success, or NULL on failure
References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_CURSOR, ewl_cursor_init(), ewl_widget_destroy(), and NEW.
Referenced by ewl_dnd_internal_drag_start().