OpenShot Video Editor  2.0.0
Public Member Functions | Public Attributes | List of all members
updates.UpdateAction Class Reference

A data structure representing a single update manager action, including any necessary data to reverse the action. More...

Public Member Functions

def __init__ (self, type=None, key=[], values=None, partial_update=False)
 
def json (self, is_array=False, only_value=False)
 Get the JSON string representing this UpdateAction. More...
 
def load_json (self, value)
 Load this UpdateAction from a JSON string. More...
 
def set_old_values (self, old_vals)
 

Public Attributes

 key
 
 old_values
 
 partial_update
 
 type
 
 values
 

Detailed Description

A data structure representing a single update manager action, including any necessary data to reverse the action.

Definition at line 63 of file updates.py.

Constructor & Destructor Documentation

◆ __init__()

def updates.UpdateAction.__init__ (   self,
  type = None,
  key = [],
  values = None,
  partial_update = False 
)

Definition at line 65 of file updates.py.

Member Function Documentation

◆ json()

def updates.UpdateAction.json (   self,
  is_array = False,
  only_value = False 
)

Get the JSON string representing this UpdateAction.

Definition at line 77 of file updates.py.

◆ load_json()

def updates.UpdateAction.load_json (   self,
  value 
)

Load this UpdateAction from a JSON string.

Definition at line 101 of file updates.py.

◆ set_old_values()

def updates.UpdateAction.set_old_values (   self,
  old_vals 
)

Definition at line 72 of file updates.py.

Member Data Documentation

◆ key

updates.UpdateAction.key

Definition at line 67 of file updates.py.

◆ old_values

updates.UpdateAction.old_values

Definition at line 69 of file updates.py.

◆ partial_update

updates.UpdateAction.partial_update

Definition at line 70 of file updates.py.

◆ type

updates.UpdateAction.type

Definition at line 66 of file updates.py.

◆ values

updates.UpdateAction.values

Definition at line 68 of file updates.py.


The documentation for this class was generated from the following file: