Class: Wx::RTC::RichTextImage

Inherits:
RichTextObject show all
Defined in:
lib/wx/doc/gen/rtc/rich_text_image.rb

Overview

Note:

This class is untracked and should not be derived from nor instances extended!

This class implements a graphic object.

Category: Rich Text

See Also:

Requires:

  • USE_RICHTEXT

Instance Method Summary collapse

Methods inherited from RichTextObject

#accepts_focus, #adjust_attributes, adjust_available_space, #calculate_range, #can_merge, #can_split, #convert_pixels_to_tenths_mm, convert_pixels_to_tenths_mm, #convert_tenths_mm_to_pixels, convert_tenths_mm_to_pixels, #delete_range, #dereference, #do_split, draw_border, draw_box_attributes, #dump, #find_position, #get_absolute_position, #get_attributes, #get_available_content_area, #get_best_size, #get_bottom_margin, get_box_rects, #get_buffer, #get_cached_size, #get_container, #get_descent, #get_float_direction, #get_left_margin, #get_max_size, #get_min_size, #get_name, #get_own_range, #get_own_range_if_top_level, #get_parent, #get_parent_container, #get_position, #get_properties, #get_range, #get_rect, #get_right_margin, #get_selection, #get_text_for_range, #get_top_margin, get_total_margin, #handles_child_selections, #hit_test, #invalidate, #is_atomic, #is_composite, #is_floating, #is_shown, #is_top_level, #layout_to_best_size, #merge, #move, #reference, #set_attributes, #set_cached_size, #set_descent, #set_margins, #set_max_size, #set_min_size, #set_name, #set_own_range, #set_parent, #set_position, #set_properties, #set_range, #show, #split

Methods inherited from Object

#dup, #is_same_as, #un_share

Constructor Details

#initialize(parent = nil) ⇒ Wx::RTC::RichTextImage #initialize(image, parent = nil, charStyle = nil) ⇒ Wx::RTC::RichTextImage #initialize(imageBlock, parent = nil, charStyle = nil) ⇒ Wx::RTC::RichTextImage #initialize(obj) ⇒ Wx::RTC::RichTextImage

Returns a new instance of RichTextImage.

Overloads:



44
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 44

def initialize(*args) end

Instance Method Details

#can_edit_propertiesBoolean Also known as: can_edit_properties?

Returns true if we can edit the object’s properties via a GUI.

Returns:

  • (Boolean)


98
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 98

def can_edit_properties; end

#cloneWx::RTC::RichTextObject

Clones the image object.



174
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 174

def clone; end

#copy(obj) ⇒ void

This method returns an undefined value.

Copies the image object.

Parameters:



170
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 170

def copy(obj) end

#draw(dc, context, range, selection, rect, descent, style) ⇒ Boolean

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)

Parameters:

Returns:

  • (Boolean)


57
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 57

def draw(dc, context, range, selection, rect, descent, style) end

#edit_properties(parent, buffer) ⇒ Boolean

Edits the object’s properties via a GUI.

Parameters:

Returns:

  • (Boolean)


105
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 105

def edit_properties(parent, buffer) end

#get_image_blockWx::RTC::RichTextImageBlock Also known as: image_block

Returns the image block containing the raw data.



153
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 153

def get_image_block; end

#get_image_cacheWx::Bitmap Also known as: image_cache

Returns the image cache (a scaled bitmap).

Returns:



138
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 138

def get_image_cache; end

#get_image_stateInteger Also known as: image_state

Gets the image state.

Returns:

  • (Integer)


194
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 194

def get_image_state; end

#get_natural_sizeWx::RTC::TextAttrSize Also known as: natural_size

Returns the ‘natural’ size for this object - the image size.



88
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 88

def get_natural_size; end

#get_original_image_sizeWx::Size Also known as: original_image_size

Gets the original image size.

Returns:



158
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 158

def get_original_image_size; end

