Abi.Widget¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
r |
|||
r/w |
|||
r |
|||
r |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
|||
r/w |
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
bin |
r |
||
child |
r |
||
priv |
r |
Class Details¶
- class Abi.Widget(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod get_property(object, arg_id, arg, pspec)¶
- Parameters:
object (
GObject.Object) –arg_id (
int) –arg (
GObject.Value) –pspec (
GObject.ParamSpec) –
- classmethod new()¶
- Return type:
Creates a new AbiWord widget using an internal Abiword App
- classmethod new_with_file(file)¶
- Parameters:
file (
str) –- Return type:
Creates a new AbiWord widget and tries to load the file This uses an internal Abiword App
\param file - A file on your HD
- classmethod set_property(object, arg_id, arg, pspec)¶
- Parameters:
object (
GObject.Object) –arg_id (
int) –arg (
GObject.Value) –pspec (
GObject.ParamSpec) –
- draw()¶
- Return type:
- get_content(extension_or_mimetype, exp_props)¶
- Parameters:
- Returns:
the selection, the caller must free the memory through
GLib.free()- iLength:
length of returned selection, in bytes
- Return type:
Gets all document contents
- get_mouse_pos()¶
- Returns:
Trueif the mouse position could be retrieved- x:
return value for the mouse position in the X axis
- y:
return value for the mouse position in the Y axis
- Return type:
Returns the mouse position relative to self
- get_selection(extension_or_mimetype)¶
- Parameters:
extension_or_mimetype (
str) – content type for the returned selection- Returns:
the selection, the caller must free the memory through
GLib.free()- Return type:
[
str]
Gets the current selection
- invoke(mthdName)¶
-
Invoke any of abiword’s edit methods by name
\param w - An AbiWord widget \param mthdName - A null-terminated string representing the method’s name
\return
Falseif any preconditions fail \returnTrue|:obj:False depending on the result of the EditMethod’s completionexample usage:
boolb =False;Gtk.Widget* w =Abi.Widget.new();b =
Abi.Widget.invoke(ABI_WIDGET(w), “alignCenter”);
- invoke_ex(mthdName, data, x, y)¶
-
Invoke any of abiword’s edit methods by name
\param w - An AbiWord widget \param mthdName - A null-terminated string representing the method’s name \param data - an optional null-terminated string data to pass to the method \param x - an optional x-coordinate to pass to the method (usually 0) \param y - an optional y-coordinate to pass to the method (usuall 0)
\return
Falseif any preconditions fail \returnTrue|:obj:False depending on the result of the EditMethod’s completionexample usage:
boolb =False;Gtk.Widget* w =Abi.Widget.new();b =
Abi.Widget.invoke_ex(ABI_WIDGET(w), “insertData”, “Hello World!”, 0, 0); b =Abi.Widget.invoke_ex(ABI_WIDGET(w), “alignCenter”, 0, 0, 0);
- load_file_from_memory(extension_or_mimetype, buf, length)¶
- Return type:
- render_page_to_image(page_number)¶
- Parameters:
page_number (
int) –- Returns:
the pixbuf.
- Return type:
Caller owns the returned GdkPixmap and must free it after use. The first page is “1”
- save(fname, extension_or_mimetype, exp_props)¶
- save_to_gsf(output, extension_or_mimetype, exp_props)¶
- Parameters:
output (
Gsf.Output) –extension_or_mimetype (
str) –exp_props (
str) –
- Return type:
- set_text_color(red, green, blue)¶
- turn_on_cursor()¶
- Return type:
- do_invoke(mthdName) virtual¶
-
Invoke any of abiword’s edit methods by name
\param w - An AbiWord widget \param mthdName - A null-terminated string representing the method’s name
\return
Falseif any preconditions fail \returnTrue|:obj:False depending on the result of the EditMethod’s completionexample usage:
boolb =False;Gtk.Widget* w =Abi.Widget.new();b =
Abi.Widget.invoke(ABI_WIDGET(w), “alignCenter”);
- do_invoke_ex(mthdName, data, x, y) virtual¶
-
Invoke any of abiword’s edit methods by name
\param w - An AbiWord widget \param mthdName - A null-terminated string representing the method’s name \param data - an optional null-terminated string data to pass to the method \param x - an optional x-coordinate to pass to the method (usually 0) \param y - an optional y-coordinate to pass to the method (usuall 0)
\return
Falseif any preconditions fail \returnTrue|:obj:False depending on the result of the EditMethod’s completionexample usage:
boolb =False;Gtk.Widget* w =Abi.Widget.new();b =
Abi.Widget.invoke_ex(ABI_WIDGET(w), “insertData”, “Hello World!”, 0, 0); b =Abi.Widget.invoke_ex(ABI_WIDGET(w), “alignCenter”, 0, 0, 0);
- Return type:
Signal Details¶
- Abi.Widget.signals.bold(widget, object)¶
- Signal Name:
bold- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.bottomline(widget, object)¶
- Signal Name:
bottomline- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.can_redo(widget, object)¶
- Signal Name:
can-redo- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.can_undo(widget, object)¶
- Signal Name:
can-undo- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.center_align(widget, object)¶
- Signal Name:
center-align- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.changed(widget)¶
- Signal Name:
changed- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signal
- Abi.Widget.signals.color(widget, object, p0, p1)¶
- Signal Name:
color- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
int) –p0 (
int) –p1 (
int) –
- Abi.Widget.signals.current_page(widget, object)¶
- Signal Name:
current-page- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
int) –
- Abi.Widget.signals.enter_selection(widget, object)¶
- Signal Name:
enter-selection- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.font_family(widget, object)¶
- Signal Name:
font-family- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
str) –
- Abi.Widget.signals.font_size(widget, object)¶
- Signal Name:
font-size- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
float) –
- Abi.Widget.signals.image_selected(widget, object)¶
- Signal Name:
image-selected- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.is_dirty(widget, object)¶
- Signal Name:
is-dirty- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.italic(widget, object)¶
- Signal Name:
italic- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.justify_align(widget, object)¶
- Signal Name:
justify-align- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.leave_selection(widget, object)¶
- Signal Name:
leave-selection- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.left_align(widget, object)¶
- Signal Name:
left-align- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.line_through(widget, object)¶
- Signal Name:
line-through- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.overline(widget, object)¶
- Signal Name:
overline- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.page_count(widget, object)¶
- Signal Name:
page-count- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
int) –
- Abi.Widget.signals.right_align(widget, object)¶
- Signal Name:
right-align- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.selection_cleared(widget, object)¶
- Signal Name:
selection-cleared- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.style_name(widget, object)¶
- Signal Name:
style-name- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
str) –
- Abi.Widget.signals.subscript(widget, object)¶
- Signal Name:
subscript- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.superscript(widget, object)¶
- Signal Name:
superscript- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.table_state(widget, object)¶
- Signal Name:
table-state- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.text_selected(widget, object)¶
- Signal Name:
text-selected- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.topline(widget, object)¶
- Signal Name:
topline- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.underline(widget, object)¶
- Signal Name:
underline- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
bool) –
- Abi.Widget.signals.zoom(widget, object)¶
- Signal Name:
zoom- Flags:
- Parameters:
widget (
Abi.Widget) – The object which received the signalobject (
int) –
Property Details¶
- Abi.Widget.props.cursor_on¶
- Abi.Widget.props.selection_length¶
- Abi.Widget.props.shadow_type¶
- Abi.Widget.props.unlink_after_load¶
- Abi.Widget.props.view_normal_layout¶
- Abi.Widget.props.view_para¶
- Abi.Widget.props.view_print_layout¶