Package evas :: Module c_evas :: Class ClippedSmartObject
[hide private]
[frames] | no frames]

Class ClippedSmartObject

object --+        
         |        
    Object --+    
             |    
   SmartObject --+
                 |
                ClippedSmartObject
Known Subclasses:

SmartObject subclass that automatically handles an internal clipper.

This class is optimized for the recommended SmartObject usage of having an internal clipper, with all member objects clipped to it and operations like hide(), show(), color_set(), clip_set() and clip_unset() operating on it.

This internal clipper size is huge by default (and not the same as the object size), this means that you should clip this object to another object clipper to get its contents restricted. This is the default because many times what we want are contents that can overflow SmartObject boudaries (ie: members with animations coming in from outside).


To Do: remove current code and wrap C version (now it's in evas).

Instance Methods [hide private]
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
a new object with type S, a subtype of T
__new__(T, S, ...)

Inherited from SmartObject: Textblock, changed, move_children_relative, need_recalculate_get, need_recalculate_set

Inherited from Object: __repr__, __str__, bottom_center_get, bottom_center_set, clipees_get, evas_get, left_center_get, left_center_set, name_get, name_set, on_changed_size_hints_add, on_changed_size_hints_del, on_del_add, on_del_del, parent_get, right_center_get, right_center_set, size_hint_align_get, size_hint_align_set, size_hint_aspect_get, size_hint_aspect_set, size_hint_max_get, size_hint_max_set, size_hint_min_get, size_hint_min_set, size_hint_padding_get, size_hint_padding_set, size_hint_request_get, size_hint_request_set, size_hint_weight_get, size_hint_weight_set, top_center_get, top_center_set, type_get

Inherited from Object (private): _set_common_params, _set_evas

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

    Children manipulation
 
member_add(...)
Set an evas object as a member of this object, already clipping.
 
member_del(...)
Removes a member object from a smart object, already unsets its clip.

Inherited from SmartObject: members_get

    Default implementations
 
clip_set(...)
Default implementation that acts on the the clipper.
 
clip_unset(...)
Default implementation that acts on the the clipper.
 
color_set(...)
Default implementation that acts on the the clipper.
 
hide(...)
Default implementation that acts on the the clipper.
 
show(...)
Default implementation that acts on the the clipper.

Inherited from SmartObject: calculate, delete, move

    Factories

Inherited from SmartObject: FilledImage, Gradient, Image, Line, Polygon, Rectangle, Text

    Missing implementations

Inherited from SmartObject: resize

    Event system

Inherited from SmartObject: callback_add, callback_call, callback_del

    State manipulation

Inherited from Object: clip_get, color_get, is_deleted, visible_get, visible_set

    Positioning

Inherited from Object: bottom_left_get, bottom_left_set, bottom_right_get, bottom_right_set, center_get, center_set, geometry_get, geometry_set, move_relative, pos_get, pos_set, size_get, size_set, top_left_get, top_left_set, top_right_get, top_right_set

    Layer & Stack manipulation

Inherited from Object: above_get, below_get, bottom_get, layer_get, layer_set, lower, raise_, stack_above, stack_below, top_get

    Event processing control

Inherited from Object: focus_get, focus_set, pass_events_get, pass_events_set, propagate_events_get, propagate_events_set, repeat_events_get, repeat_events_set

    Event callbacks

Inherited from Object: event_callback_add, event_callback_del, on_focus_in_add, on_focus_in_del, on_focus_out_add, on_focus_out_del, on_free_add, on_free_del, on_hide_add, on_hide_del, on_hold_add, on_hold_del, on_key_down_add, on_key_down_del, on_key_up_add, on_key_up_del, on_mouse_down_add, on_mouse_down_del, on_mouse_in_add, on_mouse_in_del, on_mouse_move_add, on_mouse_move_del, on_mouse_out_add, on_mouse_out_del, on_mouse_up_add, on_mouse_up_del, on_mouse_wheel_add, on_mouse_wheel_del, on_move_add, on_move_del, on_resize_add, on_resize_del, on_restack_add, on_restack_del, on_show_add, on_show_del

    Often unused

Inherited from Object: anti_alias_get, anti_alias_set, color_interpolation_get, color_interpolation_set, pointer_mode_get, pointer_mode_set, render_op_get, render_op_set

Instance Variables [hide private]
  clipper
the internal object used for clipping.

Inherited from Object: clipees, data, evas, name, parent, rect, type

    State manipulation

Inherited from Object: clip, color, visible

    Positioning

Inherited from Object: bottom_left, bottom_right, center, geometry, pos, size, top_left, top_right

    Layer & Stack manipulation

Inherited from Object: above, below, layer

    Event processing control

Inherited from Object: focus, pass_events, propagate_events, repeat_events

    Often unused

Inherited from Object: anti_alias, color_interpolation, pointer_mode, render_op

Properties [hide private]

Inherited from SmartObject: need_recalculate

Inherited from Object: bottom_center, left_center, right_center, size_hint_align, size_hint_aspect, size_hint_max, size_hint_min, size_hint_padding, size_hint_request, size_hint_weight, top_center

Inherited from object: __class__

    Children manipulation

Inherited from SmartObject: members

Method Details [hide private]

__init__(...)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

clip_set(...)

 

Default implementation that acts on the the clipper.

Overrides: Object.clip_set

clip_unset(...)

 

Default implementation that acts on the the clipper.

Overrides: Object.clip_unset

color_set(...)

 

Default implementation that acts on the the clipper.

Overrides: Object.color_set

hide(...)

 

Default implementation that acts on the the clipper.

Overrides: Object.hide

member_add(...)

 

Set an evas object as a member of this object, already clipping.

Overrides: SmartObject.member_add

member_del(...)

 

Removes a member object from a smart object, already unsets its clip.

Overrides: SmartObject.member_del

show(...)

 

Default implementation that acts on the the clipper.

Overrides: Object.show

Instance Variable Details [hide private]

clipper

the internal object used for clipping. You shouldn't mess with it.