Download

Support

lib/ewl_text_trigger.h File Reference

#include "ewl_base.h"
#include "ewl_text.h"
#include "ewl_text_context.h"

Include dependency graph for ewl_text_trigger.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Data Structures

struct  Ewl_Text_Trigger
 Inherits from Ewl_Widget and extends to provide a trigger for the text widget. More...

Defines

#define EWL_TEXT_TRIGGER(trigger)   ((Ewl_Text_Trigger *) trigger)
#define EWL_TEXT_TRIGGER_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_TEXT_TRIGGER_TYPE))
#define EWL_TEXT_TRIGGER_TYPE   "trigger"

Typedefs

typedef struct Ewl_Text_Trigger Ewl_Text_Trigger

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_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.

Copyright © Enlightenment.org

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