Download

Support

lib/ewl_text_trigger.c File Reference

#include "ewl_base.h"
#include "ewl_text.h"
#include "ewl_text_trigger.h"
#include "ewl_private.h"
#include "ewl_macros.h"
#include "ewl_debug.h"

Include dependency graph for ewl_text_trigger.c:


Data Structures

struct  Ewl_Text_Trigger_Area
 Inherits from Ewl_Widget and extends to provide a trigger area. More...

Defines

#define EWL_TEXT_TRIGGER_AREA(area)   ((Ewl_Text_Trigger_Area *) area)
#define EWL_TEXT_TRIGGER_AREA_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_TEXT_TRIGGER_AREA_TYPE))
#define EWL_TEXT_TRIGGER_AREA_TYPE   "trigger_area"

Typedefs

typedef struct
Ewl_Text_Trigger_Area 
Ewl_Text_Trigger_Area

Functions

void ewl_text_trigger_area_add (Ewl_Text *t, Ewl_Text_Trigger *cur, int x, int y, int w, int h)
 Creates a trigger area at the given co-ordinates.
void ewl_text_trigger_areas_cleanup (Ewl_Text_Trigger *trig)
 Cleans up the trigger areas for trig.
unsigned int ewl_text_trigger_base_get (Ewl_Text_Trigger *t)
 Retrieves the current base position of the cursor.
void ewl_text_trigger_base_set (Ewl_Text_Trigger *t, unsigned int char_pos)
 Sets the given position pos as the base for the trigger t.
void ewl_text_trigger_cb_configure (Ewl_Widget *w, void *ev, void *data)
 Configures the areas associated with trig.
void ewl_text_trigger_cb_destroy (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_text_trigger_cb_hide (Ewl_Widget *w, void *ev, void *data)
 Hides the trigger.
void ewl_text_trigger_cb_show (Ewl_Widget *w, void *ev, void *data)
 Shows the trigger.
void ewl_text_trigger_cb_unrealize (Ewl_Widget *w, void *ev, void *data)
 Unrealizes the trigger.
int ewl_text_trigger_init (Ewl_Text_Trigger *trigger, Ewl_Text_Trigger_Type type)
 Initializes a trigger to default values.
unsigned int ewl_text_trigger_length_get (Ewl_Text_Trigger *t)
 Retrieves the length from the cursor t.
void ewl_text_trigger_length_set (Ewl_Text_Trigger *t, unsigned int char_len)
 Sets the length len on the trigger t.
Ewl_Widgetewl_text_trigger_new (Ewl_Text_Trigger_Type type)
 Creates a new trigger for the text object.
unsigned int ewl_text_trigger_start_pos_get (Ewl_Text_Trigger *t)
 Retrieves the start position of the trigger.
void ewl_text_trigger_start_pos_set (Ewl_Text_Trigger *t, unsigned int char_pos)
 Sets the start position of the trigger t to position pos.
Ewl_Text_Trigger_Type ewl_text_trigger_type_get (Ewl_Text_Trigger *t)
 Retrieves the type of the trigger.

Define Documentation

#define EWL_TEXT_TRIGGER_AREA ( area   )     ((Ewl_Text_Trigger_Area *) area)

Typecasts a pointer to an Ewl_Text_Trigger_Area pointer

Referenced by ewl_text_trigger_area_add().

#define EWL_TEXT_TRIGGER_AREA_IS (  )     (ewl_widget_type_is(EWL_WIDGET(w), EWL_TEXT_TRIGGER_AREA_TYPE))

Returns TRUE if the widget is an Ewl_Text_Area_Trigger, FALSE otherwise

#define EWL_TEXT_TRIGGER_AREA_TYPE   "trigger_area"

The type name for the Ewl_Text_Area_Trigger widget


Typedef Documentation


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:50:51 2008