Re: Height of a GtkTextView
- From: Stefan Kost <ensonic hora-obscura de>
- To: Przemysław Sitek <psitek rams pl>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Height of a GtkTextView
- Date: Sat, 03 Sep 2005 11:49:57 +0200
Hi,
Hi,
How can I get height of a text (in pixels) stored in a GtkTextView?
I have looked in the API reference but found nothing relevant:-/
the only thing I found to do it is to set the treeview to fixed-height
mode, then get the height of one row and multiply by the number of rows
I have subclassed the treview (as I paint over it) and in realize I do:
path=gtk_tree_path_new_from_indices(0,-1);
gtk_tree_view_get_background_area(GTK_TREE_VIEW(widget),path,NULL,&br);
row_height=br.height;
GST_INFO(" cell background visible rect: %d x %d, %d x
%d",br.x,br.y,br.width,br.height);
Stefan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]