Top |
Functions
gboolean | (*ETableSearchFunc) () |
ECellView * | e_cell_new_view () |
void | e_cell_kill_view () |
gint | e_cell_event () |
void | e_cell_realize () |
void | e_cell_unrealize () |
void | e_cell_draw () |
void | e_cell_print () |
gdouble | e_cell_print_height () |
gint | e_cell_max_width () |
gint | e_cell_max_width_by_row () |
gboolean | e_cell_max_width_by_row_implemented () |
gchar * | e_cell_get_bg_color () |
void | e_cell_style_updated () |
void | e_cell_focus () |
void | e_cell_unfocus () |
gint | e_cell_height () |
gpointer | e_cell_enter_edit () |
void | e_cell_leave_edit () |
gpointer | e_cell_save_state () |
void | e_cell_load_state () |
void | e_cell_free_state () |
Object Hierarchy
GObject ╰── ECell ├── ECellToggle ├── ECellPopup ├── ECellText ├── ECellHbox ├── ECellPixbuf ├── ECellTree ╰── ECellVbox
Functions
e_cell_new_view ()
ECellView * e_cell_new_view (ECell *ecell
,ETableModel *table_model
,gpointer e_table_item_view
);
ECell renderers new to be bound to a table_model and to the actual view during their life time to actually render the data. This method is invoked by the ETableItem canvas item to instatiate a new view of the ECell.
This is invoked when the ETableModel is attached to the ETableItem (a CanvasItem that can render ETableModels in the screen).
e_cell_kill_view ()
void
e_cell_kill_view (ECellView *ecell_view
);
This method it used to destroy a view of an ECell renderer
e_cell_event ()
gint e_cell_event (ECellView *ecell_view
,GdkEvent *event
,gint model_col
,gint view_col
,gint row
,ECellFlags flags
,ECellActions *actions
);
Dispatches the event event
to the ecell_view
for.
Parameters
ecell_view |
The ECellView where the event will be dispatched |
|
event |
The GdkEvent. |
|
model_col |
the column in the model |
|
view_col |
the column in the view |
|
row |
the row |
|
flags |
flags about the current state |
|
actions |
a second return value in case the cell wants to take some action (specifically grabbing & ungrabbing) |
e_cell_realize ()
void
e_cell_realize (ECellView *ecell_view
);
This function is invoked to give a chance to the ECellView to allocate any resources it needs from Gdk, equivalent to the GtkWidget::realize signal.
e_cell_unrealize ()
void
e_cell_unrealize (ECellView *ecell_view
);
This function is invoked to give a chance to the ECellView to release any resources it allocated during the realize method, equivalent to the GtkWidget::unrealize signal.
e_cell_draw ()
void e_cell_draw (ECellView *ecell_view
,cairo_t *cr
,gint model_col
,gint view_col
,gint row
,ECellFlags flags
,gint x1
,gint y1
,gint x2
,gint y2
);
This instructs the ECellView to render itself into the Cairo context. The region to be drawn in given by (x1,y1)-(x2,y2).
The most important flags are E_CELL_SELECTED
and E_CELL_FOCUSED
, other
flags include alignments and justifications.
Parameters
ecell_view |
the ECellView to redraw |
|
cr |
a Cairo context |
|
model_col |
the column in the model being drawn. |
|
view_col |
the column in the view being drawn (what the model maps to). |
|
row |
the row being drawn |
|
flags |
rendering flags. |
|
x1 |
boudary for the rendering |
|
y1 |
boudary for the rendering |
|
x2 |
boudary for the rendering |
|
y2 |
boudary for the rendering |
e_cell_print ()
void e_cell_print (ECellView *ecell_view
,GtkPrintContext *context
,gint model_col
,gint view_col
,gint row
,gdouble width
,gdouble height
);
FIXME:
e_cell_print_height ()
gdouble e_cell_print_height (ECellView *ecell_view
,GtkPrintContext *context
,gint model_col
,gint view_col
,gint row
,gdouble width
);
e_cell_max_width ()
gint e_cell_max_width (ECellView *ecell_view
,gint model_col
,gint view_col
);
e_cell_max_width_by_row ()
gint e_cell_max_width_by_row (ECellView *ecell_view
,gint model_col
,gint view_col
,gint row
);
e_cell_max_width_by_row_implemented ()
gboolean
e_cell_max_width_by_row_implemented (ECellView *ecell_view
);
e_cell_focus ()
void e_cell_focus (ECellView *ecell_view
,gint model_col
,gint view_col
,gint row
,gint x1
,gint y1
,gint x2
,gint y2
);
e_cell_height ()
gint e_cell_height (ECellView *ecell_view
,gint model_col
,gint view_col
,gint row
);
e_cell_enter_edit ()
gpointer e_cell_enter_edit (ECellView *ecell_view
,gint model_col
,gint view_col
,gint row
);
Notifies the ECellView that it is about to enter editing mode for
model_col
, row
rendered at view_col
, row
.
e_cell_leave_edit ()
void e_cell_leave_edit (ECellView *ecell_view
,gint model_col
,gint view_col
,gint row
,gpointer edit_context
);
Notifies the ECellView that editing is finished at model_col
, row
rendered at view_col
, row
.
e_cell_save_state ()
gpointer e_cell_save_state (ECellView *ecell_view
,gint model_col
,gint view_col
,gint row
,gpointer edit_context
);
e_cell_load_state ()
void e_cell_load_state (ECellView *ecell_view
,gint model_col
,gint view_col
,gint row
,gpointer edit_context
,gpointer save_state
);
Requests that the ECellView load from the given save state.