class Gdk::SubParts

Attributes

helper[R]

Public Class Methods

new(helper) click to toggle source
# File core/mui/cairo_sub_parts_helper.rb, line 59
def initialize(helper)
  @helper = helper
end
regist()
Alias for: register
register() click to toggle source
# File core/mui/cairo_sub_parts_helper.rb, line 50
def register
  index = where_should_insert_it(self.to_s, Gdk::SubPartsHelper.subparts_classes.map(&:to_s), UserConfig[:subparts_order] || [])
  Gdk::SubPartsHelper.subparts_classes.insert(index, self)
end
Also aliased as: regist

Public Instance Methods

dummy_context() click to toggle source
# File core/mui/cairo_sub_parts_helper.rb, line 72
def dummy_context
  Gdk::Pixmap.new(nil, 1, 1, @helper.color).create_cairo_context end
height() click to toggle source
# File core/mui/cairo_sub_parts_helper.rb, line 69
def height
  0 end
render(context) click to toggle source
# File core/mui/cairo_sub_parts_helper.rb, line 63
def render(context)
end
width() click to toggle source
# File core/mui/cairo_sub_parts_helper.rb, line 66
def width
  helper.width end