This class implements a graphic object.
Default constructor. |
|
Returns |
|
Clones the image object. |
|
Copies the image object. |
|
Draw the item, within the given range. |
|
Edits the object’s properties via a GUI. |
|
Returns the image block containing the raw data. |
|
Returns the image cache (a scaled bitmap). |
|
Gets the image state. |
|
Returns the ‘natural’ size for this object - the image size. |
|
Gets the original image size. |
|
Returns the label to be used for the properties context menu item. |
|
Returns the object size for the given range. |
|
Returns the |
|
Imports this object from |
|
Returns |
|
Returns |
|
Lay the item out at the specified position with the given size constraint. |
|
Do the loading and scaling. |
|
Creates a cached image at the required size. |
|
Resets the image cache. |
|
Sets the image cache. |
|
Sets the image state. |
|
Sets the original image size. |
|
Returns |
See |
|
See |
|
See |
|
See |
|
See |
Possible constructors:
RichTextImage(parent: Optional[RichTextObject]=None) -> None
RichTextImage(image : Image, parent: Optional[RichTextObject]=None,
charStyle: Optional[RichTextAttr]=None) -> None
RichTextImage(imageBlock : RichTextImageBlock, parent:
Optional[RichTextObject]=None, charStyle: Optional[RichTextAttr]=None)
-> None
RichTextImage(obj : RichTextImage) -> None
This class implements a graphic object.
__init__ (self, parent: Optional[RichTextObject]=None)
Default constructor.
parent (wx.richtext.RichTextObject)
None
__init__ (self, image : Image, parent: Optional[RichTextObject]=None, charStyle: Optional[RichTextAttr]=None)
Creates a wx.richtext.RichTextImage from a wx.Image.
image (wx.Image)
parent (wx.richtext.RichTextObject)
charStyle (wx.richtext.RichTextAttr)
None
__init__ (self, imageBlock : RichTextImageBlock, parent: Optional[RichTextObject]=None, charStyle: Optional[RichTextAttr]=None)
Creates a wx.richtext.RichTextImage from an image block.
imageBlock (wx.richtext.RichTextImageBlock)
parent (wx.richtext.RichTextObject)
charStyle (wx.richtext.RichTextAttr)
None
__init__ (self, obj : RichTextImage)
Copy constructor.
None
Returns True
if we can edit the object’s properties via a GUI.
bool
Clones the image object.
Copies the image object.
None
Draw the item, within the given range.
Some objects may ignore the range (for example paragraphs) while others must obey it (lines, to implement wrapping)
dc (wx.DC)
context (wx.richtext.RichTextDrawingContext)
range (wx.richtext.RichTextRange)
selection (wx.richtext.RichTextSelection)
rect (wx.Rect)
descent (int)
style (int)
bool
Edits the object’s properties via a GUI.
parent (wx.Window)
buffer (wx.richtext.RichTextBuffer)
bool
Returns the image block containing the raw data.
Returns the image cache (a scaled bitmap).
Bitmap
Gets the image state.
int
Returns the ‘natural’ size for this object - the image size.
Gets the original image size.
Size
Returns the label to be used for the properties context menu item.
str
Returns the object size for the given range.
Returns False
if the range is invalid for this object.
range (wx.richtext.RichTextRange)
size (wx.Size)
descent (int)
dc (wx.DC)
context (wx.richtext.RichTextDrawingContext)
flags (int)
position (wx.Point)
parentSize (wx.Size)
partialExtents (list of integers)
bool
Returns the XML
node name of this object.
This must be overridden for XmlNode-base XML
export to work.
str
Imports this object from XML
.
buffer (wx.richtext.RichTextBuffer)
node (wx.xml.XmlNode)
handler (wx.richtext.RichTextXMLHandler)
recurse (bool)
bool
Returns True
if the object is empty.
bool
Returns True
if this class of object is floatable.
bool
Lay the item out at the specified position with the given size constraint.
Layout must set the cached size. rect is the available space for the object, and parentRect is the container that is used to determine a relative size or position (for example if a text box must be 50% of the parent text box).
dc (wx.DC)
context (wx.richtext.RichTextDrawingContext)
rect (wx.Rect)
parentRect (wx.Rect)
style (int)
bool
Do the loading and scaling.
image (wx.Image)
sz (wx.Size)
context (wx.richtext.RichTextDrawingContext)
changed (bool)
Tuple[bool, bool]
Creates a cached image at the required size.
dc (wx.DC)
context (wx.richtext.RichTextDrawingContext)
retImageSize (wx.Size)
resetCache (bool)
parentSize (wx.Size)
bool
Resets the image cache.
None
Sets the image cache.
bitmap (wx.Bitmap)
None
Sets the image state.
state (int)
None
Sets the original image size.
sz (wx.Size)
None
Returns True
if this object takes note of paragraph attributes (text and image objects don’t).
bool
See GetImageBlock
See GetImageCache
and SetImageCache
See GetImageState
and SetImageState
See GetNaturalSize
See GetXMLNodeName