module Gdk::SubPartsHelper

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File core/mui/cairo_sub_parts_helper.rb, line 9
def initialize(*args)
  @subparts_height = nil
  super end
subparts_classes() click to toggle source

今サポートされている全てのSubPartsを配列で返す

Return

Subpartsクラスの配列

# File core/mui/cairo_sub_parts_helper.rb, line 16
def self.subparts_classes
  @subparts_classes ||= [] end

Public Instance Methods

render_parts(context) click to toggle source
# File core/mui/cairo_sub_parts_helper.rb, line 22
def render_parts(context)
  context.save{
    mainpart_height
    context.translate(0, mainpart_height)
    subparts.each{ |part|
      context.save{
        part.render(context) }
      context.translate(0, part.height) } }
  self end
subparts() click to toggle source
# File core/mui/cairo_sub_parts_helper.rb, line 19
def subparts
  @subparts ||= Gdk::SubPartsHelper.subparts_classes.map{ |klass| klass.new(self) } end
subparts_height() click to toggle source
# File core/mui/cairo_sub_parts_helper.rb, line 32
def subparts_height
  result = _subparts_height
  reset_height if(@subparts_height != result)
  @subparts_height = result end