#get_properties_menu_labelString Also known as: properties_menu_label

Returns the label to be used for the properties context menu item.

Returns:

  • (String)


109
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 109

def get_properties_menu_label; end

#get_range_size(range, size, descent, dc, context, flags, position = (Wx::Point.new(0, 0)), parentSize = Wx::DEFAULT_SIZE, partialExtents = nil) ⇒ Boolean Also known as: range_size

Returns the object size for the given range.

Returns false if the range is invalid for this object.

Parameters:

  • range (Range)
  • size (Array(Integer, Integer), Wx::Size)
  • descent (int)
  • dc (Wx::DC)
  • context (Wx::RTC::RichTextDrawingContext)
  • flags (Integer)
  • position (Array(Integer, Integer), Wx::Point) (defaults to: (Wx::Point.new(0, 0)))
  • parentSize (Array(Integer, Integer), Wx::Size) (defaults to: Wx::DEFAULT_SIZE)
  • partialExtents (Array, nil) (defaults to: nil)

Returns:

  • (Boolean)


83
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 83

def get_range_size(range, size, descent, dc, context, flags, position=(Wx::Point.new(0, 0)), parentSize=Wx::DEFAULT_SIZE, partialExtents=nil) end

#get_xml_node_nameString Also known as: xml_node_name

Returns the XML node name of this object.

This must be overridden for XmlNode-base XML export to work.

Returns:

  • (String)


133
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 133

def get_xml_node_name; end

#import_from_xml(buffer, node, handler, recurse) ⇒ Array(Boolean,Boolean)

Imports this object from XML.

Parameters:

Returns:

  • (Array(Boolean,Boolean))


122
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 122

def import_from_xml(buffer, node, handler, recurse) end

#is_emptyBoolean Also known as: empty?

Returns true if the object is empty.

Returns:

  • (Boolean)


93
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 93

def is_empty; end

#is_floatableBoolean Also known as: floatable?

Returns true if this class of object is floatable.

Returns:

  • (Boolean)


126
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 126

def is_floatable; end

#layout(dc, context, rect, parentRect, style) ⇒ Boolean

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).

Parameters:

Returns:

  • (Boolean)


68
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 68

def layout(dc, context, rect, parentRect, style) end

#load_and_scale_image_cache(image, sz, context) ⇒ Array(Boolean,Boolean)

Do the loading and scaling.

Parameters:

Returns:

  • (Array(Boolean,Boolean))


190
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 190

def load_and_scale_image_cache(image, sz, context) end

#load_image_cache(dc, context, retImageSize, resetCache = false, parentSize = Wx::DEFAULT_SIZE) ⇒ Boolean

Creates a cached image at the required size.

Parameters:

Returns:

  • (Boolean)


183
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 183

def load_image_cache(dc, context, retImageSize, resetCache=false, parentSize=Wx::DEFAULT_SIZE) end

#reset_image_cachevoid

This method returns an undefined value.

Resets the image cache.



149
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 149

def reset_image_cache; end

#set_image_cache(bitmap) ⇒ void Also known as: image_cache=

This method returns an undefined value.

Sets the image cache.

Parameters:



144
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 144

def set_image_cache(bitmap) end

#set_image_state(state) ⇒ void Also known as: image_state=

This method returns an undefined value.

Sets the image state.

Parameters:

  • state (Integer)


200
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 200

def set_image_state(state) end

#set_original_image_size(sz) ⇒ void Also known as: original_image_size=

This method returns an undefined value.

Sets the original image size.

Parameters:

  • sz (Array(Integer, Integer), Wx::Size)


164
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 164

def set_original_image_size(sz) end

#uses_paragraph_attributesBoolean

Returns true if this object takes note of paragraph attributes (text and image objects don’t).

Returns:

  • (Boolean)


114
# File 'lib/wx/doc/gen/rtc/rich_text_image.rb', line 114

def uses_paragraph_attributes; end