Infinity.Buffer¶
- Implementations:
Methods¶
|
|
|
Virtual Methods¶
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Whether the buffer was modified since it has been saved |
Signals¶
None
Fields¶
None
Class Details¶
- class Infinity.Buffer¶
- Bases:
- Structure:
Infinity.Buffer
is an opaque data type. You should only access it via the public API functions.- get_modified()¶
- Returns:
Whether the buffer has been modified.
- Return type:
Indicates whether the buffer has been modified since the last call to
Infinity.Buffer.set_modified
() set the modification flag toFalse
.
- set_modified(modified)¶
- Parameters:
modified (
bool
) – Whether the buffer is considered modified or not.
Sets the modification flag of self to modified. You should normally set the flag to
False
every time the document is saved onto disk. The buffer itself will set it toTrue
when it has been changed.To get notified when the modification flag changes, connect to
GObject.Object
::notify
for theInfinity.Buffer
:modified
property.
- do_get_modified() virtual¶
- Returns:
Whether the buffer has been modified.
- Return type:
Indicates whether the buffer has been modified since the last call to
Infinity.Buffer.set_modified
() set the modification flag toFalse
.
- do_set_modified(modified) virtual¶
- Parameters:
modified (
bool
) – Whether the buffer is considered modified or not.
Sets the modification flag of buffer to modified. You should normally set the flag to
False
every time the document is saved onto disk. The buffer itself will set it toTrue
when it has been changed.To get notified when the modification flag changes, connect to
GObject.Object
::notify
for theInfinity.Buffer
:modified
property.