In: |
imlib2.c
|
Parent: | Object |
Get the text drawing angle.
Example:
if ctx.dir == Imlib2::Direction::ANGLE puts 'the current font angle is ' << ctx.angle end
Get the current X11 Visual.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
visual = context.get_visual visual = context.visual
Get the current font direction (Imlib2::Dir or Imlib2::Direction).
Example:
if ctx.direction != Imlib2::Direction::RIGHT puts 'drawing funny text' end
Set the current font direction (Imlib2::Dir or Imlib2::Direction).
Example:
ctx.direction = Imlib2::Direction::LEFT
Get the current font direction (Imlib2::Dir or Imlib2::Direction).
Example:
if ctx.direction != Imlib2::Direction::RIGHT puts 'drawing funny text' end
Set the current font direction (Imlib2::Dir or Imlib2::Direction).
Example:
ctx.direction = Imlib2::Direction::LEFT
Get the current X11 Display.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
display = context.get_display display = context.display
Set the current X11 Display.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
context.set_display display context.display = display
Get the current X11 Drawable.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
drawable = context.get_drawable drawable = context.drawable
Set the current X11 Drawable.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
context.set_drawable drawable context.drawable = drawable
Get the text drawing angle.
Example:
if ctx.dir == Imlib2::Direction::ANGLE puts 'the current font angle is ' << ctx.angle end
Get the current X11 Visual.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
visual = context.get_visual visual = context.visual
Get the current font direction (Imlib2::Dir or Imlib2::Direction).
Example:
if ctx.direction != Imlib2::Direction::RIGHT puts 'drawing funny text' end
Get the current X11 Display.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
display = context.get_display display = context.display
Get the current X11 Drawable.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
drawable = context.get_drawable drawable = context.drawable
Get the current image (Imlib2::Image).
Note that this function is not useful at the moment since all image instance methods blindly blow away the image and color context. So you cannot safely mix image context and image instance methods.
Example:
im = ctx.image
Get the current X11 Mask.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
mask = context.get_mask mask = context.mask
Get the current operation (Imlib2::Op or Imlib2::Operation).
Example:
if ctx.op == Imlib2::Op::COPY puts 'copy operation' end
Get the progress callback granularity.
This function is not useful at the moment since you cannot specify progress callbacks from within Ruby (this is a TODO item).
Example:
granularity = ctx.progress_granularity
Get the current X11 Visual.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
visual = context.get_visual visual = context.visual
Get the current X11 Visual.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
visual = context.get_visual visual = context.visual
Get the current image (Imlib2::Image).
Note that this function is not useful at the moment since all image instance methods blindly blow away the image and color context. So you cannot safely mix image context and image instance methods.
Example:
im = ctx.image
Set the current image (Imlib2::Image).
Note that this function is not useful at the moment since all image instance methods blindly blow away the image and color context. So you cannot safely mix image context and image instance methods.
Example:
ctx.image = image
Get the current X11 Mask.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
mask = context.get_mask mask = context.mask
Set the current X11 Mask.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
context.set_mask mask context.mask = mask
Get the current operation (Imlib2::Op or Imlib2::Operation).
Example:
if ctx.op == Imlib2::Op::COPY puts 'copy operation' end
Set the current operation (Imlib2::Op or Imlib2::Operation).
Example:
ctx.operation = Imlib2::Op::COPY
Get the current operation (Imlib2::Op or Imlib2::Operation).
Example:
if ctx.op == Imlib2::Op::COPY puts 'copy operation' end
Set the current operation (Imlib2::Op or Imlib2::Operation).
Example:
ctx.operation = Imlib2::Op::COPY
Get the progress callback granularity.
This function is not useful at the moment since you cannot specify progress callbacks from within Ruby (this is a TODO item).
Example:
granularity = ctx.progress_granularity
Set the progress callback granularity.
This function is not useful at the moment since you cannot specify progress callbacks from within ruby (this is a TODO item).
Example:
ctx.progress_granularity = 10
Set the current font direction (Imlib2::Dir or Imlib2::Direction).
Example:
ctx.direction = Imlib2::Direction::LEFT
Set the current X11 Display.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
context.set_display display context.display = display
Set the current X11 Drawable.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
context.set_drawable drawable context.drawable = drawable
Set the current image (Imlib2::Image).
Note that this function is not useful at the moment since all image instance methods blindly blow away the image and color context. So you cannot safely mix image context and image instance methods.
Example:
ctx.image = image
Set the current X11 Mask.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
context.set_mask mask context.mask = mask
Set the current operation (Imlib2::Op or Imlib2::Operation).
Example:
ctx.operation = Imlib2::Op::COPY
Set the progress callback granularity.
This function is not useful at the moment since you cannot specify progress callbacks from within ruby (this is a TODO item).
Example:
ctx.progress_granularity = 10
Set the current X11 Visual.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
context.set_visual visual context.visual = visual
Get the current X11 Visual.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
visual = context.get_visual visual = context.visual
Get the current X11 Visual.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
visual = context.get_visual visual = context.visual
Set the current X11 Visual.
Note: This method is not available unless Imlib2-Ruby was compiled with X11 support. You can check the constant Imlib2::X11_SUPPORT to see if X11 support is available.
Examples:
context.set_visual visual context.visual = visual