| 64 * @return The string after len offset. |
64 * @return The string after len offset. |
| 65 */ |
65 */ |
| 66 const char *gnt_util_onscreen_width_to_pointer(const char *str, int len, int *w); |
66 const char *gnt_util_onscreen_width_to_pointer(const char *str, int len, int *w); |
| 67 |
67 |
| 68 /** |
68 /** |
| 69 * Inserts newlines in 'string' where necessary so that its onscreen width is |
69 * Inserts newlines in 'string' where necessary so that its onscreen width is |
| 70 * no more than 'maxw'. |
70 * no more than 'maxw'. |
| 71 * |
71 * |
| 72 * @param string The string. |
72 * @param string The string. |
| 73 * @param maxw The width that the string should fit into. If maxw is <= 0, |
73 * @param maxw The width that the string should fit into. If maxw is <= 0, |
| 74 * then the available maximum width is used. |
74 * then the available maximum width is used. |
| 105 */ |
105 */ |
| 106 gboolean gnt_boolean_handled_accumulator(GSignalInvocationHint *ihint, GValue *return_accu, const GValue *handler_return, gpointer dummy); |
106 gboolean gnt_boolean_handled_accumulator(GSignalInvocationHint *ihint, GValue *return_accu, const GValue *handler_return, gpointer dummy); |
| 107 |
107 |
| 108 /** |
108 /** |
| 109 * Get a helpful display about the bindings of a widget. |
109 * Get a helpful display about the bindings of a widget. |
| 110 * |
110 * |
| 111 * @param widget The widget to get bindings for. |
111 * @param widget The widget to get bindings for. |
| 112 * |
112 * |
| 113 * @return Returns a GntTree populated with "key" -> "binding" for the widget. |
113 * @return Returns a GntTree populated with "key" -> "binding" for the widget. |
| 114 */ |
114 */ |
| 115 GntWidget * gnt_widget_bindings_view(GntWidget *widget); |
115 GntWidget * gnt_widget_bindings_view(GntWidget *widget); |
| 124 * <label>This is a test</label> \ |
124 * <label>This is a test</label> \ |
| 125 * <button id='1'>OK</button> \ |
125 * <button id='1'>OK</button> \ |
| 126 * </vwindow>", |
126 * </vwindow>", |
| 127 * 2, &win, &button); |
127 * 2, &win, &button); |
| 128 * @endcode |
128 * @endcode |
| 129 * |
129 * |
| 130 * @param string The XML string. |
130 * @param string The XML string. |
| 131 * @param num The number of widgets to return, followed by 'num' GntWidget ** |
131 * @param num The number of widgets to return, followed by 'num' GntWidget ** |
| 132 */ |
132 */ |
| 133 void gnt_util_parse_widgets(const char *string, int num, ...); |
133 void gnt_util_parse_widgets(const char *string, int num, ...); |
| 134 |
134 |