Rapicorn - Experimental UI Toolkit - Source Code  13.07.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Classes | Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Static Protected Member Functions
Rapicorn::WidgetImpl Class Reference

WidgetImpl is the base type for all UI element implementations and implements the Widget interface. More...

#include <widget.hh>

Inherits Rapicorn::WidgetIface, and Rapicorn::DataListContainer.

Inherited by Rapicorn::Arrow [virtual], Rapicorn::ArrowImpl [virtual], Rapicorn::ContainerImpl [virtual], Rapicorn::DotGrid [virtual], Rapicorn::DotGridImpl [virtual], Rapicorn::DrawableImpl [virtual], Rapicorn::FocusFrame::Client [virtual], Rapicorn::IdlTestWidgetImpl [virtual], Rapicorn::Image [virtual], and Rapicorn::ImageImpl [virtual].

List of all members.

Classes

struct  PackInfo

Public Types

typedef std::function< void(WidgetImpl &)> WidgetSlot

Public Member Functions

virtual WindowImplas_window_impl ()
virtual ContainerImplas_container_impl ()
bool test_all_flags (uint64 mask) const
bool test_any_flag (uint64 mask) const
bool anchored () const
virtual bool visible () const
virtual void visible (bool b)
bool ancestry_visible () const
 Check if ancestry is fully visible.
virtual bool viewable () const
bool drawable () const
virtual bool sensitive () const
virtual void sensitive (bool b)
bool insensitive () const
void insensitive (bool b)
bool key_sensitive () const
 Return wether a widget can process key events.
bool pointer_sensitive () const
 Return wether a widget can process pointer events.
bool prelight () const
virtual void prelight (bool b)
bool ancestry_prelight () const
 Check if ancestry contains prelight().
bool impressed () const
virtual void impressed (bool b)
bool ancestry_impressed () const
 Check if ancestry contains impressed().
bool has_default () const
bool grab_default () const
virtual bool can_focus () const
bool has_focus () const
bool grab_focus ()
void unset_focus ()
virtual bool move_focus (FocusDirType fdir)
virtual bool activate ()
virtual bool hexpand () const
virtual void hexpand (bool b)
virtual bool vexpand () const
virtual void vexpand (bool b)
virtual bool hspread () const
virtual void hspread (bool b)
virtual bool vspread () const
virtual void vspread (bool b)
virtual bool hshrink () const
virtual void hshrink (bool b)
virtual bool vshrink () const
virtual void vshrink (bool b)
virtual String name () const
virtual void name (const String &str)
FactoryContext * factory_context () const
void factory_context (FactoryContext *fc)
UserSource user_source () const
ColorSchemeType color_scheme () const
void color_scheme (ColorSchemeType cst)
double width () const
void width (double w)
double height () const
void height (double h)
Propertylookup_property (const String &property_name)
String get_property (const String &property_name)
void set_property (const String &property_name, const String &value)
bool try_set_property (const String &property_name, const String &value)
const PropertyListlist_properties ()
bool exec_command (const String &command_call_string)
Command * lookup_command (const String &command_name)
virtual const CommandList & list_commands ()
ContainerImplparent () const
ContainerImplroot () const
bool has_ancestor (const WidgetImpl &ancestor) const
WidgetImplcommon_ancestor (const WidgetImpl &other) const
WidgetImplcommon_ancestor (const WidgetImpl *other) const
const AnchorInfoanchor_info () const
WindowImplget_window () const
ViewportImplget_viewport () const
ResizeContainerImplget_resize_container () const
size_t cross_link (WidgetImpl &link, const WidgetSlot &uncross)
void cross_unlink (WidgetImpl &link, size_t link_id)
void uncross_links (WidgetImpl &link)
void invalidate (uint64 mask=INVALID_REQUISITION|INVALID_ALLOCATION|INVALID_CONTENT)
void invalidate_size ()
void changed ()
void expose ()
void expose (const Rect &rect)
void expose (const Region &region)
void queue_visual_update ()
void force_visual_update ()
bool process_event (const Event &event)
bool process_screen_window_event (const Event &event)
void render_into (cairo_t *cr, const Region &region)
virtual bool point (Point p)
Point point_to_screen_window (Point widget_point)
Point point_from_screen_window (Point window_point)
virtual bool translate_from (const WidgetImpl &src_widget, const uint n_points, Point *points) const
bool translate_to (const uint n_points, Point *points, const WidgetImpl &target_widget) const
bool translate_from (const WidgetImpl &src_widget, const uint n_rects, Rect *rects) const
bool translate_to (const uint n_rects, Rect *rects, const WidgetImpl &target_widget) const
bool screen_window_point (Point p)
Requisition requisition ()
void set_allocation (const Allocation &area, const Allocation *clip=NULL)
const Allocationallocation () const
Allocation clipped_allocation () const
const Allocationclip_area () const
StateType state () const
Heritageheritage () const
Color foreground ()
Color background ()
Color dark_color ()
Color dark_shadow ()
Color dark_glint ()
Color light_color ()
Color light_shadow ()
Color light_glint ()
Color focus_color ()
virtual String test_dump ()
String debug_dump (const String &flags=String())
void find_adjustments (AdjustmentSourceType adjsrc1, Adjustment **adj1, AdjustmentSourceType adjsrc2=ADJUSTMENT_SOURCE_NONE, Adjustment **adj2=NULL, AdjustmentSourceType adjsrc3=ADJUSTMENT_SOURCE_NONE, Adjustment **adj3=NULL, AdjustmentSourceType adjsrc4=ADJUSTMENT_SOURCE_NONE, Adjustment **adj4=NULL)
const PackInfopack_info () const
double hposition () const
void hposition (double d)
double hspan () const
void hspan (double d)
double vposition () const
void vposition (double d)
double vspan () const
void vspan (double d)
int left_spacing () const
void left_spacing (int s)
int right_spacing () const
void right_spacing (int s)
int bottom_spacing () const
void bottom_spacing (int s)
int top_spacing () const
void top_spacing (int s)
double halign () const
void halign (double f)
double hscale () const
void hscale (double f)
double valign () const
void valign (double f)
double vscale () const
void vscale (double f)
double hanchor () const
void hanchor (double a)
double vanchor () const
void vanchor (double a)
virtual bool match_selector (const String &selector)
virtual WidgetIfacequery_selector (const String &selector)
virtual WidgetSeq query_selector_all (const String &selector)
virtual WidgetIfacequery_selector_unique (const String &selector)
template<class C >
InterfaceMatch< C >::Result interface (const String &ident=String(), const std::nothrow_t &nt=dothrow) const
template<class C >
InterfaceMatch< C >::Result parent_interface (const String &ident=String(), const std::nothrow_t &nt=dothrow) const

Public Attributes

Aida::Signal< void()> sig_finalize
Aida::Signal< void()> sig_changed
Aida::Signal< void()> sig_invalidate
Aida::Signal< void(WidgetImpl *old) sig_hierarchy_changed )

Protected Types

enum  {
  ANCHORED, VISIBLE, SENSITIVE, UNVIEWABLE,
  PARENT_SENSITIVE, PARENT_UNVIEWABLE, PRELIGHT, IMPRESSED,
  HAS_DEFAULT, FOCUS_CHAIN, HSHRINK, VSHRINK,
  HEXPAND, VEXPAND, HSPREAD, VSPREAD,
  HSPREAD_CONTAINER, VSPREAD_CONTAINER, INVALID_REQUISITION, INVALID_ALLOCATION,
  INVALID_CONTENT
}

Protected Member Functions

const AnchorInfoforce_anchor_info () const
virtual void constructed ()
bool change_flags_silently (uint64 mask, bool on)
void set_flag (uint64 flag, bool on=true)
void unset_flag (uint64 flag)
virtual Selector::Selobpseudo_selector (Selector::Selob &selob, const String &ident, const String &arg, String &error)
virtual void size_request (Requisition &requisition)=0
virtual void size_allocate (Allocation area, bool changed)=0
virtual void invalidate_parent ()
void clip_area (const Allocation *clip)
bool tune_requisition (Requisition requisition)
bool tune_requisition (double new_width, double new_height)
virtual void do_invalidate ()
virtual void do_changed ()
uint exec_fast_repeater (const EventLoop::BoolSlot &sl)
uint exec_slow_repeater (const EventLoop::BoolSlot &sl)
uint exec_key_repeater (const EventLoop::BoolSlot &sl)
bool remove_exec (uint exec_id)
bool clear_exec (uint *exec_id)
virtual void visual_update ()
virtual void finalize ()
virtual void set_parent (ContainerImpl *parent)
virtual void hierarchy_changed (WidgetImpl *old_toplevel)
 Signal emitted when a widget ancestry is added to or removed from a Window.
virtual bool activate_widget ()
virtual bool custom_command (const String &command_name, const StringSeq &command_args)
void anchored (bool b)
void notify_key_error ()
Affine affine_to_screen_window ()
Affine affine_from_screen_window ()
virtual void render_widget (RenderContext &rcontext)
virtual void render_recursive (RenderContext &rcontext)
virtual void render (RenderContext &rcontext, const Rect &rect)=0
const Regionrendering_region (RenderContext &rcontext) const
virtual cairo_t * cairo_context (RenderContext &rcontext, const Allocation &area=Allocation(-1,-1, 0, 0))
void make_test_dump (TestStream &tstream)
virtual void dump_test_data (TestStream &tstream)
virtual void dump_private_data (TestStream &tstream)
virtual bool do_event (const Event &event)

Static Protected Member Functions

static ContainerImplcontainer_cast (WidgetImpl *widget)
static WindowImplwindow_cast (WidgetImpl *widget)

Detailed Description

WidgetImpl is the base type for all UI element implementations and implements the Widget interface.

More details about widgets are covered in Widget System.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines